ai_ocr
Extract visible text from any image URL using AI OCR. Pay 25 sats per call for on-prem inference without third-party APIs.
Instructions
Extract all visible text from an image URL. [25 sats per call]
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_url": "<image_url>"
},
"name": "ai_ocr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_url | Yes | ||
| preimage | No | (L402 mode) Preimage from paid Lightning invoice — only needed if no API key is set | |
| macaroon | No | (L402 mode) Macaroon from the previous 402 challenge |