image_url or a document_url PDF; no
text-only input. Default method: markdown. parse_layout* emit layout
regions; ocr / markdown emit strings.
Output by method
The payload kind is the same for an image and for each page of a PDF. Text mode
emits the payload alone for one image, and one
<document> / <page> block per
PDF, each page declaring its kind in format. In JSON mode an image content is
the tagged container above, and a document page content is always
document.page.blocks. Coordinates are normalized 0-1 at precision decimals
(default 4). See Methods & Response Format.
markdown: reading-order Markdown page output. (default)parse_layout: structured layout parse with text for tables, figures, and reading order.parse_layout_only: layout regions and bounding boxes without transcribed text.ocr: plain OCR text extraction.
Request
Response
- Text mode
- JSON mode
- JSON mode (parse_layout)
One With
<document> block per PDF, one <page> block per page. A failed page is
self-closing, with status="error" and no body:method="parse_layout" each page body is the block container instead,
and the page carries format="json".method="parse_layout"; see the output-by-method table above.