实时 WebSocket 连接
实时
实时 WebSocket 连接
建立 WebSocket 连接用于实时对话。
注意: 这是一个 WebSocket 端点,需要使用 WebSocket 协议连接。
连接 URL 示例: wss://api.example.com/v1/realtime?model=gpt-4o-realtime
GET
实时 WebSocket 连接
最后修改于 2026年9月23日
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl --request GET \
--url https://api.lmm.best/v1/realtime \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lmm.best/v1/realtime"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lmm.best/v1/realtime', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lmm.best/v1/realtime"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}建立 WebSocket 连接用于实时对话。
注意: 这是一个 WebSocket 端点,需要使用 WebSocket 协议连接。
连接 URL 示例: wss://api.example.com/v1/realtime?model=gpt-4o-realtime
curl --request GET \
--url https://api.lmm.best/v1/realtime \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lmm.best/v1/realtime"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lmm.best/v1/realtime', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lmm.best/v1/realtime"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}