Pular para o conteúdo principal
Model logo

API do Gemini 3.8 Flash TTS

  • Texto para fala

Gemini 3.8 Flash TTS faz parte da família de modelos GeminiVer todos os modelos Gemini

Modo
Saída

Seu audio gerado aparecerá aqui

Atualizado

What is the Gemini 3.8 Flash TTS API?

The Gemini 3.8 Flash TTS API is live on UnificAlly as google/gemini-3.8-flash-tts, from $0.000158 per second of generated audio. Gemini 3.8 Flash TTS is Google's highest-quality text-to-speech model, released on September 23, 2026. It turns text into spoken audio in 130+ languages, with vocal sounds, stage-style delivery, and two-speaker dialogue in a single request. On UnificAlly it is billed per second of audio delivered.

It is the biggest jump the Gemini voice line has made. On the Artificial Analysis Text to Speech leaderboard it holds 3rd place with an Elo of 1267, ahead of Qwen-Audio-3.0-TTS-Plus (1258) and far ahead of Gemini 3.1 Flash TTS (1203).

Gemini 3.8 Flash TTS API specs

Model IDgoogle/gemini-3.8-flash-tts
EndpointPOST https://api.unifically.com/v1/tasks
Request typesSingle-voice speech, two-speaker dialogue
InputText, with the language detected automatically (130+ languages)
Voices30 prebuilt voices, by Gemini name or OpenAI-style alias
Output formatsmp3, wav, pcm, opus, aac, flac
Speed0.25 to 4.0
Speakers per requestUp to 2
Rate$0.000158/sec of generated audio

Billing is per second of generated audio, with no subscription. The Gemini API pricing guide covers the rates across the Gemini family.

How to use the Gemini 3.8 Flash TTS API

  1. Create an API key on the API keys page.
  2. Send a POST request to /v1/tasks with the model ID and an input object holding the text and voice.
  3. Read the task_id from the response, then check the task until it is finished, or pass a callback URL and wait for the result.
curl -X POST https://api.unifically.com/v1/tasks   -H "Content-Type: application/json"   -H "Authorization: Bearer YOUR_API_KEY"   -d '{
    "model": "google/gemini-3.8-flash-tts",
    "input": {
      "input": "Welcome back! <laugh> Your order has shipped and arrives tomorrow.",
      "voice": "nova",
      "response_format": "mp3",
      "instructions": "Speak cheerfully, like a friendly support agent."
    }
  }'

The response returns the task ID straight away:

{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "processing"
  }
}

Poll the task until status is completed.

curl https://api.unifically.com/v1/tasks/{task_id}   -H "Authorization: Bearer YOUR_API_KEY"

The finished task carries the audio file as output.audio_url:

{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "completed",
    "output": {
      "audio_url": "https://files.unifically.com/audio/abc123.mp3"
    }
  }
}

Gemini 3.8 Flash TTS API parameters

ParameterTypeDefaultWhat it does
inputstringnoneText to speak. The language is detected automatically. Send exactly one of input, text, or dialogue
textstringnoneAlias for input
dialoguearraynoneDialogue lines as [{"text", "voice", "speaker"?}, ...], spoken in order
voicestringalloyVoice name, either a Gemini voice or an OpenAI-style alias
response_formatstringmp3Output container: mp3, wav, pcm, opus, aac, or flac
speednumber1.0Playback speed multiplier, 0.25 to 4.0
instructionsstringnoneStyle directions the voice follows but does not read, such as "speak like a sports commentator"
languagestringautoBCP-47 code that pins the output language
speakersarraynoneTwo-speaker dialogue config. When set, voice is ignored

The Gemini 3.8 Flash TTS API documentation has the full reference, with the voice list, language codes, and output formats.

Two-speaker dialogue request

Each line in dialogue carries its own voice, and lines are spoken in order. A request takes up to 2 distinct voices.

curl -X POST https://api.unifically.com/v1/tasks   -H "Content-Type: application/json"   -H "Authorization: Bearer YOUR_API_KEY"   -d '{
    "model": "google/gemini-3.8-flash-tts",
    "input": {
      "dialogue": [
        { "text": "Did the deploy finish?", "voice": "onyx", "speaker": "Joe" },
        { "text": "Yes, all green. We are live!", "voice": "nova", "speaker": "Jane" },
        { "text": "Great news.", "voice": "onyx", "speaker": "Joe" }
      ]
    }
  }'

What's new in Gemini 3.8 Flash TTS

#3 on the Artificial Analysis TTS leaderboard

Gemini 3.8 Flash TTS scores an Elo of 1267 in blind listening tests, 3rd behind Eleven v4 (1319) and Sonic 3.6 (1276). Gemini 3.1 Flash TTS sits at 1203, so the new model gains 64 points on its predecessor.

Vocal bursts placed inline

Write <laugh>, <sigh>, <gasp>, <breath>, or <long pause> where the sound belongs and the model performs it at that exact spot. Short listener sounds like |mhm| and |yeah| make a two-person scene sound like a real talk.

2,000+ voices. The 30 curated Gemini voices stay, with the same names, and Google adds an extended library it puts at more than 2,000 voices across accents and character types.

Two-speaker scenes. One request renders a conversation between two prebuilt voices, with the turn-taking handled by the model.

130+ languages. Language is detected from the text, with regional accents such as Mexican Spanish and Quebec French in the voice library.

Style instructions. The instructions field, like "whispered urgently", shapes the read without being spoken.

What Gemini 3.8 Flash TTS is best for

  • Games and animation

    Character lines with laughs, sighs, and pauses placed exactly where the scene needs them.

  • Podcasts and explainers

    Two-host scripts rendered in one request instead of two stitched files.

  • Audiobooks

    Long narration where acting and pacing carry the listener.

  • Localized content

    One script voiced in 130+ languages, with regional accents from the voice library.

  • Branded assistants

    A fixed voice and style note that keeps the same persona across every reply.

Gemini 3.8 Flash TTS use cases

Turn a written outline into a two-host podcast episode, one voice per host, with the listener sounds and laughs written right into the script. Voice every character in an interactive story from a single model, with the emotion cues coming from the scene state. Render trailers and promos where one well-placed <gasp> or <long pause> carries the moment. Localize a product tour by translating the text and letting the model pick up each target language on its own.

Gemini 3.8 Flash TTS limitations

Google lists Gemini 3.8 Flash TTS as Preview on its enterprise API, so voices and limits can still change. Dialogue tops out at two speakers per request. Each request takes up to 8,192 tokens of text, so a full audiobook needs to be split into chapters. Voice cloning and custom voice design live in a separate Google voice-management flow and are not available on UnificAlly; requests use the 30 prebuilt voices.

Gemini 3.8 Flash TTS vs Gemini 3.1 Flash TTS

3.8 wins on every public number we checked: 1267 against 1203 Elo on Artificial Analysis, and 130+ languages against 70+. The tag syntax changes too, from square-bracket directions like [whispering] in 3.1 to angle-bracket sounds like <laugh> in 3.8, so scripts written for 3.1 need a pass before they move over.

Perguntas frequentes

Perguntas frequentes sobre Gemini 3.8 Flash TTS

Send a POST /v1/tasks request with model set to google/gemini-3.8-flash-tts and your text and voice in input. It returns a task_id, and the finished audio comes back as an audio_url in MP3, WAV, PCM, Opus, AAC, or FLAC.

Grab a key from the API keys page after you register, and include it as Authorization: Bearer <key> on each call to https://api.unifically.com/v1/tasks. Your first request sets model to google/gemini-3.8-flash-tts with text and a voice, and the same header reads the finished task.

Inside input, send the text (vocal bursts such as <laugh> or <short pause> go right in it), a voice, optional style instructions, speed from 0.25 to 4.0 and a response_format; use dialogue or speakers for two voices. Keep the returned task_id, or pass a callback URL, and the completed task delivers the file as output.audio_url.

Google released Gemini 3.8 Flash TTS on September 23, 2026, together with Gemini 3.8 Flash-Lite TTS. Both launched on the Gemini API and in Google AI Studio.

It sits 3rd on the Artificial Analysis Text to Speech leaderboard with an Elo of 1267, behind Eleven v4 at 1319 and Sonic 3.6 at 1276. That is 64 points above Gemini 3.1 Flash TTS at 1203.

You write short non-speech sounds in angle brackets right where they should happen, like <laugh>, <sigh>, <breath>, or <short pause>. The model performs the sound at that point instead of reading the tag. The square-bracket tags used by Gemini 3.1 Flash TTS are not part of the 3.8 syntax.

It keeps the 30 curated Gemini voices, such as Kore, Puck, and Charon, and adds an extended library that Google puts at more than 2,000 voices. It speaks more than 130 languages with automatic language detection.

Yes. One request can render a conversation between up to two speakers using prebuilt voices, with the turn-taking handled by the model.

Each request takes up to 8,192 input tokens of text, and Google serves up to 16,384 audio output tokens. Audio runs at about 25 tokens per second, so one request covers roughly ten minutes of speech.

Flash is the higher-quality model, ranked 3rd on Artificial Analysis against 6th for Flash-Lite, and it covers 130+ languages against 100+. Flash-Lite is tuned for throughput and low latency, for high-volume narration, dubbing, and voice agents.

Guias e comparações do Gemini 3.8 Flash TTS

Confira preços, limites e resultados testados antes de usar este modelo.