{"service":"StructDoc — Document Structuring API","description":"Turn any document into structured data for AI agents. OCR, layout-to-Markdown, tables, key-value pairs, invoice/receipt fields — from PDF and images (100+ languages). Pay per call with USDC via x402 — no API keys.","payment":{"protocol":"x402","currency":"USDC","networks":[{"network":"eip155:8453","payTo":"0xF2A6416EBb0C594Ab2977695bED061729ddEb47b","chain":"Base"},{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","payTo":"6nZQJcTRWm6VQwa7Tg1JBUGjNznviS9fExUHb53TB3GG","chain":"Solana"}]},"endpoints":[{"path":"POST /layout","price":"$0.25","body":"{\"url\"|\"base64\", pages?, features?, queryFields?}","note":"Layout → Markdown (headings, tables, key-value). Best for feeding PDFs to LLMs / RAG. ≤20 pages."},{"path":"POST /read","price":"$0.05","body":"{\"url\"|\"base64\", pages?, features?}","note":"OCR full-text extraction (100+ languages). ≤25 pages."},{"path":"POST /invoice","price":"$0.08","body":"{\"url\"|\"base64\", queryFields?}","note":"Invoice fields: vendor, customer, line items, totals. ≤4 pages."},{"path":"POST /receipt","price":"$0.04","body":"{\"url\"|\"base64\"}","note":"Receipt fields: merchant, date, items, tax, total. ≤2 pages."},{"path":"POST /read-large","price":"$0.20","body":"{\"url\"|\"base64\"}","note":"OCR up to 100 pages."},{"path":"POST /layout-large","price":"$1.10","body":"{\"url\"|\"base64\"}","note":"Layout → Markdown up to 100 pages."},{"path":"GET /result/:model/:id","price":"free","note":"Fetch a completed long-running job result."},{"path":"GET /catalog","price":"free"}],"features":{"optional":{"languages":"per-line language detection (read/layout, free)","barcodes":"QR/barcode extraction (read/layout, free)","keyValuePairs":"key-value extraction (layout, free)","queryFields":"extract custom named fields, comma-separated up to 8 (invoice/layout)"}},"input":"PDF, JPEG, PNG, BMP, TIFF, HEIF. Send {\"url\": \"...\"} or {\"base64\": \"...\"} (base64 ≤ ~6MB; use url for larger).","engine":"Azure Document Intelligence v4.0","contact":"hp.vladic@gmail.com"}