{"uid":"cap_0pKglRAB_cGLnzrYplSX5","slug":"fastapi-online-ocr-image-text-extraction-56bd6c17","name":"fastapi.online OCR — Image Text Extraction","description":"Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.","url":"https://api.fastapi.online/ocr","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"Image file (PNG/JPEG/WebP)"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yRvlykuyjHQA7U0mFdsyF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts text and line-by-line content from PNG, JPEG, or WebP images using optical character recognition","exampleAgentPrompt":"Can you extract all the text from this image of a receipt I just uploaded — it's a JPEG photo of a printed receipt and I need the text contents pulled out?","exampleUseCases":[{"title":"Receipt digitization for expense tracking","prompt":"I have a photo of a restaurant receipt in JPEG format — can you read all the text off it so I can log the line items for my expense report?"},{"title":"Scanned form data extraction","prompt":"I scanned a paper form as a PNG and need all the text pulled out of it — can you run OCR on this image and give me the text?"},{"title":"Screenshot text capture","prompt":"I took a WebP screenshot of an error message on my screen and need the exact text from it — can you extract all the text from this image?"}],"resultDescription":"Returns a JSON object containing: 'text' (full extracted text as a single string), 'lines' (array of individual text lines detected in the image), and 'engine' (name of the OCR engine used). Additional fields may be present.","failureModes":["Unsupported file format (non-PNG/JPEG/WebP) results in error","Low-quality or blurry images may yield incomplete or garbled text","Handwritten text may have reduced accuracy depending on the OCR engine","Payment failure or insufficient USDC balance returns 402 status","Missing required 'file' field returns 422 validation error","Very large image files may time out or be rejected"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call OCR service with no account signup, paying in USDC crypto via x402. It is well-suited for agents that process images on demand without committing to a subscription, and when you need structured line-level output alongside raw text. Prefer it over cloud OCR services when anonymity, crypto payment, or avoiding API key management is a priority.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T08:27:25.145Z","isFirstParty":false}