OCR: image to text
image_to_text_ocrOCR / image to text / text extraction from screenshots, receipts, invoices, scanned documents, signs and photos (PNG, JPEG, WebP, GIF up to 3 MB). Returns text in reading order, or Markdown with tables and lists. $0.002 USDC per image on Base via x402; images without text are not charged. Price: $0.002 per image. First call returns the x402 PaymentRequired (no charge); retry with payment in _meta["x402/payment"].
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "image_to_text_ocr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | ||
| image_url | No | Public http(s) URL of the image (max 3 MB). Preferred. | |
| requestKey | No | Optional idempotency key: same payer + requestKey + input returns the stored result without a second charge (7 days). | |
| image_base64 | No | Base64 image (max ~1 MB via MCP) | |
| x402_payment | No | Optional. Base64 x402 v2 PaymentPayload, for clients that cannot set params._meta["x402/payment"]. Omit on the first call to get the exact price. | |
| language_hint | No |