Messages
No examples foundNo examples found{
"event_id": "<string>",
"type": "<string>",
"response_id": "<string>",
"item_id": "<string>",
"output_index": 123,
"content_index": 123,
"delta": "<string>"
}{
"event_id": "<string>",
"type": "<string>",
"response_id": "<string>",
"item_id": "<string>",
"output_index": 123,
"content_index": 123,
"delta": "<string>"
}No examples found{
"event_id": "<string>",
"type": "<string>",
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>"
}
}{
"type": "<string>"
}{}{}{}{}{}实时 API
音视频通话
GLM-Realtime 提供实时音视频通话和多模态交互能力,支持实时语音对话、视频理解、函数调用等功能。
由于浏览器安全考虑禁止 WebSocket 添加鉴权认证请求头,无法在此直接体验,使用详情请参考 Realtime 指南使用。
WSS
/
api
/
paas
/
v4
/
realtime
Messages
No examples foundNo examples found{
"event_id": "<string>",
"type": "<string>",
"response_id": "<string>",
"item_id": "<string>",
"output_index": 123,
"content_index": 123,
"delta": "<string>"
}{
"event_id": "<string>",
"type": "<string>",
"response_id": "<string>",
"item_id": "<string>",
"output_index": 123,
"content_index": 123,
"delta": "<string>"
}No examples found{
"event_id": "<string>",
"type": "<string>",
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>"
}
}{
"type": "<string>"
}{}{}{}{}{}headers
type:object
Authorization
type:string
required
鉴权信息,支持JWT(客户端)或Bearer API Key(服务端)。格式:'Bearer YOUR_API_KEY'
会话更新确认
type:object
服务器确认会话更新
响应创建确认
type:object
服务器确认响应创建
音频增量数据
type:object
服务器发送音频数据流
文本增量数据
type:object
服务器发送文本数据流
响应完成通知
type:object
服务器发送响应完成
服务器错误
type:object
服务器发送错误信息
心跳信号
type:object
服务器发送心跳
会话配置更新
客户端发送会话配置更新
音频数据上传
客户端发送音频数据
音频缓冲区提交
客户端提交音频缓冲区
创建响应请求
客户端请求创建响应
取消响应请求
客户端取消响应
⌘I