OCRRouter

Mathpix Convert vs Google Document AI

Pick Mathpix Convert for math-heavy papers and textbooks that you need as LaTeX, Markdown or DOCX. Pick Google Document AI for bulk OCR on Google Cloud, or for RAG chunking with Layout Parser. The main split is output: Mathpix returns editable STEM documents, while Document AI returns JSON, plain text, bounding boxes and chunks.

Mathpix Convertmathpix/convertGoogle Document AIgoogle/document-ai
TypeOCR APIOCR API
Price7 credits / page10 credits / page
Per 1,000 pages$7.00$10.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 OCRRouterAvailableAvailable

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

Which to choose

Choose Mathpix Convert if

  • Your documents are math papers, textbooks or pages with chemistry, and you need LaTeX or Mathpix Markdown out.
  • You want to export whole PDFs straight to DOCX or LaTeX.
  • You need to read handwritten equations.

Choose Google Document AI if

  • You run OCR on Google Cloud in bulk at $1.50 per 1,000 pages, or $0.60 above 5M pages a month.
  • You build a RAG pipeline and want Layout Parser to chunk documents for $10 per 1,000 pages.
  • You send large batches, since batch requests take up to 500 pages.

Key differences

Mathpix ConvertGoogle Document AI
Built forSTEM content: math, tables and chemistry.General document processing: OCR, Layout Parser, Form Parser and custom extractors.
Output formatsLaTeX, Markdown, DOCX, HTML and JSON.JSON, plain text, bounding boxes and chunks.
PricePDF at $0.005 per page (0-1M), $0.0035 above 1M. Images at $0.002 each.Enterprise OCR at $1.50 per 1,000 pages, $0.60 above 5M a month. Layout Parser $10 and Form Parser $30 per 1,000 pages.
Upfront costOne-time $19.99 non-refundable API key activation fee.First 1,000 pages free for Enterprise Document OCR.
Request limitsImages with more than 12 text rows may be billed at the PDF page rate.Online requests up to 15 pages (30 in imageless mode). Batch up to 500 pages. Form Parser batch up to 100 pages.
BenchmarkNo published accuracy benchmark on general OCR leaderboards.64.6% on Reducto's RD-TableBench, behind Azure and Textract.
Licence and deploymentProprietary, hosted API.Proprietary, hosted API.

Sources

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

Try both on your own file

Run the file once with each model and compare the output.

PDF, PNG, JPG, WebP, HEIC. Up to 20 MB each, 10 files.No file?

Use one, fall back to the other

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

Questions

More comparisons

Mathpix Convert alternativesGoogle Document AI alternativesBest OCR models in 2026