gemini-3.1-flash-live vs nova-2-sonic
언제 어떤 모델을 사용할까 — 벤치마크 표가 아닌 선별된 평가
오디오 비용은 둘 다 100만당 입력 $3, 출력 $12로 같으므로 청구서는 텍스트에서 갈립니다. nova-2-sonic은 100만당 $0.06과 $0.24로 $0.75와 $4.5 대비 약 12배, 19배 저렴합니다. gemini-3.1-flash-live는 입력이 더 넓은 쪽으로 텍스트·이미지·오디오·비디오, 90개 넘는 언어, 오디오 전용 세션 15분을 제공합니다. nova-2-sonic은 오디오와 텍스트만, 연결은 8분 상한에 문서화된 이어가기 방식이 있으며 네 개 리전에서만 동작합니다. 텍스트가 많은 세션의 비용이면 nova-2-sonic, 비디오 입력과 언어 커버리지면 gemini-3.1-flash-live를 고르세요.
가격
| gemini-3.1-flash-live | nova-2-sonic | Δ | |
|---|---|---|---|
| 오디오 입력 / 1M 토큰 | $3 | $3 | = |
| 오디오 출력 / 1M 토큰 | $12 | $12 | = |
| 텍스트 입력 / 1M 토큰 | $0.75 | $0.06 | 13× |
| 텍스트 출력 / 1M 토큰 | $4.5 | $0.24 | 19× |
| 캐시 쓰기 | — | 별도 비용 없음 | — |
빌드 시점의 라이브 카탈로그 요금입니다. 각 모델 페이지에 현재 요금표가 표시됩니다.
현재 위치 — 이 청구 단위를 사용하는 모든 6개의 실시간 음성-음성 변환 모델 전체의 1M 오디오 토큰당 가격 (로그 스케일)
기능
| gemini-3.1-flash-live | nova-2-sonic | |
|---|---|---|
| 사고 제어 | 항상 켜짐 | — |
| 프롬프트 캐싱 | 암시적 + 명시적 | 지원되지 않음 |
| 캐시 수명 | 미공개 | 해당 없음 |
| 최소 캐시 접두사 | 4096 토큰 | 해당 없음 |
사양
| gemini-3.1-flash-live | nova-2-sonic | |
|---|---|---|
| 입력 모달리티 | 텍스트 이미지 오디오 비디오 | 텍스트 오디오 |
| 출력 모달리티 | 텍스트 오디오 | 텍스트 오디오 |
| 출시일 | 2026-03-26 | 2025-12-02 |
| 음성 | Any voice from the Gemini text-to-speech voice set native-audio output models switch languages naturally during a conversation. | 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. |
| 세션 기능 |
|
|
| 컨텍스트 윈도우 | 131K | 1M |
사양은 각 공급업체의 문서를 그대로 기록한 것입니다. 공급업체가 공개하지 않은 항목은 추론하지 않고 제외했습니다. 전체 출처: gemini-3.1-flash-live · nova-2-sonic
코드 한 줄로 모델 전환
두 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=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=gemini-3.1-flash-live", {
// 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=gemini-3.1-flash-live' <<'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=gemini-3.1-flash-live", 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=gemini-3.1-flash-live"), 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);FAQ
gemini-3.1-flash-live와(과) nova-2-sonic 중 어느 것이 더 저렴한가요?
동일한 오디오 입력 / 1m 토큰($3)을(를) 나열하므로 가격만으로는 결정할 수 없습니다 — 아래의 사양과 기능을 확인하세요.
두 번의 연동 과정 없이 gemini-3.1-flash-live와(과) nova-2-sonic를 A/B 테스트할 수 있나요?
네. 둘 다 하나의 API 키를 사용하여 동일한 OpenAI 호환 엔드포인트를 통해 제공됩니다 — 모델 문자열을 한 줄만 변경하면 전환되므로, 트래픽의 일부를 각각 라우팅하여 요금을 직접 비교할 수 있습니다.
gemini-3.1-flash-live 및 nova-2-sonic는 프롬프트 캐싱을 지원하나요?
저희 피드에는 둘 중 하나에만 캐시 읽기 가격이 나열되어 있으며, 요금이 누락된 곳은 제공업체가 캐시 읽기에 대해 별도로 요금을 책정하지 않은 것입니다.