temperaturenumber선택테이크 간의 변화를 0부터 2까지로 지정합니다. 값이 클수록 연기가 덜 예측 가능해집니다. 지정하지 않으면 모델의 기본값을 씁니다. 초당 가격은 달라지지 않습니다.
- 기본값
- 지정되지 않음
- 제약 조건
- minimum:0maximum:2
google/gemini-3.8-flash-lite-tts/text-to-speechGemini 3.8 Flash-Lite TTS는 더 빠르고 저렴한 Google text-to-speech 모델로, 30가지 목소리를 골라 24 kHz 모노 WAV를 보통 몇 초 안에 받습니다. 대화는 목소리 2개까지이며 문장부호가 어조를 만듭니다.
예시는 선택한 엔드포인트의 공개 파라미터 정의를 사용합니다. API 키와 예시 미디어를 바꾼 뒤 서버에서 요청하세요.
SDK 및 연동https://api.spicyapi.ai/api/v1/jobs/createTaskAPI 키는 서버 환경 변수 SPICY_API_KEY에 보관하세요. Bearer 인증을 사용하고 JSON 요청에는 Content-Type: application/json을 지정하세요.
Authorization: Bearer $SPICY_API_KEY# Generate the idempotency key once; reuse it when retrying after a lost response.
export SPICY_IDEMPOTENCY_KEY="${SPICY_IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.spicyapi.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $SPICY_IDEMPOTENCY_KEY" \
-d '{
"model": "google/gemini-3.8-flash-lite-tts/text-to-speech",
"input": {
"text": "Welcome back. Your files finished rendering a minute ago and are ready to download.",
"voice_id": "Kore"
}
}'
# Copy data.taskId from the response into TASK_ID, then poll the status.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.spicyapi.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $SPICY_API_KEY"이 모델의 입력 스키마에서 뽑아낸 예시입니다. API도 모든 요청을 같은 스키마로 검증합니다.
이 필드들은 요청 본문의 input 객체 안에 넣습니다. 이름과 타입은 API와 동일합니다. 기본값이 적혀 있지 않은 필드는 임의로 가정하지 마세요.
일부 필드는 다른 입력값에 따라 필수가 됩니다. 조건부 필수 항목의 정확한 규칙은 아래 전체 JSON Schema에서 확인하세요.
temperaturenumber선택테이크 간의 변화를 0부터 2까지로 지정합니다. 값이 클수록 연기가 덜 예측 가능해집니다. 지정하지 않으면 모델의 기본값을 씁니다. 초당 가격은 달라지지 않습니다.
scenestring선택어디서 누구에게 하는 말인지에 대한 설명입니다(예: ‘자정이 지난 조용한 호텔 방’). 연기 방식에 반영되며 읽히지 않습니다. 최대 500자입니다. 초당 가격은 달라지지 않습니다.
instructionsstring선택읽는 방식에 대한 자유 형식 지시입니다. 속도, 분위기, 마이크와의 거리, 듣는 사람 등을 적습니다. 연기에 반영되지만 소리 내어 읽히지는 않습니다. 최대 1,000자입니다.
accentstring선택읽을 때 쓰는 영어 억양입니다. 생략하면 음성 본래의 억양을 씁니다. dialogue에서는 자기 값을 정하지 않은 화자에게 이 값이 쓰입니다.
"neutral""american_general""american_valley""american_south""british_rp""british_brixton""transatlantic""australian"pacestring선택낭독의 리듬입니다. natural, rapid_fire(빠르고 짧게), the_drift(느리고 여운 있게), staccato(짧게 끊어서) 중에서 고릅니다. 생략하면 음성 고유의 리듬을 유지합니다. dialogue에서는 자기 값을 정하지 않은 화자에게 이 값이 쓰입니다. 템포가 느릴수록 오디오 초 수가 늘고, 그 초 수로 과금됩니다.
"natural""rapid_fire""the_drift""staccato"stylestring선택전체 말투입니다. 비워 두면 보이스 고유의 말투로 읽습니다. dialogue에서는 자기 값을 정하지 않은 화자에게 이 값이 쓰입니다.
"whisper""empathetic""vocal_smile""newscaster""promo_hype""deadpan"voice_idstring선택30가지 사전 제작 음성 중 하나이며, 각각 고정된 캐릭터를 가집니다. 기본값은 Kore입니다. text를 읽는 목소리이며, dialogue에서는 화자마다 voice_id를 정합니다.
"Achernar""Achird""Algenib""Algieba""Alnilam""Aoede""Autonoe""Callirrhoe""Charon""Despina""Enceladus""Erinome""Fenrir""Gacrux""Iapetus""Kore""Laomedeia""Leda""Orus""Puck""Pulcherrima""Rasalgethi""Sadachbia""Sadaltager""Schedar""Sulafat""Umbriel""Vindemiatrix""Zephyr""Zubenelgenubi"speakersarray<object>조건부 필수dialogue의 배역입니다. 한두 명을 지정하며, 각자에 줄에서 참조하는 name과 voice_id, 그리고 선택으로 accent, style, pace, profile(말하는 사람에 대한 짧은 설명이며 읽히지 않습니다)을 설정합니다. 비워 둔 항목에는 최상위 accent, style, pace 값이 쓰입니다. 초당 가격은 달라지지 않습니다.
speakers[].namestring객체 내 필수Name the dialogue lines use for this speaker.
speakers[].voice_idstring객체 내 필수Prebuilt voice for this speaker.
"Achernar""Achird""Algenib""Algieba""Alnilam""Aoede""Autonoe""Callirrhoe""Charon""Despina""Enceladus""Erinome""Fenrir""Gacrux""Iapetus""Kore""Laomedeia""Leda""Orus""Puck""Pulcherrima""Rasalgethi""Sadachbia""Sadaltager""Schedar""Sulafat""Umbriel""Vindemiatrix""Zephyr""Zubenelgenubi"speakers[].pacestring선택Rhythm of this speaker's lines.
"natural""rapid_fire""the_drift""staccato"speakers[].stylestring선택Manner of this speaker's lines.
"whisper""empathetic""vocal_smile""newscaster""promo_hype""deadpan"speakers[].accentstring선택English accent for this speaker.
"neutral""american_general""american_valley""american_south""british_rp""british_brixton""transatlantic""australian"speakers[].profilestring선택Short description of who is speaking; not read aloud.
dialoguearray<object>조건부 필수text 대신 쓰는, 최대 두 목소리의 대본 대화입니다. 최대 20줄이며 각 줄에 speaker(speakers에 있는 이름)와 250자 이내의 text를 지정합니다. 줄은 순서대로 연기됩니다. text와 마찬가지로 반환된 오디오의 초 단위로 과금됩니다.
dialogue[].textstring객체 내 필수The line, exactly as it should be spoken.
dialogue[].speakerstring객체 내 필수A name from speakers.
textstring조건부 필수말할 단어를 작성된 그대로 정확히 입력합니다. [sighs]와 같은 대괄호 지시는 안정적으로 연기되지 않으며 그대로 소리 내어 읽힐 수 있으므로, 대신 소리 나는 대로 써 주세요. 최대 5,000자까지 가능합니다. 두 목소리의 대화에는 대신 dialogue를 씁니다.
{
"type": "object",
"allOf": [
{
"if": {
"required": [
"dialogue"
]
},
"then": {
"required": [
"speakers"
]
}
}
],
"anyOf": [
{
"required": [
"text"
]
},
{
"required": [
"dialogue"
]
}
],
"required": [],
"x-pricing": {
"billingMode": "duration_capped",
"variantFields": []
},
"properties": {
"pace": {
"enum": [
"natural",
"rapid_fire",
"the_drift",
"staccato"
],
"type": "string",
"x-ui": {
"order": 75,
"widget": "select"
},
"description": "Rhythm of the reading. Omit it to keep the voice's own rhythm."
},
"text": {
"type": "string",
"x-ui": {
"rows": 6,
"order": 100,
"widget": "textarea",
"primary": true
},
"maxLength": 5000,
"minLength": 1,
"description": "The words to be spoken, exactly as written. Spell out sounds such as sighs or laughter; bracketed cues may be read aloud."
},
"scene": {
"type": "string",
"x-ui": {
"rows": 2,
"order": 58,
"widget": "textarea"
},
"maxLength": 500,
"description": "Where and to whom the words are spoken. Shapes the delivery and is not spoken."
},
"style": {
"enum": [
"whisper",
"empathetic",
"vocal_smile",
"newscaster",
"promo_hype",
"deadpan"
],
"type": "string",
"x-ui": {
"order": 80,
"widget": "select"
},
"description": "Overall manner of the reading. Omit it to use the voice's own default manner."
},
"accent": {
"enum": [
"neutral",
"american_general",
"american_valley",
"american_south",
"british_rp",
"british_brixton",
"transatlantic",
"australian"
],
"type": "string",
"x-ui": {
"order": 70,
"widget": "select"
},
"description": "English accent used for the reading."
},
"dialogue": {
"type": "array",
"x-ui": {
"order": 98,
"widget": "object-list",
"advanced": false
},
"items": {
"type": "object",
"required": [
"speaker",
"text"
],
"properties": {
"text": {
"type": "string",
"maxLength": 250,
"minLength": 1,
"description": "The line, exactly as it should be spoken."
},
"speaker": {
"type": "string",
"maxLength": 40,
"minLength": 1,
"description": "A name from speakers."
}
},
"additionalProperties": false
},
"maxItems": 20,
"minItems": 1,
"description": "A scripted conversation, used instead of text: each line names a speaker from speakers."
},
"speakers": {
"type": "array",
"x-ui": {
"order": 96,
"widget": "object-list",
"advanced": false
},
"items": {
"type": "object",
"required": [
"name",
"voice_id"
],
"properties": {
"name": {
"type": "string",
"maxLength": 40,
"minLength": 1,
"description": "Name the dialogue lines use for this speaker."
},
"pace": {
"enum": [
"natural",
"rapid_fire",
"the_drift",
"staccato"
],
"type": "string",
"description": "Rhythm of this speaker's lines."
},
"style": {
"enum": [
"whisper",
"empathetic",
"vocal_smile",
"newscaster",
"promo_hype",
"deadpan"
],
"type": "string",
"description": "Manner of this speaker's lines."
},
"accent": {
"enum": [
"neutral",
"american_general",
"american_valley",
"american_south",
"british_rp",
"british_brixton",
"transatlantic",
"australian"
],
"type": "string",
"description": "English accent for this speaker."
},
"profile": {
"type": "string",
"maxLength": 300,
"description": "Short description of who is speaking; not read aloud."
},
"voice_id": {
"enum": [
"Achernar",
"Achird",
"Algenib",
"Algieba",
"Alnilam",
"Aoede",
"Autonoe",
"Callirrhoe",
"Charon",
"Despina",
"Enceladus",
"Erinome",
"Fenrir",
"Gacrux",
"Iapetus",
"Kore",
"Laomedeia",
"Leda",
"Orus",
"Puck",
"Pulcherrima",
"Rasalgethi",
"Sadachbia",
"Sadaltager",
"Schedar",
"Sulafat",
"Umbriel",
"Vindemiatrix",
"Zephyr",
"Zubenelgenubi"
],
"type": "string",
"description": "Prebuilt voice for this speaker."
}
},
"additionalProperties": false
},
"maxItems": 2,
"minItems": 1,
"description": "The cast for dialogue: one or two voices, each with a name the lines refer to."
},
"voice_id": {
"enum": [
"Achernar",
"Achird",
"Algenib",
"Algieba",
"Alnilam",
"Aoede",
"Autonoe",
"Callirrhoe",
"Charon",
"Despina",
"Enceladus",
"Erinome",
"Fenrir",
"Gacrux",
"Iapetus",
"Kore",
"Laomedeia",
"Leda",
"Orus",
"Puck",
"Pulcherrima",
"Rasalgethi",
"Sadachbia",
"Sadaltager",
"Schedar",
"Sulafat",
"Umbriel",
"Vindemiatrix",
"Zephyr",
"Zubenelgenubi"
],
"type": "string",
"x-ui": {
"order": 90,
"widget": "select",
"primary": true
},
"default": "Kore",
"description": "Prebuilt voice that reads the text. Each voice has a fixed character."
},
"temperature": {
"type": "number",
"x-ui": {
"step": 0.05,
"order": 40,
"widget": "slider"
},
"maximum": 2,
"minimum": 0,
"description": "Variation between takes; higher is less predictable."
},
"instructions": {
"type": "string",
"x-ui": {
"rows": 3,
"order": 60,
"widget": "textarea"
},
"maxLength": 1000,
"description": "How to read the text: mood, distance from the microphone, who is listening. Shapes the delivery and is not spoken."
}
},
"additionalProperties": false
}HTTP 202는 접수되었다는 뜻이며 생성 완료가 아닙니다. 반환된 taskId를 저장하고 같은 작업을 조회하세요. 결과를 기다리는 동안 작업을 다시 생성하지 마세요.
HTTP/1.1 202 Accepted
Location: /api/v1/jobs/recordInfo?taskId=job_01k3m8x9q2z4v7n5p6r8s0t1w3
{
"code": 200,
"msg": "success",
"request_id": "req_example_create",
"data": {
"taskId": "job_01k3m8x9q2z4v7n5p6r8s0t1w3",
"state": "queued",
"estimatedCost": "0.750000"
}
}접수 응답에 이번 예상 비용이 포함되므로 앱의 작업 기록과 청구 화면에 같은 금액을 표시할 수 있습니다.
curl --get "https://api.spicyapi.ai/api/v1/jobs/recordInfo" \
--data-urlencode "taskId=$TASK_ID" \
-H "Authorization: Bearer $SPICY_API_KEY"약 2초 간격으로 시작해서 점점 간격을 넓히세요. 종료 상태가 나오면 멈추고, 연결이 끊겼더라도 원래 taskId를 그대로 조회하세요. 다시 생성할 때는 처음에 쓴 Idempotency-Key와 본문을 그대로 써야 합니다.
import { verifyWebhook } from "@spicyapi/sdk";
// express.raw keeps the bytes we signed; express.json never matches.
app.post("/hooks/spicy", express.raw({ type: "application/json" }), (req, res) => {
const { payload } = verifyWebhook({
rawBody: req.body,
timestamp: req.header("X-Webhook-Timestamp"),
signature: req.header("X-Webhook-Signature"),
payloadVersion: Number(req.header("X-Webhook-Payload-Version")),
secret: process.env.SPICY_WEBHOOK_SECRET,
});
res.status(200).end();
void handleFinishedTask(payload);
});작업을 만들 때 callBackUrl을 넘기면 완료된 레코드가 POST로 전달됩니다 — 폴링 루프가 아예 필요 없습니다. 모든 전달에는 X-Webhook-Timestamp, X-Webhook-Signature, X-Webhook-Payload-Version이 함께 옵니다. 서명은 taskId.timestamp.sha256(body)에 대한 base64 HMAC-SHA256이므로 반드시 원본 바이트로 검증해야 합니다. JSON을 파싱했다가 다시 직렬화하면 바이트가 달라져 검증이 실패합니다. 실패한 전달은 재시도되므로 같은 taskId가 두 번 올 수 있습니다. 핸들러를 멱등하게 만드세요. 먼저 2xx로 답하고 처리는 그다음에 — 응답이 느리면 전달 실패로 간주됩니다.
state가 succeeded일 때만 output을 사용하세요. 실패 시 errorCode, errorMessage, request_id로 원인을 확인하세요. 예시 비용과 상태는 실제 청구 내역이 아닙니다.
{
"code": 200,
"msg": "success",
"request_id": "req_example_record",
"data": {
"taskId": "job_01k3m8x9q2z4v7n5p6r8s0t1w3",
"model": "google/gemini-3.8-flash-lite-tts/text-to-speech",
"state": "succeeded",
"output": {
"assets": [
{
"key": "tasks/2026/08/28/job_01k3m8x9q2z4v7n5p6r8s0t1w3/3f7a1c9e5b2d48f0a6c1e3d5b7f9a1c3.mp3",
"mime": "audio/mpeg",
"url": "https://example.r2.cloudflarestorage.com/results/job_01k3m8x9q2z4v7n5p6r8s0t1w3/result.mp3?X-Amz-Signature=SIGNATURE_FROM_RESPONSE",
"expiresAt": "2026-08-28T12:20:08.000Z"
}
]
},
"cost": "0.750000",
"settled": true,
"createdAt": "2026-08-28T12:00:00Z",
"completedAt": "2026-08-28T12:00:30Z"
}
}사용 가능한 파일은 assets[].url에서 바로 열거나 다운로드할 수 있으며 API Authorization 헤더가 필요하지 않습니다. 서명 URL은 expiresAt에 만료됩니다. 보관 기간 내에 작업을 다시 조회하면 URL이 갱신됩니다. 처리 중이거나 사용할 수 없는 파일에는 URL이 없습니다. 서명 URL은 비공개로 보관하세요.
앱, 터미널, AI 어시스턴트 또는 시각적 워크플로에서 SpicyAPI를 사용하세요. 원하는 설정 가이드를 선택하세요.
위 코드를 직접 쓸 필요는 없습니다. MCP 서버를 한 번만 연결해 두면 MCP를 지원하는 에이전트(Claude Code, Codex, Cursor, Windsurf, VS Code, Gemini CLI, Cline, LibreChat)가 이 모델을 이름으로 호출합니다. 셸에서 명령 한 줄로 실행할 수도 있습니다.
google/gemini-3.8-flash-lite-tts/text-to-speech로 네온 아래 선 댄서의 인물 사진을 만들어서 ./out/에 저장해 줘.
에이전트가 공개 카탈로그에서 모델을 찾고, 로컬 파일을 대신 업로드한 뒤, 정확한 견적과 최대 청구액을 보여 주고 확인을 기다립니다. 승인하기 전에는 요금이 발생하지 않습니다.
claude mcp add spicyapi -e SPICY_API_KEY=$SPICY_API_KEY \
-- npx --yes --package=@spicyapi/mcp spicyapi-mcp
npx skills add spicyapi-ai/spicy-skill첫 줄은 도구를, 둘째 줄은 Skill을 넘겨줍니다. Skill은 그 도구를 다루는 규칙입니다 — 청구 전에 견적을 받고, 로컬 파일은 바이트를 붙여 넣는 대신 업로드하고, 완성된 산출물 URL을 추측하지 않고 읽습니다. 다른 클라이언트도 각자의 설정 파일로 같은 서버를 사용합니다. 개발자 페이지를 참고하세요.
npx @spicyapi/cli tasks create --model google/gemini-3.8-flash-lite-tts/text-to-speech \
--input-json '{"text":"Welcome back. Your files finished rendering a minute ago and are ready to download.","voice_id":"Kore"}' \
--wait입력값은 위 예시와 마찬가지로 이 엔드포인트의 스키마에서 생성했습니다. --wait는 작업이 끝날 때까지 폴링해 결과를 출력하고, CI에서는 --yes로 확인 절차를 건너뜁니다. 먼저 SPICY_API_KEY를 설정하세요. API와 CLI, MCP 서버가 같은 키를 씁니다.
npx @spicyapi/cli tasks create --model google/gemini-3.8-flash-lite-tts/text-to-speech \
--input-json '{…}' --retention 1h --wait
npx @spicyapi/cli tasks get $TASK_ID # read back the retention that applied--retention은 보관 기간을 줄이기만 합니다 — 30m, 1h, 7d, 또는 0이면 작업이 종료 상태에 도달하는 즉시 삭제됩니다. 실제로 적용되는 값은 요청과 계정 설정, 플랫폼 상한 중 가장 짧은 값이므로 요청한 숫자가 그대로 반영됐다고 가정하지 말고 작업 레코드에서 다시 읽으세요. 계정이 허용하는 것보다 긴 값을 넘기면 아무 일도 일어나지 않습니다.
ComfyUI Manager나 아래 명령으로 SpicyAPI 노드를 설치한 뒤 캔버스에서 Gemini 3.8 Flash-Lite TTS · Text to Speech를 검색하세요. 노드는 이 페이지와 같은 옵션을 제공하며, 실행하기 전에 가격을 보여 줍니다.
cd ComfyUI/custom_nodes
git clone https://github.com/spicyapi-ai/comfyui-spicyapi삽입된 패널은 이 페이지와 같은 스키마를 참조하므로 API 사양과 어긋나지 않습니다. 문서 검색 대상에 포함하려면 /api/embed/models/의 JSON을 받아 직접 렌더링하세요.
<iframe src="https://spicyapi.ai/embed/ko/models/gemini-3-8-flash-lite-tts/api?model=google%2Fgemini-3.8-flash-lite-tts%2Ftext-to-speech" width="100%" height="560" loading="lazy" title="요청 예시" style="border:1px solid rgba(0,0,0,.12)"></iframe>