TrOCR vs Chandra
TrOCR is cheaper per page; TrOCR is faster; only Chandra supports tables, math, forms, bounding boxes, multilingual.
TrOCRmicrosoft/trocr | Chandradatalab/chandra | |
|---|---|---|
| Type | Open source | Open source |
| Price | 1 credit / page | 2 credits / page |
| Per 1,000 pages | $1.00 | $2.00 |
| Typical speed | 1.2 s / page | 2.0 s / page |
| Best for | Handwritten text lines | Complex layouts and handwriting |
| Inputs | images | PDF, images |
| Languages | English | 40+ languages |
| Max pages per request | 100 | 500 |
| Tables | No | ✓ Yes |
| Handwriting | ✓ Yes | ✓ Yes |
| Math | No | ✓ Yes |
| Bounding boxes | No | ✓ Yes |
| Confidence | No | No |
| Forms | No | ✓ Yes |
| Multilingual | No | ✓ Yes |
| On OCRRouter | Coming soon | Coming 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 detailsChandra
Datalab's OCR model that keeps layout and handles forms, tables and handwriting.
Chandra detailsUse one, fall back to the other
Request body
{
"model": "microsoft/trocr",
"fallbacks": ["datalab/chandra"],
"file_url": "https://example.com/document.pdf"
}