OCRRouterGet API key

Google Document AI vs GOT-OCR 2.0

GOT-OCR 2.0 is cheaper per page; Google Document AI is faster; only Google Document AI supports forms, handwriting, confidence, multilingual; only GOT-OCR 2.0 supports math.

Google Document AIgoogle/document-aiGOT-OCR 2.0stepfun/got-ocr-2
TypeOCR APIOpen source
Price3 credits / page1 credit / page
Per 1,000 pages$3.00$1.00
Typical speed1.4 s / page1.5 s / page
Best forMultilingual scansFormatted text, formulas and charts
InputsPDF, imagesimages
Languages200+ languagesChinese, English
Max pages per request500100
Tables✓ Yes✓ Yes
Handwriting✓ YesNo
MathNo✓ Yes
Bounding boxes✓ Yes✓ Yes
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

GOT-OCR 2.0

Unified OCR model that reads plain text, tables, formulas, sheet music and charts.

GOT-OCR 2.0 details

Use one, fall back to the other

Request body
{
  "model": "google/document-ai",
  "fallbacks": ["stepfun/got-ocr-2"],
  "file_url": "https://example.com/document.pdf"
}

Questions

More comparisons

Google Document AI alternativesGOT-OCR 2.0 alternatives