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

gemini-3.5-live-translate

邀請制測試

Google Gemini 3.5 Live Translate — real-time speech-to-speech translation over WebSocket (AI Studio).

30 秒上手 gemini-3.5-live-translate

相容 OpenAI Realtime:透過 WebSocket 連線,音訊進、音訊出。WS /v1/realtime

import asyncio, base64, json, websockets

URL = "wss://synthorai.io/v1/realtime?model=gemini-3.5-live-translate"
# 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())

關於 gemini-3.5-live-translate

  • Audio-only billing per official list.
  • Audio $3.50/M in · $21/M out.
  • Billed per response at official list price.

常見問題

gemini-3.5-live-translate API 可以免費試用嗎?

gemini-3.5-live-translate 目前是邀請制測試,不開放直接註冊,需要先申請開通。請到 Synthorai 主控台提出申請,審核通過後就按一般的用量計費方式收費,不需訂閱。

如何呼叫 gemini-3.5-live-translate API?

gemini-3.5-live-translate 是語音對語音(speech-to-speech)模型:用 OpenAI Realtime SDK(或原生 WebSocket)連線到 wss://synthorai.io/v1/realtime?model=gemini-3.5-live-translate,音訊進、音訊出。它不走 POST /v1/audio/transcriptions 那種上傳檔案的方式。驗證用你的 sk-syn 金鑰,只需要帶 Authorization 標頭(beta 協定已停用)。

如何開通 gemini-3.5-live-translate?

gemini-3.5-live-translate 目前是邀請制測試,請到 Synthorai 主控台申請開通。審核通過後,用法和其他模型一樣:把 OpenAI SDK 的 base_url 指向 "https://synthorai.io/v1",model 設為 "gemini-3.5-live-translate" 就可以了。

相關模型

比較

本頁每一個數值都摘錄自供應商自己的文件(連結見上方),並附上查核日期。價格是放在整個目錄裡比較;各家供應商定義不一樣的規格,只說明差異,不畫成圖表比較。這裡沒有任何數據是我們自己量測的,也不做評分。

取得 API 金鑰 算算你的成本 →