# StructDoc Document Structuring API — Large Document Read

> StructDoc Document Structuring API — Large Document Read is a paid API for AI agents from structdoc-api.hp-vladic.workers.dev, paid per call via x402, $0.2/call, status unknown (last checked 2026-09-14).

Converts large PDFs or images into structured Markdown, tables, key-value pairs, and invoice/receipt fields using OCR and layout analysis across 100+ languages

## Facts

- Endpoint: POST https://structdoc-api.hp-vladic.workers.dev/read-large
- Price: $0.2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/structdoc-document-structuring-api-large-document-read-7d0bb1cc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-u0b7jErIsW5lvhfQJpVq

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability structdoc-document-structuring-api-large-document-read-7d0bb1cc -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "prebuilt-layout",
  "pages": 1,
  "format": "markdown",
  "content": "# ..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/structdoc-document-structuring-api-large-document-read-7d0bb1cc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from structdoc-api.hp-vladic.workers.dev](https://www.zero.xyz/host/structdoc-api.hp-vladic.workers.dev/llms.txt)
