Skip to main content
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, WebP

Quick Start

For local files, encode as base64 data URI: data:application/pdf;base64, {base64_data}

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

Limits

  • Max file size: 50 MB
  • Max pages: 1,000 per document
  • Timeout: 120 seconds
Last modified on April 9, 2026