OCRRouterGet API key

TrOCR vs Chandra

TrOCR is cheaper per page; TrOCR is faster; only Chandra supports tables, math, forms, bounding boxes, multilingual.

TrOCRmicrosoft/trocrChandradatalab/chandra
TypeOpen sourceOpen source
Price1 credit / page2 credits / page
Per 1,000 pages$1.00$2.00
Typical speed1.2 s / page2.0 s / page
Best forHandwritten text linesComplex layouts and handwriting
InputsimagesPDF, images
LanguagesEnglish40+ languages
Max pages per request100500
TablesNo✓ Yes
Handwriting✓ Yes✓ Yes
MathNo✓ Yes
Bounding boxesNo✓ Yes
ConfidenceNoNo
FormsNo✓ Yes
MultilingualNo✓ Yes
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

Chandra

Datalab's OCR model that keeps layout and handles forms, tables and handwriting.

Chandra details

Use one, fall back to the other

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

Questions

More comparisons

TrOCR alternativesChandra alternatives