Gemini 3.1 Flash TTS Preview on Google AI Studio
Google AI Studio / Gemini API Free API tier
The catch: Outside the EEA, Switzerland and the UK, free-tier prompts and outputs are used to improve Google products and may be read by human reviewers. Exact limits are only visible inside AI Studio, and 2.5 models are limited to past users.
| Access | Free API tier |
|---|---|
| Free limits | Legacy text-to-speech preview, free of charge on the free tier (Standard). Shuts down 17 Nov 2026 (replacement: gemini-3.8-flash-tts or gemini-3.8-flash-lite-tts). |
| Modality | audio |
| Credit card | Not required |
| Commercial use | Allowed |
| Trains on your data | Yes, on the free tier |
| Licence or terms | Google APIs Terms of Service + Gemini API Additional Terms of Service (effective 23 Mar 2026) |
| Context window | 8,192 tokens |
| Model id | gemini-3.1-flash-tts-preview |
| Base URL | https://generativelanguage.googleapis.com/v1beta/ |
| Last checked | 8 Oct 2026 |
How to use Gemini 3.1 Flash TTS Preview
It speaks the OpenAI API at https://generativelanguage.googleapis.com/v1beta/, so the OpenAI SDK you already use works once you change the base URL and key.
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-3.1-flash-tts-preview:generateContent" -H "x-goog-api-key: $GEMINI_API_KEY" -H "Content-Type: application/json" -X POST -d '{"contents":[{"parts":[{"text":"Say cheerfully: Have a wonderful day!"}]}],"generationConfig":{"responseModalities":["AUDIO"],"speechConfig":{"voiceConfig":{"prebuiltVoiceConfig":{"voiceName":"Kore"}}}}}' | jq -r '.candidates[0].content.parts[0].inlineData.data' | base64 --decode > out.pcmI want to use the free AI model "Gemini 3.1 Flash TTS Preview" from Google AI Studio (model id: gemini-3.1-flash-tts-preview) in my project. Please: 1. Check the provider docs and give me the exact steps to get a free API key. 2. Give me a minimal working example that reads the key from an environment variable. 3. Tell me the real free limits and any catch (commercial use, card, data use). Listed limits: Limits shown after sign-in. 4. If the same provider has a more generous free option, mention it.
Before you ship on it
- Outside the EEA, Switzerland and the UK, free-tier prompts and outputs are used to improve Google products and may be read by human reviewers. Exact limits are only visible inside AI Studio, and 2.5 models are limited to past users.
- Prompts on the free tier may be used to train models. Keep customer data off it.
- Gemini API Additional Terms (effective 23 Mar 2026): use is 'for developers building with Google AI models for professional or business purposes, not for consumer use'. No ban on commercial use of unpaid quota, but 'You…
- Free tiers are shared capacity: treat the limits as a ceiling, not a promise, and keep a paid fallback.
Questions
Is Gemini 3.1 Flash TTS Preview on Google AI Studio free?
Yes. Google AI Studio offers it as free api tier, with these limits: Limits shown after sign-in. No credit card is needed.
Can I use Gemini 3.1 Flash TTS Preview on Google AI Studio commercially?
Yes, under Google APIs Terms of Service + Gemini API Additional Terms of Service (effective 23 Mar 2026). Check the current terms before you ship.
How do I start with Gemini 3.1 Flash TTS Preview on Google AI Studio?
It speaks the OpenAI API at https://generativelanguage.googleapis.com/v1beta/, so the OpenAI SDK you already use works once you change the base URL and key.
Source: ai.google.dev/gemini-api/docs/pricing, checked 8 Oct 2026.