{"uid":"cap_-u0b7jErIsW5lvhfQJpVq","slug":"structdoc-document-structuring-api-large-document-read-7d0bb1cc","name":"StructDoc Document Structuring API — Large Document Read","description":"Turn any document into structured data for AI agents — OCR, layout-to-Markdown, tables, key-value, invoice/receipt fields — from PDF/images in 100+ languages. Pay per call via x402 (USDC). No API keys.","url":"https://structdoc-api.hp-vladic.workers.dev/read-large","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"Document URL (PDF/image)"},"pages":{"type":"string","description":"Page range e.g. \"1-5\""},"base64":{"type":"string","description":"Base64 document bytes (≤~6MB)"},"features":{"type":"string","description":"languages,barcodes,keyValuePairs"},"queryFields":{"type":"string","description":"custom fields, comma-separated ≤8"}}},"responseSchema":{"type":"json","example":{"model":"prebuilt-layout","pages":1,"format":"markdown","content":"# ..."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.2","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.2/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HPaSvYKfESF3PQJnbCVF2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.2","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts large PDFs or images into structured Markdown, tables, key-value pairs, and invoice/receipt fields using OCR and layout analysis across 100+ languages","exampleAgentPrompt":"I have a scanned PDF invoice — can you extract all the fields from it like vendor name, line items, totals, and dates, and give me the result as structured markdown? Pay the $0.20 per-call fee automatically.","exampleUseCases":null,"resultDescription":"A JSON object containing the detected model type (e.g. 'prebuilt-layout'), page count, output format ('markdown'), and the full structured content of the document — including headings, tables, key-value pairs, and invoice/receipt fields — rendered as Markdown text.","failureModes":["Unsupported file type returns an error — only PDF and common image formats accepted","Document too large or too many pages may exceed processing limits","Non-Latin scripts in unsupported languages may degrade OCR accuracy","Payment failure via x402/USDC will block the request","Heavily degraded or low-resolution scans may produce incomplete or garbled output"],"whenToPreferThis":"Choose this endpoint when you need to process large or multi-page documents (PDFs or images) into structured Markdown or extract specific fields like invoice/receipt data, and you want multilingual OCR with layout awareness. Prefer this over simpler OCR tools when table structure, key-value extraction, or document layout fidelity matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:40:56.298Z","isFirstParty":false}