Gemini 2.5 Pro TTS
AudioNot available
Gemini 2.5 Pro text-to-speech. Higher-quality voice synthesis.
- Type
- Text to Audio
- Billed
- per 1K chars
- Provider
Pricing
/ 1K charsPrice$0.04 / 1K chars
Supported parameters
modelSettings- Promptprompt
- Voicevoice
Code examples
POST /v1/generationsGenerations are async — the request returns immediately with an id; poll for the result.
python
import requests
response = requests.post(
"https://api.modelstack.cc/v1/generations",
headers={"Authorization": "Bearer sk_YOUR_API_KEY"},
json={
"type": "TEXT_TO_AUDIO",
"prompt": "A serene mountain landscape at sunset",
"model": "google/gemini-tts-2-5-pro",
"modelSettings": {
"voice": "Rachel"
}
},
)
generation_id = response.json()["data"]["id"]
# Poll for the result
result = requests.get(
f"https://api.modelstack.cc/v1/generations/{generation_id}",
headers={"Authorization": "Bearer sk_YOUR_API_KEY"},
).json()
print(result["data"]["status"])Related models
More from Google
Frequently asked questions
How is Gemini 2.5 Pro TTS billed on ModelStack?expand_more
Gemini 2.5 Pro TTS (Text to Audio) is billed at a flat, prepaid rate of $0.04 / 1K chars — generation pricing has no tier-based discounts. Final request costs are available in the console.
Which parameters does Gemini 2.5 Pro TTS support?expand_more
Gemini 2.5 Pro TTS supports: Prompt, Voice.
How can I generate with Gemini 2.5 Pro TTS?expand_more
Use the Generate composer in your dashboard, or call the API directly with model `google/gemini-tts-2-5-pro` and type `TEXT_TO_AUDIO` — see the code example above.