Batch OCR: up to 10 files in one call
ocr_batchRead the text from up to 10 images, scans or PDFs in one paid call, cheaper than one call per file. Use for a stack of receipts, pages of a scanned letter, photos of forms or a folder of screenshots. Send {files:[{url} or {base64}], lang}. Max 30 pages across the batch, 20 MB per file. Each file gets its own result or error. Returns {files, pages, results:[{index, text, method, pages}]}. Errors: 400 bad input, 422 nothing readable. Price: $0.08 USDC per call (x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"files": "<files>"
},
"name": "ocr_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | OCR language code(s), e.g. eng | |
| files | Yes | 1-10 files, each {url} or {base64} |