{"uid":"cap_fEmhW_CgfR0sI5DuCdf-z","slug":"pdf-extract-api-ocr-c9dca671","name":"PDF Extract API OCR","description":"Extract text from an image (photo, screenshot, or scanned document) via OCR.","url":"https://ocr-api.pdfextractapi.workers.dev/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":{"required":["file"],"properties":{"file":{"type":"string","format":"binary"}}},"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":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0muP52_jMYi-Oqc503fgk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts text from images, photos, screenshots, or scanned documents using optical character recognition (OCR).","exampleAgentPrompt":"Can you extract all the text from this scanned document image I'm uploading? I need the raw text content from the photo.","exampleUseCases":[{"title":"Digitize scanned receipt for expenses","prompt":"I have a photo of a paper receipt from my business trip — can you read all the text off it so I can log the expense details?"},{"title":"Extract text from screenshot for editing","prompt":"I took a screenshot of an article I can't copy-paste from. Can you pull out all the text in that image so I can work with it?"},{"title":"Convert handwritten form to digital text","prompt":"I've got a scanned image of a handwritten intake form. Can you run OCR on it and give me the text so I can enter it into our system?"}],"resultDescription":"Returns the extracted text content recognized from the submitted image file, converted from visual/binary input into machine-readable plain text.","failureModes":["Image file not provided or malformed binary input returns an error","Unreadable or very low-resolution images may produce garbled or incomplete text output","Non-image file formats uploaded as the file field may cause processing failures","Network or Cloudflare Worker timeout for very large image files","Payment not fulfilled (x402) results in a 402 Payment Required response before processing"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-call OCR service that accepts raw image file uploads (photos, screenshots, scans) and returns extracted text, without needing to set up a full OCR SDK or manage API keys beyond x402 micropayment. Ideal for lightweight agent workflows processing occasional documents at $0.02 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:36:58.637Z","isFirstParty":false}