Gemini 3.8 Flash TTS
Controllable speech with 30 voices and style instructions.
- by Google
- Speech
- $0.045 per 1K characters
- Text to speech30 voicesStyle instructions
On this page
1.Call
OpenAI-compatible text to speech: the response is the audio itself. Every response carries an x-request-id trace ID.
curl https://api.ewest.ai/v1/audio/speech \
-H "Authorization: Bearer $EWEST_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "ewest/gemini-3.8-flash-tts", "input": "Welcome to eWest."}' \
--output speech.audio
# Add "response_format": "url" to get {"url": "https://cdn.ewest.ai/aud/…"} instead of the bytes.2.Authentication
Send your API key in the Authorization: Bearer header, as the examples above do (clients built for the Anthropic API can use x-api-key). Create keys under API keys. Keep the key on your server, never in browser code. More in the authentication guide.
3.Schema
What you send and what comes back, for ewest/gemini-3.8-flash-tts. The output tables are read from the API's OpenAPI description.
Input
POST /v1/audio/speech- The model id,
modelstringRequiredewest/gemini-3.8-flash-tts. - The text to speak. Up to 5,000 characters.
inputstringRequired - The voice. One of: Kore, Puck, Zephyr, Charon, Fenrir, Leda, Orus, Aoede, Callirrhoe, Autonoe, Enceladus, Iapetus, Umbriel, Algieba, Despina, Erinome, Algenib, Rasalgethi, Laomedeia, Achernar, Alnilam, Schedar, Gacrux, Pulcherrima, Achird, Zubenelgenubi, Vindemiatrix, Sadachbia, Sadaltager, Sulafat.
voicestringOptionaldefaultKore - How to say it: tone, pace, emotion.
instructionsstringOptional response_formatstringOptionaldefaultwavwavreturns the audio bytes;urlreturns a cdn.ewest.ai link.
Output
Returns audio. POST /v1/audio/speech answers 200: The audio file (content-type is the model's format), or JSON with response_format: "url".
With response_format: url
- Link to the audio file on
urlstring (uri)Alwayscdn.ewest.ai, kept for 7 days. - Media type of the audio file, e.g.
content_typestringAlwaysaudio/mpeg.
The body is audio/wav.
Sample response
{
"url": "https://cdn.ewest.ai/aud/2026/11/01/7hq2xk9mpz.wav",
"content_type": "audio/wav"
}4.Details
- Voices
- Kore, Puck, Zephyr, Charon, Fenrir, Leda, Orus, Aoede, Callirrhoe, Autonoe, Enceladus, Iapetus, Umbriel, Algieba, Despina, Erinome, Algenib, Rasalgethi, Laomedeia, Achernar, Alnilam, Schedar, Gacrux, Pulcherrima, Achird, Zubenelgenubi, Vindemiatrix, Sadachbia, Sadaltager, Sulafat
- Input
- Up to 5,000 characters
- Output
- WAV audio (also on cdn.ewest.ai for 7 days)
- Options
- style instructions