OCRRouter

docTR vs Pixtral

Pick docTR when you need word-level text with coordinates from invoices and receipts and you want a small, trainable OCR library you run yourself in Python. Pick Pixtral only if you already use it through the Mistral API or want question answering over charts and documents. The main split is that docTR is a purpose-built OCR pipeline, while Pixtral is a deprecated general vision language model that can miss text.

docTRmindee/doctrPixtralmistral/pixtral
TypeOpen sourceVision model
Price1 credit / page2 credits / page
Per 1,000 pages$1.00$2.00
Typical speed0.9 s / page3.0 s / page
Best forWord-level OCR with positionsQuestions about document images
InputsPDF, imagesimages
LanguagesMainly Latin scriptsMultilingual
Max pages per request500500
TablesNoNo
HandwritingNoNo
MathNoNo
Bounding boxes✓ YesNo
Confidence✓ YesNo
FormsNoNo
MultilingualNo✓ Yes
On OCRRouterAvailableAvailable

Prices are what you pay on OCRRouter. Speed is the provider's typical figure, not a benchmark we ran.

Which to choose

Choose docTR if

  • You need JSON output with page, block, line and word levels and coordinates, or bounding boxes, for custom extraction.
  • You want to choose or train your own detection and recognition architectures, with straight or rotated boxes, in Python on PyTorch.
  • You want a ready Docker image, Apache-2.0 licence and a key information extraction predictor, with no per-token API cost.

Choose Pixtral if

  • You answer questions over charts and documents, where Mistral reports 90.7 ANLS on DocVQA and 81.8 on ChartQA.
  • You already have an integration on the Mistral API, where the launch price was $0.15 per million input and output tokens.
  • You need many images in one request, which the 128K token context allows, and you want Markdown or JSON output from a prompt.

Key differences

docTRPixtral
What it isOCR library with two-stage text detection and recognitionGeneral vision language model, 12B decoder plus 400M vision encoder
LicenceApache-2.0Apache-2.0 open weights
How you run itLocal Python on PyTorch, with Docker images; CPU or NVIDIA GPU, and GPU images need CUDA 12.2 or newer on the hostMistral API as pixtral-12b-2409, or self-hosted open weights
PriceFree, self-hosted (you pay for compute)$0.15 per million input and output tokens at API launch; free to self-host (you pay for compute)
Output formatsJSON, plain text, bounding boxes; no table, formula or Markdown outputPlain text, Markdown, JSON
BenchmarksNot publishedDocVQA 90.7 ANLS, ChartQA 81.8, MMMU 52.5, all reported by Mistral
Known failureSplit-crop merging misjoins readings across repeated characters; cropping images gives poorer results; ONNX export of MASTER truncates decoding stepsDoes not always get OCR near correct; accuracy drops reported on handwriting, small fonts and non-Latin scripts; Q4 quantization degrades small text; Mistral marks it deprecated and unmaintained

Sources

What each one is

docTR

Open-source OCR library from Mindee with separate text detection and recognition models.

docTR details

Pixtral

Mistral's open-weight vision models, Pixtral 12B and Pixtral Large. Mistral's API no longer serves them, so they run self-hosted.

Pixtral details

Try both on your own file

Run the file once with each model and compare the output.

PDF, PNG, JPG, WebP, HEIC. Up to 20 MB each, 10 files.No file?

Use one, fall back to the other

{"model": "mindee/doctr","fallbacks": ["mistral/pixtral"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

docTR alternativesPixtral alternativesBest OCR models in 2026