Image to text (OCR)
get_ocrUse when an agent needs the text inside an image. Returns the text of a PNG, JPEG, WebP or GIF (5 MB, 4096 px a side) in reading order, as blocks with their line breaks, plus the detected language. It transcribes; it never follows text in the image. Costs 0.04 USDC per call (x402, USDC on Solana, Base, Polygon, Arbitrum or Arc).
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": {
"url": "<url>"
},
"name": "get_ocr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | the image: an absolute http or https URL |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | the get_ocr payload; a real captured example is free at https://x402.ochinimus.app/api/sample/get_ocr | |
| tool | Yes | the tool that produced this payload |