OCRRouter

Google Document AI vs Florence-2

Pick Google Document AI for bulk OCR of scanned business documents on Google Cloud, or when you need RAG chunks from Layout Parser. Pick Florence-2 for short English text in images with bounding boxes, run on your own hardware under an MIT licence. Neither one is built for complex tables: Document AI scored 64.6% on RD-TableBench, and Florence-2 returns only text and boxes.

Google Document AIgoogle/document-aiFlorence-2microsoft/florence-2
TypeOCR APIOpen source
Price10 credits / page1 credit / page
Per 1,000 pages$10.00$1.00
Typical speed1.4 s / page0.8 s / page
Best forMultilingual scansLightweight OCR with boxes
InputsPDF, imagesimages
Languages200+ languagesEnglish
Max pages per request500500
Tables✓ YesNo
Handwriting✓ YesNo
MathNoNo
Bounding boxes✓ Yes✓ Yes
Confidence✓ YesNo
Forms✓ YesNo
Multilingual✓ YesNo
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 and drops to $0.60 above 5M pages a month, with the first 1,000 free.
  • Layout Parser returns chunks for RAG at $10 per 1,000 pages, so you do not have to write your own chunking step.
  • Batch requests accept up to 500 pages, and output includes JSON, plain text, bounding boxes and chunks.

Choose Florence-2 if

  • It is MIT licensed and free to self-host, so you pay only for compute.
  • At 0.23B (base) or 0.77B (large) parameters, it is small enough for lightweight edge OCR in English.
  • OCR_WITH_REGION gives quadrilateral boxes per text line, and the same model also handles captioning, detection and grounding.

Key differences

Google Document AIFlorence-2
How you run itHosted API on Google CloudSelf-hosted via Transformers
LicenceProprietaryMIT
PriceEnterprise Document OCR $1.50 per 1,000 pages ($0.60 above 5M/month); Layout Parser $10; Form Parser $30Free; you pay for compute
Output formatsJSON, plain text, bounding boxes, chunksPlain text and bounding boxes only; no Markdown, tables or LaTeX
Page and size limitsOnline requests up to 15 pages (30 in imageless mode); batch up to 500 pages; Form Parser batch up to 100 pagesNot published (model size: 0.23B base, 0.77B large)
Tables64.6% on RD-TableBench, behind Azure and TextractNo table output
Language and handwritingNot publishedSpelling errors and missing spaces on cursive handwriting and French text; Chinese output mostly wrong because the vocabulary lacks CJK characters

Sources

What each one is

Google Document AI

Google Cloud OCR with layout parsing and specialised processors.

Google Document AI details

Florence-2

Small Microsoft vision model (0.23B and 0.77B) with OCR and OCR-with-regions tasks that return text with boxes.

Florence-2 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": ["microsoft/florence-2"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Google Document AI alternativesFlorence-2 alternativesBest OCR models in 2026