https://api.ade.landing.ai/v2/parse. This page describes each request field.
Sample Request
Send a document to the parse endpoint with a POST request. ReplaceYOUR_API_KEY with your API key and document.pdf with the path to your file.
Parameters
Model Version
Themodel form field selects the parsing model family and snapshot:
dpt-3-pro: the highest-quality model. Default.dpt-3-fast: the lower-latency model for digitally created text documents. In preview.
model use the latest snapshot, and the response reports the resolved version in metadata.model_version. For the full comparison, all accepted values, and guidance on pinning snapshots, see Parsing Models.
For example, this request selects the latest snapshot:
cURL
Request Options
The optionaloptions form field is a JSON object that customizes the response. All fields are optional; omitted fields take the defaults shown.
Example Options
The following examples all parse the same sample calibration report, so you can see exactly what each option changes. For the complete, unmodified output, download the full default response (parsed with no options). Each example shows the full request with the relevantoptions line highlighted, followed by a trimmed response.
Process Specific Pages
Passpages to parse only the pages you need. Page numbers are 1-indexed: 1 is the document’s first page. metadata.page_count still reports the full document length, while structure.children returns only the requested pages.
page_count but returns only pages 1 and 3 in structure.children:
Render Tables as Markdown
Tables are returned as HTML by default. HTML preserves merged cells and nested layouts that pipe syntax cannot represent, such as theMeasured Value header spanning the As Found and As Left columns in this calibration table:
blocks.table.format to markdown to receive tables as pipe-syntax Markdown instead. Merged cells expand into empty adjacent cells:
markdown field returns the same table using pipe syntax, with the merged header flattened into empty cells:
Suppress a Block Type
Set a block type’smarkdown option to false to drop its content from the markdown. Suppressing a block type also speeds up parsing, because suppressed blocks skip model captioning. Here, figures are suppressed, so each figure collapses to a > [!FIGURE] header line. The figure still appears in structure, with a zero-length range and an empty atomic_grounding array.
markdown field shows each figure as a header line instead of its content:
Omit Atomic Grounding
Setatomic_grounding to false to drop the fine-grained atomic_grounding array from every block, leaving only the block-level grounding. Use this to reduce response size when you don’t need the fine-grained coordinates.
atomic_grounding field is omitted entirely:
Include Markdown on Each Node
Setinline_markdown to true to add each node’s slice of the document Markdown as a markdown field on the node itself, so you can read a block’s text without slicing the top-level string by range.
markdown slice. Entries in atomic_grounding do not; to get an entry’s text, slice by its range or read the parent block’s markdown: