Proxy Ocr
by OCR Image to Text in Documents & files
Extract text from images using Tesseract OCR. Send image as image_base64 (PNG/JPEG/WebP/TIFF/BMP, max 10 MB decoded). Returns text and confidence (0-100, where 80+ is reliable). Set language to Tesseract code: 'eng' (default), 'deu' (German), 'fra' (French), 'chi_sim' (Chinese Simplified), 'jpn' (Japanese), 'ara' (Arabic). Use for invoices, receipts, scanned documents, or screenshots with text.
POST https://agentsvc.io/api/v1/proxy/ocr
Last 30 days
Status and outage history · Atom feed
- Uptime
- 100%
- Response time
- 171 ms typical, 241 ms slowest 5%
- Last check
- 4 h ago
- Next check
- any minute now
How to call it
POST https://agentsvc.io/api/v1/proxy/ocr
Each call costs $0.009 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://agentsvc.io/api/v1/proxy/ocr
content-type: application/json
{
"image_base64": "<base64 of a PNG/JPG>",
"language": "eng"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
image_base64 | string | Yes | Base64-encoded image. Supported formats: PNG, JPEG, WebP, TIFF, BMP. Max 10 MB decoded. For best results use high-contrast images with clear text. |
language | string | No | Tesseract language code. Default: 'eng' (English). Other supported: 'deu' (German), 'fra' (French), 'spa' (Spanish), 'ita' (Italian), 'por' (Portuguese), 'rus' (Russian), 'chi_sim' (Chinese Simplified), 'jpn' (Japanese), 'ara' (Arabic), 'kor' (Korean), 'nld' (Dutch), 'pol' (Polish). Use '+' to comb… Default: "eng". |
psm | integer | No | Page Segmentation Mode. 3 = fully automatic (default, best for most images). 6 = single uniform block of text. 7 = single text line. 11 = sparse text (find text anywhere). 13 = raw line (no line ordering). Use 6 or 7 for forms/labels. Default: 3. |
Example response
The provider's example. We can't check it without paying.
{
"data": {
"char_count": 72,
"confidence": 94,
"language": "eng",
"processed_at": "2026-04-10T14:00:00.000Z",
"processing_ms": 1840,
"text": "Invoice #12345\nDate: April 10, 2026\n\nBill To:\nJohn Smith\n123 Main Street\n\nTotal Due: $1,250.00",
"word_count": 18
},
"success": true
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.009.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://agentsvc.io/api/v1/proxy/ocr' \
-H 'content-type: application/json' \
--data-raw '{"image_base64":"<base64 of a PNG/JPG>","language":"eng"}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://agentsvc.io/api/v1/proxy/ocr' \
-H 'content-type: application/json' \
--data-raw '{"image_base64":"<base64 of a PNG/JPG>","language":"eng"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.009 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.009" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.009 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagentsvc.io%2Fapi%2Fv1%2Fproxy%2Focr&method=POST
const res = await pay("https://agentsvc.io/api/v1/proxy/ocr", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"image_base64": "<base64 of a PNG/JPG>",
"language": "eng"
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.009 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.009"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://agentsvc.io/api/v1/proxy/ocr",
json={
"image_base64": "<base64 of a PNG/JPG>",
"language": "eng",
},
)
print(res.status_code, res.text)Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 122 ms | $0.009 |
| 8 h ago | Passed | 402 | 109 ms | $0.009 |
| 12 h ago | Passed | 402 | 199 ms | $0.009 |
| 16 h ago | Passed | 402 | 204 ms | $0.009 |
| 20 h ago | Passed | 402 | 112 ms | $0.009 |
| 23 h ago | Passed | 402 | 227 ms | $0.009 |
| 27 h ago | Passed | 402 | 117 ms | $0.009 |
| 31 h ago | Passed | 402 | 127 ms | $0.009 |
| 34 h ago | Passed | 402 | 112 ms | $0.009 |
| 38 h ago | Passed | 402 | 168 ms | $0.009 |
| 42 h ago | Passed | 402 | 459 ms | $0.009 |
| 45 h ago | Passed | 402 | 195 ms | $0.009 |
| 2 days ago | Passed | 402 | 171 ms | $0.009 |
| 2 days ago | Passed | 402 | 111 ms | $0.009 |
| 2 days ago | Passed | 402 | 212 ms | $0.009 |