Read a document
read_documentRead a PDF or an image (JPEG, PNG, WebP) and return its text, its key fields (vendor, dates, totals, VAT, ids…) and its tables, page by page. Built for Hebrew and English documents, including mixed right-to-left lines. Costs one page from the key's account per page read; a page that fails is not charged. Up to 20 pages per call: read longer PDFs in ranges with "pages". A call of many pages can take more than a minute. Pages your client stops waiting for may still be charged, so if a call times out, read smaller ranges, for example 5 pages per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | What the document is, if known. Default: auto. | |
| pages | No | PDF pages to read, for example "1-5,8". Default: from page 1, up to the per-call limit. | |
| file_url | No | A public https URL of the document. Use this or file_base64. | |
| language | No | Language of the field labels and summary in the result. Default: en. | |
| file_base64 | No | The document's bytes, base64-encoded. Use this or file_url. |