Last refreshed 2026-06-15. Next refresh: weekly.
Why use Gemini 2.5 Flash TTS Preview on Google AI Studio?
Google AI Studio offers Gemini 2.5 Flash TTS Preview with pay-as-you-go pricing at $0.50/1M input tokens. Google AI Studio is a model prototyping environment and API access point for Gemini models, offering an inference playground for developers to test and build AI applications.
Setup recipe
Python + curlpip install google-genaiexport GOOGLE_API_KEY=...import os
from google import genai
client = genai.Client(api_key=os.environ["GOOGLE_API_KEY"])
response = client.models.generate_content(gemini-2.5-flash-preview-ttsRequest example
import os
from google import genai
client = genai.Client(api_key=os.environ["GOOGLE_API_KEY"])
response = client.models.generate_content(
model="gemini-2.5-flash-preview-tts",
contents="Hello"
)
print(response.text)Gotchas
- Use the model name directly, e.g. "gemini-2.0-flash", "gemini-1.5-pro", or "gemini-2.5-pro-preview-05-06".
- The examples expect GOOGLE_API_KEY; rename it only if your application config maps the new variable.
Pricing
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.50 |
Capabilities
About Gemini 2.5 Flash TTS Preview
Gemini 2.5 Flash TTS Preview is Google DeepMind's Gemini 2.5 model focused on audio understanding and generation. It offers a 128K-token context window.
FAQ
What is the context window for Gemini 2.5 Flash TTS Preview on Google AI Studio?
Gemini 2.5 Flash TTS Preview supports a 128k token context window on Google AI Studio.
What API model ID do I use for Gemini 2.5 Flash TTS Preview on Google AI Studio?
Use the model ID gemini-2.5-flash-preview-tts when calling Google AI Studio's API.
Who created Gemini 2.5 Flash TTS Preview?
Gemini 2.5 Flash TTS Preview was created by Google DeepMind as part of the Gemini 2.5 model family.
Is Gemini 2.5 Flash TTS Preview open source?
Gemini 2.5 Flash TTS Preview is not open source; the seed data lists it as proprietary.