Qianfan OCR vs Hunyuan OCR
Pick Qianfan OCR for self-hosted, multilingual document parsing under a standard Apache-2.0 licence, especially tables, formulas and key information extraction. Pick Hunyuan OCR when you need a roughly 1B model that runs on a laptop or consumer GPU, or when you work with photo text, image translation or historical scripts, and you are outside the EU, UK and South Korea.
Qianfan OCRbaidu/qianfan-ocr | Hunyuan OCRtencent/hunyuan-ocr | |
|---|---|---|
| Type | OCR API | Open source |
| Price | 2 credits / page | 2 credits / page |
| Per 1,000 pages | $2.00 | $2.00 |
| Typical speed | 2.0 s / page | 1.5 s / page |
| Best for | Chinese documents | Chinese documents and photos |
| Inputs | PDF, images | PDF, images |
| Languages | Chinese, English and more | 100+ languages |
| Max pages per request | 200 | 500 |
| Tables | ✓ Yes | ✓ Yes |
| Handwriting | ✓ Yes | No |
| Math | ✓ Yes | ✓ Yes |
| Bounding boxes | No | ✓ 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 Qianfan OCR if
- Apache-2.0 allows commercial use with no regional exclusions and no user-count cap.
- It scores 93.12 on OmniDocBench v1.5, the top end-to-end score in Baidu's table, and it targets tables and formulas.
- It covers 192 languages plus handwriting and scene text, and it is also offered hosted on the Baidu Qianfan platform.
Choose Hunyuan OCR if
- At about 1B parameters it runs on a laptop, CPU or consumer GPU through the llama.cpp GGUF path.
- One model handles parsing, text spotting, information extraction and image translation, with 12 task types exposed via the vLLM client.
- It supports images up to 4K and a 128K context window in v1.5, and it handles low-resource and ancient-script OCR.
Key differences
| Qianfan OCR | Hunyuan OCR | |
|---|---|---|
| Licence | Apache-2.0, commercial use allowed | Tencent Hunyuan Community License; excludes the EU, UK and South Korea; separate licence needed above 100M monthly active users |
| Model size | 4B (Qwen3-4B language model) | About 1B |
| How you run it | Self-host the open Hugging Face weights, or use the Baidu Qianfan platform | Self-host only, via vLLM, Transformers or llama.cpp |
| Hardware | Benchmarked on one NVIDIA A100 with vLLM; no minimum VRAM stated; not suited to CPU-only deployment | NVIDIA GPU with CUDA 13 recommended for the unified vLLM environment; llama.cpp GGUF path for CPU, consumer GPU or laptop |
| Output formats | Markdown, JSON, HTML, LaTeX, bounding boxes | Markdown, HTML, LaTeX, JSON, plain text, bounding boxes |
| Benchmarks | OmniDocBench v1.5 overall 93.12; olmOCR-Bench 79.8; OCRBench 880 (reported by the authors) | ParseBench-2 overall 67.11 and ParseBench mean 63.86 on v1.5 (independent); not published on OmniDocBench |
| Known failure or limit | 1.024 pages per second on an A100 even with W8A8; thinking mode can emit up to 16,384 tokens, adding latency | Unified environment needs CUDA 13 and vLLM 0.25.1+; archived 1.0 note said Transformers and vLLM outputs differed in accuracy |
Sources
- Qianfan-OCR model card
- Qianfan-OCR paper
- HunyuanOCR GitHub
- HunyuanOCR model card
- Hunyuan Community License
What each one is
Qianfan OCR
Baidu's OCR-tuned vision model. Strong on Chinese documents and tables.
Qianfan OCR 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": "baidu/qianfan-ocr","fallbacks": ["tencent/hunyuan-ocr"],"file_url": "https://example.com/document.pdf"}Questions
More comparisons
Qianfan OCR alternativesHunyuan OCR alternativesBest OCR models in 2026