OCRRouterGet API key

Marker vs Google Document AI

Google Document AI is cheaper per page; Google Document AI is faster; only Marker supports math; only Google Document AI supports forms, handwriting, confidence.

Markerdatalab/markerGoogle Document AIgoogle/document-ai
TypeOCR APIOCR API
Price14 credits / page3 credits / page
Per 1,000 pages$14.00$3.00
Typical speed2.5 s / page1.4 s / page
Best forBooks and research papersMultilingual scans
InputsPDF, images, DOCXPDF, images
Languages90+ languages200+ languages
Max pages per request1,000500
Tables✓ Yes✓ Yes
HandwritingNo✓ Yes
Math✓ YesNo
Bounding boxes✓ Yes✓ Yes
ConfidenceNo✓ Yes
FormsNo✓ Yes
Multilingual✓ Yes✓ 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

Marker

Hosted version of the open-source Marker and Surya models. Strong on books and papers.

Marker 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": "datalab/marker",
  "fallbacks": ["google/document-ai"],
  "file_url": "https://example.com/document.pdf"
}

Questions

More comparisons