AI 模型接口Realtime
实时 WebSocket 连接
建立 WebSocket 连接用于实时对话。
注意: 这是一个 WebSocket 端点,需要使用 WebSocket 协议连接。
连接 URL 示例: wss://api.example.com/v1/realtime?model=gpt-4o-realtime
Authorization
BearerAuth
AuthorizationBearer <token>
使用 Bearer Token 认证。
格式: Authorization: Bearer sk-xxxxxx
In: header
Query Parameters
model?string
要使用的模型
Response Body
application/json
curl -X GET "https://api.example.com/v1/realtime"Empty
{
"error": {
"message": "string",
"type": "string",
"param": "string",
"code": "string"
}
}这篇文档对您有帮助吗?
最后更新于