{"uid":"cap_S4eCdHAYxUQ7EqaAHKaD1","slug":"visionex-image-ocr-bbd91942","name":"visionex Image OCR","description":"Extract text from an image using OCR. Accepts an image URL or Base64, returns text with confidence scores and bounding boxes. Use for image-to-text, document OCR, receipt and invoice scanning, and text recognition.","url":"https://visionex.x402tools.xyz/v1/extract?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"Public image URL to fetch"},"image":{"type":"string","description":"Base64-encoded image data"},"options":{"type":"object","properties":{"dpi":{"type":"number","description":"Optional resize hint (72-600)"},"format":{"enum":["text","json","hocr"],"type":"string"},"language":{"type":"string","description":"OCR language (ISO 639-3, default: eng)"}}}}},"responseSchema":{"type":"json","example":{"meta":{"width":1600,"height":2200,"language":"eng","duration_ms":482},"text":"Invoice #12345\nTotal Due: $199.00","blocks":[{"bbox":{"x0":24,"x1":240,"y0":18,"y1":54},"text":"Invoice #12345","level":"line","confidence":97.4}],"confidence":96.2}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QTy7dU1IyfzMUDmMwW27F","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts text from images via OCR, returning plain text, structured JSON with bounding boxes, or hOCR output with confidence scores.","exampleAgentPrompt":"Can you extract all the text from this invoice image — https://example.com/invoice.jpg — and give me the output as structured JSON with bounding boxes so I know where each line of text appears?","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the full extracted text string, an array of text blocks each with bounding box coordinates (x0, y0, x1, y1), block-level text, and per-block confidence scores, plus metadata including image dimensions (width, height), detected language, and processing time in milliseconds. Overall document confidence score is also included.","failureModes":["Image URL is not publicly accessible or returns a non-200 response — extraction fails with a fetch error","Base64 image data is malformed or truncated — returns a decode error","Unsupported image format (e.g. PDF, SVG) — returns an unsupported format error","Low-quality or very small image yields low confidence scores or empty text blocks","Invalid ISO 639-3 language code provided — may fall back to English or return a parameter error","Payment via x402 fails or USDC balance insufficient — request blocked before processing"],"whenToPreferThis":"Choose this endpoint when you need to extract text from images with optional structured spatial output (bounding boxes or hOCR), especially for invoices, receipts, scanned documents, or photos of printed text. Ideal for pay-per-call usage without a subscription, when you need per-word or per-line positional data alongside raw text, or when processing images in specific non-English languages using ISO 639-3 codes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T03:28:24.260Z","isFirstParty":false,"canonicalSlug":"visionex-image-ocr-bbd91942"}