{"note":"This is a FREE static example of the JSON that the paid endpoints return — no payment required and no OCR is performed. Send POST https://structdoc-api.hp-vladic.workers.dev/<endpoint> with {\"url\":\"https://...\"} or {\"base64\":\"...\"} to process your own document. Failed analyses are not charged.","input":{"url":"Document URL (PDF/JPEG/PNG/TIFF/BMP/HEIF)","base64":"Base64 document bytes (≤~6MB) — use url for larger files","pages":"Optional page range, e.g. \"1-5\"","features":"Optional: languages,barcodes,keyValuePairs","queryFields":"Optional custom fields (invoice only), comma-separated ≤8"},"endpoints":{"POST /read":{"price":"$0.05","pageLimit":"≤25 pages","sample":"https://structdoc-api.hp-vladic.workers.dev/sample?type=read"},"POST /layout":{"price":"$0.25","pageLimit":"≤20 pages","sample":"https://structdoc-api.hp-vladic.workers.dev/sample?type=layout"},"POST /invoice":{"price":"$0.08","pageLimit":"≤4 pages","sample":"https://structdoc-api.hp-vladic.workers.dev/sample?type=invoice"},"POST /receipt":{"price":"$0.04","pageLimit":"≤2 pages","sample":"https://structdoc-api.hp-vladic.workers.dev/sample?type=receipt"},"POST /read-large":{"price":"$0.20","pageLimit":"≤100 pages","sample":"https://structdoc-api.hp-vladic.workers.dev/sample?type=read-large"},"POST /layout-large":{"price":"$1.10","pageLimit":"≤100 pages","sample":"https://structdoc-api.hp-vladic.workers.dev/sample?type=layout-large"}},"examples":{"read":{"model":"prebuilt-read","pages":2,"content":"請求書\n\n株式会社サンプル商事 御中\n\n件名: 2026年7月分 業務委託料\n請求日: 2026-07-31\nお支払期限: 2026-08-31\n\n小計 200,000\n消費税(10%) 20,000\n合計 220,000\n\n登録番号 T1180301018771","languages":[{"locale":"ja","confidence":0.99},{"locale":"en","confidence":0.62}]},"layout":{"model":"prebuilt-layout","pages":1,"format":"markdown","content":"# 請求書\n\n株式会社サンプル商事 御中\n\n| 品目 | 数量 | 単価 | 金額 |\n| --- | --- | --- | --- |\n| 業務委託料 (7月分) | 1 | 200,000 | 200,000 |\n\n小計 200,000 / 消費税(10%) 20,000 / **合計 220,000**","tableCount":1,"tables":[{"rows":2,"columns":4,"cells":[{"r":0,"c":0,"text":"品目"},{"r":0,"c":1,"text":"数量"},{"r":0,"c":2,"text":"単価"},{"r":0,"c":3,"text":"金額"},{"r":1,"c":0,"text":"業務委託料 (7月分)"},{"r":1,"c":1,"text":"1"},{"r":1,"c":2,"text":"200,000"},{"r":1,"c":3,"text":"200,000"}]}],"keyValuePairs":[{"key":"請求日","value":"2026-07-31","confidence":0.94},{"key":"登録番号","value":"T1180301018771","confidence":0.91}]},"invoice":{"model":"prebuilt-invoice","pages":1,"invoice":{"vendorName":"トヨタ自動車株式会社","vendorAddress":"愛知県豊田市トヨタ町1番地","vendorTaxId":"T1180301018771","customerName":"株式会社サンプル商事","customerTaxId":null,"invoiceId":"INV-2026-0731","invoiceDate":"2026-07-31","dueDate":"2026-08-31","purchaseOrder":null,"subTotal":200000,"totalTax":20000,"invoiceTotal":220000,"currency":"JPY","items":[{"Description":"業務委託料 (7月分)","Quantity":1,"UnitPrice":200000,"Amount":200000,"ProductCode":null}],"confidence":0.95}},"receipt":{"model":"prebuilt-receipt","pages":1,"receipt":{"merchantName":"セブン-イレブン 豊田市駅前店","merchantPhone":"0565-31-1234","merchantAddress":"愛知県豊田市西町1-200","transactionDate":"2026-07-15","transactionTime":"12:34","subtotal":420,"tax":36,"tip":null,"total":456,"currency":"JPY","items":[{"Description":"おにぎり ツナマヨ","Quantity":1,"Price":140,"TotalPrice":140},{"Description":"お茶 600ml","Quantity":1,"Price":130,"TotalPrice":130},{"Description":"ボールペン 黒","Quantity":1,"Price":150,"TotalPrice":150}],"confidence":0.97}}}}