Parse File
Parse a file into a structured Markdown and/or JSON. Files must be less than 300MB and 2000 pages. We use LibreOffice to convert DOC(X) and PPT(X) files to PDF, which may affect page count.
See our blog post and code examples. Email parse-feedback@contextual.ai with any feedback or questions.
Authorizations
Body
The settings to use for parsing. basic is for simple, text-only documents. standard is for complex documents with images, complex hierarchy, and/or no natively encoded textual data (e.g. for scanned documents).
basic, standard "standard"
Adds a table of contents to the output with the structure of the entire parsed document. This feature is in beta. Controls parsing heading levels (e.g. H1, H2, H3) at higher quality. Not permitted in basic parsing_mode, or if page_range is not continuous and/or does not start from page zero.
true