{"uid":"cap_ngouDgf-4CX737F6OwPD6","slug":"ocr-image-to-text-b59f7fcb","name":"OCR Image to Text","description":"Read the text out of any image and get it back as plain text. Give a public image URL (or inline base64) of a screenshot, receipt, invoice, scanned page, whiteboard, form or document photo. Use when text is trapped in pixels and you need it as characters to parse, index or summarise.","url":"https://api.gadgethumans.com/ocr?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"object","properties":{"queryParams":{"type":"object","required":["image_url"],"properties":{"prompt":{"type":"string","description":"Optional instruction instead of full transcription"},"image_url":{"type":"string","description":"Public http(s) URL of the image (or pass image=<base64>)"}}}}},"output":{"type":"object","properties":{"example":{"ok":true}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wnuQf7qPkSq_MZfvSyfkl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts plain text from any image (screenshot, receipt, invoice, scanned page, whiteboard, or document photo) provided as a public URL or base64 string.","exampleAgentPrompt":"Can you read all the text out of this receipt image and give it back to me as plain text? Here's the URL: https://example.com/receipt.jpg","exampleUseCases":[{"title":"Digitize a scanned invoice","prompt":"I've got a scanned invoice at https://storage.example.com/invoice-2024.png — can you extract all the text from it so I can parse out the line items and total?"},{"title":"Read text from a whiteboard photo","prompt":"Here's a photo of the whiteboard from our meeting: https://cdn.example.com/whiteboard.jpg — can you transcribe everything written on it into plain text?"},{"title":"Pull data from a screenshot","prompt":"I have a screenshot of a table from a web page at https://files.example.com/table-screenshot.png — please read out all the text so I can work with the data."}],"resultDescription":"Returns plain text containing all readable characters extracted from the image. When an optional prompt instruction is supplied, the response is shaped by that instruction rather than a full verbatim transcription.","failureModes":["Image URL is not publicly accessible or returns a non-200 response — OCR fails with an error","Image contains no readable text or is too low resolution — returns empty or partial text","Base64 payload is malformed — returns a parse or decoding error","Handwriting or stylized fonts may be partially misread or omitted","Very large images may time out or return truncated results"],"whenToPreferThis":"Use this endpoint when you have text visually embedded in an image (screenshot, receipt, invoice, scanned document, whiteboard, or form photo) and need it as machine-readable characters. It accepts both public image URLs and inline base64, and supports an optional prompt to guide extraction toward specific fields rather than full transcription. Prefer this over general-purpose vision models when you need a lightweight, cheap ($0.002/call), purpose-built OCR call without full multimodal inference overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T22:57:27.191Z","isFirstParty":false,"canonicalSlug":"ocr-image-to-text-b59f7fcb"}