Skip to main content

Model introduction

Gemini 3.8 Flash Lite TTS is the text-to-speech model Google released alongside Flash TTS in September 2026 for high-volume, cost-efficient production such as dubbing, content creation and voice agents. It covers 101 languages and replaces the Gemini 3.1 Flash TTS preview. It takes the same parameters as Flash TTS: preset voices, one- or two-speaker dialogue, per-line style direction, audio tags and one-off voice cloning; together with Flash TTS it holds the top two places of Hume AI’s Overall Quality Index. 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-lite-tts; the speakers and lines go in input. Requests out of range return code: 422; no task is created or charged.

Voices

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

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.

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.

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:
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.