OCRRouterGet API key

Docling vs TrOCR

TrOCR is cheaper per page; TrOCR is faster; only Docling supports tables, math, bounding boxes; only TrOCR supports handwriting.

Doclingibm/doclingTrOCRmicrosoft/trocr
TypeOpen sourceOpen source
Price2 credits / page1 credit / page
Per 1,000 pages$2.00$1.00
Typical speed2.2 s / page1.2 s / page
Best forStructured export for RAGHandwritten text lines
InputsPDF, images, DOCXimages
LanguagesLatin scripts, CJKEnglish
Max pages per request500100
Tables✓ YesNo
HandwritingNo✓ Yes
Math✓ YesNo
Bounding boxes✓ YesNo
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

Docling

IBM's open-source document converter with a structured document model.

Docling details

TrOCR

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

TrOCR details

Use one, fall back to the other

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

Questions

More comparisons

Docling alternativesTrOCR alternatives