ModelSell Docs
Audio & MoreOther Capabilities

实时 WebSocket 连接

建立 WebSocket 连接用于实时对话。 **注意**: 这是一个 WebSocket 端点,需要使用 WebSocket 协议连接。 连接 URL 示例: `wss://api.example.com/v1/realtime?model=gpt-4o-realtime`

GET
/v1/realtime

建立 WebSocket 连接用于实时对话。

注意: 这是一个 WebSocket 端点,需要使用 WebSocket 协议连接。

连接 URL 示例: wss://api.example.com/v1/realtime?model=gpt-4o-realtime

Authorization

bearerAuth
AuthorizationBearer <token>

使用 Authorization Bearer API Key 进行鉴权。

In: header

Query Parameters

model?string

要使用的模型

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/realtime"
Empty
{
  "success": true,
  "message": "string",
  "data": null
}
{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "string"
  }
}