OCRRouterGet API key

TrOCR vs olmOCR

TrOCR is cheaper per page; TrOCR is faster; only olmOCR supports tables, math.

TrOCRmicrosoft/trocrolmOCRallenai/olmocr
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 linesBulk PDF to text for datasets
InputsimagesPDF, images
LanguagesEnglishMainly English
Max pages per request1001,000
TablesNo✓ Yes
Handwriting✓ Yes✓ Yes
MathNo✓ Yes
Bounding boxesNoNo
ConfidenceNoNo
FormsNoNo
MultilingualNoNo
On OCRRouterComing soonComing soon

Prices are what you pay on OCRRouter. Speed is the provider's typical figure, not a benchmark we ran.

What each one is

TrOCR

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

TrOCR details

olmOCR

Open-source vision model from Ai2 that turns PDFs into clean, reading-order text.

olmOCR details

Use one, fall back to the other

Request body
{
  "model": "microsoft/trocr",
  "fallbacks": ["allenai/olmocr"],
  "file_url": "https://example.com/document.pdf"
}

Questions

More comparisons

TrOCR alternativesolmOCR alternatives