Google Document AI vs TrOCR
TrOCR is cheaper per page; TrOCR is faster; only Google Document AI supports tables, forms, bounding boxes, confidence, multilingual.
Google Document AIgoogle/document-ai | TrOCRmicrosoft/trocr | |
|---|---|---|
| Type | OCR API | Open source |
| Price | 3 credits / page | 1 credit / page |
| Per 1,000 pages | $3.00 | $1.00 |
| Typical speed | 1.4 s / page | 1.2 s / page |
| Best for | Multilingual scans | Handwritten text lines |
| Inputs | PDF, images | images |
| Languages | 200+ languages | English |
| Max pages per request | 500 | 100 |
| Tables | ✓ Yes | No |
| Handwriting | ✓ Yes | ✓ Yes |
| Math | No | No |
| Bounding boxes | ✓ Yes | No |
| Confidence | ✓ Yes | No |
| Forms | ✓ Yes | No |
| Multilingual | ✓ Yes | No |
| On OCRRouter | Available | 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
Google Document AI
Google Cloud OCR with layout parsing and specialised processors.
Google Document AI detailsTrOCR
Transformer text recognition model. Reads single text lines, including handwriting.
TrOCR detailsUse one, fall back to the other
Request body
{
"model": "google/document-ai",
"fallbacks": ["microsoft/trocr"],
"file_url": "https://example.com/document.pdf"
}