Gemini 3.1 Flash TTS API
Gemini 3.1 Flash TTS text to speech — 70+ languages, 200+ audio tags, billed on input length.
Google's widest-coverage speech model: 70+ languages, 30 named voices, and 200+ inline audio tags for directing delivery and emotion mid-sentence. Returns raw PCM.
Takes 30 seconds.
Gemini 3.1 Flash TTS API pricing
Pay per request from your YepAPI balance — no subscription, no monthly minimum. Prices updated October 23, 2026.
| Billing | Price |
|---|---|
| Rate | $0.2005/1K chars |
| What it costs | Per job |
|---|---|
| Short reply200 characters | $0.04 |
| Blog post narration10,000 characters (~1,600 words) | $2.01 |
| Audiobook chapter100,000 characters | $20.05 |
4,900+
Developers
2.3M+
API calls served
184
Endpoints
$0.01
Per call
Yep, that's it.
Playground coming soon — use the API endpoint directly with your API key.
Gemini 3.1 Flash TTS specs
| Provider | |
|---|---|
| Model ID | google/gemini-3.1-flash-tts |
| Endpoint | /v1/media/queue |
| Type | Text to Speech |
| Output formats | pcm |
| Voices | 12 presets (default Zephyr) |
How to get a Gemini 3.1 Flash TTS API key
- 1
Create an account
Sign up at yepapi.com with Google or email. It takes about 30 seconds.
- 2
Create an API key
Open the dashboard, go to API Keys and create a key. Copy it — it starts with yep_sk_.
- 3
Call Gemini 3.1 Flash TTS
Send a request to /v1/media/queue with the x-api-key header and model "google/gemini-3.1-flash-tts".
- 4
Pay as you go
Usage is billed per request from your balance. Top up any amount; there is no subscription.
Strengths
The broadest language coverage of any speech model on the platform, by a wide margin.
Direct delivery and emotion mid-sentence with inline tags — the most expressive control surface available here.
A full voice catalogue across the whole language range.
Returns headerless raw PCM rather than MP3, which suits real-time streaming pipelines.
Quick start
Copy this snippet and start making calls with Gemini 3.1 Flash TTS.
// Step 1: Submit job
const res = await fetch('https://api.yepapi.com/v1/media/queue', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "google/gemini-3.1-flash-tts",
"prompt": "Let me explain how this works — and I want you to stop me the moment something doesn't make sense.",
"options": {
"voice": "Zephyr"
}
}),
});
const { data } = await res.json();
const jobId = data.jobId;
// Step 2: Poll for result
const status = await fetch(`https://api.yepapi.com/v1/media/status/${jobId}`, {
headers: { 'x-api-key': 'YOUR_API_KEY' },
});
const { data: job } = await status.json();
// job.status: "pending" | "processing" | "completed" | "failed"
// job.result: { text?, image?, audio?, video? }Gemini 3.1 Flash TTS vs similar models
Every model below runs on the same API key — switch by changing the model ID.
| Model | Provider | Price |
|---|---|---|
| Gemini 3.1 Flash TTS | $0.2005/1K chars | |
| Gemini 3.8 Flash Lite TTS | $0.0359/1K chars | |
| Gemini 3.8 Flash TTS | $0.0527/1K chars | |
| Kokoro 82M | hexgrad | $0.0014/1K chars |
| Fish Audio Drama 3 | Fish Audio | $0.0042/1K chars |
| HeyGen Voice Turbo | HeyGen | $0.0084/1K chars |
| Sesame CSM 1B | Sesame | $0.0148/1K chars |
| Voxtral TTS 3 | Mistral | $0.0302/1K chars |
Why use Gemini 3.1 Flash TTS through YepAPI?
Gemini 3.1 Flash TTS API — 70+ languages from Google
Gemini 3.1 Flash TTS is Google's text-to-speech model and a substantial step up from Gemini 2.5 Flash TTS. It covers more than 70 languages with 30 named voices and supports over 200 inline audio tags for directing delivery and emotion mid-sentence.
It returns raw PCM rather than MP3, which suits real-time streaming but means you wrap it yourself for file playback. Billed at $0.2005 per 1,000 characters on YepAPI.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
Google's widest-coverage speech model: 70+ languages, 30 named voices, and 200+ inline audio tags for directing delivery and emotion mid-sentence. Returns raw PCM.
Gemini 3.1 Flash TTS costs $0.2005/1K chars through YepAPI, billed per request with no monthly fee. For example, a short reply (200 characters) costs about $0.04.
Sign up at yepapi.com (Google or email, about 30 seconds), open the dashboard and create an API key. The same key works for Gemini 3.1 Flash TTS and every other model — no separate Google account or waitlist.
Use "google/gemini-3.1-flash-tts" as the model on /v1/media/queue. The short alias "gemini-tts" also works.
Explore more models
Gemini 3.8 Flash TTS
GoogleGemini 3.8 Flash TTS text to speech — the creative tier of Gemini 3.8 TTS, 30 voices, billed on input length.
Gemini 3.8 Flash Lite TTS
GoogleGemini 3.8 Flash Lite TTS text to speech — fast, high-throughput Gemini 3.8 TTS, 30 voices, billed on input length.
Orpheus 3B
Canopy LabsOrpheus 3B text to speech — natural English prosody, billed on input length.
Eleven Flash v2
ElevenLabsEleven Flash v2 text to speech — ultra-low-latency English speech, billed on input length.
MiniMax Speech 2.8 Turbo
MiniMaxMiniMax Speech 2.8 Turbo text to speech — fast, flexible-voice speech, billed on input length.
Eleven Multilingual v2
ElevenLabsEleven Multilingual v2 text to speech — lifelike long-form narration in 29 languages, billed on input length.
More Text to Speech models
- Eleven Flash v2.5 API · ElevenLabs
- MAI-Voice-2 Flash API · Microsoft
- Fish Audio S1 API · Fish Audio
- Eleven Turbo v2 API · ElevenLabs
- MiniMax Speech 2.8 HD API · MiniMax
- HeyGen Voice Turbo API · HeyGen
- Eleven Turbo v2.5 API · ElevenLabs
- HeyGen Voice API · HeyGen
- Voxtral TTS 3 API · Mistral
- Voxtral Mini TTS API · Mistral
- Kokoro 82M API · hexgrad
- Deepgram Flux TTS API · Deepgram