AI 模型接口实时语音(Realtime)
原生OpenAI格式
调用前,请按本页的鉴权说明填入 API Key。请求包含 model 时,从模型列表选择可用的模型 ID。
建立 WebSocket 连接用于实时对话。
注意: 这是一个 WebSocket 端点,需要使用 WebSocket 协议连接。
连接 URL 示例: wss://api.example.com/v1/realtime?model=gpt-4o-realtime
GET
/v1/realtimeAuthorization
BearerAuth
AuthorizationBearer <token>
使用 Bearer Token 认证。
格式: Authorization: Bearer sk-xxxxxx
In: header
Query Parameters
model?string
要使用的模型
Response Body
application/json
curl -X GET "https://newapi.ploymind.com/v1/realtime"Empty
{
"error": {
"message": "string",
"type": "string",
"param": "string",
"code": "string"
}
}