Surya vs Hunyuan OCR
Pick Surya if you need layout detection, reading order and bounding boxes for 90+ languages, run locally on a laptop with about 4-6 GB of RAM. Pick Hunyuan OCR if you need photo and scene text spotting, image translation, or low-resource and historical scripts, and you are outside the EU, UK and South Korea. The main split is scope: Surya is a document layout and OCR toolkit, Hunyuan OCR is one end-to-end model for parsing, spotting, extraction and translation.
Suryadatalab/surya | Hunyuan OCRtencent/hunyuan-ocr | |
|---|---|---|
| Type | Open source | Open source |
| Price | 2 credits / page | 2 credits / page |
| Per 1,000 pages | $2.00 | $2.00 |
| Typical speed | 1.5 s / page | 1.5 s / page |
| Best for | Layout and line-level OCR | Chinese documents and photos |
| Inputs | PDF, images | PDF, images |
| Languages | 90+ languages | 100+ languages |
| Max pages per request | 500 | 500 |
| Tables | ✓ Yes | ✓ Yes |
| Handwriting | No | No |
| Math | No | ✓ Yes |
| Bounding boxes | ✓ Yes | ✓ Yes |
| Confidence | No | No |
| Forms | No | No |
| Multilingual | ✓ Yes | ✓ 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 Surya if
- You need layout labels, reading order, HTML tables, KaTeX math and per-block bounding boxes from one model.
- You want a small 689M model that scores 83.7% on olmOCR-bench and reaches 4.52 pages/s at 192 DPI on one H100 with vLLM.
- You are in the EU, UK or South Korea, or your company is under $5M in funding and revenue, where the weights are free to use.
Choose Hunyuan OCR if
- You need to read text in photos and natural scenes, or translate text inside images.
- You work with low-resource or ancient scripts, or need images up to 4K and a 128K context window in v1.5.
- You want one ~1B model with 12 task types via the vLLM client, covering parsing, spotting, extraction and translation.
Key differences
| Surya | Hunyuan OCR | |
|---|---|---|
| Licence | Code Apache-2.0; weights under a modified AI Pubs Open Rail-M. Free for research, personal use and companies under $5M funding or revenue. | Tencent Hunyuan Community License. Excludes the EU, UK and South Korea. Separate license needed above 100M monthly active users. |
| Model size | 689M parameters | About 1B parameters |
| How you run it | Light client against a separately running vLLM or llama.cpp server. vLLM on NVIDIA GPU in Docker or Podman, llama.cpp for CPU and Apple Silicon. | vLLM, Transformers or llama.cpp. The unified vLLM environment recommends CUDA 13 and vLLM 0.25.1+. A llama.cpp GGUF path covers CPU, consumer GPU or laptop. |
| Output formats | JSON, HTML, LaTeX, bounding boxes, plain text | Markdown, HTML, LaTeX, JSON, plain text, bounding boxes |
| Benchmark | 83.7% on olmOCR-bench and 85.9 on OmniParseBench headline (Surya 2.5), both reported by the authors | 67.11 on ParseBench-2 overall and 63.86 ParseBench mean (v1.5), independent. Not published for olmOCR-bench. |
| Tables and hard documents | Surya 2.5 table output lacks row and column geometry. Multilingual tables score 58.1. The README sends handwriting, complex tables and math to the hosted Datalab API. | Not published |
| Known failure | Apple M4 Max throughput is 0.198 pages/s at 96 DPI with llama.cpp Q8_0. Only 21 of 91 languages reach a 90% pass rate. Not for photos or natural scenes. | Archived 1.0 note said Transformers and vLLM outputs differed in accuracy. ParseBench-2 text score is 62.88 in public CI replay. |
Sources
- Surya GitHub README
- Datalab pricing and license FAQ
- HunyuanOCR GitHub
- HunyuanOCR model card
- Hunyuan Community License
What each one is
Surya
Open-source OCR toolkit with line detection, layout analysis, reading order and tables.
Surya 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.
Use one, fall back to the other
{"model": "datalab/surya","fallbacks": ["tencent/hunyuan-ocr"],"file_url": "https://example.com/document.pdf"}Questions
More comparisons
Surya alternativesHunyuan OCR alternativesBest OCR models in 2026