OCRRouter

Mathpix Convert vs MinerU

Pick Mathpix Convert if your input is math-heavy papers, textbooks or handwritten equations and you want LaTeX or DOCX from whole PDFs through a hosted API. Pick MinerU if you want to self-host, convert mixed PDF and Office files into Markdown or JSON, or run basic CPU-only batch jobs at no licence cost. The main split is a paid STEM-focused API versus a free self-hosted toolkit with licence and table-quality caveats.

Mathpix Convertmathpix/convertMinerUopendatalab/mineru
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 papersAcademic PDFs
InputsPDF, imagesPDF, images
Languages30+ languages80+ languages
Max pages per request500500
Tables✓ Yes✓ Yes
Handwriting✓ YesNo
Math✓ Yes✓ Yes
Bounding boxes✓ Yes✓ Yes
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 Mathpix Convert if

  • It is built for STEM content, turning math, tables and chemistry into LaTeX and Markdown.
  • It exports LaTeX and DOCX directly from whole PDFs and handles handwritten equations.
  • You get a hosted API with no GPU or server to run, at $0.005 per PDF page up to 1M pages.

Choose MinerU if

  • It is free to self-host, so you pay only for compute.
  • It accepts PDF, images, DOCX, PPTX, XLSX, EPUB, OFD and HTML in one tool, which suits mixed Office and PDF corpora for RAG.
  • The basic ONNX tier runs on CPU with about 2 GB RAM, so you can start without a GPU.

Key differences

Mathpix ConvertMinerU
How you run itHosted APISelf-host as CLI, API or WebUI
LicenceProprietaryMinerU Open Source License (Apache-2.0 based with extra conditions); MinerU2.5 VLM weights tagged AGPL-3.0
PricePDF $0.005 per page (0-1M), $0.0035 above 1M; images $0.002 each; one-time $19.99 API key activation feeFree, you pay for compute
Input typesImages and PDFsPDF, images, DOCX, PPTX, XLSX, EPUB, OFD, HTML
Output formatsLaTeX, Markdown, DOCX, HTML, JSONMarkdown, HTML, LaTeX, DOCX, EPUB, JSON
Published benchmarkNot publishedolmOCR-Bench overall 75.2 (MinerU 2.5.4); ParseBench mean 45.9 (MinerU2.5)
Known failureImages with more than 12 text rows may be billed at the PDF page rateVLM tiers drop merged header rows in tables such as bank statement account lines; VLM pipeline can repeat content, producing 300 KB figure blocks

Sources

What each one is

Mathpix Convert

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

Mathpix Convert details

MinerU

Open-source PDF to Markdown pipeline popular for academic and Chinese documents.

MinerU 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": ["opendatalab/mineru"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Mathpix Convert alternativesMinerU alternativesBest OCR models in 2026