by Google

Expressive speech that acts out cues like [laughing]

google/gemini-3.8-flash-tts/text-to-speech
Gemini 3.8 Flash TTS AI Voice Generator online
  • 70 voices
  • Text to Speech

About Gemini 3.8 Flash TTS

The Gemini 3.8 Flash TTS API is fast, typically around 11 seconds per request, and controllable: beyond voice_id it accepts style, pace, accent, scene and free-form instructions, plus a dialogue mode with two speakers. Billing is per second of audio produced.

Call it with the model name google/gemini-3.8-flash-tts/text-to-speech on POST /jobs/createTask, from $0.00032.

Introduction

Gemini 3.8 Flash TTS reads a script aloud in one of 70 prebuilt voices and returns a single WAV file: 24 kHz, 16-bit, mono PCM. Send text with up to 10,000 characters, pick a voice_id (default Kore), and optionally tell it how to read with style, accent, pace, instructions and scene. For a conversation, send dialogue and speakers instead and two voices take turns in the same clip. There are no word timings or subtitles in the result.

What you haveModel
a script with acted cues like [whispering] or [sighs]Gemini 3.8 Flash TTS
plain narration where speed matters more than performed cuesGemini 3.8 Flash Lite TTS

Key features

Direction that is not spoken

style, accent and pace set the manner, English accent and rhythm; leave them out and the voice keeps its own. instructions takes free text about how to read, and scene says where and to whom the words are spoken. Neither is read aloud. temperature (0–2) sets how much the delivery varies between takes.

Acted cues inside the script

Cues in square brackets such as [whispering], [sighs], [laughing] or [gasping] are acted out rather than read aloud. Commas, ellipses and full stops set the pauses.

Two voices in one clip

speakers holds one or two entries, each with a name, a voice_id and optionally accent, style, pace and profile (a short description of who is speaking, not read aloud). Each dialogue line is {speaker, text}; lines are performed in order, up to 20 lines of 10,000 characters each. Settings a speaker leaves out fall back to the top-level accent, style and pace.

Length and timing

A 270-character paragraph came back as 20 to 24 seconds of audio in our tests. The model stops at 16,384 audio tokens per clip, and most tasks finish in under a minute.

Request parameters

ParameterRequiredDescription
paceNoRhythm of the reading. natural · rapid_fire · the_drift · staccato
textNoThe words to be spoken, exactly as written.
sceneNoWhere and to whom the words are spoken. Not read aloud.
styleNoA preset look or genre. whisper · empathetic · vocal_smile · newscaster · promo_hype · deadpan
accentNoAccent used for the reading. neutral · american_general · american_valley · american_south · british_rp · british_brixton · transatlantic · australian
dialogueNoA scripted conversation. Each line names one of the speakers.
speakersNoThe voices in the dialogue, each with a name the lines refer to.
voice_idNoPick from the available voices. Achernar · Achird · Algenib · Algieba · Alnilam · Aoede · Arlo · Autonoe · Bodi · Brio · Callirrhoe · Charon · Cleo · Cruz · Daro · Despina · Elio · Enceladus · Enya · Enzo · Erinome · Fenrir · Finn · Fola · Gacrux · Gero · Hali · Iapetus · Jett · Jori · Kira · Knox · Koda · Kore · Laomedeia · Leda · Lora · Ludo · Lumi · Mako · Milo · Neno · Nika · Nyla · Olin · Orus · Puck · Pulcherrima · Rami · Rasalgethi · Riko · Rina · Sadachbia · Sadaltager · Sami · Schedar · Sola · Sulafat · Tari · Tavi · Tova · Umbriel · Varo · Veda · Vindemiatrix · Zali · Zeno · Zephyr · Zubenelgenubi · Zuri · Default: Kore
temperatureNoVariation between takes. Higher is less predictable. ≥ 0 · ≤ 2
filler_wordsNoAllow filler words such as um and uh in a two-speaker conversation. Default: false
instructionsNoHow to read the text: mood, distance from the mic, who’s listening. Not read aloud.

Pricing

Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

OptionUSD per second
Standard$0.00032

Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.

Use cases

Narration for videos and explainers

Write the voiceover, choose a voice and a pace, and put the tone in instructions ("warm, unhurried, like a museum audio guide"). The WAV drops straight into an editor.

Two-person dialogue

Podcast intros, product demos and scripted interviews fit the two-speaker format: give each speaker a profile and a voice, and write the exchange as dialogue lines.

Characters with a performance

Bracketed cues let a line be whispered, laughed through or sighed, which makes game barks, audiobook characters and short sketches sound acted rather than read.

Prompt guide & pro tips

Pick the voice by character, not by language

Each voice has a fixed character, for example Kore firm, Charon informative, Puck upbeat, Achernar soft and Sulafat warm, and it keeps that character in any language the script is written in.

Say the scene, then the manner

scene answers "where and to whom" ("a late-night radio show, talking to one listener"); instructions answers "how" ("slow, with a smile in the voice"). Keeping the two apart gives steadier takes than one long description.

Let punctuation do the timing

An ellipsis adds a breath, a full stop ends a thought, a short sentence speeds things up. Fix pacing in the script before reaching for pace.

Keep long scripts in paragraphs

Split long reads into separate tasks at natural paragraph breaks; it keeps each take short enough to redo without regenerating the whole piece.

API quick start

Call the Gemini 3.8 Flash TTS API in three steps

  1. Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
  2. Send the request. POST /jobs/createTask with model google/gemini-3.8-flash-tts/text-to-speech and an input object that follows the parameter table. The response returns a task ID straight away.
  3. Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{
  "model": "google/gemini-3.8-flash-tts/text-to-speech",
  "input": {
    "text": "Welcome back. Your files finished rendering a minute ago and are ready to download.",
    "voice_id": "Kore"
  }
}'

# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.

What to build with the Gemini 3.8 Flash TTS API

  • Audiobook and story apps that narrate user text with in-line cues.
  • Two-character dialogue tracks for games and short films.

Gemini 3.8 Flash TTS parameter notes

  • text holds the script for one voice (up to 5,000 characters); dialogue plus speakers handle two voices.
  • style presets include whisper, empathetic, vocal_smile, newscaster, promo_hype and deadpan.
  • pace, accent, scene and instructions shape delivery without editing the script.
  • Bracketed cues in the text are performed, not spoken.

How Gemini 3.8 Flash TTS API pricing adds up

Billed per second of audio returned, so cost scales with script length and pace. A slower pace produces a longer file and a higher charge.

  • Text to Speech, 5-second clip: $0.0016 each, $0.16 for 100 clips

Async jobs, webhooks and rate limits

Every Gemini 3.8 Flash TTS request is asynchronous: createTask returns a taskId straight away, and the result arrives when the job finishes. Poll GET /jobs/recordInfo every few seconds, or pass a public https callBackUrl and verify the X-Webhook-Signature header (HMAC-SHA256 over taskId, timestamp and the body hash) before trusting the payload. Each account gets 1,000 write requests per 10 seconds; a 429 carries Retry-After. Send an Idempotency-Key with createTask so a retried request for google/gemini-3.8-flash-tts/text-to-speech never runs or bills twice.

Common Gemini 3.8 Flash TTS API errors

errorCodeWhat it usually means and how to fix it
invalid_requestText over 5,000 characters, or more than two speakers.
content_rejectedScript refused by safety checks.
invalid_requestBoth text and dialogue sent; use one mode per request.

Gemini 3.8 Flash TTS API questions

How much does the Gemini 3.8 Flash TTS API cost?

Gemini 3.8 Flash TTS costs $0.00032 per second. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

What is the model name for Gemini 3.8 Flash TTS in the API?

Put google/gemini-3.8-flash-tts/text-to-speech for Text to Speech in the model field of POST /jobs/createTask.

How fast is the Gemini 3.8 Flash TTS API?

Typically about 11 seconds per request.

How do I send a two-voice dialogue?

Use the dialogue and speakers fields, assigning each line to a speaker.

How is Gemini 3.8 Flash TTS billed?

Per second of generated audio.

What are the limits of the Gemini 3.8 Flash TTS API?

Text length (characters): 10,000; Voices: 70. Requests outside these limits are rejected before anything is charged.

Can I try Gemini 3.8 Flash TTS without writing code?

Run Gemini 3.8 Flash TTS in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.

All Gemini models

Gemini 3.8 Flash Lite TTS uses the same voices for less, and suits drafts and long batches. The full Flash model gives the more expressive read.

More about Gemini 3.8 Flash TTS