{
 "kind": "api",
 "slug": "azure-document-intelligence",
 "path": "apis/azure-document-intelligence/",
 "name": "Azure AI Document Intelligence",
 "logo": "https://agentgid.com/media/avatars/azure.png",
 "maker": "Microsoft",
 "density": "full",
 "crumbs": [
  [
   "APIs",
   "apis/"
  ],
  [
   "Document parsing and OCR",
   "apis/documents/"
  ]
 ],
 "lead": "Data out of invoices and scans.",
 "chips": [
  {
   "label": "Document parsing and OCR",
   "path": "apis/documents/"
  }
 ],
 "primary": {
  "label": "Copy prompt for your agent",
  "copy": "Add Azure Document Intelligence on my server: read DOCUMENTINTELLIGENCE_ENDPOINT and DOCUMENTINTELLIGENCE_API_KEY from .env, pin azure-ai-documentintelligence 1.0.2 (API 2024-11-30), use prebuilt-invoice, prebuilt-receipt or prebuilt-layout, wait for the long-running result, pass a pages range to limit cost, and retry 429 with backoff."
 },
 "links": [
  {
   "label": "Website",
   "href": "https://azure.microsoft.com/en-us/products/ai-services/ai-document-intelligence"
  },
  {
   "label": "Pricing",
   "href": "https://azure.microsoft.com/en-us/pricing/details/ai-document-intelligence/"
  },
  {
   "label": "GitHub",
   "href": "https://github.com/Azure/azure-sdk-for-js"
  }
 ],
 "track": "Outages, price changes and new versions on your dashboard",
 "verdicts": [
  {
   "key": "price",
   "label": "Price",
   "value": "Free every month",
   "status": "yes",
   "sub": "Then pay as you go",
   "quote": null,
   "note": "Free tier: 0 - 500 pages free per month. As reported on the official pricing page, checked Oct 10, 2026.",
   "src": "https://azure.microsoft.com/en-us/pricing/details/ai-document-intelligence/"
  },
  {
   "key": "commercial",
   "label": "Commercial use",
   "value": "With conditions",
   "status": "cond",
   "sub": null,
   "quote": "you can use prebuilt models to add intelligent document processing to your apps and flows without having to train and build your own models.",
   "note": "Built for adding document processing to your apps; usage is billed under your Azure subscription and Microsoft's product terms.",
   "src": "https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/overview"
  },
  {
   "key": "key",
   "label": "Key & sign-up",
   "value": "API key, server only",
   "status": "info",
   "sub": "Env var DOCUMENTINTELLIGENCE_ENDPOINT and DOCUMENTINTELLIGENCE_API_KEY in the Python samples (DOCUMENT_INTELLIGENCE_ENDPOINT and DOCUMENT_INTELLIGENCE_API_KEY in the JavaScript samples); pass them to the client.",
   "quote": "the most common way to authenticate access to document intelligence is by using the customer's document intelligence api key.",
   "note": "Resource key in the Ocp-Apim-Subscription-Key header, or a Microsoft Entra ID (OAuth) token. The key gives access to the whole resource and its bill; the JavaScript client supports Node.js only.",
   "src": "https://learn.microsoft.com/en-us/legal/cognitive-services/document-intelligence/data-privacy-security"
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Docs for agents",
   "status": "info",
   "sub": "SDK",
   "quote": null,
   "note": " Our agent check: 3 of 6 (Nov 13, 2026).",
   "src": "https://azure.microsoft.com/en-us/products/ai-services/ai-document-intelligence"
  }
 ],
 "vfoot": "Checked against the maker's official pages, pricing on Oct 10, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Azure AI Document Intelligence does",
   "parts": [
    {
     "t": "prose",
     "text": "Azure Document Intelligence is a Microsoft online service that reads PDFs, photos and scans. It returns the text, tables and named fields, such as the vendor and total of an invoice or the name on an ID card. You pay per page, and the first 500 pages each month are free."
    },
    {
     "t": "list",
     "items": [
      "Azure AI Document Intelligence is one of 16 APIs in the Document parsing and OCR category on AgentGid.",
      "It is one of 14 that can be started for free.",
      "1 of them ship an official MCP server; Azure AI Document Intelligence does not.",
      "Its official SDK is the 1st most downloaded in the category (2.6M a week)."
     ],
     "muted": true
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Invoices into your bookkeeping",
       "text": "Pull the vendor, dates, totals and line items out of supplier invoices, so nobody types them in by hand.",
       "idea": false
      },
      {
       "title": "Receipts for an expense app",
       "text": "Users snap a photo of a receipt and your app fills in the shop, date, items and amount.",
       "idea": false
      },
      {
       "title": "PDFs into searchable text with tables",
       "text": "Turn reports and scanned PDFs into text with headings and tables kept, so your search or chatbot can use them.",
       "idea": false
      },
      {
       "title": "ID check at sign-up or check-in",
       "text": "Read the name, number and dates from a passport or ID card photo, for example at hotel check-in.",
       "idea": false
      },
      {
       "title": "Handwritten notes into typed text",
       "text": "Read handwritten notes or forms and get typed text back, for example before translating them.",
       "idea": false
      },
      {
       "title": "Sort a pile of mixed scans",
       "text": "Tell apart application forms, pay slips and bank statements in one uploaded bundle before reading each one.",
       "idea": false
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Azure AI Document Intelligence popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "2.3M",
       "l": "SDK downloads a week",
       "d": "+7.0% on the 4-week average",
       "up": true
      },
      {
       "n": "26",
       "l": "public agent repos use its SDK"
      },
      {
       "n": "2,301",
       "l": "GitHub stars, Azure/azure-sdk-for-js"
      }
     ]
    },
    {
     "t": "small",
     "text": "SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026."
    }
   ]
  },
  {
   "id": "pricing",
   "nav": "Pricing and limits",
   "h2": "Pricing",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Free tier",
       "v": "0 - 500 pages free per month"
      },
      {
       "l": "Cheapest plan",
       "v": "No monthly plan"
      },
      {
       "l": "Usage price",
       "v": "Per 1,000 pages: Read $1.50 (0-1M pages), $0.60 (1M+); Layout/prebuilt $10; custom extraction $30; classifier $3 (East US)"
      },
      {
       "l": "Plans",
       "v": "Billed per page, not per request. Pricing page loads prices dynamically; figures are from Microsoft's Azure Retail Prices API (prices.azure.com), East US, pay-as-you-go."
      }
     ]
    },
    {
     "t": "h3",
     "text": "What one action costs"
    },
    {
     "t": "table",
     "head": [
      "Action",
      "Price"
     ],
     "num": true,
     "rows": [
      [
       "1,000 pages read with the Read model (East US, first 1M pages a month)",
       "$1.5"
      ],
      [
       "1,000 pages read with the Read model above 1M pages a month (East US)",
       "$0.6"
      ],
      [
       "1,000 pages with a prebuilt model (layout, invoice, receipt, ID and others, East US)",
       "$10.0"
      ],
      [
       "1,000 pages with a custom extraction model (East US)",
       "$30.0"
      ],
      [
       "1,000 pages sorted by a custom classifier (East US)",
       "$3.0"
      ]
     ]
    },
    {
     "t": "small",
     "text": "As reported on the official pricing page, checked Oct 10, 2026. Prices change: confirm before you buy.",
     "link": "azure.microsoft.com/en-us/pricing/details/ai-document-intelligence",
     "href": "https://azure.microsoft.com/en-us/pricing/details/ai-document-intelligence/"
    }
   ]
  },
  {
   "id": "limits",
   "nav": null,
   "spy_as": "pricing",
   "h2": "Limits",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Free (F0)",
       "v": "1 analyze request per second, 4 MB per file, first 2 pages per document, 500 pages a month",
       "src": "https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/service-limits"
      },
      {
       "l": "Standard (S0)",
       "v": "15 analyze requests per second by default (can be raised), 500 MB and 2,000 pages per document",
       "src": "https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/service-limits"
      }
     ]
    },
    {
     "t": "small",
     "text": "From the official docs.",
     "link": "learn.microsoft.com/en-us/azure/ai-services/document-intelligence/service-limits",
     "href": "https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/service-limits"
    }
   ]
  },
  {
   "id": "access",
   "nav": "Access and terms",
   "h2": "Key and access",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "How it signs in",
       "v": "Resource key in the Ocp-Apim-Subscription-Key header, or a Microsoft Entra ID (OAuth) token."
      },
      {
       "l": "Environment variable",
       "v": "DOCUMENTINTELLIGENCE_ENDPOINT and DOCUMENTINTELLIGENCE_API_KEY in the Python samples (DOCUMENT_INTELLIGENCE_ENDPOINT and DOCUMENT_INTELLIGENCE_API_KEY in the JavaScript samples); pass them to the client.",
       "code": true
      },
      {
       "l": "Safe in browser code",
       "v": "No, keep it on your server",
       "status": "no"
      },
      {
       "l": "Card at sign-up",
       "v": "Not stated on the pages we read"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Steps only a person can do"
    },
    {
     "t": "list",
     "items": [
      "Create an Azure subscription and a Document Intelligence resource in the Azure portal; choose the F0 (free) or S0 tier and a region. Read DOCUMENTINTELLIGENCE_ENDPOINT and DOCUMENTINTELLIGENCE_API_KEY from .env (the person pastes them there).",
      "For more than 15 requests a second, open a support request for a higher limit. Keep retry with backoff in the code either way."
     ]
    }
   ]
  },
  {
   "id": "terms",
   "nav": null,
   "spy_as": "access",
   "h2": "Commercial use and your data",
   "parts": [
    {
     "t": "prose",
     "text": "The official client libraries are open source under the MIT license. The service itself is a paid Microsoft Azure product used under your Azure subscription, with a free tier of 500 pages a month."
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In a paid app",
       "v": "With conditions",
       "status": "cond",
       "sub": "Built for adding document processing to your apps; usage is billed under your Azure subscription and Microsoft's product terms.",
       "quote": "you can use prebuilt models to add intelligent document processing to your apps and flows without having to train and build your own models.",
       "src": "https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/overview"
      },
      {
       "l": "inside-app-bundle",
       "v": "Yes",
       "status": "yes",
       "sub": "The client libraries are MIT licensed; keep the license notice.",
       "quote": "\"license\":\"MIT\"",
       "src": "https://registry.npmjs.org/@azure-rest/ai-document-intelligence/1.1.0"
      },
      {
       "l": "Keeps your data",
       "v": "Inputs and results are kept 24 hours after the analysis, then deleted; you can delete them sooner.",
       "quote": "document intelligence automatically deletes both after this retention period.",
       "src": "https://learn.microsoft.com/en-us/legal/cognitive-services/document-intelligence/data-privacy-security"
      },
      {
       "l": "Where data is stored",
       "v": "Data is processed in the Azure region where you created the resource.",
       "quote": "the incoming data is processed in the same region where the document intelligence resource was created.",
       "src": "https://learn.microsoft.com/en-us/legal/cognitive-services/document-intelligence/data-privacy-security"
      }
     ]
    }
   ]
  },
  {
   "id": "errors",
   "nav": null,
   "spy_as": "access",
   "h2": "Errors to handle",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "400 InvalidRequest / InvalidContent",
       "v": "The file is corrupted or its format is not supported.",
       "sub": "Check the file type (PDF, JPEG, PNG, BMP, TIFF, HEIF, or DOCX/PPTX/XLSX for Read and Layout) and size; do not retry unchanged."
      },
      {
       "l": "403 Forbidden",
       "v": "Access is forbidden due to policy or other configuration, or authorization failed.",
       "sub": "Check the key or Entra ID role and the resource's network rules."
      },
      {
       "l": "404 ModelNotFound / OperationNotFound",
       "v": "The model or the analyze operation does not exist, or the result has expired.",
       "sub": "Check the model ID; analyze results are kept only 24 hours, so read them sooner."
      },
      {
       "l": "429",
       "v": "Too many requests per second for your resource.",
       "sub": "Retry with growing delays (for example 2, 5, 13, 34 seconds), ramp up load slowly, or ask for a higher limit."
      },
      {
       "l": "503 ServiceUnavailable",
       "v": "A transient error occurred.",
       "sub": "Retry with backoff."
      }
     ]
    }
   ]
  },
  {
   "id": "agent",
   "nav": "For agents",
   "h2": "Use it from an agent",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Our agent check",
       "v": "3 of 6: llms.txt no, OpenAPI no, SDK yes, MCP no, status page yes, AI assistants allowed yes",
       "sub": "Checked Nov 13, 2026."
      },
      {
       "l": "MCP server",
       "v": "None found",
       "sub": null
      },
      {
       "l": "npm",
       "v": "npm install @azure-rest/ai-document-intelligence",
       "code": true
      },
      {
       "l": "PyPI",
       "v": "pip install azure-ai-documentintelligence",
       "code": true
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Azure AI Document Intelligence",
       "me": true,
       "facts": [
        "from $0.6",
        "Free tier"
       ]
      },
      {
       "name": "LlamaCloud (LlamaParse)",
       "why": "Pick LlamaCloud (LlamaParse) to turn messy documents into text for AI apps; our catalog lists $1.25 per 1,000 pages as its comparable price on 2026-11-10.",
       "path": "apis/llamacloud/",
       "facts": [
        "$1.25 / 1k requests",
        "Free tier"
       ]
      },
      {
       "name": "Reducto",
       "why": "Pick Reducto to parse, extract and split 30+ file types into structured data; our catalog lists $10 per 1,000 pages on 2026-11-10.",
       "path": "apis/reducto/",
       "facts": [
        "$10 / 1k requests",
        "Free tier"
       ]
      },
      {
       "name": "Mindee API",
       "why": "Pick Mindee for a document-reading service focused on invoices, receipts and IDs; our catalog lists $50 per 1,000 pages on 2026-11-10.",
       "path": "apis/mindee-api/",
       "facts": [
        "$50 / 1k requests",
        "No free tier"
       ]
      }
     ],
     "more": "All document parsing and ocr APIs",
     "more_path": "apis/documents/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "Add Azure Document Intelligence on my server: read DOCUMENTINTELLIGENCE_ENDPOINT and DOCUMENTINTELLIGENCE_API_KEY from .env, pin azure-ai-documentintelligence 1.0.2 (API 2024-11-30), use prebuilt-invoice, prebuilt-receipt or prebuilt-layout, wait for the long-running result, pass a pages range to limit cost, and retry 429 with backoff."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "In the Azure portal, create a Document Intelligence resource (free F0 or standard S0) and copy its endpoint and key.",
       "code": null,
       "src": "https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/documentintelligence/azure-ai-documentintelligence/README.md"
      },
      {
       "text": "Install the Python package (or @azure-rest/ai-document-intelligence for Node.js).",
       "code": "python -m pip install azure-ai-documentintelligence",
       "src": "https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/documentintelligence/azure-ai-documentintelligence/README.md"
      },
      {
       "text": "Create the client with the endpoint and key, then send a file to a model such as prebuilt-invoice or prebuilt-layout.",
       "code": "from azure.core.credentials import AzureKeyCredential\nfrom azure.ai.documentintelligence import DocumentIntelligenceClient\n\nendpoint = \"https://<my-custom-subdomain>.cognitiveservices.azure.com/\"\ncredential = AzureKeyCredential(\"<api_key>\")\ndocument_intelligence_client = DocumentIntelligenceClient(endpoint, credential)\n",
       "src": "https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/documentintelligence/azure-ai-documentintelligence/README.md"
      }
     ]
    },
    {
     "t": "h3",
     "text": "First request"
    },
    {
     "t": "tabs",
     "label": "First request",
     "items": [
      {
       "tab": "Request",
       "code": "POST https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/prebuilt-layout:analyze?_overload=analyzeDocument&api-version=2024-11-30&pages=1-2,4&locale=en-US&stringIndexType=textElements\n\n{\n  \"base64Source\": \"e2Jhc2U2NEVuY29kZWRQZGZ9\"\n}\n",
       "intro": "Verbatim sample from the REST reference; send the key in the Ocp-Apim-Subscription-Key header. The result is read with GET on the Operation-Location address. We sent no request."
      },
      {
       "tab": "Response",
       "code": "Status code: 202\nOperation-Location: https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/prebuilt-layout/analyzeResults/3b31320d-8bab-4f88-b19c-2322a7f11034?api-version=2024-11-30\n"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "Installing azure-ai-formrecognizer or @azure/ai-form-recognizer from old tutorials",
       "fix": "Use azure-ai-documentintelligence (Python) or @azure-rest/ai-document-intelligence (JavaScript) for API 2024-11-30",
       "why": "The old packages target older API versions; v3.0 retires on March 30, 2029 and v2.1 on September 15, 2027."
      },
      {
       "dont": "Reading the result right after the POST",
       "fix": "Poll the Operation-Location address (or use the client's poller) until the job is done, no more than once every 2 seconds",
       "why": "Analyze is a long-running job that first answers 202 Accepted."
      },
      {
       "dont": "Sending a 300-page PDF when you need only the first page",
       "fix": "Pass pages=\"1\" (or a range) in the analyze request",
       "why": "All pages are billed unless you set a range."
      },
      {
       "dont": "Mixing up DOCUMENTINTELLIGENCE_ENDPOINT (Python samples) and DOCUMENT_INTELLIGENCE_ENDPOINT (JavaScript samples)",
       "fix": "Pick one name and pass the endpoint and key to the client yourself",
       "why": "The two official READMEs use different variable names, and the clients take them as arguments."
      },
      {
       "dont": "Calling the service from browser code with the resource key",
       "fix": "Call it from your server; prefer Microsoft Entra ID (DefaultAzureCredential) over keys where possible",
       "why": "The key gives full access to the resource and its bill; the JavaScript client lists only Node.js as a supported environment."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Is there a free tier?",
       "a": "Yes. The F0 tier gives 500 free pages a month, but it reads only the first two pages of each document.",
       "evidence": {
        "url": "https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/service-limits",
        "quote": "document intelligence offers a free tier (f0) where you can test all the document intelligence features."
       }
      },
      {
       "q": "How are Word, Excel and PowerPoint files counted?",
       "a": "Each Excel sheet or PowerPoint slide is one page; Word and HTML files count one page per 3,000 characters.",
       "evidence": {
        "url": "https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/service-limits",
        "quote": "when the service analyzes microsoft word and html files that the read and layout models support, it counts pages in blocks of 3,000 characters each."
       }
      },
      {
       "q": "Does training my own model cost money?",
       "a": "Training a custom model is free; you pay when the model reads documents. Neural model training beyond the free hours is billed by the hour.",
       "evidence": {
        "url": "https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/service-limits",
        "quote": "training a custom model is always free with document intelligence."
       }
      },
      {
       "q": "Where is my data processed?",
       "a": "In the Azure region where you created the resource, and it is deleted 24 hours after the analysis.",
       "evidence": {
        "url": "https://learn.microsoft.com/en-us/legal/cognitive-services/document-intelligence/data-privacy-security",
        "quote": "the incoming data is processed in the same region where the document intelligence resource was created."
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Maker",
   "Microsoft"
  ],
  [
   "Category",
   "Document parsing and OCR"
  ],
  [
   "Price",
   "from $0.6"
  ],
  [
   "Official SDK",
   "npm @azure-rest/ai-document-intelligence, PyPI azure-ai-documentintelligence"
  ],
  [
   "Latest SDK",
   "1.0.2 on npm"
  ],
  [
   "Agent check",
   "3 of 6"
  ],
  [
   "Pricing checked",
   "Oct 10, 2026"
  ]
 ],
 "good": [
  "You pay per page, and the service reads every page unless you pass a page range.",
  "The free tier reads only the first two pages of each document, and files up to 4 MB.",
  "A standard resource accepts 15 analyze requests a second by default; above that it answers with error 429."
 ],
 "checked_line": "Read by AgentGid from 13 official pages, card checked Nov 10, 2026; usage numbers update daily."
}