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
UsemistralOCRProvider for parsing documents to markdown/DocumentIR.
Basic Setup
Configuration Options
Usage with Flows
Output: DocumentIR
VLM Provider (Document AI)
UsemistralVLMProvider for structured extraction directly from source documents using JSON schema.
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