TrOCR vs olmOCR
TrOCR is cheaper per page; TrOCR is faster; only olmOCR supports tables, math.
TrOCRmicrosoft/trocr | olmOCRallenai/olmocr | |
|---|---|---|
| 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 | 1.5 s / page |
| Best for | Handwritten text lines | Bulk PDF to text for datasets |
| Inputs | images | PDF, images |
| Languages | English | Mainly English |
| Max pages per request | 100 | 1,000 |
| Tables | No | ✓ Yes |
| Handwriting | ✓ Yes | ✓ Yes |
| Math | No | ✓ Yes |
| Bounding boxes | No | No |
| Confidence | No | No |
| Forms | No | No |
| Multilingual | No | No |
| 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 detailsolmOCR
Open-source vision model from Ai2 that turns PDFs into clean, reading-order text.
olmOCR detailsUse one, fall back to the other
Request body
{
"model": "microsoft/trocr",
"fallbacks": ["allenai/olmocr"],
"file_url": "https://example.com/document.pdf"
}