Google · gemini-3.8-flash-tts
Gemini 3.8 Flash TTS API
Google's 3.8 Flash text-to-speech model, built for studio-grade voices, expressive delivery and stable long-form narration. On AnyAIGC it costs 36% of Google's list price.
Google describes it as "engineered for studio-grade voice fidelity, expressive acting, and long-form stability." Pick from 30 prebuilt voices, run up to two speakers per request, and steer delivery with tags like <laugh> and <short pause>. gemini-3.8-flash-tts costs $0.1787 per million text input tokens and $3.2163 per million audio output tokens, about $0.0048 per minute of audio.
- Model ID gemini-3.8-flash-tts
- Voices 30 prebuilt
- Price 36% of Google list
- Audio output $3.2163 / 1M
- Concurrency unlimited
- Business Self-service invoices
Built for long-form narration and expressive voiceover
Google released Gemini 3.8 Flash TTS as generally available on , with the model ID gemini-3.8-flash-tts. It does one job: text in, audio out.
Choose one of 30 prebuilt voices, or put two speakers in the same request for podcast-style conversations and support dialogues. Language is detected automatically, and Google lists support for 130+ languages. Fine-tune delivery with inline tags such as <sigh>, <whispers> and <long pause>.
On AnyAIGC you call gemini-3.8-flash-tts through the native /v1beta/models/gemini-3.8-flash-tts:generateContent endpoint and get base64-encoded audio back. No Google Cloud account, no concurrency cap.
- Input limit
- 8,192text tokens
- Output limit
- 16,384audio tokens, about 10 minutes
- Voices
- 30 prebuiltup to 2 speakers per request
- Languages
- 130+auto-detected
- Audio
- 24kHz 16-bitmono PCM
- Released
- 2026-09-22Generally available
What Gemini 3.8 Flash TTS can do
30 prebuilt voices
From bright Zephyr and firm Kore to warm Sulafat. Each voice has its own character, and switching takes one field:
voiceName.Two-speaker dialogue
Give each of two speakers a voice and render a full podcast segment, interview or support call from one script, with no stitching.
Tone and pacing control
Drop tags like
<laugh>,<sigh>,<whispers>and<short pause>into the text to place laughs, breaths and pauses exactly.130+ languages
English, Chinese, Japanese and more are detected automatically, no language code needed. The same voice can read in different languages.
Stable long-form output
Google highlights long-form stability. One request returns up to 16,384 audio tokens, about 10 minutes, enough for an audiobook chapter or long narration.
Per-token billing
Audio output is $3.2163 per million tokens. At Google's 25 audio tokens per second, a minute of speech costs about $0.0048, with no per-character minimums.
30 prebuilt voices
Set voiceName to any name below. The descriptor is Google's own label for each voice.
- ZephyrBright
- PuckUpbeat
- CharonInformative
- KoreFirm
- FenrirExcitable
- LedaYouthful
- OrusFirm
- AoedeBreezy
- CallirrhoeEasy-going
- AutonoeBright
- EnceladusBreathy
- IapetusClear
- UmbrielEasy-going
- AlgiebaSmooth
- DespinaSmooth
- ErinomeClear
- AlgenibGravelly
- RasalgethiInformative
- LaomedeiaUpbeat
- AchernarSoft
- AlnilamFirm
- SchedarEven
- GacruxMature
- PulcherrimaForward
- AchirdFriendly
- ZubenelgenubiCasual
- VindemiatrixGentle
- SadachbiaLively
- SadaltagerKnowledgeable
- SulafatWarm
Voice names and descriptors are from the Gemini API speech generation docs.
Gemini 3.8 Flash TTS API pricing
Pay per token at a fixed rate, with no subscription or monthly fee. Text input and audio output are each about 36% of Google's standard list price.
- Per tokenText input and audio output priced separately
- 36% of listAbout 64% off Google's standard price
- Unlimited RPMDefault for every account
- USDOne balance for 300+ models
| Item | Model | AnyAIGC | Google (standard) | vs. Google |
|---|---|---|---|---|
| Text inputper 1M tokens | gemini-3.8-flash-tts | $0.1787 | $0.50 | 36% of list |
| Audio outputper 1M tokens | gemini-3.8-flash-tts | $3.2163 | $9.00 | 36% of list |
Prices are in USD and billed on tokens actually used. Google counts audio at 25 tokens per second. Google's current standard price runs through December 31, 2026; from January 1, 2027 Google's list price becomes $1.00 for text input and $18.00 for audio output. List prices are from the Gemini API pricing page. Live prices are on the AnyAIGC model catalog.
Cost examples
Estimated at 25 audio tokens per second. Struck-through figures are Google's standard price for the same usage.
-
1-hour audiobook
20K text input tokens + 90K audio output tokens (3,600 s)
$0.293
Google
$0.82 -
30-minute two-host podcast
8K script tokens + 45K audio output tokens (1,800 s)
$0.146
Google
$0.409 -
10,000 IVR prompts
50 input tokens + 10 s of audio (250 tokens) each
$8.13
Google
$22.75
What teams build with Gemini 3.8 Flash TTS
- 01 · Audiobooks
Long-form narration for books and courses
Split text by chapter, synthesize in parallel and keep one voice for the whole book. An hour of audio costs under $0.30 in our example, and unlimited concurrency lets a full book finish fast.
- 02 · Podcasts
Two-host shows
Write the host and guest lines in one script, assign each a voice, and get the full conversation back from a single request. Good for news briefings and explainer shows.
- 03 · Customer support
IVR prompts and voice agents
Menus, notices and reminders can be generated ahead of time in bulk. If you need 8kHz telephony audio, resample with ffmpeg.
- 04 · Video voiceover
Shorts, ads and product demos
Use
<short pause>to hit your cuts and<laugh>for a natural feel. Swap the text to ship every language version in the same brand voice.
Start with the Gemini 3.8 Flash TTS API in three steps
- Sign up and top up: create an account at anyaigc.ai. Your balance works for every model on the platform.
- Create an API key: create a token in the console, copy the key that starts with
sk-, and store it inANYAIGC_API_KEY. - Send a request: call
https://anyaigc.ai/v1beta/models/gemini-3.8-flash-tts:generateContentwithgenerationConfig.responseModalitiesset to["AUDIO"]andAuthorization: Bearer, then decode the audio frominlineData.data.
import base64, os, wave
import requests
url = "https://anyaigc.ai/v1beta/models/gemini-3.8-flash-tts:generateContent"
headers = {"Authorization": f"Bearer {os.environ['ANYAIGC_API_KEY']}"}
body = {
"contents": [{"parts": [{"text": "Welcome to today's episode. <short pause> Let's start with a short story."}]}],
"generationConfig": {
"responseModalities": ["AUDIO"],
"speechConfig": {"voiceConfig": {"prebuiltVoiceConfig": {"voiceName": "Kore"}}},
},
}
resp = requests.post(url, headers=headers, json=body, timeout=300)
resp.raise_for_status()
data = resp.json()["candidates"][0]["content"]["parts"][0]["inlineData"]
audio = base64.b64decode(data["data"])
mime = data.get("mimeType", "")
if "wav" in mime:
# Already a complete WAV file: save as-is
with open("output.wav", "wb") as f:
f.write(audio)
else:
# audio/L16;codec=pcm;rate=24000: raw PCM, add a WAV header
rate = int(mime.split("rate=")[1].split(";")[0]) if "rate=" in mime else 24000
with wave.open("output.wav", "wb") as wf:
wf.setnchannels(1)
wf.setsampwidth(2)
wf.setframerate(rate)
wf.writeframes(audio)
print("saved output.wav", resp.json().get("usageMetadata"))
curl https://anyaigc.ai/v1beta/models/gemini-3.8-flash-tts:generateContent \
-H "Authorization: Bearer $ANYAIGC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [{"parts": [{"text": "Thanks for calling. <short pause> For order status, press 1. To speak with an agent, press 0."}]}],
"generationConfig": {
"responseModalities": ["AUDIO"],
"speechConfig": {"voiceConfig": {"prebuiltVoiceConfig": {"voiceName": "Achird"}}}
}
}' -o response.json
# Extract and decode the base64 audio
jq -r '.candidates[0].content.parts[0].inlineData.data' response.json | base64 --decode > output.pcm
# For mimeType audio/L16;codec=pcm;rate=24000, convert with ffmpeg
ffmpeg -f s16le -ar 24000 -ac 1 -i output.pcm output.mp3
import base64, os, wave
import requests
script = "Host: Today we're talking about speech synthesis.\nGuest: <laugh> I've been waiting for this one.\nHost: So what's the hardest part to get right?"
body = {
"contents": [{"parts": [{"text": script}]}],
"generationConfig": {
"responseModalities": ["AUDIO"],
"speechConfig": {"multiSpeakerVoiceConfig": {"speakerVoiceConfigs": [
{"speaker": "Host", "voiceConfig": {"prebuiltVoiceConfig": {"voiceName": "Charon"}}},
{"speaker": "Guest", "voiceConfig": {"prebuiltVoiceConfig": {"voiceName": "Aoede"}}},
]}},
},
}
resp = requests.post(
"https://anyaigc.ai/v1beta/models/gemini-3.8-flash-tts:generateContent",
headers={"Authorization": f"Bearer {os.environ['ANYAIGC_API_KEY']}"},
json=body,
timeout=300,
)
resp.raise_for_status()
data = resp.json()["candidates"][0]["content"]["parts"][0]["inlineData"]
audio = base64.b64decode(data["data"])
if "wav" in data.get("mimeType", ""):
open("podcast.wav", "wb").write(audio)
else:
with wave.open("podcast.wav", "wb") as wf:
wf.setnchannels(1)
wf.setsampwidth(2)
wf.setframerate(24000)
wf.writeframes(audio)
print("saved podcast.wav")
Tip: Google notes that 3.8 Flash TTS treats text as a literal transcript, so a leading instruction like "Say cheerfully:" may be read aloud. Use inline tags for tone, laughs and pauses instead, such as <laugh>, <sigh>, <whispers>, <short pause> and <long pause>. In two-speaker scripts, the names in the script must match each speaker value.
See the native Gemini TTS API docs and swap the model name for gemini-3.8-flash-tts. Voices, tags and multi-speaker rules are in Google's speech generation docs.
Gemini 3.8 Flash TTS API for teams and enterprises
Teams and companies can buy through a standard business process, with support for finance, legal and engineering.
- Invoices
An invoice for every top-up
Issue invoices yourself in the console for the amount you actually topped up.
- Dedicated support
A named contact
Dedicated support and a technical contact to help with onboarding, migration and day-to-day issues.
- WeChat Pay
- Alipay
- USDT
- Credit card
Why teams trust AnyAIGC
Trial credit, top-ups, refunds, data handling and billing, spelled out up front.
5M free tokens to start
New accounts get trial credit, so you can test before you top up.
Top up from $1, refundable
Top up from $1. Unused balance can be refunded with no fee.
Official channels, real models
Requests go to official model channels, never cheaper or reverse-engineered substitutes.
No retention, no training
Unless the law requires it, your prompts and outputs are not persistently stored or used for training. See the privacy policy.
Transparent billing, spend caps
See tokens and cost for every request in the console, and set a quota on each API key.
24/7 support
Contact support any time about integration, billing or incidents.
Other Gemini models
One API key calls every Gemini model below. Pick by task difficulty and budget.
- LatestGemini 4 HydrogenFast Gemini 4 model for everyday coding and agents · $0.5360 / 1M input
- Gemini 4 CarbonGemini 4 frontier model for long-horizon agents · $0.7147 / 1M input
- Gemini 4 ArgonGoogle's flagship reasoning model · $0.4200 / 1M input
- Gemini 3.8 FlashGoogle's most intelligent Flash, fast and low-cost · $0.1575 / 1M input
- Gemini 3.8 Flash TTSText to speech, 30 voices, two speakers · $3.2163 / 1M audio output
- Gemini 3.1 ProGemini 3 Pro, in preview · $0.1985 / 1M input
Specs and how to choose it
Google's docs call Gemini 3.8 Flash TTS its flagship creative text-to-speech model, engineered for studio-grade voice fidelity, expressive acting, authentic regional accents and stable long-form multi-turn speech.
Input is text only and output is audio; the input limit is 8,192 tokens and the output limit is 16,384 tokens (the Gemini API serving limit).
This page lists Text input at $0.1787, Audio output at $3.2163, matching the pricing table above.
Specs come from the vendor's official documentation (aistudio.google.com). The table on this page is the price, and the model catalog is authoritative for live rates.
Gemini 3.8 Flash TTS API FAQ
How much does the Gemini 3.8 Flash TTS API cost?
On AnyAIGC, gemini-3.8-flash-tts is billed per token: $0.1787 per million text input tokens and $3.2163 per million audio output tokens. Google's standard list price (through December 31, 2026) is $0.50 for text input and $9.00 for audio output, so AnyAIGC is about 36% of list, or roughly 64% off.
How much is one minute of speech? How are audio tokens counted?
Google counts audio at 25 tokens per second, so one minute is 1,500 output tokens, about $0.0048 on AnyAIGC plus a tiny text input charge. An hour of audio is about 90,000 output tokens, roughly $0.29.
What will Google's list price be after 2026?
From January 1, 2027, Google's list price becomes $1.00 for text input and $18.00 for audio output per million tokens. At AnyAIGC's current prices ($0.1787 input, $3.2163 output), that works out to about 18% of list. Live prices are on the AnyAIGC model catalog.
What is the model ID? Is it generally available?
The model ID is gemini-3.8-flash-tts, with no preview suffix. Google made it generally available on September 22, 2026. The native API puts the model name in the URL: /v1beta/models/gemini-3.8-flash-tts:generateContent.
Which voices are available? Which languages?
There are 30 prebuilt voices, such as Kore (Firm), Puck (Upbeat), Charon (Informative) and Sulafat (Warm), set in speechConfig.voiceConfig.prebuiltVoiceConfig.voiceName. Language is detected automatically, and Google lists 130+ supported languages.
Does it support multiple speakers?
Yes, up to 2 speakers per request, using prebuilt voices only. Assign a voice to each speaker in speechConfig.multiSpeakerVoiceConfig.speakerVoiceConfigs, and make sure the names in your script match each speaker value. For shows with more people, synthesize segments and join them.
How do I control tone, emotion and pauses?
Insert inline tags into the text, such as <laugh>, <sigh>, <whispers>, <short pause> and <long pause>. Google notes that 3.8 Flash TTS treats text as a literal transcript, so instructions like "Say cheerfully:" may be read aloud and are no longer recommended.
What audio format comes back? How do I get an MP3?
The audio is base64 in candidates[0].content.parts[0].inlineData.data, and mimeType tells you the format. The AnyAIGC docs example returns audio/L16;codec=pcm;rate=24000: 24kHz, 16-bit, mono PCM. Add a WAV header to play it, or convert to MP3 with ffmpeg -f s16le -ar 24000 -ac 1 -i output.pcm output.mp3. If mimeType is audio/wav, just save the decoded bytes.
How long can one request be?
Google lists an 8,192-token input limit and a 16,384-token output limit, about 10 minutes of audio at 25 tokens per second. For audiobooks and long narration, split by paragraph or chapter, run requests in parallel and join them in order.
Are there concurrency or rate limits?
AnyAIGC does not cap concurrency for gemini-3.8-flash-tts. Every account gets this by default, so whole books or large prompt batches can run at once.
How do I get a Gemini 3.8 Flash TTS API key?
Sign up at anyaigc.ai, top up, and create a token in the console. The same key calls Gemini 3.8 Flash TTS and 300+ other models, with no Google Cloud account needed.
Can I get an invoice from AnyAIGC?
Yes. You can issue invoices yourself in the console, for the amount you actually topped up.
Which payment methods are supported?
You can top up with WeChat Pay, Alipay, USDT or a credit card. Your balance is in USD and works across every model on the platform. Invoices can be issued in the console for the amount you topped up.
Is there free trial credit for new users?
Yes. New accounts get 5 million tokens of trial credit, so you can test before deciding to top up. Top-ups start at $1.
Can I get a refund on my balance?
Yes. Unused balance can be refunded with no fee. Contact support to start a refund.
Are these the real models? Is my data safe?
Requests go to official model channels, never cheaper or reverse-engineered substitutes. Unless the law requires it, we do not persistently store your prompts or outputs or use them for training, and the console shows tokens and cost for every request.
Can I use the generated audio commercially?
Commercial use of generated content is governed by Google's terms. Unless the law requires it, AnyAIGC does not persistently store your input text or generated audio or use them for training. See the AnyAIGC Privacy Policy.
Run Gemini 3.8 Flash TTS at about 36% of list price
Create an API key and turn text into speech in minutes, with 30 voices and two-speaker dialogue ready to use.