OCR an image to text (Tesseract)
job_ocr_tesseractExtracts the printed text from one image (PNG, JPEG, TIFF or WebP, sent as base64) with Tesseract OCR 5, English, and reports Tesseract's mean word confidence. Use it for scans, screenshots, photos of printed pages or receipts, and scanned PDF pages saved as images. Use job_doc_to_markdown instead for a PDF or Office file that already has a text layer. Cost: at most $0.00003134 per call (measured CPU time), debited from your balance; an empty result or failed run is free. Auth: Authorization: Bearer (POST https://api.gaents.com/v1/accounts, $0.10 free credit); with no key the call returns a signed 402 quote payable in BSV or USDC via x402. Errors (isError, error.code): 400 missing_param/bad_param, 401 bad_api_key, 402 low balance, 429 busy (retry in seconds), 503 job_unavailable, 502 job_failed (refunded).
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": {
"image_b64": "<image_b64>"
},
"name": "job_ocr_tesseract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | OCR language; only eng (English) is installed. Default eng. | |
| image_b64 | Yes | The image file's bytes, base64-encoded (PNG, JPEG, TIFF or WebP), no data: prefix. (at most 3000000 bytes decoded) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| empty | Yes | true = nothing found, not charged | |
| output | Yes | {text, chars, mean_confidence (0-100), lang, width, height} | |
| source | No | ||
| charged | No | ||
| measured | No | wall seconds of this run | |
| charged_usd | Yes | ||
| receipt_quote_id | Yes |