AI Model APIRealtime
Real-time WebSocket Connection
Establish a WebSocket connection for real-time conversations.
Note: This is a WebSocket endpoint and requires a WebSocket protocol connection.
Connection URL example: 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"
}
}How is this guide?
Last updated on