> ## Documentation Index
> Fetch the complete documentation index at: https://mixroute.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Realtime WebSocket

> 使用 Bearer 密钥和完整 `model` 查询参数连接。等待 `session.created`，添加用户消息并发送 `response.create`。处理 `error`，以 `response.done` 结束本轮。

`WSS /v1/realtime`

使用 Bearer 密钥和完整 `model` 查询参数连接。等待 `session.created`，添加用户消息并发送 `response.create`。处理 `error`，以 `response.done` 结束本轮。

请在 [MixRoute 模型市场](https://console.mixroute.ai/models) 核对密钥分组的可用性。列入目录不代表渠道已开放。

## 快速示例

* [gpt-realtime](https://mixroute.ai/docs/zh-Hans/model-api/openai/gpt-realtime.md)
* [gpt-realtime-1.5](https://mixroute.ai/docs/zh-Hans/model-api/openai/gpt-realtime-1.5.md)
* [gpt-realtime-mini](https://mixroute.ai/docs/zh-Hans/model-api/openai/gpt-realtime-mini.md)
* [gpt-realtime-2](https://mixroute.ai/docs/zh-Hans/model-api/openai/gpt-realtime-2.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.