Google: Gemini 3.1 Flash TTS

google/gemini-3.1-flash-tts-preview

Google Gemini 3.1 Flash TTS API pricing

Gemini 3.1 Flash TTS costs $0.400 per million tokens on Oxyy, one rate for input and output. That is the pay-as-you-go price after the current 60% discount (Launch Promo; standard price $1.00). It takes text as input and returns audio. A cheaper Google option is Gemini 2.5 Flash TTS at $0.200 per 1M tokens; for every model and rate, see Gemini API pricing.

Powerful, low-latency speech generation with natural outputs, steerable prompts and expressive inline audio tags for precise narration control across 70+ languages.
ModalitiesTextAudio
Price$0.400 per 1M tokens, input and outputAll Gemini API pricing
Context33K
ReleasedApr 15, 2026

Providers

Where this model runs, and what each route costs. Requests are sent to a healthy provider automatically; if one errors, the gateway retries against another serving the same model.

ProviderTokens /MLatencyThroughput
Google$0.4004.81s—

Capabilities (8)

StreamingAudio GenerationVoice InstructionsAudio TagsMulti SpeakerLanguage DetectionSynthid WatermarkBatch

Supported parameters (5)

speech_config.voice_namespeech_config.multi_speaker_voice_configspeech_config.language_coderesponse_modalitiessystem_instruction

The endpoint's own fields, shown in the quickstart below, are required as well; a request without them is rejected.

Pricing

What this model costs on Oxyy, pay as you go. "Charged" is the rate a request is billed at; the standard price is shown beside it for reference.

Price
$0.400
per 1M tokens, input and output · standard price $1.00
Current discount
60%
off every rate
RateStandard priceChargedUnit
Tokens (input + output)$1.00$0.400per 1M tokens, input and output

Discount. Charged rates include the current "Launch Promo" discount of 60% on every rate.

Specifications

Model ID
gemini-3.1-flash-tts-preview
Developer
Google
Type
Text to speech
Input
Text
Output
Audio
Context window
32,768 tokens
Max output
16,384 tokens
Released
Apr 15, 2026
Endpoint
/v1/audio/speech

Quickstart

Call gemini-3.1-flash-tts-preview with a POST to /v1/audio/speech on https://api.oxyy.ai, using your Oxyy API key from the OXYY_API_KEY environment variable. The same key works for every model in the catalog.

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.oxyy.ai/v1",
    api_key=os.environ["OXYY_API_KEY"],
)

with client.audio.speech.with_streaming_response.create(
    model="gemini-3.1-flash-tts-preview",
    voice="alloy",
    input="Hello from Oxyy.",
    response_format="mp3",
) as response:
    response.stream_to_file("speech.mp3")

Performance

Throughput is how fast the model writes (tokens per second — higher is better). Latency is total round-trip time (lower is better). TTFT is time-to-first-token — how long before you see anything appear (lower is better). Throughput and TTFT are measured on streaming requests, which are the only ones with a first-token moment to time.

Throughput
—tok/s
P50, streaming requests
Latency
4.81s
P50, end to end
UTC

Throughput

P99—
P95—
P50—

Latency

P508787ms
P7516.6s
P9528.0s
P9942.6s

Time to first token

P50—
P95—

Cache hit rate

0.00%
Share of input tokens served from the prompt cache over the window.

Activity

Token volume and request traffic to this model over time. Daily totals, UTC.

Prompt28.8M
Completion127.2M

Prompt tokens measure input size. Completion tokens reflect total output length. Reasoning is not priced separately for this model, so it is not itemised here.

Frequently asked questions

What is Gemini 3.1 Flash TTS?
Powerful, low-latency speech generation with natural outputs, steerable prompts and expressive inline audio tags for precise narration control across 70+ languages.
How much does Gemini 3.1 Flash TTS cost?
Gemini 3.1 Flash TTS costs $0.400 per million tokens on Oxyy, one rate for input and output. That is the pay-as-you-go price after the current 60% discount (Launch Promo; standard price $1.00). You pay per request, with no subscription.
How do I call Gemini 3.1 Flash TTS through the API?
Send a POST request to https://api.oxyy.ai/v1/audio/speech with "model": "gemini-3.1-flash-tts-preview", authenticated with your Oxyy API key. Put the text in "input" and choose a "voice"; the response body is the audio file.
What inputs and outputs does Gemini 3.1 Flash TTS support?
Gemini 3.1 Flash TTS accepts text as input and returns audio.
When was Gemini 3.1 Flash TTS released?
Gemini 3.1 Flash TTS was released on Apr 15, 2026.
What other models does Google have?
Google also offers Gemini 2.5 Flash TTS, Gemini 2.5 Pro TTS, Gemini 3.8 Flash-Lite TTS and Gemini 3.8 Flash TTS through Oxyy.

Alternatives to Gemini 3.1 Flash TTS

Models of the same kind from other vendors, closest in price first. Prices are pay-as-you-go on Oxyy, through the same API key.

Explore more models

More models from Google