Parsing Configuration
The Parse API accepts a config object that controls how documents are parsed and processed. Configuration options are organized into several categories:
- Engine: The base processor that powers parsing (accuracy vs. speed and cost)
- Parsed Output Caching: Reuse completed output for identical documents and settings
- Chunking Strategy: How the document is divided into chunks
- Block Options: Fine-grained control over parsing specific layout types
- Advanced Options: OCR enhancements and page filtering
For more information on default values and the full schema, see the Create Parse Run API reference.
Prefer a UI? Extend Studio lets you configure the parser visually and export the config JSON.
Engine
engine
Type: "parse_performance" | "parse_light" | "parse_auto" (default: "parse_performance")
Selects the base processor that powers parsing.
engineVersion
Type: string (default: "latest")
Pins the run to a specific version of the selected engine. If omitted, the latest stable version is used. Some features require a minimum version — for example, the new layout model’s block types require parse_performance ≥ 2.0.0. See the Parse Performance, Parse Light, and Parse Auto version pages for the changelogs.
Chunking strategy
chunkingStrategy.type
Type: "page" | "section" | "document"
Determines the granularity of document chunking.
"page" — Creates a separate chunk for each page of the document.
"section" — Chunks the document into logical sections based on markdown structure (headings, subheadings). The parser ensures logical groups of content are preserved by never breaking markdown elements across chunks. This is ideal for RAG systems where each chunk should be a complete semantic unit.
"document" — Treats the entire document as a single chunk. Use this for small documents or when you have custom downstream chunking requirements.
chunkingStrategy.options.minCharacters
Type: number
The minimum number of characters per chunk. Small sections may be combined to meet this minimum.
chunkingStrategy.options.maxCharacters
Type: number
The maximum number of characters per chunk. Long sections will be split at natural boundaries when possible.
Block options
Fine-grained control over how specific content types are detected and formatted.
Figures
blockOptions.figures.enabled
Type: boolean
Enables or disables figure detection and parsing. When enabled, the visual languages models will do additional processing, classification and summarization of images, charts, diagrams, and more to analyze and extract content from each figure.
Note: This adds processing latency, especially for documents with many figures. Disable for fastest processing.
blockOptions.figures.figureImageClippingEnabled
Type: boolean
When enabled, extracts figure images from the document and uploads them to blob storage, providing presigned URLs in the output. Each figure is cropped from the page and saved as a PNG.
blockOptions.figures.advancedChartExtractionEnabled
Type: boolean
When enabled, runs a specialized vision model on any figure classified as a chart and converts it into a structured data table. The figure block’s content is replaced with the extracted table (formatted according to blockOptions.tables.targetFormat), making chart values available to downstream LLMs and extraction pipelines.
Requires blockOptions.figures.enabled: true (chart classification happens during figure parsing).
Note: Requires engine: "parse_performance" with engineVersion >= "2.0.0". Adds processing latency proportional to the number of charts in the document.
blockOptions.figures.customInstructions
Type: string (max 2,000 characters)
Custom instructions injected into the vision model prompt that analyzes and summarizes each figure. Use this to steer figure descriptions toward what matters for your use case — for example, domain-specific terminology, details to always capture from diagrams, or how to describe particular image types.
Requires blockOptions.figures.enabled: true (the instructions are applied during figure parsing).
Note: Requires parse_performance with engineVersion >= "2.0.0" or parse_light with engineVersion >= "1.0.0".
Tables
blockOptions.tables.targetFormat
Type: "markdown" | "html" — defaults to "html".
Controls the output format for tables.
- markdown: Human-readable pipe syntax, works well with LLMs
- html: Preserves complex table structure (merged cells, rowspan, colspan)
blockOptions.tables.tableHeaderContinuationEnabled
Type: boolean
When enabled, automatically propagates table headers across page breaks. Useful for long tables spanning multiple pages where headers are only present on the first page.
blockOptions.tables.cellBlocksEnabled
Type: boolean
When enabled, each table block in the response includes a children array containing per-cell table_cell / table_head blocks, with rowIndex, columnIndex, content, and bounding boxes. Useful for building cell-level overlays, targeted highlighting, or custom downstream parsing of table contents.
Note: Only supported on engine: "parse_performance" with engineVersion: "1.0.1". Cell blocks are not currently supported on parse_performance 2.0.0 — the table block is still detected and returned, but children comes back empty even with this flag enabled. If you need cell-level bounding boxes today, pin to engineVersion: "1.0.1"; otherwise consider advancedOptions.returnOcr.words below for word-level bounding boxes, which work on both engine versions.
Text
blockOptions.text.signatureDetectionEnabled
Type: boolean
Enables advanced signature detection. When enabled, identifies handwritten signatures, initials, and signature blocks in the document.
blockOptions.text.agentic.enabled
Type: boolean
Enables OCR corrections using vision language models to review and correct low OCR confidence and difficult to parse handwriting. The system automatically identifies text regions with low OCR confidence and applies VLM-based corrections.
When to enable:
- Handwritten documents or forms
- Poor quality scans
- Historical documents or faded text
- Mixed print and handwritten content
Note: Increases latency, especially when every page is scanned.
Formulas
blockOptions.formulas.enabled
Type: boolean
Enables formula detection and parsing. When enabled, mathematical formulas and equations are detected as formula blocks, with their LaTeX representations included in the block details. When disabled, formulas will be detected as text blocks and may not be accurately parsed.
Note: Formula parsing is available on parse_performance v2.0.0 and parse_light v1.0.0.
Forms (key-value)
The new layout model (parse_performance v2.0.0+, parse_light v1.0.0+, and parse_auto) detects form regions as dedicated key_value blocks. Each form region is then enriched by a VLM into properly ordered markdown of label/value pairs (including checkboxes and signatures).
blockOptions.keyValue.blankFieldFormattingEnabled
Type: boolean
When enabled, empty form fields are explicitly annotated with a <blank /> marker in the formatted form content, making it easy to distinguish “field present but unfilled” from “field not present” in downstream extraction or RAG pipelines.
For example, an unchecked field in the source document would render as Date of Birth: <blank /> instead of Date of Birth:.
Note: Requires engine: "parse_performance" with engineVersion >= "2.0.0".
blockOptions.keyValue.structuredOutputEnabled
Type: boolean (default: false)
When enabled, every key_value block also returns details.form: the form region as a tree of typed nodes (key, text_field, empty_field, signature_field, selection_group, selection, table), each with its own boundingBox. Answers are children of their label, and checkboxes carry selected: true | false. The block’s markdown content is unchanged and still follows blankFieldFormattingEnabled.
Use it when you need label/value pairs, checkbox states, or per-field coordinates without parsing markdown. See Form Structured Output for the full node reference and examples.
Note: Requires parse_performance >= 2.0.0, parse_light >= 1.0.0, or parse_auto.
Response structure (one key_value block, trimmed):
Barcodes
Barcodes and QR codes are detected as dedicated barcode blocks by the new layout model in parse_performance v2.0.0.
blockOptions.barcodes.readingEnabled
Type: boolean
When enabled, decodes detected barcodes and QR codes into their underlying values (e.g. URLs, invoice codes, tracking numbers). The decoded value and barcode format (e.g. "QRCode", "Code128", "DataMatrix", "EAN13") are returned in the block’s details.decodedValue and details.format fields, and the content field contains the decoded value.
blockOptions.barcodes.imageClippingEnabled
Type: boolean
When enabled, crops each barcode region from the page, uploads it to blob storage, and returns a presigned URL in details.imageUrl. Useful for displaying or re-processing the original barcode image.
Note: Both options require engine: "parse_performance" with engineVersion >= "2.0.0".
Advanced options
advancedOptions.pageRotationEnabled
Type: boolean
Enables automatic page rotation detection and correction. The system detects if pages are rotated and automatically rotates them to the correct orientation before parsing.
advancedOptions.pageRanges
Type: Array<{ start: number, end: number }>
Specifies which pages of the document to process. Page numbers are 1-based and ranges are inclusive. Ranges can overlap and be in any order—the system automatically merges and sorts them.
- 1-based, inclusive page numbers
- Ranges can overlap or arrive out of order; the platform merges and sorts them automatically
- Omit the field or pass
[]to process the full document (subject to global limits) - You are only billed for pages actually processed
advancedOptions.textExtractionMethod
Type: "auto" | "ocr_only" (default: "auto")
Controls how text is read from PDFs, including documents converted to PDF before parsing.
Available on parse_auto and parse_light ≥ 1.0.0, which both default to auto. Other engines, including parse_performance, always use OCR.
Most digital PDFs carry a text layer that’s exact and free to read, so auto is both faster and more accurate than OCR on those pages.
Choose ocr_only when you want every page read from the page image regardless: the document’s text layer is known to be unreliable, or you need identical treatment across a mixed set of files.
Excel
advancedOptions.excelParsingMode
Type: "basic" | "advanced"
Controls how Excel files are parsed.
- basic: Fast, deterministic parsing.
- advanced: Enable layout block detection for complex spreadsheets.
For .xls files, basic mode is always used.
advancedOptions.excelSkipHiddenContent
Type: boolean
When enabled, hidden rows, columns, and sheets are excluded from parsed Excel output.
advancedOptions.excelUseRawCellValues
Type: boolean
When enabled, returns raw calculated cell values instead of locale-formatted values. For example, a date stored as 45672 would be returned as 45672 instead of 01/15/2025. Useful when downstream processing needs the underlying numeric or unformatted data.
advancedOptions.excelSkipCalculation
Type: boolean (default: true)
When enabled, skips formula recalculation when opening the workbook. This significantly improves parsing speed for formula-heavy spreadsheets. Disable if you need formulas to be recalculated before parsing (e.g., when cell values depend on volatile functions like NOW() or TODAY()).
advancedOptions.excelIncludeCellMetadata
Type: boolean
When enabled, table cell blocks include their source spreadsheet coordinate in details.cellReference (for example, "B2", or "A1:C1" for a merged cell). Formula cells also include details.formula with a leading =. Heading or text blocks derived from spreadsheet cells can include a source range in details.cellReference.
For HTML table output, the same provenance is also preserved as data-cell and data-formula attributes. Markdown output does not include HTML attributes, but the structured block details are still available.
Note: Requires advancedOptions.excelParsingMode: "advanced".
advancedOptions.excelIncludeCellFormatting
Type: boolean
When enabled, table cell blocks include structured formatting (bold, italic, fontColor, backgroundColor) in details.formatting when the source cell has formatting. For HTML table output, the cell’s inline style is also preserved, including colors, bold or italic text, and borders.
Useful when spreadsheet formatting carries meaning for downstream extraction, review, or display.
Note: Requires advancedOptions.excelParsingMode: "advanced". Can increase response size for heavily formatted workbooks.
advancedOptions.embedOcrInPdf
Type: boolean (default: false)
Embeds recognized OCR words as an invisible text layer in the processed PDF so scanned pages can be searched, selected, and copied without changing their appearance. Pages that already contain text are skipped entirely, including pages that mix text and scanned regions. This option preserves existing text layers rather than replacing them.
Applies to PDFs, including supported inputs converted to PDF with advancedOptions.alwaysConvertToPdf. If advancedOptions.pageRanges is set, embedding is limited to processed pages. Pages without usable OCR words receive no text layer.
After the parse run reaches PROCESSED, use files.retrieve with the run’s file.id and download the PDF from presignedUrl. The parse run’s outputUrl points to parsed JSON. See Embed OCR in PDF for SDK examples and the Studio walkthrough.
Embedding does not enable OCR arrays in the JSON response and does not require advancedOptions.returnOcr.words or advancedOptions.returnOcr.lines.
advancedOptions.returnOcr
Options for returning raw OCR data in the response. words and lines are independent opt-ins and both default to false. Each response array is optional; ocr is omitted when neither has data.
advancedOptions.returnOcr.words
Type: boolean
When enabled, returns word-level bounding boxes in the response under output.ocr.words. Each word includes content, boundingBox, confidence (0-1), pageNumber, and blockId. Coordinates are in points (1/72 inch) from the top-left corner.
Useful for building document viewers with precise text selection, word-level search highlighting, or OCR quality assessment.
blockId is the id of the block the word belongs to — this is how you map words back to blocks. It’s useful because words are returned in raster/line order across the full page width, which doesn’t match block reading order for multi-column layouts, so blockId lets you group or reorder words to match block layout instead.
Note: This meaningfully impacts the response size. Consider using the signed URL return format (responseType=url) for large documents.
Response structure:
advancedOptions.returnOcr.lines
Type: boolean (default: false)
Returns line-level bounding boxes under output.ocr.lines. Each line includes content, boundingBox, and pageNumber, with optional confidence (0-1) and blockId. Enabling lines does not enable words; set both flags to true to return both.
advancedOptions.alwaysConvertToPdf
Type: boolean
When enabled, supported file types (images, Word documents, PowerPoint, Excel, HTML) are converted to PDF before parsing. This can improve parsing quality for some file types and ensures spatial output with bounding boxes.
Note: Cannot be combined with advancedOptions.htmlSourceAnchors below. A PDF rendering has no byte offsets into the original HTML file to anchor to.
advancedOptions.htmlSourceAnchors
Type: boolean
HTML only. When enabled, each block carries a source object with the byte range it came from in the uploaded file, in place of polygon and boundingBox, so parsed content can be traced back to the original markup. Table cells get their own anchors when blockOptions.tables.cellBlocksEnabled is also set. Files must be UTF-8 or Windows-1252 encoded; otherwise the run fails with UNSUPPORTED_FILE_ENCODING.
Note: Cannot be combined with advancedOptions.alwaysConvertToPdf.
Requires: API version 2026-02-09, and extend-ai 2.5.0+ (TypeScript), extend-ai 1.21.0+ (Python), extend-java-sdk 1.22.0+, or extend-go-sdk 0.9.0+ when using an SDK.
See HTML source anchors for the response shape.
advancedOptions.returnSourceNodes
Type: boolean
HTML only. When enabled, adds output.source.nodes: word-level source anchors, the text-format counterpart to returnOcr.words above. Each node carries a byte range into the uploaded file plus the id of the block it belongs to.
Note: Requires advancedOptions.htmlSourceAnchors to also be set to true; requesting one without the other returns an HTTP 400 validation error.
Requires: API version 2026-02-09 and the same minimum SDK versions as advancedOptions.htmlSourceAnchors above.
See HTML source anchors for the response shape.
advancedOptions.formattingDetection
Type: Array<{ type: "change_tracking" }>
Enables detection of tracked changes (insertions, deletions, substitutions) indicated by strikethroughs, colored text, or underlines in the source document. Detected changes are annotated inline in the content field of applicable blocks (text, heading, section_heading, header, footer).
Changes are represented using semantic HTML elements (<ins> for insertions and <del> for deletions) grouped inside a <change> wrapper. We use <ins>/<del> rather than <s> because they carry explicit change semantics, and the <change> wrapper makes it easy to identify substitutions (a <del> paired with an <ins>).
For example: The total is <change><del>$500.00</del><ins>$450.00</ins></change>.
Note: Requires engine: "parse_performance" with engineVersion >= "2.0.0". This feature is new. If you have feedback on the output format or edge cases, drop us a note in Slack or email support@extend.app.
Response type
You can specify the response type in the responseType query parameter for the Create Parse Run and Get Parse Run endpoints.
jsonreturns parsed outputs directly in the response body.urlreturns a presigned URL to the parsed content inoutputUrl.
Use url for large documents to reduce response payload size, especially when returnOcr.words is enabled.
Parsed output caching
useCache
Type: boolean (default behavior: false)
Set config.useCache to true on the initial parse and subsequent requests to allow reuse of completed output for the same document content and effective parsing settings. A hit returns a new run with top-level cacheHit: true and zero parsing credits. Omitting the option or setting it to false bypasses parsed output caching for that request.
Entries are isolated by organization, workspace, and environment, and are eligible for reuse for up to seven days or the applicable retention period, whichever is shorter. Zero data retention disables caching. A cache miss falls back to normal parsing and billing.
See Parsed Output Caching for SDK examples, matching rules, and the Use cache toggle in Studio. This option applies to direct and batch parse runs, not parsing inside other processors or workflows.

