Document AI
Layout Aware Parsing
API for parsing documents
The Document Parsing API parses a document, and returns a Markdown or JSON representation of the document.
You can use the markdown or JSON output to further perform any downstream processing.
- Chunking
- Summarization
- Image Indexing
Parsing a Document
1
Upload the Document
Upload the document to the API.
2
Parse the Document
3
Get the Result
Get the result from the API.
API Reference
Output Modes
The Document Parsing API supports two output modes:
markdown
json
Set the output mode using the output
parameter of the /parse
or /parse_async
endpoint.
Switching between Models
You can switch between models using the model
parameter of the /parse
or /parse_async
endpoint.
The following models are supported:
small
: Faster and smaller models are used for low latency parsing.medium
: Slightly slower, uses combinations of vision and VLMs, but more accurate.large
: Slowest, but most accurate, uses multiple VLMs and OCR models.
Listing Documents
You can list all the documents in a project using the following API call:
Was this page helpful?