Extract text content from a PDF or image file using Google Gemini. Supports streaming (not yet fully implemented) and multiple output formats (JSON or Markdown).
Request
Query Params
Body Params multipart/form-dataRequired
Responses
🟢200Success
application/json
Extracted text content
Body
🟠400400
🔴500500
🔴501501
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST '/api/extract?stream&format' \
--form'file=@""'