v2
latestOpenAPI 3.1.02026-07-2670186350.6 KBocr
Process Ocr
Process a document using OCR (Optical Character Recognition).
This endpoint extracts text and structure from documents (PDFs, images) and returns the content in markdown format. It supports multiple document types and can extract images embedded within documents.
The extracted markdown preserves document structure including headings, tables, lists, and other formatting.
post/ocr
Request body
Example request
{
"model": "mistral/mistral-ocr-latest",
"document": {
"type": "document_url"
},
"docling_extra": {
"output_format": "markdown",
"ocr_engine": "easyocr",
"lang": [
"sv",
"en"
],
"table_mode": "fast",
"images_scale": 1
}
}Response
Successful Response