Extract Document Fields
extract_document_fieldsExtract structured fields and full text from a document image.
Use this for invoices, receipts, forms, and similar PNG or JPEG images when the agent needs named fields rather than Markdown. PDF input is intentionally rejected; use pdf_to_markdown for PDFs.
Returns: A dictionary containing request metadata, extracted fields, and text, or an actionable error object on failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public URL pointing directly to a PNG or JPEG document image. Provide this or image_base64, never both. | |
| doc_type | No | Document type that guides field extraction, such as 'invoice' (default), 'receipt', or 'form'. | invoice |
| image_base64 | No | Base64-encoded PNG or JPEG bytes. Provide this or url, never both. |