OCRRouterGet API key

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-aiTrOCRmicrosoft/trocr
TypeOCR APIOpen source
Price3 credits / page1 credit / page
Per 1,000 pages$3.00$1.00
Typical speed1.4 s / page1.2 s / page
Best forMultilingual scansHandwritten text lines
InputsPDF, imagesimages
Languages200+ languagesEnglish
Max pages per request500100
Tables✓ YesNo
Handwriting✓ Yes✓ Yes
MathNoNo
Bounding boxes✓ YesNo
Confidence✓ YesNo
Forms✓ YesNo
Multilingual✓ YesNo
On OCRRouterAvailableComing 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 details

TrOCR

Transformer text recognition model. Reads single text lines, including handwriting.

TrOCR details

Use one, fall back to the other

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

Questions

More comparisons

Google Document AI alternativesTrOCR alternatives