G
Gemini 3.1 Flash TTS
Gemini 3.1 Flash TTS, a text-to-speech model from Google.
speechModelOverride: { model: "gemini-3.1-flash-tts" }
Google·Released April 2026Pricing
- Input
- $1.00 / 1M
- Output
- $20.00 / 1M
Specifications
- Context window
- 16,384 tokens
- Max output
- 16,384 tokens
- Released
- April 2026
- Model string
- gemini-3.1-flash-tts-preview
Parameters
Model options, passed in
speechModelOverride.config.| Parameter | Type | Default | Range / options |
|---|---|---|---|
voicePrebuilt voice preset to use. | Select | Kore | ZephyrPuckCharonKoreFenrirLeda+24 |
styleInstructionOptional natural-language direction for delivery (e.g. "Say cheerfully:", "Whisper softly:", "Narrate dramatically:"). Prepended to the input before synthesis. Leave blank for a neutral read. You can also embed expressive audio tags directly in your input text like [happy], [whisper], [laughing]. | Prompt | — | — |
Voices · 30
Use this model
await mindstudio.textToSpeech({ text: "...", speechModelOverride: { model: "gemini-3.1-flash-tts", config: { voice: "Zephyr", }, }, });