GOGemini 3.1 Flash TTS Preview
Google · Speech · priced by the request · 1 route
Gemini 3.1 Flash TTS Preview is a text-to-speech model from Google, and a substantial generational step up from Gemini 2.5 Flash TTS. It takes text input and produces audio output...
Model ID google/gemini-3.1-flash-tts-preview
Quick try
Quickstart · API, SDK & MCP
curl https://gizstack.com/v1/audio/speech \
-H "Authorization: Bearer $GIZSTACK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "google/gemini-3.1-flash-tts-preview", "input": "Hello from GizStack."}' \
--output speech.wavimport requests
res = requests.post(
"https://gizstack.com/v1/generations",
headers={"Authorization": "Bearer $GIZSTACK_API_KEY"},
json={"model": "google/gemini-3.1-flash-tts-preview", "prompt": "A cinematic shot of a sunlit studio", "wait": 30},
)
print(res.json()) # outputs + drive_pathsclaude mcp add --transport http gizstack https://gizstack.com/v1/mcp \
--header "Authorization: Bearer $GIZSTACK_API_KEY"Request fields
| Field | Values | Default |
|---|---|---|
| text | long | |
| voice | Zephyr, Puck, Charon, Kore, 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 | Zephyr |
| outputFormat | mp3, pcm | mp3 |
| speed | number | |
| inputReferences | files |