Amazon
Synthorai의 모든 Amazon 모델. 하나의 엔드포인트, 실시간 가격.
모델 1개 · realtime / audio · 입력 $0.06/M부터
Synthorai에서 Amazon 모델을 쓰는 이유
- 종량제, 구독 불필요. 키 하나로 모든 모델을 사용할 수 있습니다. Amazon 계정이 필요 없습니다.
- 프롬프트 무보존. 기본적으로 게이트웨이에서 프롬프트 보존은 0(Zero)이며, 업스트림에는 Amazon의 데이터 정책이 적용됩니다. 자세히 →
Amazon 모델 및 가격
| 모델 | 입력 /M | 출력 /M |
|---|---|---|
| nova-2-sonic초대제 베타 | $0.06 | $0.24 |
공급사 정가, 플랫폼 마진 없음. 가격은 각 모델 페이지에서 실시간으로 갱신됩니다. 아래는 공식 정가입니다. 로그인한 고객은 /console/pricing 에서 워크스페이스 할인이 반영된 실제 가격을 볼 수 있습니다.
30초 만에 Amazon 모델 사용하기
import asyncio, base64, json, websockets
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=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=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=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=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);Amazon 소개
Amazon의 Nova 제품군은 텍스트, 멀티모달 및 음성 간(speech-to-speech) 모델을 아우릅니다. Synthorai에서는 다른 모든 벤더와 동일한 실시간 소켓 및 키를 통해 음성 간 라인업을 이용할 수 있으며, Amazon 계정 없이 라이브 종량제 요금으로 제공됩니다.
자주 묻는 질문
구독 없이 Amazon API 키를 얻으려면 어떻게 하나요?
Amazon 계정은 필요 없습니다: Synthorai에 가입해 API 키 하나만 만들면, 이 페이지의 모든 Amazon 모델을 OpenAI 호환 엔드포인트로 사용할 수 있습니다. 종량제, 구독 불필요(“초대제 베타”로 표시된 모델은 추가로 신청 승인이 필요합니다).
Amazon API 요금은 얼마인가요?
토큰 과금 모델은 입력 토큰 $0.06/M부터 시작하며, 각 모델의 실시간 단가는 위 표에 있습니다. 공급사 정가이며 플랫폼 마진이 없습니다.
제 Amazon 키(BYOK)를 사용할 수 있나요?
Amazon은 아직 BYOK를 지원하지 않으며, 요청은 안내된 요율에 따라 Synthorai의 관리형 채널에서 실행됩니다.
API 이용 시 Amazon의 데이터 보존 정책은 어떻게 되나요?
기본적으로 게이트웨이에서 프롬프트 보존은 0(Zero)이며, 업스트림에는 Amazon의 데이터 정책이 적용됩니다.
다른 공급사