OCRRouter

Marker vs Hunyuan OCR

Pick Marker to turn PDFs such as books and papers with equations into Markdown, JSON or RAG chunks, with a hosted API as an option. Pick Hunyuan OCR for photos, scene text, image translation and low-resource or historical scripts on a ~1B model. The main split is the task: Marker is a PDF converter, Hunyuan OCR is a general OCR VLM, and their licences limit different users.

Markerdatalab/markerHunyuan OCRtencent/hunyuan-ocr
TypeOCR APIOpen source
Price14 credits / page2 credits / page
Per 1,000 pages$14.00$2.00
Typical speed2.5 s / page1.5 s / page
Best forBooks and research papersChinese documents and photos
InputsPDF, images, DOCXPDF, images
Languages90+ languages100+ languages
Max pages per request1,000500
Tables✓ Yes✓ Yes
HandwritingNoNo
Math✓ Yes✓ Yes
Bounding boxes✓ Yes✓ Yes
ConfidenceNoNo
FormsNoNo
Multilingual✓ Yes✓ 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 Marker if

  • You want self-hosted PDF to Markdown for books and papers with equations, with LaTeX output.
  • You need RAG chunks or JSON block trees, not just text.
  • You want a hosted option: Datalab's API includes about 5,000 free pages per month, and a CPU fast mode runs at 23.6 pages per second.

Choose Hunyuan OCR if

  • You work with photos and scene text, text spotting, or text-image translation, and want bounding boxes in the output.
  • You need low-resource or ancient-script OCR, which the vLLM client exposes among its 12 task types.
  • You want a ~1B model that handles parsing, spotting, extraction and translation in one place, and that can run on a laptop through llama.cpp GGUF.

Key differences

MarkerHunyuan OCR
Main jobPDF to Markdown converter built on the Surya OCR modelsEnd-to-end OCR VLM for parsing, text spotting, extraction and image translation
LicenceCode Apache-2.0; weights under a modified AI Pubs Open Rail-M licence, free for research, personal use and startups under $5MTencent Hunyuan Community License; excludes EU, UK and South Korea, and needs a separate licence above 100M monthly active users
How you run itSelf-host on GPU, CPU or Apple Silicon, or use Datalab's hosted APISelf-host only, via vLLM, Transformers or llama.cpp
Hardwarevllm mode needs an NVIDIA GPU; fast mode runs on CPU with about 18 MB of ONNX weightsNVIDIA GPU with CUDA 13 recommended for the unified vLLM environment; llama.cpp GGUF for CPU, consumer GPU or laptop
Output formatsMarkdown, HTML, JSON, chunks, LaTeX, imagesMarkdown, HTML, LaTeX, JSON, plain text, bounding boxes
BenchmarkolmOCR-bench 83.7 in vllm mode and 66.6 in CPU fast mode, reported by DatalabParseBench-2 overall 67.11 (v1.5), reported independently; a different benchmark, so the scores are not comparable
Known limitsWeights block free commercial use for companies above $5M; all README benchmarks are Datalab's ownNeeds CUDA 13 and vLLM 0.25.1+ for the unified environment; an archived 1.0 note said Transformers and vLLM outputs differed in accuracy

Sources

What each one is

Marker

Hosted version of the open-source Marker and Surya models. Strong on books and papers.

Marker details

Hunyuan OCR

Small end-to-end OCR model from Tencent covering parsing, extraction and photo translation.

Hunyuan OCR 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": "datalab/marker","fallbacks": ["tencent/hunyuan-ocr"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Marker alternativesHunyuan OCR alternativesBest OCR models in 2026