Skip to main content
POST
Parse an uploaded document

Authorizations

X-API-KEY
string
header
required

Body

multipart/form-data
file
file
required

PDF, PPTX, DOCX, or image (PNG, JPEG, WebP, TIFF, HEIC/HEIF, BMP) document.

extract_text
boolean
default:true

Include text chunks in the response. Set false to skip text spans; table chunks (and figures, when extract_images is true) are still returned.

extract_images
boolean
default:true

Include figure (image) chunks in the response. Set false to skip figure extraction; text and table chunks are still returned.

ocr
enum<string>
default:auto

Deprecated. Accepted for backward compatibility but currently has no effect.

Available options:
auto,
never,
force
table_output_format
enum<string>
default:markdown

How table chunks are structured. 'markdown' (default) keeps the existing markdown-derived cells; 'html' renders those same cells as an HTML table in page_content, with row 0 emitted as the header row exactly as it is (an empty header stays empty, never promoted from the first body row); 'cell_grid' returns true per-cell bounding boxes on table chunks (cells become the primary representation; page_content remains a markdown render).

Available options:
markdown,
cell_grid,
html
chunking
enum<string>
default:none

'none' (default): response unchanged. 'semantic': additionally return segments — elements grouped toward chunk_size characters at semantic/structural boundaries (headings, gaps, page breaks), each segment carrying embed-ready markdown content plus member records with page numbers and bounding boxes.

Available options:
none,
semantic
chunk_size
integer
default:1000

Target segment size in characters of segment content. Segments land in a +/-25% band around this target (default 750-1250). Only meaningful when chunking is enabled; validated (200-8000) only in that case and ignored otherwise.

include_content
boolean
default:false

false (default): response unchanged. true: additionally return content — the entire parsed document as a single text string, concatenated in reading order (not reformatted as structured markdown).

Response

Successful Response