Skip to content

Commit d7c37bc

Browse files
Merge pull request #7775 from alexeyo26/alexeyo/rt-wss-no-api-version
Elaborating on Realtime WSS URLs
2 parents b694853 + 65f9c5f commit d7c37bc

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

articles/ai-foundry/openai/how-to/realtime-audio-websockets.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ The GPT real-time models are available for global deployments in [East US 2 and
3333
- `gpt-realtime` (`2025-08-28`)
3434
- `gpt-realtime-mini` (`2025-10-06`)
3535

36-
You should use API version `2025-04-01-preview` in the URL for the Realtime API.
37-
3836
For more information about supported models, see the [models and versions documentation](../concepts/models.md#audio-models).
3937

4038
## Prerequisites
@@ -56,25 +54,25 @@ You can construct a full request URI by concatenating:
5654
- The secure WebSocket (`wss://`) protocol.
5755
- Your Azure OpenAI resource endpoint hostname, for example, `my-aoai-resource.openai.azure.com`
5856
- The `openai/realtime` API path.
59-
- An `api-version` query string parameter for a supported API version such as `2024-12-17`
6057
- A `deployment` query string parameter with the name of your `gpt-4o-realtime-preview`, `gpt-4o-mini-realtime-preview`, or `gpt-realtime` model deployment.
58+
- - **(Preview version only)** An `api-version` query string parameter for a supported API version such as `2025-04-01-preview`
6159

6260
The following example is a well-constructed `/realtime` request URI:
6361

64-
#### [preview version](#tab/preview)
62+
#### [GA version](#tab/ga)
6563

6664
```http
67-
wss://my-eastus2-openai-resource.openai.azure.com/openai/realtime?api-version=2025-04-01-preview&deployment=gpt-4o-mini-realtime-preview-deployment-name
65+
wss://my-eastus2-openai-resource.openai.azure.com/openai/v1/realtime?model=gpt-realtime-deployment-name
6866
```
69-
#### [GA version](#tab/ga)
67+
68+
#### [Preview version](#tab/preview)
7069

7170
```http
72-
wss://my-eastus2-openai-resource.openai.azure.com/openai/v1/realtime?model=gpt-realtime-deployment-name
71+
wss://my-eastus2-openai-resource.openai.azure.com/openai/realtime?api-version=2025-04-01-preview&deployment=gpt-4o-mini-realtime-preview-deployment-name
7372
```
7473

7574
---
7675

77-
7876
To authenticate:
7977
- **Microsoft Entra** (recommended): Use token-based authentication with the `/realtime` API for an Azure OpenAI resource with managed identity enabled. Apply a retrieved authentication token using a `Bearer` token with the `Authorization` header.
8078
- **API key**: An `api-key` can be provided in one of two ways:

0 commit comments

Comments
 (0)