
Both routes give you OpenAI's models. The difference is who runs them and on what terms. Azure OpenAI, now part of Microsoft Foundry, runs the models inside Microsoft's cloud, under your Azure subscription, identity, network and region settings, and Microsoft says your prompts are not available to OpenAI. The OpenAI API is quicker to start and needs no Azure account. Choose Azure when your systems or your data rules already live in Azure; choose the OpenAI API when they do not and nothing requires it.
Key takeaways
- Same model family, different provider: on Azure, Microsoft hosts the models and they "do NOT interact with any services operated by" OpenAI, as of November 2026.
- Azure makes you choose where prompts are processed (any Azure region, a US, EU or Asia Pacific data zone, or one Azure geography). OpenAI offers per-project data residency through its sales team, with conditions.
- Neither route trains on your business data by default. Both run abuse monitoring, and on both, changing it needs the provider's approval. On Azure, that option is being withdrawn for models released from 1 November 2026.
- New models reach Azure's Global Standard deployments first. Region-only deployments come last, with no guaranteed date.
- Built-in filters catch harmful content, not business mistakes. On our Azure build we still wrote our own guard for health claims, prices and links.
Is Azure OpenAI the same as the OpenAI API?
The models are OpenAI's, but the service around them is not the same. Microsoft now groups them under "Foundry Models sold by Azure", which "includes Azure OpenAI models", inside Microsoft Foundry. Microsoft's data page says it hosts these models "in Microsoft's Azure environment" and that your prompts and completions are "NOT available to OpenAI" (Microsoft Learn, data, privacy and security).
On Azure you create a resource, deploy a model to it and call the deployment by its name. Since August 2025, the v1 API lets you use OpenAI's own client libraries "with minimal code changes to swap between OpenAI and Azure OpenAI" when you sign in with API keys (Microsoft Learn, v1 API). Moving code between the two is no longer the main cost. The setup around the code is.
How do the two compare?
All facts as of November 2026, from the vendor pages linked in the rows and in Sources.
| Azure OpenAI (Microsoft Foundry) | OpenAI API | |
|---|---|---|
| Who runs the model | Microsoft, in Azure | OpenAI |
| Account | Azure subscription, a Foundry resource and a model deployment | An OpenAI organization with projects |
| Sign-in for your app | API key or Microsoft Entra ID, including managed identities (Learn) | API keys per project; optional IP allowlist and mutual TLS (IP allowlist, mTLS) |
| Private network | Public access can be disabled so "private endpoint connections will be the exclusive way" in (Learn) | Not described on the API documentation pages we read |
| Where prompts are processed | Chosen per deployment: global, data zone or Azure geography | Per-project data residency through sales; regional processing in some regions only |
| Training on your data | No, per Microsoft | Not by default, per OpenAI |
| Safety filters | Default content filters on every deployment; turning them off for completions needs approval | A free moderation endpoint you call yourself (OpenAI moderation) |
| Pricing | Pay per token, reserved capacity (PTUs) or Batch | Per 1M tokens, with a cheaper Batch tier and dearer Fast and Ultrafast tiers |
| Uptime commitment | "At least 99.9% of the time" (Azure product page) | Not stated on the API documentation pages we read |
Where is your data processed and kept?
On Azure, you pick it per deployment. Microsoft's deployment-type page says Global types "may be processed in any Azure region", Data Zone types stay within "US, EU, or Asia Pacific", and Standard and Regional Provisioned types stay within your chosen Azure geography. In every case, "data stored at rest remains in the designated Azure geography" (Microsoft Learn, deployment types). Microsoft adds that it can add regions to a data zone "without prior notice".
On the OpenAI API, it is a project setting you request. OpenAI's data residency page lists regions including the United States, Europe, Canada, India, the UK, Australia, Japan and others. Eligibility goes through OpenAI's sales team. Some regions process requests locally. Others, Canada and the UK among them, offer regional storage only. Models released on or after 5 March 2026 cost 10% more when used with data residency (OpenAI, data residency).
If you serve customers in Canada or India, read our guide to privacy for AI features in Canada and India before choosing. This is general information, not legal advice.
Who can see your prompts, and for how long?
Azure. Prompts and completions are not used to train the models. For abuse monitoring, flagged content is reviewed by automated systems first and by "authorized Microsoft employees" only when needed. For deployments in the European Economic Area, those reviewers are located in the EEA. Content kept for human review is stored in the geography of your resource. Customers who meet extra "Limited Access eligibility criteria" can apply to modify abuse monitoring, for example to turn off this storage and human review. Microsoft has announced that for models made available on or after 1 November 2026, this option will no longer be offered, from a date still to be announced with at least 30 days' notice; existing approvals for older models stay (Microsoft Learn, abuse monitoring). If your plan depends on switching off human review, check this before you choose a model. The pages we read do not give a retention period for this store. Features that keep state, such as the Responses API, store message history in your resource, in its geography, and you can delete it at any time.
OpenAI. API data is not used for training unless you opt in. Abuse-monitoring logs are kept "for up to 30 days" unless the law requires longer, and the Responses API keeps application state for 30 days by default. Zero Data Retention and Modified Abuse Monitoring "are subject to prior approval by OpenAI", and several endpoints, including files, vector stores, batches and assistants, are not eligible for Zero Data Retention (OpenAI, data controls).
Will you get new models at the same time?
On Azure, new models arrive through deployment types in a fixed order: Global Standard "at launch", then Global Provisioned, then Data Zone, and Standard and regional Provisioned "last". Microsoft says models "aren't guaranteed to be available" on the other types at all (Microsoft Learn, model lifecycle).
So if your data rules require a single Azure geography, plan to wait for new models, possibly a long time. If a data zone is enough, you are earlier in that order. Azure also sets a standard 18-month lifecycle for generally available models, with at least 60 days' notice before retirement. That is useful for planning, and also a deadline you have to plan around.
How does pricing differ?
Both charge by the token for normal use, and both offer cheaper rates for work that can wait. The rest is different.
- Azure offers pay-per-token Standard deployments; provisioned throughput units (PTUs), where you are "charged an hourly rate per model regardless of usage", with monthly or yearly reservations for savings; and Batch "for a 50% discount on Global Standard Pricing" within 24 hours (Azure OpenAI pricing). Provisioned types give "guaranteed throughput and lower latency variance". Standard types are "best-effort" (deployment types).
- OpenAI prices per 1M tokens. Batch costs half the Standard rate. Flex, another cheaper tier, is being wound down and will not be added to new models. Fast (renamed from Priority on 30 July 2026) and Ultrafast cost more for faster processing (OpenAI pricing).
We have not quoted per-token rates, because they change with every model. Price your own traffic on both pricing pages on the day you decide. Include the data residency uplift on OpenAI and the hourly cost of PTUs on Azure if you need either one.
How much setup does each route need?
The OpenAI API needs an organization, a project and a key kept on your server. Rate limits apply per organization and project, and your usage tier "upgrades automatically" as your credit purchases grow (OpenAI, rate limits).
Azure needs more decisions before the first call: a subscription, a Foundry resource, a deployment type, a role for each identity and, for keyless sign-in, a custom subdomain. Quota is a request: Microsoft processes requests "in the order they're received", gives priority to customers who use their current quota, and may deny others (Microsoft Learn, quotas). Content filters check prompts and completions for hate, sexual content, violence and self-harm on every deployment. You can make them stricter or more lenient, but only customers "approved for modified content filtering" can turn them off for completions (Microsoft Learn, content filtering).
Where have we used each route?
Azure, when the rest of the assistant was built on Azure. The Saba AI customer assistant we built is a chatbot for a supplement store. The chat engine runs in C# inside the ASP.NET storefront. A nightly Azure Functions job crawls the site and refreshes a hybrid keyword and vector index in Azure AI Search. Azure OpenAI drafts answers only from the retrieved passages. Application Insights handles monitoring, and Bicep templates define the Azure resources. Ingestion, search, the model and monitoring are all Azure services, so the model is one more Azure resource, not a separate vendor to set up.
What we learned on that build applies to both routes: the built-in filters did not cover the client's real risks. Azure's filters look for harm categories. The supplement store needed a guard against disease claims, quoted prices, leaked instructions, foreign links and emails, plus tracking of safety topics across a conversation. We wrote that guard ourselves and tested it with adversarial inputs. Whichever route you take, budget for your own output checks.
OpenAI models where the product lives elsewhere. In Beliri's designer marketplace, a Node.js and MongoDB product, an OpenAI model maps imported Shopify products onto the marketplace's categories, conditions and sizes, with a fallback to rules. The Reactor AI assistant back end routes language-model calls across several providers, OpenAI and Vertex AI among them. Neither product runs on Azure, so there was no Azure tenant to keep the model in.
Which should you choose?
Choose Azure OpenAI when:
- your applications, identities and logs already live in Azure, and your security team wants Entra ID sign-in and no public endpoint;
- you must keep processing inside a data zone or an Azure geography;
- you need reserved throughput with steady latency (PTUs);
- your contracts already sit with Microsoft.
Choose the OpenAI API when:
- you do not run on Azure and no rule requires it;
- you want the fastest path from idea to first working call;
- your residency needs fit OpenAI's offer, or you have none;
- your product mixes several model providers anyway.
Our OpenAI API integration and Azure OpenAI development pages describe what we build on each.
FAQ
Does OpenAI see the data we send to Azure OpenAI?
Microsoft says no: prompts, completions, embeddings and training data are "NOT available to OpenAI", and the hosted models do not interact with services run by OpenAI. Microsoft still runs its own abuse monitoring, described on the same page.
Can we move from the OpenAI API to Azure OpenAI later?
Yes. With Azure's v1 API, the same OpenAI client libraries work by changing the base URL and credentials and calling your deployment name instead of the model name. Plan time for the Azure setup itself: resource, deployment type, quota, roles and network.
Is Azure OpenAI more expensive than the OpenAI API?
It depends on the model, deployment type and volume, and rates change. Compare both official pricing pages for the model you will use. Remember that OpenAI's data residency adds 10% for newer models, and that Azure PTUs are charged hourly whether or not you use them.
Does either route train on our data?
Not by default. Microsoft says prompts and completions are not used to train or improve the base models. OpenAI says API data is not used for training unless you opt in.
Which one has an SLA?
Microsoft states that Azure OpenAI will be available "at least 99.9% of the time". The OpenAI API documentation pages we read do not state an uptime commitment for standard use, so ask OpenAI's sales team what applies to your contract.
Sources (18 links)
- Microsoft Learn, Data, privacy and security for Foundry Models sold by Azure (updated 2026-06-05), read 30 November 2026: https://learn.microsoft.com/en-us/azure/foundry/responsible-ai/openai/data-privacy
- Microsoft Learn, Foundry Models sold by Azure abuse monitoring, read 30 November 2026: https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/abuse-monitoring
- Microsoft Learn, Understanding deployment types in Microsoft Foundry Models (updated 2026-08-12), read 30 November 2026: https://learn.microsoft.com/en-us/azure/foundry/foundry-models/concepts/deployment-types
- Microsoft Learn, Foundry Models lifecycle and support policy (updated 2026-07-24), read 30 November 2026: https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/model-retirements
- Microsoft Learn, Azure OpenAI in Microsoft Foundry Models v1 API, read 30 November 2026: https://learn.microsoft.com/en-us/azure/foundry/openai/api-version-lifecycle
- Microsoft Learn, Microsoft Entra ID authentication for Azure OpenAI, read 30 November 2026: https://learn.microsoft.com/en-us/azure/foundry-classic/openai/how-to/managed-identity
- Microsoft Learn, Securing Azure OpenAI inside a virtual network with private endpoints, read 30 November 2026: https://learn.microsoft.com/en-us/azure/foundry-classic/openai/how-to/network
- Microsoft Learn, Content filtering for Microsoft Foundry Models, read 30 November 2026: https://learn.microsoft.com/en-us/azure/foundry-classic/foundry-models/concepts/content-filter
- Microsoft Learn, Azure OpenAI quotas and limits (updated 2026-08-20), read 30 November 2026: https://learn.microsoft.com/en-us/azure/foundry/openai/quotas-limits
- Microsoft Azure, Azure OpenAI pricing, read 30 November 2026: https://azure.microsoft.com/en-us/pricing/details/azure-openai/
- Microsoft Azure, Azure OpenAI in Foundry Models product page (SLA statement), read 30 November 2026: https://azure.microsoft.com/en-us/products/ai-foundry/models/openai/
- OpenAI, Data controls in the OpenAI platform, read 30 November 2026: https://developers.openai.com/api/docs/guides/your-data
- OpenAI, Data residency, read 30 November 2026: https://developers.openai.com/api/docs/guides/data-residency
- OpenAI, API pricing, read 30 November 2026: https://developers.openai.com/api/docs/pricing
- OpenAI, Rate limits, read 30 November 2026: https://developers.openai.com/api/docs/guides/rate-limits
- OpenAI, IP allowlist, read 30 November 2026: https://developers.openai.com/api/docs/guides/ip-allowlist
- OpenAI, Mutual TLS, read 30 November 2026: https://developers.openai.com/api/docs/guides/mutual-tls
- OpenAI, Moderation, read 30 November 2026: https://developers.openai.com/api/docs/guides/moderation



