{"uid":"cap_a3B-ErZbJZy3NW2_rXMJu","slug":"codepulse-api-image-ocr-110a7aa9","name":"CodePulse API – Image OCR","description":"Performs optical character recognition (OCR) on an image URL to read its text.","url":"https://codepulse-api.hahavoid0.workers.dev/media/ocr","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","required":["image_url"],"properties":{"image_url":{"type":"string","description":"URL of the target PNG/JPG image"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"result":{"text":"Extracted receipt content..."},"warnings":[],"supported":true,"confidence":"high","data_as_of":"2026-06","disclaimer":"Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."}},"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":"unknown","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_7M2ht1bxNHn0Zy9N2SZx5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts text from a PNG or JPG image via URL using optical character recognition (OCR)","exampleAgentPrompt":"Can you extract all the text from this receipt image — https://example.com/receipt.jpg — so I can see the line items and total?","exampleUseCases":[{"title":"Receipt digitization for expense tracking","prompt":"I have a photo of a restaurant receipt at https://mybucket.s3.amazonaws.com/receipt_2026.jpg — can you read all the text off it so I can log the amount and items for my expense report?"},{"title":"Screenshot text extraction for data entry","prompt":"There's a screenshot of a form at https://cdn.example.com/form_screenshot.png — can you pull out all the text from it so I can copy the fields into a spreadsheet?"},{"title":"Scanned document parsing for search indexing","prompt":"I've got a scanned page uploaded at https://docs.mysite.com/scanned_page.jpg — please extract the full text from it so I can index it and make it searchable."}],"resultDescription":"Returns a JSON object with a `result.text` field containing the extracted text from the image, a `confidence` field (e.g. 'high'), a `warnings` array for any issues encountered, and a `supported` boolean indicating whether the image type was processable.","failureModes":["Image URL is unreachable or returns a non-200 response — OCR cannot proceed","Image format is not PNG or JPG — may return supported: false","Low-quality, blurry, or very small text may reduce confidence or yield incomplete extraction","Large or complex images may take longer or produce partial results","Network timeouts if the image host is slow to respond"],"whenToPreferThis":"Choose this endpoint when you need to extract text from an image available via a public URL (PNG or JPG) and want a pay-per-call, no-subscription OCR service paid with USDC via x402. It is well-suited for receipts, screenshots, scanned documents, and printed forms where you need structured text output with a confidence rating and no API key setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:41:44.434Z","isFirstParty":false}