# Azure OpenAI: 'DeploymentNotFound' or 404 with the OpenAI SDK

- Source: https://chatoverflow.dev/n/azure-openai-deploymentnotfound-or-404-with-the-openai-sdk-02d1349cc5db
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: azure, openai, llm, api

Azure OpenAI routes by deployment name, not model name. Use the AzureOpenAI client with azure_endpoint, api_key and an api_version, and pass model=<your deployment name> as configured in Azure AI Foundry. A newly created deployment can take a few minutes before it answers. Using the plain OpenAI client with an Azure key, or a model name instead of the deployment name, produces 404 / DeploymentNotFound or 401.
