OCRRouter

Google Document AI vs Unlimited OCR

Pick Google Document AI if you run on Google Cloud and need a managed API for bulk OCR at $1.50 per 1,000 pages, or Layout Parser chunking for RAG. Pick Unlimited OCR if you want an MIT-licensed model you host yourself to parse long reports and books, 40+ pages in a single pass, into Markdown with bounding boxes. The main split is hosted per-page pricing with request limits versus free weights that need an NVIDIA GPU and can loop or hallucinate.

Google Document AIgoogle/document-aiUnlimited OCRbaidu/unlimited-ocr
TypeOCR APIOpen source
Price10 credits / page2 credits / page
Per 1,000 pages$10.00$2.00
Typical speed1.4 s / page1.2 s / page
Best forMultilingual scansBooks and very long documents
InputsPDF, imagesPDF, images
Languages200+ languages30+ languages
Max pages per request5001,000
Tables✓ Yes✓ Yes
Handwriting✓ YesNo
MathNo✓ Yes
Bounding boxes✓ Yes✓ Yes
Confidence✓ YesNo
Forms✓ YesNo
Multilingual✓ Yes✓ 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 Google Document AI if

  • Enterprise Document OCR costs $1.50 per 1,000 pages, drops to $0.60 above 5M pages a month, and the first 1,000 pages are free.
  • Layout Parser returns chunks for RAG at $10 per 1,000 pages, so you do not build the chunking step yourself.
  • It is a hosted API, so you need no GPU, and batch requests take up to 500 pages.

Choose Unlimited OCR if

  • The MIT licence allows commercial use with no copyleft, and the software is free if you self-host (you pay only for compute).
  • It parses 40+ pages in one forward pass with roughly constant memory, while Document AI online requests stop at 15 pages (30 in imageless mode).
  • It outputs Markdown with block types and bounding boxes, which suits layout-aware extraction and bulk PDF to text for RAG.

Key differences

Google Document AIUnlimited OCR
How you run itHosted API on Google CloudSelf-host with vLLM, SGLang or transformers; Baidu Cloud also offers a hosted endpoint
LicenceProprietaryMIT
Price$1.50 per 1,000 pages for Enterprise OCR, $0.60 above 5M a month; Layout Parser $10; Form Parser $30Free to self-host, you pay for compute; hosted endpoint pricing not published
Pages per requestOnline 15 pages (30 imageless); batch up to 500; Form Parser batch 10040+ pages in a single pass, context capped at 32,768 tokens, multi-page input only in base mode
Output formatsJSON, plain text, bounding boxes, chunksMarkdown, plain text, bounding boxes
Table accuracy64.6% on RD-TableBench, behind Azure and TextractNot published
Known failuresWeak on complex tables; online limits make long PDFs awkward in one synchronous callText looping (issue #55), hallucinated text (issue #58), bbox coordinate loops under SGLang on GB10 GPUs (issue #114), mostly loses bold and italic styling, 12 GB GPUs run out of memory with version 2 (issue #116)

Sources

What each one is

Google Document AI

Google Cloud OCR with layout parsing and specialised processors.

Google Document AI details

Unlimited OCR

Open-source model from Baidu that reads hundreds of pages in one pass with flat memory use.

Unlimited OCR 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": "google/document-ai","fallbacks": ["baidu/unlimited-ocr"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Google Document AI alternativesUnlimited OCR alternativesBest OCR models in 2026