# Gemini TTS > Google's Gemini TTS converts text to realistic audio. 30 voice presets, multi-speaker synthesis (up to 10 speakers), 24+ languages, and inline style markers for expressive control. ## Overview - **Endpoint**: `https://api.runflow.io/v1/run/google/gemini-tts` - **Model ID**: `google/gemini-tts` - **Provider**: Google - **License**: commercial - **Last Updated**: 2026-04-08 ## Pricing - **Base price**: $0.5/1m-tokens - **Note**: $0.50/1M input tokens (flash), $10/1M output tokens ## Input Schema ### `prompt` (string, required) The text to convert to speech. Gemini TTS supports natural-language prompting for style, pace, accent, and emotional expression — include delivery instructions inline with the text (e.g. 'Say cheerfully: Have a wonderful day!'). For multi-speaker synthesis, prefix lines with speaker aliases defined in the speakers field (e.g. 'Alice: Hello!\nBob: Hi!'). Supports inline pace/style markers like [slowly], [whispering], [excited], [extremely fast]. ### `speakers` (string, optional) Multi-speaker voice configuration. When set, enables multi-speaker synthesis where different parts of the text are spoken by different voices. Each speaker needs a voice and a speaker_id (alias) that matches prefixes in the prompt. Requires gemini-2.5-pro-tts or gemini-2.5-flash-tts model. Not supported with gemini-2.5-flash-lite-preview-tts. ### `output_format` (string, optional) Audio output format. mp3: compressed, small file size (recommended). wav: uncompressed PCM wrapped in WAV (24 kHz, 16-bit mono). ogg_opus: Ogg container with Opus codec, good quality-to-size ratio. - **Default**: `mp3` - **Options**: `wav`, `mp3`, `ogg_opus` ### `model` (string, optional) Which Gemini TTS model to use. gemini-2.5-flash-tts: low latency, cost-efficient for everyday applications (recommended). gemini-2.5-pro-tts: highest quality, best for structured workflows like podcasts, audiobooks, and customer support. - **Default**: `gemini-2.5-flash-tts` - **Options**: `gemini-2.5-flash-tts`, `gemini-2.5-pro-tts` ### `voice` (string, optional) Voice preset for single-speaker synthesis. 30 distinct voices are available. Ignored when speakers is set. Popular choices: Kore (strong, firm female), Puck (upbeat, lively male), Charon (calm, professional male), Zephyr (bright, clear female), Aoede (warm, melodic female). - **Default**: `Kore` - **Options**: `Achernar`, `Achird`, `Algenib`, `Algieba`, `Alnilam`, `Aoede`, `Autonoe`, `Callirrhoe`, `Charon`, `Despina`, `Enceladus`, `Erinome`, `Fenrir`, `Gacrux`, `Iapetus`, `Kore`, `Laomedeia`, `Leda`, `Orus`, `Pulcherrima`, `Puck`, `Rasalgethi`, `Sadachbia`, `Sadaltager`, `Schedar`, `Sulafat`, `Umbriel`, `Vindemiatrix`, `Zephyr`, `Zubenelgenubi` ### `language_code` (string, optional) Language for multilingual synthesis. When set, steers the model to speak in the specified language. Supports 24 GA languages and 60+ Preview languages. If not set, the model auto-detects the language from the text. ### `temperature` (number, optional) Controls the randomness of the speech output. Higher values produce more creative and varied delivery, while lower values make the output more predictable and focused. - **Default**: `1` - **Min**: 0 - **Max**: 2 ### `style_instructions` (string, optional) Optional style and delivery instructions prepended to the prompt. Controls expressiveness, accent, pace, tone, and emotional expression using natural language. Use this to separate style control from the text content. Examples: 'Speak warmly and slowly', 'Read this as a dramatic newscast', 'Use a British accent with a cheerful tone', 'Whisper mysteriously'. ## Usage Examples ### cURL ```bash curl -X POST https://api.runflow.io/v1/run/google/gemini-tts \ -H "Authorization: Bearer $RUNFLOW_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "A professional headshot, soft studio lighting", "output_format": "png" }' ``` ### Python ```python import requests response = requests.post( "https://api.runflow.io/v1/run/google/gemini-tts", headers={"Authorization": "Bearer RUNFLOW_API_KEY"}, json={ "prompt": "A professional headshot, soft studio lighting", "output_format": "png", }, ) data = response.json() print(data["audio"]["url"]) ``` ### JavaScript ```javascript const response = await fetch( "https://api.runflow.io/v1/run/google/gemini-tts", { method: "POST", headers: { "Authorization": "Bearer RUNFLOW_API_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ prompt: "A professional headshot, soft studio lighting", output_format: "png", }), } ); const data = await response.json(); console.log(data.audio.url); ``` ## Additional Resources - [Playground](https://www.runflow.io/models/google/gemini-tts) - [API Reference](https://www.runflow.io/models/google/gemini-tts/api) - [Documentation](https://www.runflow.io/docs)