ocr
ocrRead the text in a scanned image or PDF with Tesseract (English, French, Spanish, German). PDFs with a text layer are read directly; scanned pages are OCR'd at 300 dpi. $0.008 for one page or image, +$0.002 per extra page (max_pages up to 30; default 5 for .pdf URLs). Costs $0.066 USDC per call (x402).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | https URL of the file (max 20 MB) | |
| lang | No | eng (default), fra, spa, deu; combine with + | |
| filename | No | Name with extension, helps detect the type | |
| force_ocr | No | OCR even when the PDF has a text layer | |
| max_pages | No | PDF pages to read, 1-30 | |
| file_base64 | No | Or the file as base64 / data URI |