Realtime
POST
/realtimeOpenAI Guide
OpenAI API Reference
The latest real-time voice conversation API from OpenAI.
**Note: **
To use streaming real-time audio output, please use a WSS connection. Debugging online is not possible.
You can use https://wss.tool302.com for testing.
Source code:https://github.com/302ai/openai-realtime-console
Supported models:
gpt-4o-realtime-preview
gpt-4o-realtime-preview-2024-10-01
Price: 50 PTC/million characters input, 100 PTC/million characters output.
请求参数
Query Params
model
string
optional
Model
Example:
gpt-4o-realtime-preview
Header Params
Content-Type
string
required
Example:
application/json
Authorization
string
required
Example:
Bearer {{YOUR_API_KEY}}
Body Params application/json
object {0}
Example
{}
示例代码
Responses
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
object {0}
Example
{
"model": "tts-1",
"input": "The quick brown fox jumped over the lazy dog.",
"voice": "alloy"
}
Last modified: 4 天前