AI-Tkoens 中文

API Reference

Native OpenAI Format

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/r1/realtime?model=gpt-4o-realtime

GET/r1/realtime

Authorization

BearerAuth

AuthorizationBearer <token>

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

In: header

Query Parameters

model?string

要使用的模型

Response Body

curl -X GET "https://ai-tokens.space/r1/realtime"
Empty
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}

Search all English documentation