> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dreamto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Gemini 3.8 Flash Lite TTS

> Google's cost-efficient text-to-speech model for high-volume dubbing, content creation and voice agents; same interface as Flash TTS, output as WAV.

## 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).

| Endpoint | Purpose |
| - | - |
| [`POST /api/v1/jobs/createTask`](https://docs.dreamto.ai/en/api-reference/gemini-3-8-flash-lite-tts/create-task) | Create task |
| [`GET /api/v1/jobs/recordInfo?taskId=...`](https://docs.dreamto.ai/en/api-reference/gemini-3-8-flash-lite-tts/query-task) | Get task |
| [`POST callBackUrl`](https://docs.dreamto.ai/en/api-reference/gemini-3-8-flash-lite-tts/task-callback) | Task callback |

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

| Field | Values |
| - | - |
| `speakers` | Required, 1–2 speakers; `speaker_id` in the `Speaker N` format, no repeats |
| `speakers[].voice_name` | Optional, one of the 70 preset voices (case-sensitive), default `Fola`; use either this or `replica` |
| `speakers[].replica` | Optional voice clone: both `source_audio_url` and `consent_audio_url` are required, WAV, up to 10 MB each |
| `dialogue_turns` | Required, at least one line; `speaker_id` must be a speaker declared in `speakers` |
| `dialogue_turns[].text` | Required, up to 10,000 characters per line, may contain audio tags |
| `dialogue_turns[].style` | Optional free-form tone, emotion and pace of the line |
| `temperature` | Optional, `0`–`2`, default `1` |
| `filler_words` | Optional, `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 case | Voices (`voice_name`) |
| - | - |
| Tutor | `Bodi`, `Lumi`, `Sadaltager`, `Sola`, `Sulafat`, `Varo`, `Zephyr` |
| Commercial voiceover | `Koda`, `Kore`, `Nika`, `Tavi`, `Zeno` |
| Instructional | `Algenib`, `Despina`, `Erinome`, `Kira`, `Ludo`, `Mako`, `Rasalgethi`, `Rina` |
| Podcast | `Alnilam`, `Brio`, `Jori`, `Laomedeia`, `Rami`, `Veda` |
| Storyteller | `Achird`, `Enzo`, `Riko`, `Sami`, `Zali`, `Zubenelgenubi` |
| Digital assistant | `Algieba`, `Aoede`, `Autonoe`, `Callirrhoe`, `Enceladus`, `Gero`, `Iapetus`, `Neno`, `Olin`, `Tari`, `Umbriel` |
| Call center | `Achernar`, `Charon`, `Daro`, `Fola` (default), `Hali`, `Milo`, `Puck` |
| Concierge | `Arlo`, `Cleo`, `Fenrir`, `Finn`, `Leda`, `Lora`, `Orus` |
| Tech support | `Enya`, `Jett`, `Knox`, `Nyla`, `Sadachbia`, `Vindemiatrix` |
| Professional | `Cruz`, `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.

| Item | Price | Equivalent |
| - | - | - |
| Input (text) | \$0.5 / 1M tokens | — |
| Output (audio) | \$6 / 1M tokens | about \$0.009 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.

```bash cURL theme={null}
# 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-lite-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"
```

```python Python theme={null}
import os
import time

import requests

BASE_URL = "https://api.dreamto.ai"
HEADERS = {"Authorization": f"Bearer {os.environ['DREAMTO_API_KEY']}"}

payload = {
    "model": "gemini-3.8-flash-lite-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."
            }
        ]
    }
}

created = requests.post(f"{BASE_URL}/api/v1/jobs/createTask", headers=HEADERS, json=payload, timeout=60).json()
if created["code"] != 200:
    raise SystemExit(f"{created['code']}: {created['msg']}")
task_id = created["data"]["taskId"]
while True:
    record = requests.get(f"{BASE_URL}/api/v1/jobs/recordInfo", headers=HEADERS, params={"taskId": task_id}, timeout=60).json()["data"]
    if record["state"] in ("success", "fail"):
        break
    time.sleep(5)
if record["state"] == "success":
    audio = requests.get(record["response"]["resultUrls"][0], timeout=300)
    with open("speech.wav", "wb") as f:
        f.write(audio.content)
else:
    print(record["failCode"], record["failMsg"])
```

## Callback

Pass `callBackUrl` (a public `http` / `https` URL) when creating the task; when the task succeeds or fails DreamTo `POST`s 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](https://docs.dreamto.ai/en/webhooks/task-callback.md) 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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.