Skip to main content
GET
/
v1
/
realtime
实时 WebSocket 连接
curl --request GET \
  --url https://api.tkhub.ai/v1/realtime \
  --header 'Authorization: Bearer <token>'
{
  "error": {
    "message": "<string>",
    "type": "<string>",
    "param": "<string>",
    "code": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.tkhub.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

使用 Bearer Token 认证。 格式: Authorization: Bearer sk-xxxxxx

Query Parameters

model
string

要使用的模型

Example:

"gpt-4o-realtime-preview"

Response

WebSocket 协议切换