Mathpix Convert vs Hunyuan OCR
Pick Mathpix Convert for math-heavy papers and textbooks that need LaTeX or DOCX output, or for handwritten equations, and you accept a hosted, paid API. Pick Hunyuan OCR to self-host a free, roughly 1B parameter model for photo and scene text, text-image translation or low-resource scripts, if you are outside the EU, UK and South Korea.
Mathpix Convertmathpix/convert | Hunyuan OCRtencent/hunyuan-ocr | |
|---|---|---|
| Type | OCR API | Open source |
| Price | 7 credits / page | 2 credits / page |
| Per 1,000 pages | $7.00 | $2.00 |
| Typical speed | 1.5 s / page | 1.5 s / page |
| Best for | Math and scientific papers | Chinese documents and photos |
| Inputs | PDF, images | PDF, images |
| Languages | 30+ languages | 100+ languages |
| Max pages per request | 500 | 500 |
| 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 and turns math, tables and chemistry into LaTeX and Markdown.
- It exports whole PDFs directly to DOCX and LaTeX, and it handles handwritten equations.
- It is a hosted API with no GPU to manage, at $0.005 per page for PDFs and $0.002 per image.
Choose Hunyuan OCR if
- It is free to self-host, so you pay only for compute, and a llama.cpp GGUF build runs on laptops.
- One model handles document parsing, text spotting, information extraction and image translation, with 12 task types via the vLLM client.
- It covers low-resource and ancient scripts, takes images up to 4K and has a 128K context window in v1.5.
Key differences
| Mathpix Convert | Hunyuan OCR | |
|---|---|---|
| How you run it | Hosted API | Self-hosted via vLLM, Transformers or llama.cpp |
| Licence | Proprietary | Tencent Hunyuan Community License; excludes EU, UK and South Korea; separate license needed above 100M monthly active users |
| Price | PDF $0.005 per page (0-1M), $0.0035 above 1M; images $0.002 each; one-time $19.99 API key fee | Free; you pay for compute |
| Output formats | LaTeX, Markdown, DOCX, HTML, JSON | Markdown, HTML, LaTeX, JSON, plain text, bounding boxes |
| Best document types | Math-heavy papers, textbooks, handwritten equations | Photo and scene text, text-image translation, historical scripts |
| Benchmark | No published accuracy benchmark on general OCR leaderboards | ParseBench-2 overall 67.11, ParseBench mean 63.86 (v1.5) |
| Known drawbacks | Non-refundable $19.99 fee; images with more than 12 text rows may be billed at the PDF page rate; billed monthly in arrears | Needs CUDA 13 and vLLM 0.25.1+ for the unified environment; text score 62.88 on ParseBench-2; an archived 1.0 note said Transformers and vLLM outputs differed in accuracy |
Sources
What each one is
Mathpix Convert
Specialist for math, science papers and handwritten formulas. Outputs LaTeX.
Mathpix Convert detailsHunyuan OCR
Small end-to-end OCR model from Tencent covering parsing, extraction and photo translation.
Hunyuan OCR detailsTry 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": ["tencent/hunyuan-ocr"],"file_url": "https://example.com/document.pdf"}Questions
More comparisons
Mathpix Convert vs Qwen-VLMathpix Convert vs Nanonets-OCRReducto Parse vs Hunyuan OCRLlamaParse vs Hunyuan OCRHunyuan OCR vs DeepSeek-VL2Qianfan OCR vs Hunyuan OCRHunyuan OCR vs ChunkrMathpix Convert vs Phi-4-multimodal
Mathpix Convert alternativesHunyuan OCR alternativesBest OCR models in 2026