Read text from images and scanned PDFs (OCR)
ocr_read_textRead-onlyIdempotent
Read the text from a photo, screenshot, scan or scanned PDF (OCR). If the PDF already has real text, that is returned instead (faster and exact). Use when text is only available as an image: receipts, letters, forms, signs. Send {url} or {base64}, optional lang (default eng, e.g. eng+fra). Max 20 MB, 20 pages. Returns {text, method, pages}. Errors: 400 bad input, 413 too large. Price: $0.01 USDC per call (x402).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public URL of the file. Provide url OR base64. | |
| lang | No | Tesseract language code(s), e.g. eng or eng+fra | |
| base64 | No | File contents, base64-encoded (max 20 MB). Provide url OR base64. |