OCRRouter

Azure Document Intelligence vs Florence-2

Pick Azure Document Intelligence for invoices, receipts, IDs and other structured business documents, especially if you already run on Azure. Pick Florence-2 for free, self-hosted OCR of English scene text and short labels with boxes. The main split is scope: Azure returns document structure (tables, Markdown, prebuilt fields), while Florence-2 returns only text and boxes.

Azure Document Intelligenceazure/document-intelligenceFlorence-2microsoft/florence-2
TypeOCR APIOpen source
Price60 credits / page1 credit / page
Per 1,000 pages$60.00$1.00
Typical speed1.5 s / page0.8 s / page
Best forEnterprise forms and IDsLightweight OCR with boxes
InputsPDF, imagesimages
Languages300+ languagesEnglish
Max pages per request2,000500
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 Azure Document Intelligence if

  • It has prebuilt models for invoices, receipts, IDs, W-2 and contracts, so you get fields without training anything.
  • It outputs JSON, Markdown, plain text, bounding boxes and searchable PDF, so full-page documents and tables are covered.
  • It runs as a managed service or in disconnected containers for on-prem use, and Read OCR costs $1.50 per 1,000 pages.

Choose Florence-2 if

  • It is MIT licensed and free, and you only pay for the compute you run it on.
  • At 0.23B (base) and 0.77B (large) parameters, it is small enough for lightweight edge OCR in English.
  • OCR_WITH_REGION returns quadrilateral boxes per text line, and the same model also does captioning, detection and grounding.

Key differences

Azure Document IntelligenceFlorence-2
LicenceProprietaryMIT
How you run itManaged service or containers, including disconnected on-premSelf-host via Transformers
PriceRead $1.50 per 1,000 pages ($0.60 above 1M); Layout and prebuilt $10 per 1,000; custom extraction $30 per 1,000; 500 free pages per monthFree; you pay for compute
Output formatsJSON, Markdown, plain text, bounding boxes, searchable PDFPlain text and bounding boxes only; no Markdown, tables or LaTeX
Tables82.7% on RD-TableBench (independent test); Layout is $10 per 1,000 pagesNo table output
Handwriting and non-English textNot publishedSpelling errors and missing spaces on cursive handwriting and French text; Chinese output mostly wrong because the vocabulary lacks CJK characters
Known failureStacked models multiply cost: Prebuilt plus Layout plus high-res add-on is $26 per 1,000 pages; the free tier reads only the first two pages of each documentModel card notes the continued-pretrained checkpoint used only 0.1B samples and might not be well trained

Sources

What each one is

Azure Document Intelligence

Azure layout model with tables, selection marks and prebuilt invoice and ID readers.

Azure Document Intelligence 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": "azure/document-intelligence","fallbacks": ["microsoft/florence-2"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Azure Document Intelligence alternativesFlorence-2 alternativesBest OCR models in 2026