OCRRouter

TrOCR vs Hunyuan OCR

Pick TrOCR if you already have cropped single text-line images, especially English handwriting or receipt lines, and want an MIT-licensed recognizer you can fine-tune. Pick Hunyuan OCR if you need to read whole images, with parsing, extraction, translation and structured output from one model. The main split is scope: TrOCR reads one line and needs a separate line detector, while Hunyuan OCR is an end-to-end model.

TrOCRmicrosoft/trocrHunyuan OCRtencent/hunyuan-ocr
TypeOpen sourceOpen source
Price1 credit / page2 credits / page
Per 1,000 pages$1.00$2.00
Typical speed1.2 s / page1.5 s / page
Best forHandwritten text linesChinese documents and photos
InputsimagesPDF, images
LanguagesEnglish100+ languages
Max pages per request100500
TablesNo✓ Yes
Handwriting✓ YesNo
MathNo✓ Yes
Bounding boxesNo✓ Yes
ConfidenceNoNo
FormsNoNo
MultilingualNo✓ 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 TrOCR if

  • It reports 2.89 character error rate on the IAM handwriting set with the large model, which suits English handwritten lines.
  • It has separate checkpoints fine-tuned for handwritten (IAM), printed (SROIE) and scene text, and it is a good base for fine-tuning on your own line images.
  • It is MIT licensed and loads in a few lines with Hugging Face transformers, with no region restrictions or user-count thresholds.

Choose Hunyuan OCR if

  • One roughly 1B model covers document parsing, text spotting, information extraction and image translation, so you do not need a separate line detector.
  • It outputs Markdown, HTML, LaTeX, JSON, plain text and bounding boxes, and v1.5 supports images up to 4K and a 128K context window.
  • It handles low-resource and ancient scripts, photo and scene text, and text-image translation, and it can run on a laptop through llama.cpp GGUF.

Key differences

TrOCRHunyuan OCR
Input scopeSingle text-line images only; a separate line detector is neededWhole images; parsing, spotting, extraction and translation
Output formatsPlain text; no layout, table or page-level outputMarkdown, HTML, LaTeX, JSON, plain text, bounding boxes
LicenseMITTencent Hunyuan Community License; excludes EU, UK and South Korea; separate license above 100M monthly active users
Model sizeBase 334M, large 558M parametersAbout 1B parameters
How you run itLocally through Hugging Face transformers; free, you pay for computeSelf-hosted via vLLM, Transformers or llama.cpp; the unified vLLM environment recommends CUDA 13; free, you pay for compute
LanguagesCheckpoints are English-focused; other languages need fine-tuningIncludes low-resource and ancient-script OCR
Benchmark2.89 CER on IAM handwriting (TrOCR-large, authors)67.11 ParseBench-2 overall, 63.86 ParseBench mean (v1.5, independent)

Sources

What each one is

TrOCR

Transformer text recognition model. Reads single text lines, including handwriting.

TrOCR 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": "microsoft/trocr","fallbacks": ["tencent/hunyuan-ocr"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

TrOCR alternativesHunyuan OCR alternativesBest OCR models in 2026