Learning resourcesReviewed · Mistral AI

Mistral Document AI OCR processor (documentation)

This is Mistral's documentation page for its hosted OCR API. It is written for developers who want to turn PDFs, office files and images into Markdown, tables and layout data. The catch is that the page provides no OCR accuracy benchmarks, pricing, retention duration or training-use terms. It documents the mistral-ocr-latest model alias, table, header, footer and block extraction, confidence scores, three ways to submit a file, cloud storage of uploads with API-key access and optional deletion, and an upload limit of 50 MB and 1,000 pages.

Researched 15 Nov 2026

In short.

This is the Mistral documentation page for the Document AI OCR processor, a hosted API that developers use to extract text, tables, images and layout from PDFs, office documents and images. The main catch is that the page provides no OCR accuracy benchmarks, pricing, retention duration or training-use terms, so you must check those elsewhere. It does say that uploaded files are stored in Mistral's cloud, can only be accessed with an API key and can optionally be deleted. It also offers confidence scores and a vendor claim of strong performance across more than 40 languages. The page documents the mistral-ocr-latest alias, the OCR endpoint [https://api.mistral.ai/v1/ocr], three ways to submit a document (public URL, Base64 data URL, or an uploaded file with a signed URL), options for table format, header and footer extraction, block-level bounding boxes and confidence scores, a limit of 50 MB and 1,000 pages per uploaded file, and a list of supported formats. The printed responses illustrate output structure; they do not establish OCR accuracy or independently verified service behavior.

Researched and written by an AI model and checked by a second AI model. How it works

This report covers the single documentation page at [https://docs.mistral.ai/studio/document-processing/basic_ocr.md] in full, as captured on 2026-11-15. Pages it links to fall outside this scope and their contents are unknown here: the OCR API reference, supported languages, Batch Inference, Annotations, cookbooks and migration guides. The page itself contains no licence, pricing, privacy policy or terms-of-service text. The sample outputs, defaults, limits and version requirements are the documentation's own statements. The printed responses illustrate output structure; they do not establish OCR accuracy or independently verified service behavior.

The overview

What this resource is

This resource is a single documentation page titled OCR Processor, hosted at [https://docs.mistral.ai/studio/document-processing/basic_ocr.md]. It describes the Document AI OCR processor, a hosted service from Mistral that extracts text and structured content from PDF documents and images. The page says the mistral-ocr-latest alias points to Mistral's latest OCR model.

The page is both a how-to guide and a parameter and response reference. It is not the model, an SDK or a downloadable package. It explains how to call the service through the Mistral SDKs (Python and TypeScript) or plain curl against the OCR endpoint [https://api.mistral.ai/v1/ocr].

Overall assessment

As documentation it is practical and fairly complete for getting a first OCR call working. For each input method it shows a request that looks ready to run in three languages, the shape of the JSON response, and the options that change the output (tables, headers and footers, blocks, confidence scores). A developer can see what they would get back before writing any code.

It is weaker as a basis for deciding whether the service is good enough for your documents. The page provides no OCR accuracy benchmarks, pricing, retention duration or training-use terms, and it makes no comparison with other OCR tools. It does cover some related points. Uploaded files are stored in Mistral's cloud, can only be accessed with an API key and can optionally be deleted. Confidence scores can be requested at page, block or word level to help assess recognition quality. The vendor also claims strong performance across more than 40 languages. Several code samples contain small errors or inconsistencies (listed under limitations). Treat it as a good starting reference to be confirmed with your own test files.

Who it is for

The page is aimed at developers who want to add document text extraction to an application or pipeline using a hosted API. Typical uses are converting PDFs, slide decks, Word files or photographed documents into Markdown, pulling tables out as HTML or Markdown, or getting text blocks in reading order with bounding boxes for later layout-aware processing.

A beginner who can run a short Python or Node script and set an environment variable can follow the examples. The page only describes the hosted API, so it does not serve people who need fully offline, self-hosted or on-premises OCR. Whether the model can be self-hosted is not covered.

What the processor can do

Text extraction: the page says it preserves document structure and hierarchy. The main output for each page is Markdown.

Table handling through the table_format parameter. The page lists three values: null (tables returned inline as Markdown within the page text), markdown (tables returned separately as Markdown tables) and html (tables returned separately as HTML tables). When tables are returned separately, the page Markdown holds a table placeholder such as tbl-3.html. The matching entry in that page's tables array has the same id (tbl-3.html) and holds the table content. Extracted images work the same way: the Markdown holds an image placeholder such as img-0.jpeg, which maps to the entry with that id in the page's images array, together with its bounding box coordinates.

Header and footer extraction with extract_header and extract_footer. When these are used, header and footer content appears in separate header and footer fields. By default, headers and footers are treated as part of the main content.

Block extraction with include_blocks. Each page then carries a blocks array in reading order. Each block has a paragraph-level bounding box (top_left_x, top_left_y, bottom_right_x, bottom_right_y), a type label and the extracted content. The documented block types are text, title, list, table, image, equation, caption, code, references, aside_text, header, footer and signature. Table blocks carry a table_id and image blocks an image_id. A signature block holds the transcribed name when legible, otherwise an empty string.

Confidence scores through confidence_scores_granularity. The page value gives average_page_confidence_score and minimum_page_confidence_score for each page. The block value adds per-block scores when include_blocks is true: average and minimum content confidence plus a block type confidence, with content scores possibly null for image blocks. The word value adds a word_confidence_scores array with text, confidence and start_index for each word, on each page and each table entry.

Multilingual OCR across more than 40 languages, which is a vendor claim. The full list is on a separate supported-languages page [https://docs.mistral.ai/resources/languages#ocr] that is not covered here.

Inputs: image_url for images (PNG, JPEG/JPG, AVIF and others) and document_url for documents (PDF, PPTX, DOCX and others). The FAQ lists these document formats: PDF, Word (.docx, .doc), PowerPoint (.pptx, .ppt), Excel (.xlsx, .csv), text, EPUB, XML/DocBook, RTF, OpenDocument Text, BibTeX/BibLaTeX, FictionBook, Jupyter notebooks, JATS XML, LaTeX, OPML and Troff. It lists these image formats: JPEG, PNG, AVIF, TIFF, GIF, HEIC/HEIF, BMP and WebP.

Scale and structure: for high-volume work the page points to a separate Batch Inference service [https://docs.mistral.ai/studio/batch-processing], and for structured outputs it points to Annotations. The response has a document_annotation field, but this page does not explain how annotations work.

Using it

What you need

You need a Mistral API key. Every example reads it from the MISTRAL_API_KEY environment variable and sends it as a Bearer token. This page does not say how to get a key, or whether a free tier or paid plan is needed.

You need network access to the Mistral API [https://api.mistral.ai]. If you pass a URL, the page says it must be public and reachable by the API. For local files you can instead send Base64 data or upload the file.

For code you need the Mistral Python SDK, the TypeScript package @mistralai/mistralai, or just curl. The Python examples for URL and Base64 PDFs say the feature requires the V2 SDK (pip install "mistralai>=2", importing Mistral from mistralai.client) and is not available in the V1 SDK (mistralai 1.x). Supported Python and Node versions are not stated.

Model version matters. Table formatting and header and footer extraction need OCR 2512 or newer, and block extraction needs OCR 4 or newer. The page says older models accept the include_blocks parameter but return an empty array.

How it works

Your code sends a JSON POST request to the OCR endpoint [https://api.mistral.ai/v1/ocr]. The request contains the model name (for example mistral-ocr-latest), a document object and optional parameters. For PDFs and other documents, the document object is {type: document_url, document_url: ...}. For images it is {type: image_url, image_url: ...}. The URL can be a public link, a data URL containing Base64 data (for example data:application/pdf;base64,...), or a signed URL for a file you uploaded to Mistral.

The service returns one JSON object containing a pages list. Each page has an index, the main Markdown, images, tables, hyperlinks, header, footer, dimensions and, when requested, confidence_scores and blocks. The object also gives the model name used, a document_annotation field (null unless annotations are used) and usage_info with pages_processed and doc_size_bytes. Setting include_image_base64 to true returns extracted images as Base64 data in the images entries.

This page does not describe how the model recognises text internally, its architecture or its training data.

Setup steps

The page implies this path. First, get a Mistral API key and export it as MISTRAL_API_KEY. Next, install the SDK: for Python, pip install "mistralai>=2" and then from mistralai.client import Mistral; for TypeScript, import { Mistral } from '@mistralai/mistralai'. Then create a client with the key and call client.ocr.process with the model, document and options. The curl alternative needs only the key and a JSON body.

There are two routes for a local PDF. The first is to read the file, Base64-encode it and pass it as a data URL. The second is to upload it first with client.files.upload, with purpose set to ocr; the page says the file is stored in Mistral's cloud and can only be accessed with your API key. You can optionally retrieve it with client.files.retrieve. Then call client.files.get_signed_url; an optional expiry parameter, shown in the curl example as expiry=24, expires the URL after that many hours. Pass the signed URL to the OCR call. Afterwards you can delete the file with client.files.delete; the page marks deletion as optional, for example if you want to reuse the file.

The printed responses illustrate output structure; they do not establish OCR accuracy or independently verified service behavior.

Worked example from the page

The main example calls client.ocr.process with model mistral-ocr-latest, a document of type document_url pointing to an arXiv PDF [https://arxiv.org/pdf/2201.04234], table_format set to html, and include_image_base64 set to true. The sample output printed on the page shows the model as mistral-ocr-2512, with pages_processed 29 and doc_size_bytes 3002783. The first page's Markdown contains the paper's title, author block and abstract, and its hyperlinks list includes mailto links and a GitHub link. A later page returns a tables array. Each entry has an id such as tbl-3.html, the table content as an HTML table, and the format html. The page shows only four of the 29 pages (indexes 0, 1, 27 and 28).

A second example sends an image_url request for an image of a parking permit receipt. It shows plain extracted text (permit details, dates, amounts) as Markdown for a single page, with the model given as mistral-ocr-2505-completion and an empty images list.

A third example sets include_blocks to true and confidence_scores_granularity to block. It prints a shortened response with typed blocks (title, image, caption, text, equation, list, footer), coordinates and confidence values between about 0.98 and 1.0. The block contents in that sample are clearly illustrative and do not all match the page Markdown shown beside them. The printed responses illustrate output structure; they do not establish OCR accuracy or independently verified service behavior.

Assessment & evidence

Limitations and caveats

Stated limits: uploaded document files must be 50 MB or less and contain 1,000 pages or fewer. The page does not give limits for Base64 or URL submissions, request rate limits, or latency figures.

Version requirements: table_format, extract_header and extract_footer need OCR 2512 or newer, and include_blocks needs OCR 4 or newer. The page does not say which model version mistral-ocr-latest resolves to at a given time. The sample outputs show three different model identifiers (mistral-ocr-2512, mistral-ocr-2505-completion and mistral-ocr-4-1), which suggests the examples were captured at different times. Because the alias moves to the latest model, output format or quality could change over time, and the page does not describe pinning a version.

No evidence of quality: the page has no accuracy benchmarks, error rates, guidance on handwriting or low-quality scans, or results by language. It describes the confidence scores but does not explain how they are calibrated or what thresholds are sensible.

The examples contain several inconsistencies. The delete example uses file.id although the upload example names the variable uploaded_pdf. The TypeScript comments use the Python-style False. The TypeScript delete call is written with a Python-style keyword argument. The Base64 image tab repeats the sentence about a public image URL. The page says the PDF URL and Base64 examples are not available in the V1 SDK, while the upload and image examples show V1 code, and it does not say exactly which parameter needs V2. Finally, the block-extraction sample content does not match the page Markdown beside it. If something does not work, check the API reference [https://docs.mistral.ai/api/endpoint/ocr], which is not covered here.

The page covers the structured-output route (Annotations), batch inference, supported languages and cookbooks only by link, and those pages are not covered.

Reasoning behind this assessment

The page is concrete about what you send and what you get back. It lists parameter names, defaults (header and footer extraction default to False, and table_format defaults to None or null), response fields, block types and score types, all with examples. That makes it useful for planning an integration and for designing the parsing of results, for example mapping table and image placeholders to entries in the tables and images arrays, or using block coordinates for layout-aware processing.

The assessment stays cautious on quality, cost and data handling because the page provides no OCR accuracy benchmarks, pricing, retention duration or training-use terms. It does describe cloud storage of uploaded files with API-key access and optional deletion, and it offers confidence scores and a vendor claim of strong multilingual performance. However, confidence scores are not accuracy benchmarks, and the page does not explain how they are calibrated. The sample outputs are curated examples that show the shape of results but give no basis for judging accuracy on messy scans, handwriting, unusual layouts or non-Latin scripts. The overall guidance is therefore to use the page to build a quick trial with your own representative documents, and to settle pricing, retention and licence terms before relying on the service.

Alternatives and related options

The page makes no comparison with other OCR engines or document-processing services. It does not name or evaluate any competing OCR product, so this evidence establishes no alternative and supports no ranking.

The page does point to related Mistral options that work alongside the OCR processor rather than compete with it. These are the Batch Inference service [https://docs.mistral.ai/studio/batch-processing] for processing documents in parallel at high volume, Annotations for structured output, and two OCR cookbooks: Tool Use [https://docs.mistral.ai/resources/cookbooks/mistral-ocr-tool_usage] and Batch OCR [https://docs.mistral.ai/resources/cookbooks/mistral-ocr-batch_ocr]. None of these linked pages is covered here, so their details are unknown.

Evidence base

The page contains request examples in Python, TypeScript and curl for each input route: a PDF by public URL, a PDF as a Base64 data URL, an uploaded PDF through a signed URL (including the upload, retrieve, signed-URL and delete calls), an image by URL, and an image as Base64. It also has examples for block extraction and confidence scores. A printed sample response accompanies each example. The page describes the response fields for each page and for the whole document, the extraction options (table_format, extract_header, extract_footer, include_blocks, confidence_scores_granularity, include_image_base64) with their model version notes, a table of block types and a table of confidence score levels. An FAQ states the 50 MB and 1,000 page upload limit and lists the supported document and image formats.

Statements about behaviour, defaults and limits are the documentation's own claims. The page's examples and statements do not establish OCR accuracy or independently verified service behavior. Where this report says something is not stated (pricing, licence, retention duration, training use, accuracy benchmarks, rate limits), it means this page does not say, not that the service lacks it.

Access & freshness

Costs

Pricing is not stated on this page, so the cost is unknown. The only usage-related details are that the response reports pages_processed and doc_size_bytes in usage_info, and that a Batch Inference service exists for high-volume work. This evidence does not establish whether billing is per page, per request or by some other unit, whether there is a free tier, or whether batch processing is cheaper. Check Mistral's current pricing and your account plan before estimating budgets.

The examples ask for Base64 images and detailed output, so responses can be large (the sample image fields are shown shortened). The page does not discuss bandwidth costs or storage costs for uploaded files.

Rights, licence and data handling

The page does not state a licence for the documentation text, the SDKs or the OCR model, and it gives no terms for how you may use extracted output. These are unknown from this evidence. Read Mistral's terms of service and any model or API terms before commercial use.

On data handling, the page says an uploaded PDF is stored in Mistral's cloud, can only be accessed with an API key, and can be deleted afterwards. It does not say how long files are kept if not deleted, where they are stored, whether submitted documents or outputs are used for training, or what compliance certifications apply. Documents sent by public URL, Base64 or upload leave your environment, so answer those questions before sending confidential or regulated documents. The signed-URL example shows a link that expires; the page does not describe any access controls beyond that.

Freshness

The page was captured on 2026-11-15 and carries no revision date or version number of its own. It uses OCR 2512 and OCR 4 as version thresholds, and its samples use model identifiers from mistral-ocr-2505-completion through mistral-ocr-2512 to mistral-ocr-4-1. The sample file record in the upload example has a creation timestamp that corresponds to late August 2025, which suggests some examples are older than others.

The mistral-ocr-latest alias points to Mistral's latest OCR model, so requests that use it can be served by a newer model over time, and the documentation itself may be revised. The page does not establish whether such changes are announced; notification arrangements are unspecified. Before building on this report, confirm current parameters, model names, limits and SDK requirements against the live page and the API reference [https://docs.mistral.ai/api/endpoint/ocr].

Suggested next steps

Before committing: check Mistral's current pricing, rate limits, terms of service, retention duration and training-use terms, since none of these are on this page.

To try it: create an API key, install the V2 Python SDK (or use curl), and run the URL example on a few of your own documents with table_format set to html. Then compare the extracted Markdown and tables with the originals. Try the confidence_scores_granularity option to see whether low scores line up with the errors you find.

For production: check whether a fixed OCR model version can be selected and what support it receives; this page does not document version pinning. Keep within the upload limit of 50 MB and 1,000 pages, delete uploaded files you no longer need, and consider the Batch Inference service [https://docs.mistral.ai/studio/batch-processing] for large volumes. If you use block extraction, confirm the model you get is OCR 4 or newer, since older models return an empty blocks array.

Evidence for this report

selected-page.txtselected · checked 2026-11-15