OCRRouter

Mathpix Convert vs Chandra

Pick Mathpix Convert for math-heavy papers and textbooks where you need LaTeX or DOCX out of whole PDFs, and for handwritten equations. Pick Chandra for multilingual scans and PDF to Markdown pipelines, especially if you want to self-host or pay per 1,000 pages. The main split is subject matter and deployment: Mathpix is a hosted STEM API, Chandra is an open-weights layout model you can run yourself.

Mathpix Convertmathpix/convertChandradatalab/chandra
TypeOCR APIOpen source
Price7 credits / page2 credits / page
Per 1,000 pages$7.00$2.00
Typical speed1.5 s / page2.0 s / page
Best forMath and scientific papersComplex layouts and handwriting
InputsPDF, imagesPDF, images
Languages30+ languages40+ languages
Max pages per request500500
Tables✓ Yes✓ Yes
Handwriting✓ Yes✓ Yes
Math✓ Yes✓ Yes
Bounding boxes✓ Yes✓ Yes
Confidence✓ YesNo
FormsNo✓ Yes
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 Mathpix Convert if

  • It converts math, tables and chemistry into LaTeX and Markdown, and exports DOCX and LaTeX directly from whole PDFs.
  • It handles handwritten equations, which suits textbooks and student work.
  • Pricing is simple to predict: PDF pages cost $0.005 each (0-1M) and $0.0035 above 1M, and images cost $0.002 each.

Choose Chandra if

  • You can self-host the open weights with vLLM or Hugging Face on a single NVIDIA GPU, or use the hosted Datalab API.
  • Hosted cost is $1, $3 or $7.50 per 1,000 pages depending on mode, with a free tier of $20 per month.
  • It scores 85.8 on olmOCR-bench and 77.8% on a 43-language multilingual benchmark (authors' figures), and returns bounding boxes and labels per block.

Key differences

Mathpix ConvertChandra
How you run itHosted API onlySelf-host open weights (vLLM or Hugging Face) or hosted Datalab API
LicenceProprietaryCode Apache-2.0; weights modified OpenRAIL-M, free for research, personal use and companies under $2M funding/revenue
PricePDF $0.005 per page (0-1M), $0.0035 above 1M; images $0.002 each; one-time $19.99 API key feeHosted $1, $3 or $7.50 per 1,000 pages; self-hosted free within licence terms, you pay for compute
Output formatsLaTeX, Markdown, DOCX, HTML, JSONMarkdown, HTML, JSON, bounding boxes
BenchmarksNot publishedolmOCR-bench 85.8; 43-language average 77.8%; 90-language average 72.7% (authors' figures)
FocusSTEM: math, tables, chemistry, handwritten equationsMultilingual scans, tables, forms and math, PDF to Markdown for RAG
Known failureImages with more than 12 text rows may be billed at the PDF page rateToken-loop hallucinations reported on some Russian/Kazakh scans; weak on Urdu (43.2%), Sanskrit (51.1%) and old scans

Sources

What each one is

Mathpix Convert

Specialist for math, science papers and handwritten formulas. Outputs LaTeX.

Mathpix Convert details

Chandra

Datalab's OCR model that keeps layout and handles forms, tables and handwriting.

Chandra 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": "mathpix/convert","fallbacks": ["datalab/chandra"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Mathpix Convert alternativesChandra alternativesBest OCR models in 2026