You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-foundry/openai/api-version-lifecycle.md
+48-29Lines changed: 48 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ services: cognitive-services
5
5
manager: nitinme
6
6
ms.service: azure-ai-openai
7
7
ms.topic: conceptual
8
-
ms.date: 05/25/2025
8
+
ms.date: 08/26/2025
9
9
author: mrbullwinkle
10
10
ms.author: mbullwin
11
11
recommendations: false
@@ -17,18 +17,28 @@ ms.custom:
17
17
This article is to help you understand the support lifecycle for Azure OpenAI APIs.
18
18
19
19
> [!NOTE]
20
-
> New API response objects may be added to the API response without version changes. We recommend you only parse the response objects you require.
20
+
> New API response objects may be added to the API response at any time. We recommend you only parse the response objects you require.
21
21
>
22
-
> The `2025-04-01-preview` Azure OpenAI spec uses OpenAPI 3.1, is a known issue that this is currently not fully supported by [Azure API Management](/azure/api-management/api-management-key-concepts)
23
22
24
23
## API evolution
25
24
26
-
Historically, Azure OpenAI received monthly updates of new API versions. Taking advantage of new features required constantly updating code and environment variables with each new API release. Azure OpenAI also required the extra step of using Azure specific clients which created overhead when migrating code between OpenAI and Azure OpenAI. Starting in May 2025, you can now opt in to our next generation of v1 Azure OpenAI APIs which add support for:
25
+
Previously, Azure OpenAI received monthly updates of new API versions. Taking advantage of new features required constantly updating code and environment variables with each new API release. Azure OpenAI also required the extra step of using Azure specific clients which created overhead when migrating code between OpenAI and Azure OpenAI.
27
26
28
-
- Ongoing access to the latest features with no need to update `api-version` each month.
27
+
Starting in August 2025, you can now opt in to our next generation v1 Azure OpenAI APIs which add support for:
28
+
29
+
- Ongoing access to the latest features with no need specify new `api-version`'s each month.
30
+
- Faster API release cycle with new features launching more frequently.
29
31
- OpenAI client support with minimal code changes to swap between OpenAI and Azure OpenAI when using key-based authentication.
32
+
- OpenAI client support for token based authentication and automatic token refresh without the need to take a dependency on a separate Azure OpenAI client will be added for all currently supported languages. Adding support for this functionality is **coming soon** for the [Python](https://pypi.org/project/openai/), and the [TypeScript/JavaScript](https://github.com/openai/openai-node) libraries. .NET, Java, and Go support is currently available in preview.
33
+
34
+
Access to new API calls that are still in preview will be controlled by passing feature specific preview headers allowing you to opt in to the features you want, without having to swap API versions. Alternatively, some features will indicate preview status through their API path and don't require an additional header.
35
+
36
+
Examples:
30
37
31
-
For the initial preview launch we are only supporting a subset of the inference API. While in preview, operations may have incomplete functionality that will be continually expanded.
38
+
-`/openai/v1/evals` is in preview and requires passing an `"aoai-evals":"preview"` header.
39
+
-`/openai/v1/fine_tuning/alpha/graders/` is in preview and requires no custom header due to the presence of `alpha` in the API path.
40
+
41
+
For the initial v1 GA API launch we're only supporting a subset of the inference and authoring API capabilities. We'll be rapidly adding support for more capabilities soon.
-`OpenAI()` client is used instead of `AzureOpenAI()`.
78
87
-`base_url` passes the Azure OpenAI endpoint and `/openai/v1` is appended to the endpoint address.
79
-
-`default_query={"api-version": "preview"}` indicates that the version-less always up-to-date preview API is being used.
80
-
81
-
Once we release the GA next generation v1 API, you will no longer need to specify api-version at all. Access to new features that are still in preview will be controlled by passing feature specific headers to access the preview feature.
88
+
-`api-version` is no longer a required parameter with the v1 GA API.
> Handling automatic token refresh was previously handled through use of the `AzureOpenAI()` client. The v1 API will remove this dependency, but adding automatic token refresh support to the `OpenAI()` client is still in progress. The example below is the current proposed structure, but it may be subject to change. The code below is for example purposes only, and won't execute successfully until the updated OpenAI library is released.
111
120
112
121
```python
113
-
from openai importAzureOpenAI
122
+
from openai importOpenAI
114
123
from azure.identity import DefaultAzureCredential, get_bearer_token_provider
-`AzureOpenAI()` is used to take advantage of automatic token refresh provided by `azure_ad_token_provider`.
135
143
-`base_url` passes the Azure OpenAI endpoint and `/openai/v1` is appended to the endpoint address.
136
-
-`api-version="preview"` indicates that the version-less always up-to-date preview API is being used.
137
-
138
-
Once we release the GA next generation v1 API, we will support two values: `latest` and `preview`. If `api-version` is not passed traffic is automatically routed to the `latest` GA version. Currently only `preview` is supported.
144
+
-`api_key` parameter will call `fetch_azure_token()`, enabling automatic retrieval and refresh of an authentication token instead of using a static API key.
139
145
140
146
# [REST](#tab/rest)
141
147
@@ -257,13 +263,29 @@ curl -X POST https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/responses?api
@@ -344,13 +366,10 @@ Azure OpenAI API latest releases:
344
366
345
367
Azure OpenAI API version [2024-10-21](./reference.md) is currently the latest GA API release. This API version is the replacement for the previous `2024-06-01` GA API release.
346
368
347
-
## Updating API versions
348
-
349
-
We recommend first testing the upgrade to new API versions to confirm there's no impact to your application from the API update before making the change globally across your environment.
369
+
## Known issues
350
370
351
-
If you're using the OpenAI Python or JavaScript client libraries, or the REST API, you'll need to update your code directly to the latest preview API version.
371
+
- The `2025-04-01-preview` Azure OpenAI spec uses OpenAPI 3.1, is a known issue that this is currently not fully supported by [Azure API Management](/azure/api-management/api-management-key-concepts)
352
372
353
-
If you're using one of the Azure OpenAI SDKs for C#, Go, or Java, you'll instead need to update to the latest version of the SDK. Each SDK release is hardcoded to work with specific versions of the Azure OpenAI API.
0 commit comments