GPT Realtime 2.1 vs nova-2-sonic
GPT Realtime 2.1 採邀請制。下方的數字是即時費率,但要先取得工作空間的授權才能呼叫;如果你打算依據這份比較來開發,請先向我們申請開通。
nova-2-sonic 採邀請制。下方的數字是即時費率,但要先取得工作空間的授權才能呼叫;如果你打算依據這份比較來開發,請先向我們申請開通。
什麼情況選哪一個
兩者皆為依每百萬 token 計費的即時音訊與文字模型,因此費率可直接比較:nova-2-sonic 收取音訊輸入 $3 與音訊輸出 $12,相對於 gpt-realtime-2.1 的 $32 與 $64,且文字為 $0.06/$0.24 相對於 $4/$24,並具備 1000000 上下文與 64000 最大輸出,而非 128000 與 32000。如果其 8 分鐘連線限制與僅限 Region 內的推論符合您的需求,請選擇 nova-2-sonic 用於較長、對成本敏感的語音工作階段;當您想要 $0.4 快取輸入讀取,且沒有此類工作階段或區域時,請選擇較新的 gpt-realtime-2.1(於 2026-07-06 發布)
Benchmark 成績
GPT Realtime 2.1:供應商沒有公布 benchmark 成績。
nova-2-sonic:公布了 8 項,但每一項都沒有夠多其他模型的成績,無法比較。
定價
| GPT Realtime 2.1 | nova-2-sonic | Δ | |
|---|---|---|---|
| 音訊輸入 / 1M tokens | $32 | $3 | 11× |
| 音訊輸出 / 1M tokens | $64 | $12 | 5.3× |
| 音訊快取讀取 / 1M tokens | $0.4 | - | - |
| 文字輸入 / 1M tokens | $4 | $0.06 | 67× |
| 文字輸出 / 1M tokens | $24 | $0.24 | 100× |
| 快取寫入 | 不額外計費 | 不額外計費 | - |
費率取自網站建置時的即時目錄;各模型頁面都列有最新的價目。
兩者的相對位置:每 1M 音訊 tokens 的價格,涵蓋同一計費單位下全部 6 個即時語音對語音模型(對數尺度)
功能
| GPT Realtime 2.1 | nova-2-sonic | |
|---|---|---|
| 提示詞快取 | 隱式(自動) | 不支援 |
| 快取存活時間 | 5-10m, up to 1h | 不適用 |
| 最小快取前綴 | 1024 個 token | 不適用 |
規格
| GPT Realtime 2.1 | nova-2-sonic | |
|---|---|---|
| 輸入模態 | 文字 音訊 | 文字 音訊 |
| 輸出模態 | 文字 音訊 | 文字 音訊 |
| 發布日期 | 2026-07-06 | 2025-12-02 |
| 知識截止日期 | 2024-09 | - |
| 聲音 | - | Feminine- and masculine-sounding voices per locale (tiffany/matthew en-US, amy en-GB, olivia en-AU, kiara/arjun en-IN and hi-IN, ambre/florian fr-FR, beatrice/lorenzo it-IT, tina/lennart de-DE, lupe/carlos es-US, carolina/leo pt-BR) tiffany and matthew are polyglot voices that speak every supported language. |
| 工作階段功能 |
|
|
| 上下文視窗 | 128K | 1M |
規格摘錄自各供應商的文件;供應商沒有公布的項目就直接略過,不自行推測。 完整來源: GPT Realtime 2.1 · nova-2-sonic
改一行程式碼就能在兩者之間切換
下面每個頁籤都列了這兩個模型 ID,要改的只有醒目標示的那兩行。端點、金鑰和請求格式都不變。
import asyncio, base64, json, websockets
URL = "wss://synthorai.io/v1/realtime?model=gpt-realtime-2.1"
# URL = "wss://synthorai.io/v1/realtime?model=nova-2-sonic" # 取消這一行的註解,並把上一行註解掉
# Send ONLY the Authorization header - the beta protocol is retired.
HEADERS = {"Authorization": "Bearer sk-syn-..."}
async def main():
async with websockets.connect(URL, additional_headers=HEADERS) as ws:
# 1) configure the speech-to-speech session
await ws.send(json.dumps({
"type": "session.update",
"session": {
"type": "realtime",
"output_modalities": ["audio"],
"audio": {"output": {"voice": "alloy"}},
},
}))
# 2) send input audio (base64 PCM16), then request a spoken reply
await ws.send(json.dumps({"type": "input_audio_buffer.append", "audio": pcm16_b64}))
await ws.send(json.dumps({"type": "input_audio_buffer.commit"}))
await ws.send(json.dumps({"type": "response.create"}))
# 3) stream the model's audio (and text) back
async for raw in ws:
ev = json.loads(raw)
if ev["type"] == "response.audio.delta":
play(base64.b64decode(ev["delta"])) # audio out
elif ev["type"] == "response.done":
break
asyncio.run(main())import WebSocket from "ws";
const ws = new WebSocket("wss://synthorai.io/v1/realtime?model=gpt-realtime-2.1", {
// const ws = new WebSocket("wss://synthorai.io/v1/realtime?model=nova-2-sonic", { // 取消這一行的註解,並把上一行註解掉
// Send ONLY the Authorization header — the beta protocol is retired.
headers: { Authorization: "Bearer sk-syn-..." },
});
ws.on("open", () => {
// configure the speech-to-speech session
ws.send(JSON.stringify({ type: "session.update", session: {
type: "realtime", output_modalities: ["audio"], audio: { output: { voice: "alloy" } },
} }));
// send input audio (base64 PCM16), then request a spoken reply
ws.send(JSON.stringify({ type: "input_audio_buffer.append", audio: pcm16Base64 }));
ws.send(JSON.stringify({ type: "input_audio_buffer.commit" }));
ws.send(JSON.stringify({ type: "response.create" }));
});
ws.on("message", (raw) => {
const ev = JSON.parse(raw.toString());
if (ev.type === "response.audio.delta") playAudio(Buffer.from(ev.delta, "base64")); // audio out
else if (ev.type === "response.done") ws.close();
});# Realtime is a WebSocket protocol - use a WS client such as websocat.
# Each line below is one OpenAI Realtime event (JSON) sent to the session.
websocat -H 'Authorization: Bearer sk-syn-...' \
'wss://synthorai.io/v1/realtime?model=gpt-realtime-2.1' <<'EOF'
# 'wss://synthorai.io/v1/realtime?model=nova-2-sonic' <<'EOF' # 取消這一行的註解,並把上一行註解掉
{"type":"session.update","session":{"type":"realtime","output_modalities":["audio"],"audio":{"output":{"voice":"alloy"}}}}
{"type":"input_audio_buffer.append","audio":"<base64-pcm16>"}
{"type":"input_audio_buffer.commit"}
{"type":"response.create"}
EOF
# Responses stream back as response.audio.delta (base64 audio out) … response.donepackage main
import (
"net/http"
"github.com/gorilla/websocket"
)
func main() {
h := http.Header{}
h.Set("Authorization", "Bearer sk-syn-...")
// Send ONLY the Authorization header — the beta protocol is retired.
c, _, err := websocket.DefaultDialer.Dial("wss://synthorai.io/v1/realtime?model=gpt-realtime-2.1", h)
// c, _, err := websocket.DefaultDialer.Dial("wss://synthorai.io/v1/realtime?model=nova-2-sonic", h) // 取消這一行的註解,並把上一行註解掉
if err != nil {
panic(err)
}
defer c.Close()
// configure the speech-to-speech session, send audio, request a spoken reply
c.WriteJSON(map[string]any{"type": "session.update", "session": map[string]any{
"type": "realtime", "output_modalities": []string{"audio"},
"audio": map[string]any{"output": map[string]any{"voice": "alloy"}}}})
c.WriteJSON(map[string]any{"type": "input_audio_buffer.append", "audio": pcm16B64})
c.WriteJSON(map[string]any{"type": "input_audio_buffer.commit"})
c.WriteJSON(map[string]any{"type": "response.create"})
for {
var ev struct {
Type string `json:"type"`
Delta string `json:"delta"`
}
if err := c.ReadJSON(&ev); err != nil {
return
}
if ev.Type == "response.audio.delta" {
playAudio(ev.Delta) // base64 audio out
} else if ev.Type == "response.done" {
return
}
}
}import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.WebSocket;
import java.util.concurrent.CompletionStage;
// JDK built-in WebSocket — no extra dependency needed.
WebSocket ws = HttpClient.newHttpClient().newWebSocketBuilder()
.header("Authorization", "Bearer sk-syn-...")
// Send ONLY the Authorization header — the beta protocol is retired.
.buildAsync(URI.create("wss://synthorai.io/v1/realtime?model=gpt-realtime-2.1"), new WebSocket.Listener() {
// .buildAsync(URI.create("wss://synthorai.io/v1/realtime?model=nova-2-sonic"), new WebSocket.Listener() { // 取消這一行的註解,並把上一行註解掉
public CompletionStage<?> onText(WebSocket w, CharSequence data, boolean last) {
// handle response.audio.delta (base64 audio out) / response.done here
w.request(1);
return null;
}
}).join();
// configure the session, send input audio, then request a spoken reply
ws.sendText("{\"type\":\"session.update\",\"session\":{\"type\":\"realtime\",\"output_modalities\":[\"audio\"],\"audio\":{\"output\":{\"voice\":\"alloy\"}}}}", true);
ws.sendText("{\"type\":\"input_audio_buffer.append\",\"audio\":\"<base64-pcm16>\"}", true);
ws.sendText("{\"type\":\"input_audio_buffer.commit\"}", true);
ws.sendText("{\"type\":\"response.create\"}", true);常見問題
GPT Realtime 2.1 和 nova-2-sonic 哪個比較便宜?
以「音訊輸入 / 1M tokens」來看,nova-2-sonic 比較便宜($3 對 $32,相差 11×)。其他項目的結果可能相反,完整價目請看上表;實際成本要看你的用量組合。
可以只串接一次,就對 GPT Realtime 2.1 和 nova-2-sonic 做 A/B 測試嗎?
可以。兩個模型都走同一個 OpenAI 相容端點,用的也是同一把 API 金鑰,切換時只要改一行裡的模型名稱字串。你可以把一部分流量分別導到兩邊,再直接比較帳單。
GPT Realtime 2.1 與 nova-2-sonic 支援提示詞快取嗎?
我們的資料來源只列出其中一個模型的快取讀取價格;沒有列出費率的那一個,代表它的供應商沒有為快取讀取另訂價格。