OCRRouterGet API key

TrOCR vs Granite Docling

TrOCR is faster; only TrOCR supports handwriting; only Granite Docling supports tables, math, bounding boxes.

TrOCRmicrosoft/trocrGranite Doclingibm/granite-docling
TypeOpen sourceOpen source
Price1 credit / page1 credit / page
Per 1,000 pages$1.00$1.00
Typical speed1.2 s / page1.5 s / page
Best forHandwritten text linesSmall-model document conversion
InputsimagesPDF, images
LanguagesEnglishEnglish, experimental CJK and Arabic
Max pages per request100500
TablesNo✓ Yes
Handwriting✓ YesNo
MathNo✓ Yes
Bounding boxesNo✓ Yes
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

Granite Docling

Compact IBM vision model that converts pages to DocTags for the Docling pipeline.

Granite Docling details

Use one, fall back to the other

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

Questions

More comparisons

TrOCR alternativesGranite Docling alternatives