🎁 新用戶 免費註冊,送 10 次呼叫,最高 $1,免綁卡。

GPT Realtime vs GPT Realtime 2.1

vs

何時該用哪一個 — 綜合評斷,而非基準測試數據表

兩者文字輸入同為每百萬 $4,音訊同為輸入 $32、輸出 $64,快取讀取同為 $0.4;gpt-realtime-2.1 只在文字輸出上更貴($24 對 $16),並把工作階段脈絡翻了兩番,128K 對 32K。它還在舊版的函式呼叫之上增加了可設定的推理力度和打斷處理。只有為了維持既有整合才選 gpt-realtime——除文字輸出外,新版的價格完全一樣。

定價

GPT Realtime GPT Realtime 2.1 Δ
音訊輸入 / 1M tokens $32 $32 =
音訊輸出 / 1M tokens $64 $64 =
音訊快取讀取 / 1M tokens $0.4 $0.4 =
文字輸入 / 1M tokens $4 $4 =
文字輸出 / 1M tokens $16 $24 0.67×
快取寫入 不額外計費 不額外計費

費率取自建置時的即時目錄;各模型頁面皆附有目前的費率卡。

它們的相對位置 — 在此計費單位下,所有 6 個 即時語音對語音 模型的 每 1M 語音 tokens 的價格(對數尺度)

能力

GPT Realtime GPT Realtime 2.1
提示快取 隱式(自動) 隱式(自動)
快取生命週期 5–10m, up to 1h 5–10m, up to 1h
最小快取前綴 1024 個 token 1024 個 token

規格

GPT Realtime GPT Realtime 2.1
輸入模態 文字 音訊 文字 音訊
輸出模態 文字 音訊 文字 音訊
發布日期 2025-08-28 2026-07-06
知識截止日期 2023-10 2024-09
工作階段功能
  • Native speech-to-speech over WebSocket
  • function calling
  • 32K context
  • Speech-to-speech over WebSocket
  • configurable reasoning effort
  • tool use
  • interruption handling
  • 128K context
上下文視窗 32K 128K

規格摘錄自各供應商的文件;供應商未發布的資料列會直接省略,而非自行推測。 完整來源: GPT Realtime · GPT Realtime 2.1

只需一行程式碼即可在兩者間切換

以下每個頁籤中都有這兩個 ID — 醒目提示的這兩行是唯一的修改處。相同的端點,相同的金鑰,相同的請求結構。

import asyncio, base64, json, websockets

URL = "wss://synthorai.io/v1/realtime?model=gpt-realtime"
# URL = "wss://synthorai.io/v1/realtime?model=gpt-realtime-2.1"  # 取消註解此行,並註解上一行
# 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())

取得 API 金鑰 →

常見問題

GPT Realtime 和 GPT Realtime 2.1 哪個比較便宜?

兩者列出的 音訊輸入 / 1m tokens 相同($32),因此價格無法決定勝負 — 請參閱下方的規格與功能。

我可以在不進行兩次整合的情況下,對 GPT Realtime 和 GPT Realtime 2.1 進行 A/B 測試嗎?

可以。兩者皆透過同一個相容 OpenAI 的端點提供服務,並使用同一把 API 金鑰 — 切換只需更改一行的模型字串,因此您可以將部分流量分別導向兩者並直接比較帳單。

GPT Realtime 與 GPT Realtime 2.1 支援提示快取嗎?

是的 — 兩者的快取讀取費率皆低於其輸入費率,因此具有暖前綴的工作負載成本會低於牌價所示。確切的快取讀取列請見上方的定價表。

相關比較