OCRRouterGet API key

Google Document AI vs SmolDocling

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

Google Document AIgoogle/document-aiSmolDoclinghuggingface/smoldocling
TypeOCR APIOpen source
Price3 credits / page1 credit / page
Per 1,000 pages$3.00$1.00
Typical speed1.4 s / page1.0 s / page
Best forMultilingual scansVery cheap page conversion
InputsPDF, imagesPDF, images
Languages200+ languagesMainly English
Max pages per request500500
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

SmolDocling

Tiny 256M vision model from Hugging Face and IBM that outputs DocTags. Predecessor of Granite Docling.

SmolDocling details

Use one, fall back to the other

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

Questions

More comparisons

Google Document AI alternativesSmolDocling alternatives