# 原生OpenAI格式 (/docs/api/ai-model/realtime/createrealtimesession)



{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

建立 WebSocket 连接用于实时对话。

**注意**: 这是一个 WebSocket 端点，需要使用 WebSocket 协议连接。

连接 URL 示例: `wss://api.example.com/v1/realtime?model=gpt-4o-realtime`

<APIPage document="&#x22;openapi/generated/ai-model/实时语音（Realtime）/get-v1-realtime-createrealtimesession-383826490.json&#x22;" operations="[{&#x22;path&#x22;:&#x22;/v1/realtime&#x22;,&#x22;method&#x22;:&#x22;get&#x22;}]" />
