新帳號 免費註冊,送 10 次呼叫,最高 $1,免綁卡。

gemini-3.1-flash-live vs GPT Realtime 2.1

gemini-3.1-flash-live 採邀請制。下方的數字是即時費率,但要先取得工作空間的授權才能呼叫;如果你打算依據這份比較來開發,請先向我們申請開通。

GPT Realtime 2.1 採邀請制。下方的數字是即時費率,但要先取得工作空間的授權才能呼叫;如果你打算依據這份比較來開發,請先向我們申請開通。

vs

什麼情況選哪一個

兩者皆為依每百萬 token 計費的即時音訊模型,但 gemini-3.1-flash-live 是較便宜的選項:音訊輸入為 $3 對比 $32(約便宜 10.7x),音訊輸出為 $12 對比 $64,而文字則為 $0.75/$4.5 對比 $4/$24(約便宜 5.3x)。它在音訊與文字之外也接受影像與視訊輸入,具備 131072-token 上下文與最高 65536 輸出 token,且其 Live API 工作階段上限為純音訊 15 分鐘(含視訊為 2 分鐘),除非經過延長。如果您想要具備 $0.4 快取讀取費用的 OpenAI 音訊/文字堆疊、其 128000-token 上下文與 32000 最大輸出,請選擇 gpt-realtime-2.1。

定價

gemini-3.1-flash-live GPT Realtime 2.1 Δ
音訊輸入 / 1M tokens $3 $32 0.094×
音訊輸出 / 1M tokens $12 $64 0.19×
音訊快取讀取 / 1M tokens - $0.4 -
文字輸入 / 1M tokens $0.75 $4 0.19×
文字輸出 / 1M tokens $4.5 $24 0.19×
快取寫入 - 不額外計費 -

費率取自網站建置時的即時目錄;各模型頁面都列有最新的價目。

兩者的相對位置:每 1M 音訊 tokens 的價格,涵蓋同一計費單位下全部 6 個即時語音對語音模型(對數尺度)

功能

gemini-3.1-flash-live GPT Realtime 2.1
思考控制 一律開啟 -
提示詞快取 隱式 + 顯式 隱式(自動)
快取存活時間 未公布 5-10m, up to 1h
最小快取前綴 4096 個 token 1024 個 token

規格

gemini-3.1-flash-live GPT Realtime 2.1
輸入模態 文字 圖像 音訊 影片 文字 音訊
輸出模態 文字 音訊 文字 音訊
發布日期 2026-03-26 2026-07-06
知識截止日期 - 2024-09
聲音

Any voice from the Gemini text-to-speech voice set

native-audio output models switch languages naturally during a conversation.

-
工作階段功能
  • Function calling is sequential only - the model will not start responding until the tool response is sent
  • search grounding and thinking supported
  • VAD interruption cancels the in-flight generation
  • no caching, structured outputs, code execution or Batch API
  • Speech-to-speech over WebSocket
  • configurable reasoning effort
  • tool use
  • interruption handling
  • 128K context
上下文視窗 131K 128K

規格摘錄自各供應商的文件;供應商沒有公布的項目就直接略過,不自行推測。 完整來源: gemini-3.1-flash-live · GPT Realtime 2.1

改一行程式碼就能在兩者之間切換

下面每個頁籤都列了這兩個模型 ID,要改的只有醒目標示的那兩行。端點、金鑰和請求格式都不變。

import asyncio, base64, json, websockets

URL = "wss://synthorai.io/v1/realtime?model=gemini-3.1-flash-live"
# 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 金鑰 →

常見問題

gemini-3.1-flash-live 和 GPT Realtime 2.1 哪個比較便宜?

以「音訊輸入 / 1M tokens」來看,gemini-3.1-flash-live 比較便宜($3 對 $32,相差 11×)。其他項目的結果可能相反,完整價目請看上表;實際成本要看你的用量組合。

可以只串接一次,就對 gemini-3.1-flash-live 和 GPT Realtime 2.1 做 A/B 測試嗎?

可以。兩個模型都走同一個 OpenAI 相容端點,用的也是同一把 API 金鑰,切換時只要改一行裡的模型名稱字串。你可以把一部分流量分別導到兩邊,再直接比較帳單。

gemini-3.1-flash-live 與 GPT Realtime 2.1 支援提示詞快取嗎?

我們的資料來源只列出其中一個模型的快取讀取價格;沒有列出費率的那一個,代表它的供應商沒有為快取讀取另訂價格。

相關比較