OCRRouterGet API key

Mathpix Convert vs Google Document AI

Google Document AI is cheaper per page; Google Document AI is faster; only Mathpix Convert supports math; only Google Document AI supports forms, multilingual.

Mathpix Convertmathpix/convertGoogle Document AIgoogle/document-ai
TypeOCR APIOCR API
Price7 credits / page3 credits / page
Per 1,000 pages$7.00$3.00
Typical speed1.5 s / page1.4 s / page
Best forMath and scientific papersMultilingual scans
InputsPDF, imagesPDF, images
Languages30+ languages200+ languages
Max pages per request500500
Tables✓ Yes✓ Yes
Handwriting✓ Yes✓ Yes
Math✓ YesNo
Bounding boxes✓ Yes✓ Yes
Confidence✓ Yes✓ Yes
FormsNo✓ Yes
MultilingualNo✓ Yes
On OCRRouterComing soonAvailable

Prices are what you pay on OCRRouter. Speed is the provider's typical figure, not a benchmark we ran.

What each one is

Mathpix Convert

Specialist for math, science papers and handwritten formulas. Outputs LaTeX.

Mathpix Convert details

Google Document AI

Google Cloud OCR with layout parsing and specialised processors.

Google Document AI details

Use one, fall back to the other

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

Questions

More comparisons

Mathpix Convert alternativesGoogle Document AI alternatives