OCR
Extract text from PDFs and images
POST
OCR
Overview
The OCR endpoint extracts text from documents and images, returning clean markdown. Powered by Mistral’s OCR model. Supported formats: PDF, PNG, JPEG, WebPQuick Start
Response
Use Cases
Invoice Processing
Extract line items, totals, and dates from invoices for automated bookkeeping.Receipt Scanning
Parse receipts for expense tracking—amounts, vendors, dates extracted as structured text.Document Digitization
Convert scanned documents to searchable, editable markdown while preserving tables and formatting.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | No | OCR model. Default: mistral-ocr-latest |
document.type | string | Yes | Always document_url |
document.document_url | string | Yes | HTTPS URL or data URI |
Limits
- Max file size: 50 MB
- Max pages: 1,000 per document
- Timeout: 120 seconds
Last modified on April 9, 2026
OCR
