OCRRouter

Google Document AI vs Hunyuan OCR

Pick Google Document AI if you want a hosted API on Google Cloud for bulk OCR or RAG chunking, with no GPUs to run. Pick Hunyuan OCR if you want a free, self-hosted ~1B model for photo and scene text, translation, or rare scripts, and you are outside the EU, UK and South Korea. The main split is managed per-page pricing and page limits versus self-hosted compute and a restrictive licence.

Google Document AIgoogle/document-aiHunyuan OCRtencent/hunyuan-ocr
TypeOCR APIOpen source
Price10 credits / page2 credits / page
Per 1,000 pages$10.00$2.00
Typical speed1.4 s / page1.5 s / page
Best forMultilingual scansChinese documents and photos
InputsPDF, imagesPDF, images
Languages200+ languages100+ languages
Max pages per request500500
Tables✓ Yes✓ Yes
Handwriting✓ YesNo
MathNo✓ Yes
Bounding boxes✓ Yes✓ Yes
Confidence✓ YesNo
Forms✓ YesNo
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 Google Document AI if

  • Enterprise Document OCR costs $1.50 per 1,000 pages, drops to $0.60 above 5M pages a month, and the first 1,000 pages are free.
  • Layout Parser includes chunking for RAG at $10 per 1,000 pages, so you do not build that step yourself.
  • Batch requests take up to 500 pages, which suits bulk jobs on Google Cloud.

Choose Hunyuan OCR if

  • The model is free to self-host, so you pay only for compute, and the llama.cpp GGUF path runs on a CPU, consumer GPU or laptop.
  • One ~1B model covers document parsing, text spotting, information extraction and image translation, with 12 task types exposed via the vLLM client.
  • It handles images up to 4K and a 128K context window in v1.5, and it supports low-resource and ancient-script OCR.

Key differences

Google Document AIHunyuan OCR
How you run itHosted API on Google CloudSelf-hosted via vLLM, Transformers or llama.cpp
LicenceProprietaryTencent Hunyuan Community License. Excludes the EU, UK and South Korea. A separate licence is needed above 100M monthly active users.
PriceEnterprise OCR $1.50 per 1,000 pages. Form Parser $30. Layout Parser $10.Free, you pay for compute
Request limitsOnline requests up to 15 pages (30 in imageless mode). Batch up to 500 pages. Form Parser batch up to 100 pages.Not published as a page limit. Images up to 4K and a 128K context window in v1.5.
Output formatsJSON, plain text, bounding boxes, chunksMarkdown, HTML, LaTeX, JSON, plain text, bounding boxes
Benchmark64.6% on RD-TableBench table accuracy, behind Azure and TextractParseBench-2 overall 67.11 and ParseBench mean 63.86 (v1.5). Text score 62.88 in a public CI replay.
Known issuesNot suited to long PDFs in one synchronous call or complex tablesUnified setup needs CUDA 13 and vLLM 0.25.1+. An archived 1.0 note said Transformers and vLLM outputs differed in accuracy.

Sources

What each one is

Google Document AI

Google Cloud OCR with layout parsing and specialised processors.

Google Document AI 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": "google/document-ai","fallbacks": ["tencent/hunyuan-ocr"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Google Document AI alternativesHunyuan OCR alternativesBest OCR models in 2026