Gemini 3.1 Flash TTS API

Highly controllable TTS with new Audio Tags for precise style, tone, pace, and delivery across narration, assistants, and voice apps.

GoogleAudio GenerationProprietary EndpointNew

About Gemini 3.1 Flash TTS

Highly controllable TTS with new Audio Tags for precise style, tone, pace, and delivery across narration, assistants, and voice apps.

Also known as Gemini Flash TTS, Gemini-3.1-Flash-TTS

Gemini 3.1 Flash TTS specs

Model ID
gemini-3-1-flash-tts
Provider
Google
Category
Audio Generation
Input
text
Output
audio
Endpoints
POST /v1/audio/speech

Gemini 3.1 Flash TTS API pricing

Live pay-as-you-go rates from the EmpirioLabs catalog. You are billed only for what you use, with no monthly minimum.

Type
Spec
Rate
Input
per 1M prompt tokens
$2.60
Output
per 1M generated tokens
$52.00
Compare on the full pricing page

How to call the Gemini 3.1 Flash TTS API

Gemini 3.1 Flash TTS serves speech through POST /v1/audio/speech and returns playable audio. Send the text to speak as input with the model id gemini-3-1-flash-tts. Get an API key from the EmpirioLabs dashboard.

cURL
curl https://api.empiriolabs.ai/v1/audio/speech \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3-1-flash-tts",
    "input": "Welcome to EmpirioLabs. Your build just finished."
  }' \
  --output speech.mp3
Python
import requests

response = requests.post(
    "https://api.empiriolabs.ai/v1/audio/speech",
    headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
    json={"model": "gemini-3-1-flash-tts", "input": "Welcome to EmpirioLabs."},
)
with open("speech.mp3", "wb") as f:
    f.write(response.content)
Full Gemini 3.1 Flash TTS API reference

Gemini 3.1 Flash TTS API parameters

Request parameters supported by the Gemini 3.1 Flash TTS API on EmpirioLabs. Defaults apply when a field is omitted.

ParameterTypeDefaultRange / valuesDescription
inputstring--Text to convert to speech. For multi-speaker mode, prefix lines with Speaker1: / Speaker2:.
modeenumsinglesingle, multisingle = one voice, multi = two-voice dialogue (uses voice + voice2 + speaker names).
languagestringen-US-BCP-47 language tag (en-US, es-ES, etc.) for pronunciation cues.
voiceenumCharonZephyr, Puck, Charon, Kore, Fenrir, Leda, Orus, Aoede, Callir...Primary voice name (e.g. Kore, Puck, Aoede). Leave blank for the default.
voice2enumKoreZephyr, Puck, Charon, Kore, Fenrir, Leda, Orus, Aoede, Callir...Second voice name for multi-speaker mode.
speaker1_namestringSpeaker1-Display name used in the input prefix for speaker 1 (default: Speaker1).
speaker2_namestringSpeaker2-Display name used in the input prefix for speaker 2 (default: Speaker2).
output_formatenumWAVWAV, MP3, OGG, ALAW, MULAWAudio file format (mp3, wav, opus, flac, etc.).
speednumber10.25 to 2Playback rate. 1.0 = natural; <1 slower, >1 faster.
volume_gainnumber0-96 to 16Output gain in dB. 0 = unchanged.
sample_rateenum240008000, 16000, 22050, 24000, 44100, 48000Output sample rate in Hz (8000, 16000, 24000, 44100, 48000).
style_promptstring--Natural-language style direction (e.g. "warm, conversational" or "newscaster, serious").

Good to know

Most controllable Gemini TTS to date.

Limits

  • Text + style prompt: 4,000 bytes each (8,000 combined)
  • Max output: ~10 minutes
  • Audio billing: ~25 tokens per second (~15 chars/s)
  • Language is auto-detected; the language setting is a hint, not a constraint

Inline audio tags (control delivery)

  • Emotion: [whispers], [shouts], [laughs], [sighs], [cheerful], [sad], [angry], etc.
  • Pace: [slow], [fast], [extremely fast], [normal pace]
  • Pauses: [short pause], [long pause], [breath]
  • Emphasis: [softly], [loudly], [high pitch], [low pitch], [rising tone], [falling tone]

Gemini 3.1 Flash TTS API: common questions

How much does the Gemini 3.1 Flash TTS API cost?

On EmpirioLabs, Gemini 3.1 Flash TTS is billed pay as you go: Input $2.60 per 1M prompt tokens; Output $52.00 per 1M generated tokens. The live rate card on this page always matches what the API charges.

Which endpoint does Gemini 3.1 Flash TTS use?

Gemini 3.1 Flash TTS is served through POST /v1/audio/speech on api.empiriolabs.ai with standard bearer-token authentication.

Can I try Gemini 3.1 Flash TTS in the browser before integrating?

Yes. The EmpirioLabs playground runs Gemini 3.1 Flash TTS in the browser with the same parameters the API exposes, so you can test prompts before writing code.

How do I get a Gemini 3.1 Flash TTS API key?

Create an EmpirioLabs account, then generate a key under API Keys in the dashboard. Billing is pay-as-you-go credits, so you only pay for the requests you make.

Ready to use better endpoints?

Explore our models, or contact us about business inquiries, custom deployments, or anything else.