{"uid":"cap_cEyVxTUD9zbiUUzWxhvIs","slug":"agentrxi-ocr-e9d715d9","name":"AgentRXI OCR","description":"Read the text in a scanned image or PDF with Tesseract (English, French, Spanish, German). PDFs with a text layer are read directly; scanned pages are OCR'd at 300 dpi. $0.008 for one page or image, +$0.002 per extra page (max_pages up to 30; default 5 for .pdf URLs). Also callable as GET with the same fields as query parameters.","url":"https://agentrxi.com/v1/ocr?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"url":{"type":"string","description":"https URL of the file (max 20 MB)"},"lang":{"type":"string","description":"eng (default), fra, spa, deu; combine with +"},"filename":{"type":"string","description":"Name with extension, helps detect the type"},"force_ocr":{"type":"boolean","description":"OCR even when the PDF has a text layer"},"max_pages":{"type":"integer","description":"PDF pages to read, 1-30"},"file_base64":{"type":"string","description":"Or the file as base64 / data URI"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_46QBXfmf2Y84AOhu-lenH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts text from scanned images or PDFs using Tesseract OCR, supporting English, French, Spanish, and German at 300 dpi","exampleAgentPrompt":"Can you read the text from this scanned PDF for me? Here's the URL: https://example.com/contract.pdf — please OCR up to 10 pages in English.","exampleUseCases":[{"title":"Digitize scanned legal contract","prompt":"I have a scanned PDF of a legal contract at https://example.com/lease-agreement.pdf — can you extract all the text from up to 15 pages so I can search through it?"},{"title":"Extract text from French receipt image","prompt":"Please read the text out of this scanned French receipt image at https://example.com/receipt.jpg — use French (fra) as the language."},{"title":"OCR multi-page German invoice PDF","prompt":"I need the text from a German-language scanned invoice PDF at https://example.com/rechnung.pdf, please OCR up to 20 pages using deu as the language and force OCR even if there's a text layer."}],"resultDescription":"Returns the extracted text content from the image or PDF, with text recognized at 300 dpi using Tesseract in the specified language(s). For PDFs with a native text layer, text is read directly; for scanned pages, OCR is applied. Results are structured per page or as a combined text block.","failureModes":["File exceeds 20 MB limit — request rejected","Unsupported file type or missing file extension — detection may fail","Language not supported beyond eng/fra/spa/deu — poor recognition quality","max_pages exceeds 30 — capped or error","URL not publicly accessible or returns non-200 — fetch failure","Base64 payload malformed or too large — parse error","Payment not provided or insufficient — 402 response"],"whenToPreferThis":"Choose this endpoint when you need to extract text from scanned images or PDFs in English, French, Spanish, or German, especially when you need per-page control (up to 30 pages), can supply a public URL or base64-encoded file, and want a cost-effective pay-per-page model ($0.008 base + $0.002/extra page). Prefer this over general-purpose vision LLMs when you need structured OCR output rather than semantic understanding, or when processing multi-page scanned documents systematically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:39:28.381Z","isFirstParty":false,"canonicalSlug":"agentrxi-ocr-e9d715d9"}