Skip to main content
Mistral provides VLM-based document processing through two services: OCR 3 for parsing documents to markdown, and Document AI for structured extraction directly from source documents.

Installation

Providers Overview

Mistral offers two services through the same package:
Mistral OCR 3 is a VLM under the hood, not traditional OCR. It provides excellent handwriting recognition and handles complex layouts well.

OCR Provider

Use mistralOCRProvider for parsing documents to markdown/DocumentIR.

Basic Setup

Configuration Options

Usage with Flows

Output: DocumentIR

VLM Provider (Document AI)

Use mistralVLMProvider for structured extraction directly from source documents using JSON schema.
Mistral VLM always requires raw document input (URL or base64). It cannot extract from pre-parsed DocumentIR. Use it as the first step in a flow, not after a parse() step.

Basic Setup

Configuration Options

Annotation Modes

Usage with Flows

Supported Formats

Documents

Images

Limits

Pricing

$2 per 1000 pages makes Mistral one of the most cost-effective OCR options available.

Mistral vs Other Providers

Choose Mistral when:
  • Processing documents with handwriting
  • You need native structured extraction without a separate LLM
  • Working with diverse document formats (DOCX, PPTX, EPUB, etc.)
  • Cost is a primary concern

Example: Parse and Extract Pipeline

For documents over 8 pages, use OCR to parse first, then an LLM to extract:

Example: Direct Extraction (Short Documents)

For documents under 8 pages, extract directly:

Next Steps

Reducto

RAG-optimized chunking

Surya OCR

Text with bounding boxes