OCRRouter

Azure Document Intelligence vs Donut

Pick Azure Document Intelligence if you want a managed API that reads invoices, receipts, IDs, W-2s and contracts today, with per-page pricing and an on-prem container option. Pick Donut if you have a narrow, fixed-layout document type, labelled data to fine-tune on, and want an MIT-licensed model you run yourself. The main split is prebuilt and paid versus free but untrained.

Azure Document Intelligenceazure/document-intelligenceDonutnaver/donut
TypeOCR APIOpen source
Price60 credits / page1 credit / page
Per 1,000 pages$60.00$1.00
Typical speed1.5 s / page1.0 s / page
Best forEnterprise forms and IDsReceipt and form fields after fine-tuning
InputsPDF, imagesimages
Languages300+ languagesEnglish, Chinese, Japanese, Korean
Max pages per request2,000100
Tables✓ YesNo
Handwriting✓ YesNo
MathNoNo
Bounding boxes✓ YesNo
Confidence✓ YesNo
Forms✓ Yes✓ Yes
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 ships prebuilt models for invoices, receipts, IDs, W-2 and contracts, so you can extract fields without training anything.
  • Read OCR costs $1.50 per 1,000 pages and drops to $0.60 above 1M pages, with 500 free pages per month.
  • Disconnected containers let you run it on-prem if you are already an Azure shop with data residency needs.

Choose Donut if

  • It is MIT licensed and free to use, so you only pay for your own compute.
  • It skips the separate OCR step and maps the document image straight to structured JSON, which suits receipt and form field extraction after fine-tuning.
  • A practitioner on Hacker News reports that about 200 documents of fine-tuning can reach human-level accuracy on narrow data.

Key differences

Azure Document IntelligenceDonut
LicenceProprietaryMIT
How you run itManaged Azure service, or containers including disconnected on-premSelf-host only, available in Hugging Face Transformers
PriceRead $1.50 per 1,000 pages; Layout and prebuilt $10 per 1,000; custom extraction $30 per 1,000Free, you pay for compute
Ready out of the boxYes: Read, Layout and prebuilt models for invoices, receipts, IDs, W-2 and contractsNo: the base checkpoint is pretrain-only and must be fine-tuned first
Output formatsJSON, Markdown, plain text, bounding boxes, searchable PDFJSON, plain text
Benchmark82.7% on RD-TableBench table accuracy (independent)Not published
Known failureCosts multiply when models are stacked: Prebuilt plus Layout plus high-res add-on is $26 per 1,000 pagesMisses tiny text in large images because of input resolution limits; a Hacker News user found results on personal documents did not match the promised scores

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

Donut

OCR-free document understanding model. Fine-tuned for receipts, forms and document Q&A.

Donut 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": ["naver/donut"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Azure Document Intelligence alternativesDonut alternativesBest OCR models in 2026