GPT Realtime Whisper는 실시간 오디오에서 지연 시간이 낮은 전사 업데이트를 내보내는 OpenAI 모델입니다.
- 입력
- 오디오 텍스트
- 출력
- 텍스트
- 가격
- $0.017/min
- 컨텍스트
- 16K
- 지식 컷오프
- 2024-09
입력 길이별 요금
전체 요청에 입력 길이 구간의 단가가 적용됩니다. 요금은 100만 토큰당 미국 달러입니다.
| 입력 토큰 수 | 입력 | 출력 | 사고 모드 입력 |
|---|
가격 수준 비교
같은 종류의 모델 9개 중 가격 위치
이 막대는 Synthorai에 있는 같은 종류의 모델 가운데 이 모델의 가격이 어디쯤인지 보여 줍니다. 양쪽 끝에는 가장 싼 모델과 가장 비싼 모델의 이름이 있습니다. 기본 요율 기준이며 배치·리전·캐시 쓰기 할인은 가격 페이지에 있습니다.
사양 및 제한
토큰
| 컨텍스트 윈도우(공급자 사양) | 16,000 |
|---|---|
| 최대 출력(공급자 사양) | 2,000 |
| 지식 컷오프 | 2024-09 |
오디오
| 언어 | OpenAI는 이 모델만의 지원 언어 목록을 공개하지 않습니다. 대상 언어의 실제 오디오로 확인하세요. |
|---|---|
| 오디오 제한 | 실시간 오디오를 낮은 지연 시간으로 연속 전사합니다. 텍스트 토큰이 아니라 오디오 분 단위로 과금합니다. |
| 스트리밍 전사 | 지원 |
모델
| 모달리티 | 오디오 + 텍스트 → 텍스트 |
|---|
출처: 모델 사양 출처 ↗
30초 만에 GPT Realtime Whisper 사용하기
OpenAI Realtime 세션 안에서 입력 전사 모델로만 사용합니다. Realtime 모델로 세션을 열고 session.audio.input.transcription.model을 gpt-realtime-whisper로 설정하세요. WS /v1/realtime
import asyncio, json, websockets
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) name gpt-realtime-whisper as the session's input transcription model
await ws.send(json.dumps({
"type": "session.update",
"session": {
"type": "realtime",
"audio": {"input": {"transcription": {"model": "gpt-realtime-whisper"}}},
},
}))
# 2) send input audio (base64 PCM16) and commit it
await ws.send(json.dumps({"type": "input_audio_buffer.append", "audio": pcm16_b64}))
await ws.send(json.dumps({"type": "input_audio_buffer.commit"}))
# 3) the transcript of what was said arrives as its own event
async for raw in ws:
ev = json.loads(raw)
if ev["type"] == "conversation.item.input_audio_transcription.completed":
print(ev["transcript"])
break
asyncio.run(main())import WebSocket from "ws";
const ws = new WebSocket("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-..." },
});
ws.on("open", () => {
// name gpt-realtime-whisper as the session's input transcription model
ws.send(JSON.stringify({ type: "session.update", session: {
type: "realtime", audio: { input: { transcription: { model: "gpt-realtime-whisper" } } },
} }));
// send input audio (base64 PCM16) and commit it
ws.send(JSON.stringify({ type: "input_audio_buffer.append", audio: pcm16Base64 }));
ws.send(JSON.stringify({ type: "input_audio_buffer.commit" }));
});
ws.on("message", (raw) => {
const ev = JSON.parse(raw.toString());
if (ev.type === "conversation.item.input_audio_transcription.completed") {
console.log(ev.transcript); // the transcript of what was said
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=gpt-realtime-2.1' <<'EOF'
{"type":"session.update","session":{"type":"realtime","audio":{"input":{"transcription":{"model":"gpt-realtime-whisper"}}}}}
{"type":"input_audio_buffer.append","audio":"<base64-pcm16>"}
{"type":"input_audio_buffer.commit"}
EOF
# The transcript arrives as conversation.item.input_audio_transcription.completedpackage main
import (
"fmt"
"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=gpt-realtime-2.1", h)
if err != nil {
panic(err)
}
defer c.Close()
// name gpt-realtime-whisper as the session's input transcription model, then send audio
c.WriteJSON(map[string]any{"type": "session.update", "session": map[string]any{
"type": "realtime",
"audio": map[string]any{"input": map[string]any{
"transcription": map[string]any{"model": "gpt-realtime-whisper"}}}}})
c.WriteJSON(map[string]any{"type": "input_audio_buffer.append", "audio": pcm16B64})
c.WriteJSON(map[string]any{"type": "input_audio_buffer.commit"})
for {
var ev struct {
Type string `json:"type"`
Transcript string `json:"transcript"`
}
if err := c.ReadJSON(&ev); err != nil {
return
}
if ev.Type == "conversation.item.input_audio_transcription.completed" {
fmt.Println(ev.Transcript) // the transcript of what was said
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=gpt-realtime-2.1"), new WebSocket.Listener() {
public CompletionStage<?> onText(WebSocket w, CharSequence data, boolean last) {
// conversation.item.input_audio_transcription.completed carries the transcript
w.request(1);
return null;
}
}).join();
// name gpt-realtime-whisper as the session's input transcription model, then send audio
ws.sendText("{\"type\":\"session.update\",\"session\":{\"type\":\"realtime\",\"audio\":{\"input\":{\"transcription\":{\"model\":\"gpt-realtime-whisper\"}}}}}", true);
ws.sendText("{\"type\":\"input_audio_buffer.append\",\"audio\":\"<base64-pcm16>\"}", true);
ws.sendText("{\"type\":\"input_audio_buffer.commit\"}", true);GPT Realtime Whisper 소개
- 텍스트 토큰 대신 오디오 길이로 과금합니다.
- OpenAI는 신규 통합에는 최신 전사 모델을 권장하며 이 모델은 지원되는 기존 통합용으로 유지합니다.
자주 묻는 질문
GPT Realtime Whisper API는 무료로 사용해 볼 수 있나요?
네. 신규 계정에는 체험 호출 10회와 최대 $1의 무료 크레딧을 드리며, 카드 등록은 필요 없습니다. 결제 수단을 추가하기 전에 실제 워크로드로 GPT Realtime Whisper을 충분히 시험해 볼 수 있는 양입니다.
GPT Realtime Whisper은 어떤 작업에 가장 강한가요?
실시간 스트리밍 전사, 오디오 분 단위 과금, 신규 통합은 최신 모델 비교. 자세한 내용은 공급자의 공식 릴리스 노트를 바탕으로 정리한 소개 섹션에서 확인하세요.
GPT Realtime Whisper 가격은 얼마인가요?
Synthorai에서 GPT Realtime Whisper 가격은 전사한 오디오 1분당 $0.017입니다. 종량제이며 플랫폼 마진도, 구독도 없습니다.
GPT Realtime Whisper은 어떻게 사용하나요?
GPT Realtime Whisper은 단독으로 호출하지 않습니다. Realtime 세션 안에서 사용자의 음성을 전사합니다. Realtime 모델로 wss://synthorai.io/v1/realtime에 연결하고 session.audio.input.transcription.model을 "gpt-realtime-whisper"로 설정하면, 각 전사 결과가 conversation.item.input_audio_transcription.completed 이벤트로 전달됩니다. 요금은 입력 오디오 1분당 $0.017이며, 세션 자체 요금과 별도로 과금됩니다.
GPT Realtime Whisper은 어떻게 이용하나요?
Synthorai API 키로 Realtime 세션을 열고 입력 전사 모델로 "gpt-realtime-whisper"을 지정하세요. GPT Realtime Whisper은 Realtime 세션용이며 /v1/audio/transcriptions 파일 API용이 아닙니다. 파일을 전사하려면 음성 인식 모델을 선택하세요. API 키 하나로 게이트웨이의 모든 모델을 사용할 수 있습니다.
관련 모델
비교
사양과 공급업체 벤치마크에는 출처 링크가 있습니다. 게이트웨이 지원 범위는 Synthorai의 실제 구현을 뜻합니다. 보관된 예제는 개별 게이트웨이 요청의 결과이며 모델의 일반적인 성능을 보장하지 않습니다. 요금은 공개 요금 API 또는 빌드 시 사용한 스냅샷을 기준으로 합니다.