Gemini 3.8 Flash TTS

gemini-3.8-flash-tts
AudioGoogleGemini 3.8 TTSflash-tts

Google Gemini 3.8 Flash TTS, the flagship of the family: studio-grade voices, expressive acting, and authentic regional accents that stay stable over long-form and multi-turn output. It detects the input language across 130+ languages and handles single- or multi-speaker dialogue.

Authentication

Base URL
https://api.dreamto.ai
Authorization
Authorization: Bearer YOUR_API_KEY
Content-Type
application/json
Model name (model)
gemini-3.8-flash-tts

Model introduction

Gemini 3.8 Flash TTS is the flagship text-to-speech model Google released in September 2026, built for deep creative direction and character design in games, audiobooks, podcasts and interactive media. It targets studio-grade voice fidelity, expressive acting and authentic regional accents across 130 languages: you can direct each line's pacing, emotion and delivery, add non-verbal cues with audio tags such as <laugh>, <sigh> and <gasp>, generate two-speaker scenes natively from one script, and keep voice quality, pacing and character timbre stable across long continuous audio. With a consent recording from the voice owner, a voice can be replicated from a sample of about 30 seconds. Every generated clip carries an imperceptible SynthID watermark.

Setup

Gemini TTS uses an asynchronous task API: POST /api/v1/jobs/createTask creates a task (model selects the model and the parameters go in input), GET /api/v1/jobs/recordInfo?taskId= queries it, and with callBackUrl the result is pushed to that URL when the task finishes. The base URL is https://api.dreamto.ai; send the API Key in the Authorization: Bearer header. The output is WAV (16-bit PCM, 24 kHz, mono).

Every response has HTTP status 200; the code in the body tells the outcome: 200 is success, anything else an error (see the response examples of each endpoint).

Parameters

model is gemini-3.8-flash-tts; the speakers and lines go in input. Requests out of range return code: 422; no task is created or charged.

FieldValues
speakersRequired, 1–2 speakers; speaker_id in the Speaker N format, no repeats
speakers[].voice_nameOptional, one of the 70 preset voices (case-sensitive), default Fola; use either this or replica
speakers[].replicaOptional voice clone: both source_audio_url and consent_audio_url are required, WAV, up to 10 MB each
dialogue_turnsRequired, at least one line; speaker_id must be a speaker declared in speakers
dialogue_turns[].textRequired, up to 10,000 characters per line, may contain audio tags
dialogue_turns[].styleOptional free-form tone, emotion and pace of the line
temperatureOptional, 0–2, default 1
filler_wordsOptional, false (default) / true; only takes effect with two speakers

Voices

The 70 preset voices are grouped by use case; voice_name is case-sensitive:

Use caseVoices (voice_name)
TutorBodi, Lumi, Sadaltager, Sola, Sulafat, Varo, Zephyr
Commercial voiceoverKoda, Kore, Nika, Tavi, Zeno
InstructionalAlgenib, Despina, Erinome, Kira, Ludo, Mako, Rasalgethi, Rina
PodcastAlnilam, Brio, Jori, Laomedeia, Rami, Veda
StorytellerAchird, Enzo, Riko, Sami, Zali, Zubenelgenubi
Digital assistantAlgieba, Aoede, Autonoe, Callirrhoe, Enceladus, Gero, Iapetus, Neno, Olin, Tari, Umbriel
Call centerAchernar, Charon, Daro, Fola (default), Hali, Milo, Puck
ConciergeArlo, Cleo, Fenrir, Finn, Leda, Lora, Orus
Tech supportEnya, Jett, Knox, Nyla, Sadachbia, Vindemiatrix
ProfessionalCruz, Elio, Gacrux, Pulcherrima, Schedar, Tova, Zuri

Pricing

Billed at Google's official price (Gemini API paid tier, Standard): text input tokens and audio output tokens are priced separately, with 25 audio tokens per second. Input tokens are estimated from all lines and styles (about one token per CJK character and one per four other characters); audio output tokens = the duration of the returned audio in seconds × 25 (rounded), the duration measured from the returned WAV audio data (PCM bytes ÷ (sample rate × channels × bit depth ÷ 8)) and summed over all returned files; for example 3.32 seconds of audio is 83 output tokens. When the task is created the balance is checked for a duration estimated from the text length (code: 402 when insufficient); invalid requests and failed tasks are not charged. The model price in the console is authoritative.

ItemPriceEquivalent
Input (text)$0.5 / 1M tokens—
Output (audio)$9 / 1M tokensabout $0.0135 per minute of audio

Quick start

Create a task to get data.taskId, poll about every 5 seconds, and download the WAV audio from response.resultUrls once state is success; or pass callBackUrl to be called back when the task finishes. $DREAMTO_API_KEY is your API Key.

cURLbash
# 1. Create the task
curl -X POST "https://api.dreamto.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $DREAMTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.8-flash-tts",
    "callBackUrl": "https://your-domain.com/api/callback",
    "input": {
      "temperature": 1,
      "speakers": [
        {
          "speaker_id": "Speaker 1",
          "voice_name": "Fola"
        },
        {
          "speaker_id": "Speaker 2",
          "voice_name": "Zephyr"
        }
      ],
      "dialogue_turns": [
        {
          "speaker_id": "Speaker 1",
          "text": "Hello there. <laugh> That works.",
          "style": "Speak like a tired night-shift radio host, slow and dry."
        },
        {
          "speaker_id": "Speaker 2",
          "text": "Wait, did you hear that? <gasp> I think it actually worked.",
          "style": "Bright and curious, slightly faster."
        }
      ]
    }
  }'

# 2. Query the task
curl "https://api.dreamto.ai/api/v1/jobs/recordInfo?taskId=5e2a9c7f13b84d06a8f1c3e5b7d9a2c4" \
  -H "Authorization: Bearer $DREAMTO_API_KEY"

Callback

Pass callBackUrl (a public http / https URL) when creating the task; when the task succeeds or fails DreamTo POSTs the result there once: the outer code is 200 (success) or 501 (failure) and data is the same as the data of the query endpoint. The request carries X-DreamTo-Event: task.completed, X-DreamTo-Timestamp (UTC, RFC 3339) and X-DreamTo-Signature:

X-DreamTo-Signature = hex( HMAC-SHA256( secret, X-DreamTo-Timestamp + "." + data.taskId + "." + status ) )

status is success when the task succeeded and failed when it failed (not the fail of data.state). Generate the secret under Webhook signing secret on the API Key page of the console; without a secret X-DreamTo-Signature is not sent. The callback times out after 10 seconds and any 2xx counts as delivered; otherwise it is retried after 1, 5 and 30 minutes, at most 4 deliveries, so handle it idempotently by data.taskId. See Task callback for secret management and verification code.

Notes

  • text is read verbatim; put tone, emotion and pace in style, and non-verbal sounds as angle-bracket audio tags (such as <laugh>, <sigh>, <short pause>) inside text.
  • replica clones the voice for this task only; it is not saved as a reusable voice. Both recordings must be of the same adult, made with the same microphone in the same room; AI-generated audio is rejected. The consent recording must read verbatim: I am the owner of this voice and I consent to Google using this voice to create a synthetic voice model. (versions in other supported languages are accepted). Only clone voices you have the right to use.
  • taskId is issued by DreamTo (32 hex digits) and can only be queried with an API Key of the same account; an unknown or expired task returns code: 422 with msg: recordInfo is null.
  • The body accepts only model, callBackUrl and input; undeclared input fields, wrong types and out-of-range values return code: 422 with an English reason in msg; no task is created or charged.
  • Audio links (response.resultUrls, the same as in resultJson) are DreamTo download links (/v1/tasks/{task_id}/artifacts/...) that work without an API Key and support Range; they stay valid for about 14 days after the task is created, so download and keep the audio promptly.
  • param echoes the create request, with input as a JSON string that needs a second parse; the charge of the task is shown in the DreamTo console bills.