OCRRouter

Unlimited OCR vs TrOCR

Pick Unlimited OCR to parse whole multi-page documents such as long reports and books into Markdown with bounding boxes. Pick TrOCR to read single cropped text lines, especially English handwriting, or to fine-tune a recognizer on your own line images. The main split is scope: Unlimited OCR reads pages, TrOCR reads one line and needs a separate line detector in front.

Unlimited OCRbaidu/unlimited-ocrTrOCRmicrosoft/trocr
TypeOpen sourceOpen source
Price2 credits / page1 credit / page
Per 1,000 pages$2.00$1.00
Typical speed1.2 s / page1.2 s / page
Best forBooks and very long documentsHandwritten text lines
InputsPDF, imagesimages
Languages30+ languagesEnglish
Max pages per request1,000100
Tables✓ YesNo
HandwritingNo✓ Yes
Math✓ YesNo
Bounding boxes✓ YesNo
ConfidenceNoNo
FormsNoNo
Multilingual✓ YesNo
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 Unlimited OCR if

  • It parses 40+ pages in a single forward pass, so long reports and books go through in one request.
  • It outputs Markdown, plain text and bounding boxes, with block types alongside the text, which suits layout-aware extraction and bulk PDF to text for RAG.
  • Baidu reports 77.1 on MarathonDocBench for Unlimited OCR 2 against 33.7 for the next model, and Baidu Cloud offers a hosted endpoint if you do not want to run the GPU yourself.

Choose TrOCR if

  • It reports a 2.89 character error rate on the IAM handwriting set with the large model, so it fits 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 custom line images.
  • It loads in a few lines with Hugging Face transformers, and at 334M (base) or 558M (large) parameters it is far smaller than a 3B document parser.

Key differences

Unlimited OCRTrOCR
Input scopeMulti-page documents and PDFs, 40+ pages in one passSingle text-line images only, so you need a separate line detector
OutputMarkdown, plain text and bounding boxesPlain text only, no layout, table or page-level output
LicenceMITMIT (microsoft/unilm repository)
How you run itSelf-host with vLLM, SGLang or transformers, or use the hosted endpoint in Baidu Cloud's OCR productRun locally through Hugging Face transformers
Size and hardware3B total parameters; NVIDIA GPU with CUDA 12.9 or 13.0; version 2 runs out of memory on 12 GB GPUs under SGLangBase 334M, large 558M; slow on CPU versus CRNN recognizers
LanguagesNot publishedReleased checkpoints are English-focused; other languages need fine-tuning
Known failuresText repetition and looping, hallucinated text, bbox coordinate loops under SGLang on GB10 GPUs, and little bold or italic formatting keptCannot read full pages, tables or layout

Sources

What each one is

Unlimited OCR

Open-source model from Baidu that reads hundreds of pages in one pass with flat memory use.

Unlimited OCR details

TrOCR

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

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

Questions

More comparisons

Unlimited OCR alternativesTrOCR alternativesBest OCR models in 2026