Mathpix Convert vs Marker
Pick Mathpix Convert if your documents are math-heavy papers, textbooks or handwritten equations and you want LaTeX or DOCX from a hosted API. Pick Marker if you want to self-host PDF to Markdown, need RAG chunks, or want a free option for research, personal use or a startup under $5M. The main split is a paid proprietary STEM API versus an open-source converter you run yourself.
Mathpix Convertmathpix/convert | Markerdatalab/marker | |
|---|---|---|
| Type | OCR API | OCR API |
| Price | 7 credits / page | 14 credits / page |
| Per 1,000 pages | $7.00 | $14.00 |
| Typical speed | 1.5 s / page | 2.5 s / page |
| Best for | Math and scientific papers | Books and research papers |
| Inputs | PDF, images | PDF, images, DOCX |
| Languages | 30+ languages | 90+ languages |
| Max pages per request | 500 | 1,000 |
| Tables | ✓ Yes | ✓ Yes |
| Handwriting | ✓ Yes | No |
| Math | ✓ Yes | ✓ Yes |
| Bounding boxes | ✓ Yes | ✓ Yes |
| Confidence | ✓ Yes | No |
| Forms | No | No |
| Multilingual | No | ✓ Yes |
| On OCRRouter | Available | Available |
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 is built for STEM content, converting math, tables and chemistry to LaTeX and Markdown.
- It exports whole PDFs directly to DOCX and LaTeX.
- It handles handwritten equations, and you call it as a hosted API with no GPU to run.
Choose Marker if
- You can run it locally on GPU, CPU or Apple Silicon, so documents stay on your own machine.
- Code is Apache-2.0 and the weights are free for research, personal use and startups under $5M.
- It outputs JSON block trees and RAG chunks, and has a CPU fast mode that runs at 23.6 pages per second.
Key differences
| Mathpix Convert | Marker | |
|---|---|---|
| How you run it | Hosted API only | Self-hosted on GPU, CPU or Apple Silicon, or Datalab's hosted API |
| Licence | Proprietary | Code Apache-2.0; weights under a modified AI Pubs Open Rail-M license, with a $5M company limit for free use |
| Price | PDF $0.005 per page up to 1M pages, $0.0035 above; images $0.002 each; one-time $19.99 API key fee | Free self-hosted within the weight license, you pay for compute; hosted API has about 5,000 free pages per month |
| Output formats | LaTeX, Markdown, DOCX, HTML, JSON | Markdown, HTML, JSON, chunks, LaTeX, images |
| Benchmarks | No published accuracy benchmark on general OCR leaderboards | 83.7 on olmOCR-bench in vllm mode, 66.6 in CPU fast mode; all figures are Datalab's own |
| Handwriting and STEM focus | Handwritten equations, math, tables and chemistry | Books and papers with equations; handwriting not published |
| Known catch | Images with more than 12 text rows may be billed at the PDF page rate; billed monthly in arrears | Companies above $5M need a paid license for commercial use of the weights |
Sources
What each one is
Mathpix Convert
Specialist for math, science papers and handwritten formulas. Outputs LaTeX.
Mathpix Convert detailsMarker
Hosted version of the open-source Marker and Surya models. Strong on books and papers.
Marker detailsTry both on your own file
Run the file once with each model and compare the output.
Use one, fall back to the other
{"model": "mathpix/convert","fallbacks": ["datalab/marker"],"file_url": "https://example.com/document.pdf"}Questions
More comparisons
Mathpix Convert alternativesMarker alternativesBest OCR models in 2026