Gemini 3.8 Flash Lite TTS
gemini-3.8-flash-lite-tts
A lightweight speech synthesis model in the Google Gemini 3.8 TTS series that takes text and outputs WAV audio; it supports dialogs with 1-2 speakers, allows setting the speaking style per turn, and uses English tags to control tone, making it suitable for voice assistants and batch dubbing
Try gemini-3.8-flash-lite-tts
Input
Output
Pricing
gemini-3.8-flash-lite-tts $0.023 $0.0184 per 1,000 characters
Positioning Overview
This is a text-to-speech model that takes a multi-turn dialogue script and outputs audio, suited to developers and content teams who need to turn written lines into playable human voice. The input supports configuring 1 to 2 speakers; each turn of dialogue can specify a speaker and attach a free-text style description to control tone, emotion and speaking rate. The script content is synthesized in order into one continuous piece of speech, and can be used to produce audio assets for narration, character dialogue and voice-interactive content.
Core Highlights
- Two-speaker conversational synthesis — configure two speakers who read alternately turn by turn, generating in a single pass an audio track that contains lines for multiple characters.
- Per-turn speaking style — each turn of dialogue can carry its own style description, separately controlling that line's tone, emotion and speaking rate.
- Inline vocal tags in the script — English angle-bracket tags inserted into a sentence let the reading include non-verbal vocalizations such as laughter.
- Optional spoken filler words — in two-speaker dialogue, fillers such as “um” and “ah” can be inserted to make the conversation sound closer to everyday speech.
Capability Details
- Multi-turn dialogue script synthesis: synthesis proceeds turn by turn in dialogue_turns order, up to 100 turns per request; each turn must declare a speaker and provide lines of 1 to 10000 characters, and the output is continuous audio.
- One- to two-speaker configuration: speakers supports 1 to 2 people, each speaker can be bound to a preset voice name; speaker identifiers must exactly match the values used in the dialogue turns.
- Per-turn style control and sampling temperature: each turn can use style to describe that line's tone, emotion and speaking rate; temperature ranges from 0 to 2, and higher values produce greater variation in tone and pacing.
- Inline vocal tags: English angle-bracket tags can be inserted into lines to control tone or add vocalizations such as laughter, and are read aloud together with the normal text.
- Two-speaker dialogue filler words: when filler_words is enabled, spoken filler words are inserted into the dialogue; this only takes effect when exactly two speakers are configured, and has no effect on single-speaker requests.
Use Cases
- Narration and character dialogue recording for audio content teams — enter the script turn by turn, assign speakers and voices, and generate audio with differentiated tones for first-pass material in short drama, story or program dubbing.
- Dialogue material for voice assistants and interactive products — product teams write two-speaker dialogue scripts and enable filler words to produce more natural question-and-answer audio for demos, prototypes or the voice portions of interactive content.
- Scripted dubbing for batch audio production — operations and content teams organize large volumes of lines by speaker into turns and synthesize up to 100 turns per request, producing audio files ready for distribution.
- Model reading for teaching and language content — curriculum staff add style descriptions turn by turn to control speaking rate and emotion, generating model audio for courses or practice materials.
Limitations and Selection Advice
Each request supports at most 100 turns of dialogue; a single turn's lines are 1 to 10000 characters, and the lines plus style descriptions across all turns must not exceed 12000 characters in total. At most two speakers are allowed, and speaker identifiers must follow the fixed format of “Speaker” plus a space plus a positive integer, corresponding one-to-one with the dialogue turns. Filler words only take effect with exactly two speakers. Sampling temperature is limited to between 0 and 2, and voice names are case-sensitive.
What's new
View changelog →- New model New models: Gemini 3.8 Flash TTS & Flash Lite TTS (dialogue text-to-speech)
Create a generation task
https://api.hiapi.sh/v1/tasks Headers
AuthorizationstringRequiredAccount API key. Required on every request. Example: Bearer YOUR_HIAPI_API_KEY. Get your API key
Content-TypestringOptionalThe request body is always parsed as JSON; when sent, only application/json (optionally with charset) is accepted — any other value returns 415. Example: application/json.
Idempotency-KeystringOptionalIdempotency key, up to 255 bytes. Retries with the same key from the same account create the task only once; replays return the original taskId.
On network timeouts or client retries, the same key creates the task only once — no double charges (scope: the API key's account). Use a business-unique identifier as the key (e.g. "order-42"); replays return the original taskId, and keys expire 24 hours after the first request. See the Unified Async API overview for the full scenario matrix.
Body
modelstringRequiredCurrent fixed value: gemini-3.8-flash-lite-tts
routestringOptionalCurrent fixed value: default
inputobjectRequired
Business parameters for gemini-3.8-flash-lite-tts and route default — see the parameter table below.
speakersarrayRequiredminItems 1maxItems 2
说话人配置,支持 1–2 人。每人的 speaker_id 必须与 dialogue_turns 中出现的取值一一对应;双人对话才会启用 filler_words。
Array [ object ]
Array items
speaker_idstringRequiredmaxLength 32pattern ^Speaker [1-9][0-9]*$说话人标识,格式固定为 Speaker 1、Speaker 2……(Speaker + 空格 + 正整数),需与对话轮次里的 speaker_id 完全一致。
voice_namestringOptional预置音色名,大小写敏感,未填时上游使用 Fola。examples 只是 12 个常用音色示例,不是全集(上游共 70 个音色),任何上游支持的音色名都可用;同一段对话建议不同说话人选用不同音色。
FolaKorePuckAoedeZephyrCharonLedaEnceladusShow all (4)Show less
JoriTovaEnzoIapetustemperaturenumberOptionalDefault: 1min 0max 2采样温度(0–2,默认 1)。数值越高,语气与节奏的变化越大;留空时按 1 处理。
filler_wordsbooleanOptionalDefault: false是否在对话中插入“嗯”“啊”等口语填充词,默认关闭。仅在恰好配置 2 个说话人时生效,单人请求填了也不产生效果。
dialogue_turnsarrayRequiredminItems 1maxItems 100
按顺序合成的对话轮次,一次请求最多 100 轮;每一轮的 speaker_id 必须属于 speakers 中已声明的说话人。整单所有轮次的 text 与 style 合计不超过 12,000 字符(HiAPI 整单预扣上限,足以覆盖单轮最大 10,000 字 text + 2,000 字 style)。
Array [ object ]
Array items
textstringRequiredminLength 1maxLength 10000本轮台词,1–10000 字符。可在句中插入英文尖括号标签控制语气,例如 Hello there. <laugh> That works.
stylestringOptionalmaxLength 2000本轮的说话风格,自由文本,描述语气、情绪与语速;同一说话人不同轮次可分别设置,例如“像疲惫的深夜电台主持人,语速慢而干”。
speaker_idstringRequiredmaxLength 32pattern ^Speaker [1-9][0-9]*$本轮由谁来说,取值必须是 speakers 中已声明的 speaker_id。
callbackobjectOptional
Terminal-state notification config. When omitted, no callback is delivered — poll the task yourself. See the callback note below.
Provide callback.url when creating a task and HiAPI POSTs to your service once the task reaches a terminal state — no polling needed. The callback payload mirrors the task detail structure; signature verification, delivery retries and idempotency are documented on the Unified Async API overview page.
urlstringRequiredRequired when callback is present. A POST is sent to this URL once the task reaches a terminal state; must be a valid http(s) URL.
whenstringOptionalDefault: "final"Only final is supported today — notified on both success and fail.
finalstoragestringOptionalDefault: "temp"Artifact storage tier: temp (default, retained about 7 days) or persistent (long-term, billed by size). Insufficient balance or exceeding the storage cap silently downgrades to temp; the effective tier is shown in the task detail response.
temppersistentRequest examples
# Submit an async task; returns a taskId immediately (no waiting for generation)
curl -X POST "https://api.hiapi.sh/v1/tasks" \
-H "Authorization: Bearer $HIAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.8-flash-lite-tts",
"input": {
"speakers": "…",
"temperature": 1,
"filler_words": false,
"dialogue_turns": "…"
}
}' const res = await fetch("https://api.hiapi.sh/v1/tasks", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HIAPI_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "gemini-3.8-flash-lite-tts",
input: {
"speakers": "…",
"temperature": 1,
"filler_words": false,
"dialogue_turns": "…"
}
}),
});
const task = await res.json();
// { code: 200, message: "success", data: { taskId } } import os, requests
res = requests.post(
"https://api.hiapi.sh/v1/tasks",
headers={"Authorization": f"Bearer {os.environ['HIAPI_API_KEY']}"},
json={
"model": "gemini-3.8-flash-lite-tts",
"input": {
"speakers": "…",
"temperature": 1,
"filler_words": False,
"dialogue_turns": "…"
}
},
)
print(res.json()) # { code, message, data: { taskId } } 200 OK
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-01HZTQ8BX2N3GM3YFK4Z9D7VQR"
}
} 400 Bad Request
{
"code": 400,
"message": "invalid request",
"data": null,
"error_code": "INVALID_REQUEST"
} Get task detail
https://api.hiapi.sh/v1/tasks/:id Response fields
taskIdstringRequiredTask ID, always prefixed with tk-hiapi-.
modelstringRequiredResolved full model name. Tasks submitted with the route parameter return base@route (e.g. gpt-image-2/text-to-image@ext); otherwise identical to the name passed at creation.
routestringOptionalPresent only when the task was submitted with an explicit route parameter; echoes the submitted value.
statusstringRequiredTask status.
queued Queued, not started yet.
handling Being processed.
archiving Processing finished, artifacts being prepared.
success Terminal: completed, artifacts available (output returned).
fail Terminal: failed (error returned).
After submission, check status: success and fail are terminal, everything else is non-terminal. Poll every 1–3 seconds until terminal. On success, download artifacts from output[].url and transfer them before expireAt; pass storage: "persistent" at creation time when long-term retention is needed.
creatednumberRequiredTask creation time (Unix seconds).
completednumberRequiredUnix seconds when the task reached a terminal state; fixed to 0 while not terminal.
outputarrayOptional
Present only when status == success. Artifact list — always an array; a single task may return multiple types at once (e.g. video + first_frame).
Array [ object ]
Array items
urlstringRequiredArtifact URL, directly downloadable.
typestringRequiredCurrent possible values: video, image, audio, first_frame, last_frame, thumbnail; more may be added later.
expireAtnumberRequiredUnix seconds until which the artifact remains accessible; download or transfer before it expires.
errorobjectOptional
Present only when status == fail.
codestringRequiredBusiness error code.
messagestringRequiredError description.
Response examples
Success
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-01HZTQ8BX2N3GM3YFK4Z9D7VQR",
"model": "happyhorse-1-0",
"status": "success",
"created": 1777282033,
"completed": 1777282099,
"output": [
{
"url": "https://cdn.hiapi.ai/tasks/.../video.mp4",
"type": "video",
"expireAt": 1777886899
}
]
}
} Processing (non-terminal)
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-...",
"model": "happyhorse-1-0",
"status": "archiving",
"created": 1777282033,
"completed": 0
}
} Failed
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-...",
"model": "happyhorse-1-0",
"status": "fail",
"created": 1777282033,
"completed": 1777282099,
"error": {
"code": "TASK_FAILED",
"message": "task failed"
}
}
} Articles
View all articles →-
Tutorial
gemini-3.8-flash-lite-tts in practice: 5 high-value TTS application scenarios and integration essentials
Start from the cost structure and truly bring text-to-speech into business processes
-
Comparison
gemini-3.8-flash-lite-tts Side-by-Side Comparison: A Practical Guide to TTS Model Selection and Migration
-
Guide
Getting Started with gemini-3.8-flash-lite-tts: Capability Boundaries, Billing, and Integration Practices
From capability assessment to cost estimation, a complete checklist for developers before integrating a TTS model
Related Models
View all models →Same Type
-
Gemini 3.8 Flash TTS Google $0.033 /1,000 characters -
Mureka 9.5 Mureka $0.322 per request -
Seed Audio 1.5 $0.0012 /second -
MiniMax Music 2.6 MiniMax $0.210 /song -
Seed Audio 1.0 ByteDance $0.268 per minute -
ElevenLabs Sound Effects ElevenLabs $0.0029 /second -
Qwen Audio 3.0 TTS Alibaba $0.030 /1,000 characters -
Eleven v4 Turbo ElevenLabs $0.057 /1,000 characters -
Stable Audio 3 Medium Stability AI $0.054 per audio -
Eleven v4 ElevenLabs $0.114 /1,000 characters -
ElevenLabs ElevenLabs $0.125 /1,000 characters -
Lyria 3 Pro Google $0.140 /song
Same Provider
-
Gemini Omni 1.2 Google $0.023 /second -
Lyria 3.5 Google $0.090 /song -
Imagen 4 Google $0.030 /image -
Veo 3.1 Fast Google $0.170 /second -
Gemini 3.8 Google $0.227 /1M tokens -
Nano Banana Google $0.011 /image -
Gemini 4 Google $0.057 /1M tokens -
Nano Banana Pro Google $0.029 /image -
Nano Banana 2 Google $0.018 /image -
Veo 3.1 Lite Google $0.060 /second -
Gemini 3.8 Flash TTS Google $0.033 /1,000 characters -
Lyria 3 Pro Google $0.140 /song