Realtime
curl --request GET \
--url https://zero.cat/v1/realtime \
--header 'Authorization: Bearer <token>'import requests
url = "https://zero.cat/v1/realtime"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://zero.cat/v1/realtime', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}实时语音
Realtime
建立 WebSocket 连接用于实时对话。
注意: 这是一个 WebSocket 端点,需要使用 WebSocket 协议连接。
连接 URL 示例: wss://api.example.com/v1/realtime?model=gpt-4o-realtime
GET
/
v1
/
realtime
Realtime
curl --request GET \
--url https://zero.cat/v1/realtime \
--header 'Authorization: Bearer <token>'import requests
url = "https://zero.cat/v1/realtime"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://zero.cat/v1/realtime', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}
