gemini-2.5-flash-native-audio vs gemini-3.1-flash-live
언제 어떤 모델을 사용할까 — 벤치마크 표가 아닌 선별된 평가
오디오 요율은 동일하고(100만당 입력 $3, 출력 $12) 세션 구조도 같습니다—16 kHz 입력, 24 kHz 출력 PCM, 128k 컨텍스트, 오디오 전용 15분 상한—더 오래된 gemini-2.5-flash-native-audio가 텍스트에서 조금 더 쌉니다(100만당 $0.5와 $2 대 $0.75와 $4.5). 기능상 갈리는 지점은 툴 동작입니다. gemini-2.5-flash-native-audio는 NON_BLOCKING 함수 선언을 지원해 툴이 도는 동안에도 모델이 계속 말합니다. gemini-3.1-flash-live는 순차식이라 툴 결과가 올 때까지 응답하지 않지만, 텍스트·오디오·비디오에 더해 이미지 입력을 갖췄습니다. 툴이 많은 대화면 2.5, 이미지 입력이면 3.1입니다.
가격
| gemini-2.5-flash-native-audio | gemini-3.1-flash-live | Δ | |
|---|---|---|---|
| 오디오 입력 / 1M 토큰 | $3 | $3 | = |
| 오디오 출력 / 1M 토큰 | $12 | $12 | = |
| 텍스트 입력 / 1M 토큰 | $0.5 | $0.75 | 0.67× |
| 텍스트 출력 / 1M 토큰 | $2 | $4.5 | 0.44× |
빌드 시점의 라이브 카탈로그 요금입니다. 각 모델 페이지에 현재 요금표가 표시됩니다.
현재 위치 — 이 청구 단위를 사용하는 모든 6개의 실시간 음성-음성 변환 모델 전체의 1M 오디오 토큰당 가격 (로그 스케일)
기능
| gemini-2.5-flash-native-audio | gemini-3.1-flash-live | |
|---|---|---|
| 사고 제어 | 설정 가능 | 항상 켜짐 |
| 프롬프트 캐싱 | 암시적 + 명시적 | 암시적 + 명시적 |
| 캐시 수명 | 미공개 | 미공개 |
| 최소 캐시 접두사 | 4096 토큰 | 4096 토큰 |
사양
| gemini-2.5-flash-native-audio | gemini-3.1-flash-live | |
|---|---|---|
| 입력 모달리티 | 텍스트 오디오 비디오 | 텍스트 이미지 오디오 비디오 |
| 출력 모달리티 | 텍스트 오디오 | 텍스트 오디오 |
| 출시일 | — | 2026-03-26 |
| 지식 컷오프 | 2025-01 | — |
| 음성 | Any voice from the Gemini text-to-speech voice set native-audio output models switch languages naturally during a conversation. | Any voice from the Gemini text-to-speech voice set native-audio output models switch languages naturally during a conversation. |
| 세션 기능 |
|
|
| 컨텍스트 윈도우 | 131K | 131K |
사양은 각 공급업체의 문서를 그대로 기록한 것입니다. 공급업체가 공개하지 않은 항목은 추론하지 않고 제외했습니다. 전체 출처: gemini-2.5-flash-native-audio · gemini-3.1-flash-live
코드 한 줄로 모델 전환
두 id는 아래의 모든 탭에 있습니다 — 강조 표시된 두 줄이 유일한 수정 사항입니다. 동일한 엔드포인트, 동일한 키, 동일한 요청 형태입니다.
import asyncio, base64, json, websockets
URL = "wss://synthorai.io/v1/realtime?model=gemini-2.5-flash-native-audio"
# URL = "wss://synthorai.io/v1/realtime?model=gemini-3.1-flash-live" # 이 줄의 주석을 해제하고, 윗줄을 주석 처리하세요
# 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-2.5-flash-native-audio", {
// const ws = new WebSocket("wss://synthorai.io/v1/realtime?model=gemini-3.1-flash-live", { // 이 줄의 주석을 해제하고, 윗줄을 주석 처리하세요
// 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-2.5-flash-native-audio' <<'EOF'
# 'wss://synthorai.io/v1/realtime?model=gemini-3.1-flash-live' <<'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-2.5-flash-native-audio", h)
// c, _, err := websocket.DefaultDialer.Dial("wss://synthorai.io/v1/realtime?model=gemini-3.1-flash-live", 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-2.5-flash-native-audio"), new WebSocket.Listener() {
// .buildAsync(URI.create("wss://synthorai.io/v1/realtime?model=gemini-3.1-flash-live"), 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-2.5-flash-native-audio와(과) gemini-3.1-flash-live 중 어느 것이 더 저렴한가요?
동일한 오디오 입력 / 1m 토큰($3)을(를) 나열하므로 가격만으로는 결정할 수 없습니다 — 아래의 사양과 기능을 확인하세요.
두 번의 연동 과정 없이 gemini-2.5-flash-native-audio와(과) gemini-3.1-flash-live를 A/B 테스트할 수 있나요?
네. 둘 다 하나의 API 키를 사용하여 동일한 OpenAI 호환 엔드포인트를 통해 제공됩니다 — 모델 문자열을 한 줄만 변경하면 전환되므로, 트래픽의 일부를 각각 라우팅하여 요금을 직접 비교할 수 있습니다.
gemini-2.5-flash-native-audio 및 gemini-3.1-flash-live는 프롬프트 캐싱을 지원하나요?
저희 피드에는 둘 중 하나에만 캐시 읽기 가격이 나열되어 있으며, 요금이 누락된 곳은 제공업체가 캐시 읽기에 대해 별도로 요금을 책정하지 않은 것입니다.