InputPOST /api/v1/x402/image-ocr
{
"image_base64": "<base64 PNG up to 6 MiB decoded>",
"max_chars": 200000,
"psm": 6
}
Web and API intelligence · image
Extract English machine-printed text from one caller-supplied PNG, JPEG, or WebP locally for $0.01 USDC via x402. Returns bounded text, confidence, and SHA-256 receipt; no URL fetch, storage, or paid vision provider.
One-command purchase
No account or API key. AgentCash reads the 402 challenge, pays no more than the declared cap, retries the request and returns the result.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/image-ocr -m POST -H 'x-delx-source: product-page' --max-amount 0.01 -b '{"image_base64":"<base64 PNG up to 6 MiB decoded>","max_chars":200000,"psm":6}'
{
"image_base64": "<base64 PNG up to 6 MiB decoded>",
"max_chars": 200000,
"psm": 6
}
{
"schema": "delx/ocr/v1",
"scope": "image_ocr",
"document_id": "image_8b4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f",
"input_sha256": "8b4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f901234567890abcdef1234567890ab",
"output_sha256": "c5f7b2d4c1e7a0f9b6d2e8c3a4f5b6071234567890abcdef1234567890abcdef",
"bytes": 48210,
"text": "Printed text recognized from the image",
"chars": 39,
"words_observed": 7,
"confidence": 96.42,
"language": "eng",
"psm": 6,
"pages_observed": 1,
"total_pages": 1,
"truncated": false,
"provider": "first-party",
"model": "tesseract-5",
"upstream_cost_usd": 0,
"sale_price_usdc": 0.01,
"gross_margin_floor_usd": 0.0097375,
"attribution": "Text recognized locally by Delx with Tesseract; no image is stored, fetched, or sent to a third-party provider."
}
Machine-readable evidence