OCRRouter

TrOCR vs Typhoon OCR

Pick TrOCR if you already have cropped single-line images, such as English handwriting or receipt lines, and want an MIT-licensed recognizer to fine-tune. Pick Typhoon OCR if you need to read whole Thai or English pages with tables and equations. The main split is scope: TrOCR reads one text line at a time, while Typhoon OCR outputs structured Markdown, HTML or LaTeX for full documents.

TrOCRmicrosoft/trocrTyphoon OCRtyphoon/typhoon-ocr
TypeOpen sourceOpen source
Price1 credit / page2 credits / page
Per 1,000 pages$1.00$2.00
Typical speed1.2 s / page1.8 s / page
Best forHandwritten text linesThai documents
InputsimagesPDF, images
LanguagesEnglishThai, English
Max pages per request100500
TablesNo✓ Yes
Handwriting✓ YesNo
MathNoNo
Bounding boxesNoNo
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

  • You have English handwritten lines: the large model reports 2.89 character error rate on the IAM handwriting set.
  • You want to fine-tune a recognizer on your own line images, starting from separate handwritten, printed (SROIE) and scene text checkpoints.
  • You want the simplest licence and setup: MIT, and it loads in a few lines with Hugging Face transformers.

Choose Typhoon OCR if

  • Your documents are Thai or Thai-English mixed, such as government forms, financial reports or books. V1.5 beat GPT-5 and Gemini 2.5 Pro on Thai government forms (BLEU 0.870).
  • You need page-level output: tables as HTML with merged cells, equations as LaTeX, and checkboxes marked.
  • You want a choice of self-hosting or the Typhoon API (typhoon-ocr-v2), with a 2B model that scores 84.7 on olmOCR-bench.

Key differences

TrOCRTyphoon OCR
Input it readsSingle text-line images only; you need a separate line detectorFull document pages with layout
Output formatsPlain textMarkdown, HTML and LaTeX
LanguagesEnglish-focused checkpoints; other languages need fine-tuningThai and English; no other languages evaluated
LicenceMIT (microsoft/unilm repository)Apache-2.0, subject to OpenTyphoon Terms and Conditions
How you run itLocally through Hugging Face transformersSelf-hosted weights or the Typhoon API (typhoon-ocr-v2)
Model sizeBase 334M, large 558M parameters2B (V2 and V1.5); 0.8B V2 variant
Known failureSlow versus CRNN recognizers on CPU; no layout, table or page outputV2 can loop until the token limit on dense multi-column pages; weakest at key-information extraction (21.0 on ThaiOCRBench)

Sources

What each one is

TrOCR

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

TrOCR details

Typhoon OCR

Open vision model tuned for Thai and English documents, with Markdown output.

Typhoon 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": ["typhoon/typhoon-ocr"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

TrOCR alternativesTyphoon OCR alternativesBest OCR models in 2026