Mistral OCR 4
Model Overview
API Schema
post
Body
modelstring · enumRequiredPossible values:
documentone ofRequired
Document to run OCR
or
pagesany ofOptionalExample:
Specific pages you wants to process
"3" or "0-2" or [0, 3, 4]stringOptional
integer[]Optional
any · nullableOptional
include_image_base64boolean · nullableOptional
Include base64 images in response
image_limitinteger · nullableOptional
Max images to extract
image_min_sizeinteger · nullableOptional
Minimum height and width of image to extract
document_annotation_promptstring · nullableOptional
Optional high-level prompt to guide and instruct how the document is annotated.
Responses
200
Successful response.
application/json
modelstringRequired
The model used to generate the OCR.
document_annotationstring · nullableOptional
Structured annotation of the whole document as a JSON string, returned when document_annotation_format is provided.
post/v1/ocr
200
Successful response.
Code Example
Last updated
Was this helpful?