Convert Document
Convert a PDF, image, or document to markdown, HTML, JSON, or chunks. Use save_checkpoint=true to save parsed state for later /extract or /segment calls.
Body
Which output mode to use. Valid values: 'lite' (lowest cost: fast CPU OCR that reads born-digital pages from their text layer; text, tables, lists and headings, no images, image captions or LLM passes), 'fast' (lowest latency), 'balanced' (balanced accuracy and latency), 'accurate' (highest accuracy).
Merge content that is split across pages back into single logical blocks: tables (long tables continued vertically, and wide tables printed as per-page column panels), paragraphs broken mid-sentence, and lists continued on the next page (continuation items keep the indent level of the list they belong to). Merged blocks carry a data-merged-pages attribute listing their source pages. Billed as a compute surcharge on the measured merge cost, like agent extraction.
Disable pretty-printing of the HTML output. By default the HTML is indented with each tag on its own line, which browsers render as visible extra spaces around inline tags (e.g. '( 23 )' instead of '(23)'). Set to True to receive compact HTML that renders exactly as parsed. Only applies when output_format includes 'html'.
Transcribe text exactly as printed, character for character. Typos, misspellings, abbreviations, capitalization, punctuation and number or date formats in the document are kept instead of being corrected or normalized. Recommended when the output must match the source exactly (regulated, medical or legal documents).
Comma-separated list of extra features to enable. Currently supports: 'track_changes', 'chart_understanding', 'table_cell_bboxes' (per-cell bounding boxes for each table, instead of one box for the whole table; includes word bounding boxes), 'list_item_bboxes' (per-item bounding boxes for each list or list group, instead of one box for the whole list; includes word bounding boxes), 'extract_links', 'extract_bookmarks' (PDF outline/bookmark tree in metadata.pdf_bookmarks; safety-limit truncation is reported by metadata.pdf_bookmarks_truncated), 'infographic', 'new_block_types'.
Response
Successful Response