Gemini 3.1 Flash TTS API
gemini-3-1-flash-ttsGoogle's expressive text-to-speech — natural AI voice with control over tone and emotion.
by Google
Pricing: Gemini 3.1 Flash TTS costs 2.57 credits per call (≈ $0.0257). Billed per token, so a longer script costs more — the figure above is the minimum for one call. The playground shows the exact price for your script before you run it.
Save up to 22%with the $1,250 top-up pack (+10% bonus) — 14% lower than direct rates even without itTop up24H Status Monitor
OperationalAffordable Gemini 3.1 Flash TTS API on you.bot
Access Google's Gemini 3.1 Flash TTS through one unified API — same model, better rates, one integration.
Gemini 3.1 Flash TTS API pricing & guide (2026)
Google's expressive text-to-speech — natural AI voice with control over tone and emotion. Through you.bot you call the Gemini 3.1 Flash TTS API by Google on the same unified endpoint as every other model — one key, one integration.
On you.bot, the Gemini 3.1 Flash TTS API costs about $0.026 per track — roughly 14% cheaper than the official Google price of $0.03. You only pay for successful generations; failed tasks are never charged.
Billing is pay-as-you-go in credits (1 credit = $0.01 USD) — no subscription, no monthly minimum, and credits never expire. So Gemini 3.1 Flash TTS API pricing in 2026 is easy to predict: you pay per successful call and nothing for failures.
Core capabilities of the Gemini 3.1 Flash TTS API
Full tracks from text
Turn a short description into a complete track with structure and vocals.
Style & instrumental control
Steer genre and mood, or generate an instrumental-only version.
Production-ready output
Get clean audio files ready to drop straight into your app.
Where the Gemini 3.1 Flash TTS API fits in production
Every image below was generated on you.bot with the Gemini 3.1 Flash TTS API itself — no stock photography.

Voice-over for product videos
Natural narration in the language your market speaks.

Localised announcements
The same script delivered per market without booking a booth.

Audiobook and long form
Hours of narration with a consistent voice and pacing.

In-app prompts
Short cues and confirmations generated with your product voice.

Podcast pickups
Fix a line without calling the host back in.

Sound beds
Backing tracks and stings that match the cut you already have.
How to access and deploy the Gemini 3.1 Flash TTS API on you.bot
Get your API key
Create a key in the dashboard — one key works across every model on the platform.
Call the Gemini 3.1 Flash TTS endpoint
POST your prompt and parameters to /api/v1/generate with your key in the Authorization header.
Poll for your result
Use the returned taskId to poll the task endpoint, or register a webhook to receive the result URLs.
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer sk-live-..." \
-H "Content-Type: application/json" \
-d '{
"modelId": "gemini-3-1-flash-tts",
"input": { "prompt": "..." }
}'Gemini 3.1 Flash TTS API on you.bot vs going direct
| Feature | you.bot | Going direct |
|---|---|---|
| Price per track | $0.026 | $0.03 |
| Failed-task billing | Free (auto-refund) | Charged |
| Integration | One unified API | Per-vendor SDKs |
| Credit expiry | Never | Varies |
4.9
Based on 1,200+ developer reviews
Why choose you.bot for the Gemini 3.1 Flash TTS API
14% cheaper
Lower rates than going direct to Google — and you only pay for successful runs.
Production-grade reliability
Monitored availability with automatic credit refunds on failed jobs.
One API for everything
Swap models freely without touching your integration or juggling vendors.
FAQs about the Gemini 3.1 Flash TTS API
Gemini 3.1 Flash TTS is billed per track at about $0.026 on you.bot — and you only pay for successful generations.
Yes — output can be used in commercial projects, subject to the upstream provider's usage policy.
Create a task to receive a taskId, then poll the task endpoint or register a webhook to fetch the result.
Yes — it's the same Google model, accessed through you.bot's unified API at better rates.
Gemini 3.1 Flash TTS API code example
/api/v1/generateGoogle's expressive text-to-speech — natural AI voice with control over tone and emotion.
Overview
Gemini 3.1 Flash TTS runs in two steps: POST /api/v1/generate to start a task, then poll GET /api/v1/task/{taskId} until the result is ready.
Authentication
All requests require a Bearer Token in the header:
Authorization: Bearer YOUR_API_KEYRequest parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| modelId | string | Yes | Model id: `gemini-3-1-flash-tts` |
| input | object | Yes | Input parameters object (see below) |
| callbackUrl | string | No | https URL we POST the finished task to. Signed with `X-Webhook-Signature` once you create a webhook signing key in Dashboard → Settings |
input object parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| speakers | object[] | Yes | Array of { speaker_id, voice_name, audio_profile, style, pace, accent } |
| dialogue_turns | object[] | Yes | Array of { speaker_id, text } |
| temperature | number | No | Range 0–2 · default: 1 |
| scene | string | No | Text value |
| sample_context | string | No | Text value |
Query task status
/api/v1/task/{taskId}?model=gemini-3-1-flash-ttsWhen state is success, the output is in resultUrls:
{ "state": "success", "resultUrls": ["https://…/api/file?t=…"] }Error codes
| Code | Description |
|---|---|
| 200 | Request successful |
| 400 | Invalid request parameters |
| 401 | Authentication failed — check API Key |
| 402 | Insufficient account balance |
| 403 | IP not allowed for this key, or the key is restricted to other models |
| 404 | Task not found, or it has expired |
| 409 | Duplicate request — an identical submit arrived moments ago. Nothing was charged; retry is safe |
| 413 | Payload too large — see the character and file-size limits for this model |
| 429 | Rate limit exceeded — retry after the Retry-After header |
| 500 | Internal server error |
| 504 | Upstream timed out — nothing was delivered; retry is safe |
curl --location 'https://you.bot/api/v1/generate' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"modelId": "gemini-3-1-flash-tts",
"input": {
"speakers": [
{
"speaker_id": "Speaker 1",
"voice_name": "Zephyr",
"audio_profile": "example",
"style": "Deadpan",
"pace": "Natural",
"accent": "Neutral"
}
],
"dialogue_turns": [
{
"speaker_id": "Speaker 1",
"text": "example"
}
],
"temperature": 1,
"scene": "example",
"sample_context": "example"
},
"callbackUrl": "https://your-domain.com/api/callback"
}'{
"taskId": "281e5b0…f39b9",
"creditsCharged": 2.57
}

