Extract Structured Data
Extract structured data from a document using a JSON schema. Provide a file for end-to-end processing, or a checkpoint_id from a previous /convert call to skip re-parsing.
Body
Extraction mode: 'turbo' (fastest; image-only, no OCR/citations/verification, returns JSON only), 'fast' (low latency and cost), 'balanced' (high accuracy with per-field verification, reasoning, and citations; slower), or 'accurate' (highest accuracy — same as balanced but runs the strongest extraction model; slowest and most expensive). Defaults to 'balanced'.
Granularity of the citations attached to each extracted field. 'block' (default) returns block ids ('/page/0/Text/5'). 'phrase' (open beta; the format may change) returns an object per citation: block, page, the matching text, its offset and length within that block's text, the match score (1.0 when the text matches up to case, spacing, number or date format, lower for a close match), and a bbox in page pixels (the same space as block bboxes) when the phrase has a box of its own. A value that cannot be located in its block keeps an object with only block and page. Phrase citations cost nothing extra. Not available in turbo mode, which produces no citations.
Response
Successful Response