Gemini 3.8 Flash TTS API
Turn text into spoken audio with the Gemini 3.8 Flash TTS API: send text, get a voice clip back, and pay per token with no subscription.
API access
- Endpoint
- POST /v1/models/gemini-3.8-flash-tts:generateContent
- Base URL
- https://api.apiko.app
Gemini native format. Send the key as Authorization: Bearer or x-goog-api-key. Google GenAI SDKs take this base URL with API version v1.
Text input price
32% off$0.500
$0.338
/ 1M tokens
Audio output price
32% off$9.00
$6.08
/ 1M tokens
Per minute of audio
32% off$0.0135
≈$0.0091
25 audio tokens per second
Voices
30
prebuilt, one per request
Hear Gemini 3.8 Flash TTS
Type some text, pick a voice and generate. The clip plays here and downloads as a WAV file.
What is Gemini 3.8 Flash TTS?
Gemini 3.8 Flash TTS is Google's text-to-speech model in the Gemini Flash TTS line, released in September 2026. Like the rest of Gemini text to speech, it takes text in and returns spoken audio.
Through APIKO, the Gemini 3.8 Flash TTS API is single-speaker: each request reads your text in one of 30 prebuilt voices on the Gemini-native generateContent endpoint, authorized with your APIKO API key.
Gemini 3.8 Flash TTS API quickstart
Gemini native generateContent request. Each sample decodes the base64 audio, handles both WAV and raw PCM responses, and saves speech.wav.
Code sample
Endpoint:POST /v1/models/gemini-3.8-flash-tts:generateContent
curl -sS "https://api.apiko.app/v1/models/gemini-3.8-flash-tts:generateContent" \
-H "Authorization: Bearer $APIKO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [
{
"role": "user",
"parts": [
{
"text": "Hello! This is a quick test of text to speech."
}
]
}
],
"generationConfig": {
"responseModalities": [
"AUDIO"
],
"speechConfig": {
"voiceConfig": {
"prebuiltVoiceConfig": {
"voiceName": "Kore"
}
}
}
}
}' \
| python3 -c '
import base64, io, json, re, sys, wave
res = json.load(sys.stdin)
if "candidates" not in res:
sys.exit(json.dumps(res))
pcm, rate = b"", 24000
for part in res["candidates"][0]["content"]["parts"]:
inline = part.get("inlineData")
if not inline:
continue
data = base64.b64decode(inline["data"])
if data[:4] == b"RIFF": # audio/wav: already a WAV file, keep its samples
with wave.open(io.BytesIO(data)) as w:
rate, data = w.getframerate(), w.readframes(w.getnframes())
else: # audio/L16: raw 16-bit little-endian mono PCM
m = re.search(r"rate=(\d+)", inline["mimeType"])
rate = int(m.group(1)) if m else 24000
pcm += data
with wave.open("speech.wav", "wb") as out:
out.setnchannels(1)
out.setsampwidth(2)
out.setframerate(rate)
out.writeframes(pcm)
print("saved speech.wav", res.get("usageMetadata"))
'Tip: set APIKO_API_KEY to a key created on the API keys page.
Gemini 3.8 Flash TTS API pricing
Billed per token from usageMetadata: the text you send, plus the audio you get back at 25 audio tokens per second.
APIKO vs Google list price
| Item | APIKO | Google list price | Saving |
|---|---|---|---|
| Text input | $0.338 / 1M tokens | $0.500 / 1M tokens | 32% off |
| Audio output | $6.08 / 1M tokens | $9.00 / 1M tokens | 32% off |
| 1 minute of audio (1,500 output tokens) | $0.0091 | $0.0135 | 32% off |
Google's list price was checked on 2026-11-12; APIKO prices are live from the catalog.
Gemini 3.8 Flash TTS voices
30 prebuilt voices, one per request. Pass the name in generationConfig.speechConfig.voiceConfig.prebuiltVoiceConfig.voiceName; names are case-sensitive. Press a voice to hear a sample generated by the model.
Gemini 3.8 Flash TTS API specs
What the APIKO speech route accepts and returns.
- Input
- Text only
- Output
- Speech audio
- Audio format
- WAV or raw PCM · 16-bit mono · 24 kHz
- Speakers
- Single speaker
- Billing
- Per token · 25 audio tokens ≈ 1 s
- Provider
- Endpoint
- /v1/models/gemini-3.8-flash-tts:generateContent
- Model ID
- gemini-3.8-flash-tts
Ready to give your app a voice? Create an API key and call the Gemini 3.8 Flash TTS API with the samples above.
Gemini 3.8 Flash TTS API FAQ
How much does Gemini 3.8 Flash TTS cost?
$0.3375 per 1M text input tokens and $6.075 per 1M audio output tokens. Speech is 25 audio tokens per second, so one minute of audio costs about $0.0091 in output tokens.
How much cheaper is it than Google's own price?
About 32% less. Google's list price is $0.50 per 1M text input tokens and $9.00 per 1M audio output tokens, about $0.0135 per minute of audio.
Is there a free trial for the Gemini 3.8 Flash TTS API?
Yes. Sign in with Google using a Gmail address and $0.20 of trial credit is added to your balance, no card needed, once per person. It works on gemini-3.8-flash-tts and every other model.
Which voices does Gemini 3.8 Flash TTS offer?
30 prebuilt voices: 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. You can hear each one in the playground on this page.
Which languages can it speak?
It reads the text in the language you write it in. On APIKO we have tested English and Mandarin Chinese; other languages have not been verified here yet.
Can it voice a multi-speaker dialogue?
Not in one request. Through APIKO each request has one speaker and one voice: multiSpeakerVoiceConfig is not available, and per-part speaker or style settings are dropped. For a dialogue, generate each line with its own voice and join the clips.
What audio format does the API return?
Base64 audio in candidates[0].content.parts[].inlineData. Depending on the upstream route, mimeType is audio/wav (already a WAV file; save it as is) or audio/L16 (raw 16-bit mono PCM at 24 kHz with no header; add a 44-byte WAV header before playing it). The code samples on this page handle both and save speech.wav.
Can I use the Google GenAI SDK?
Yes. The google-genai SDK works once its http_options point at the APIKO base URL with API version v1, as in the Python SDK sample above; it sends your APIKO API key as x-goog-api-key.
How do I switch from Google's Gemini API endpoint?
Keep your request body. Change the base URL to https://api.apiko.app, set the API version to v1 and send your APIKO API key instead of a Google key. Only /v1 is served: requests to /v1beta return 404.
What if a request fails?
You are not billed for failed or errored calls. Retry, and if it keeps failing, contact us via the live chat at the bottom right of the page.
How much text can one request take?
The playground on this page takes up to 1,000 characters per request, about a minute of speech. Through the API the limit is how much audio the model generates in one response, not a character count; for long scripts, send the text in parts and join the clips.