{"uid":"cap_Dc5q1DQr88k-kkMu4ekyS","slug":"agentdata-ocr-api-d0c3a4fb","name":"AgentData OCR API","description":"OCR for AI agents, $0.20 per image: scans, photos and screenshots (PNG, JPEG, WebP, GIF, max 5 MB) to exact text with line breaks and reading order preserved. One call: send a url or base64 — no upload step, no polling. No text found means a 400 and you pay nothing. USDC on Base, no account, no API key.","url":"https://agentdata-api.sander-van-aard.workers.dev/doc/ocr?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"queryParams":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.2","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.2/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_n9FHFBIb_WNaSmTDTZoER","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.2","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts exact text with preserved line breaks and reading order from images (PNG, JPEG, WebP, GIF) via a single POST call, billed at $0.20 USDC per image with no charge if no text is found.","exampleAgentPrompt":"Can you extract all the text from this screenshot for me? Here's the image URL: https://example.com/receipt.png — I need the exact text with line breaks preserved.","exampleUseCases":[{"title":"Receipt data extraction from photo","prompt":"I took a photo of a paper receipt and saved it as a JPEG — can you pull out all the text from it exactly as it appears, keeping the line breaks intact? Here's the base64 of the image."},{"title":"Screenshot to text for accessibility","prompt":"Here's a screenshot of a software error message I got — can you read the text out of it for me? The image is at https://example.com/error-screenshot.png"},{"title":"Scanned document transcription","prompt":"I have a scanned page from a legal document as a PNG — please extract all the text from it in reading order so I can search through it. Here's the URL: https://example.com/scan.png"}],"resultDescription":"Returns the extracted text content from the image with original line breaks and reading order preserved. If no text is detected in the image, returns a 400 error and no charge is applied. On success, delivers the full verbatim text as found in the image.","failureModes":["400 error with no charge when no text is found in the image","Image exceeds 5 MB size limit causing rejection","Unsupported image format (only PNG, JPEG, WebP, GIF accepted)","Invalid or inaccessible image URL","Malformed base64 input causing parsing failure","Payment failure via x402/USDC preventing the call from completing"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-call OCR service with no account setup, no API key management, and no upload/polling workflow — just a single POST with an image URL or base64. Particularly well-suited for AI agents that need occasional OCR without committing to a subscription, and where the no-charge-on-no-text guarantee reduces cost risk. Prefer it over heavier vision APIs when you only need text extraction (not object detection or image analysis) and want USDC micropayment billing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T06:46:22.895Z","isFirstParty":false,"canonicalSlug":"agentdata-ocr-api-d0c3a4fb"}