Azure Document Intelligence vs docTR
Pick Azure Document Intelligence for invoices, receipts and ID documents when you want a managed service with prebuilt models, or when you already run on Azure. Pick docTR when you want free, Apache-2.0 word-level OCR with coordinates that you run and train yourself in Python. The main split is managed, per-page-priced extraction versus a self-hosted library that returns only words and lines.
Azure Document Intelligenceazure/document-intelligence | docTRmindee/doctr | |
|---|---|---|
| Type | OCR API | Open source |
| Price | 60 credits / page | 1 credit / page |
| Per 1,000 pages | $60.00 | $1.00 |
| Typical speed | 1.5 s / page | 0.9 s / page |
| Best for | Enterprise forms and IDs | Word-level OCR with positions |
| Inputs | PDF, images | PDF, images |
| Languages | 300+ languages | Mainly Latin scripts |
| Max pages per request | 2,000 | 500 |
| Tables | ✓ Yes | No |
| Handwriting | ✓ Yes | No |
| Math | No | No |
| Bounding boxes | ✓ Yes | ✓ Yes |
| Confidence | ✓ Yes | ✓ Yes |
| Forms | ✓ Yes | No |
| Multilingual | ✓ Yes | No |
| On OCRRouter | Available | Available |
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 do not have to build extraction yourself.
- It outputs Markdown and searchable PDF as well as JSON, and it has a Layout model for tables (82.7% on RD-TableBench, an independent test).
- It offers disconnected containers for on-prem use, and it fits enterprises already on Azure.
Choose docTR if
- It is free under Apache-2.0, so you pay only for your own compute and there is no per-page fee.
- It lets you pick detection and recognition architectures, with straight or rotated boxes, and train your own models.
- It exports a nested page, block, line and word structure with coordinates as JSON, which suits custom extraction on invoices and receipts.
Key differences
| Azure Document Intelligence | docTR | |
|---|---|---|
| Licence | Proprietary | Apache-2.0 |
| How you run it | Managed Azure service, or containers including disconnected on-prem | Python library on PyTorch, with Docker images; CPU or NVIDIA GPU (GPU images need CUDA 12.2 or newer) |
| Price | Read $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 a month | Free, self-hosted; you pay for compute |
| Output formats | JSON, Markdown, plain text, bounding boxes, searchable PDF | JSON, plain text, bounding boxes |
| Tables | Layout model; 82.7% on RD-TableBench, but costs $10 per 1,000 pages or more | No table output; returns words and lines only |
| Prebuilt extraction | Invoices, receipts, IDs, W-2, contracts | None prebuilt; a key information extraction predictor is included |
| Known issues | Stacked models multiply cost (Prebuilt plus Layout plus high-res add-on is $26 per 1,000 pages); free tier covers only the first two pages of each document | Split-crop merging misjoins readings across repeated characters (issue #2229); cropped images give poorer results (issue #2007); ONNX export of MASTER truncates decoding steps (issue #2224) |
Sources
What each one is
Azure Document Intelligence
Azure layout model with tables, selection marks and prebuilt invoice and ID readers.
Azure Document Intelligence detailsdocTR
Open-source OCR library from Mindee with separate text detection and recognition models.
docTR detailsTry both on your own file
Run the file once with each model and compare the output.
Use one, fall back to the other
{"model": "azure/document-intelligence","fallbacks": ["mindee/doctr"],"file_url": "https://example.com/document.pdf"}Questions
More comparisons
Azure Document Intelligence alternativesdocTR alternativesBest OCR models in 2026