gemini-3.1-flash-tts-preview
NixAPI price, from
USD per 1M tokens · via group Vertex-Gemini-1 · Official list price $1 / $20Save 66%
About gemini-3.1-flash-tts-preview
gemini-3.1-flash-tts-preview is a text-to-speech audio model optimized for cost-effective, low-latency, and controllable voice generation.
Price by routing group
Pick a group in the console when you create a key. Status is live from the router. Live status by group →
| Group | Group status | Model status | Multiplier | Input | Output | Cache read | Cache write |
|---|---|---|---|---|---|---|---|
Vertex-Gemini-1 | … | ×0.338 | $0.338 | $6.76 | — | — | |
Aistudio-Gemini-2 | … | ×0.4474 | $0.4474 | $8.947 | — | — | |
Aistudio-Gemini-3 | … | ×0.7456 | $0.7456 | $14.912 | — | — | |
Vertex-Gemini-2 | … | ×0.7605 | $0.7605 | $15.21 | — | — | |
Vertex-Gemini-3 | … | ×1.521 | $1.521 | $30.42 | — | — | |
Aistudio-Gemini-4 | … | ×1.6155 | $1.615 | $32.309 | — | — |
USD per 1M tokens
Supported endpoints
Call gemini-3.1-flash-tts-preview in one request
Works with the OpenAI SDK and any OpenAI-compatible client. Replace the key with your own.
curl https://api.nixapi.com/v1/chat/completions \
-H "Authorization: Bearer $NIXAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-flash-tts-preview",
"messages": [{"role": "user", "content": "Hello!"}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.nixapi.com/v1", api_key="sk-…")
resp = client.chat.completions.create(
model="gemini-3.1-flash-tts-preview",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)import OpenAI from 'openai';
const client = new OpenAI({ baseURL: 'https://api.nixapi.com/v1', apiKey: process.env.NIXAPI_KEY });
const resp = await client.chat.completions.create({
model: "gemini-3.1-flash-tts-preview",
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(resp.choices[0].message.content);Questions about gemini-3.1-flash-tts-preview
How much does gemini-3.1-flash-tts-preview cost on NixAPI?
From $0.338 per 1M input tokens and $6.76 per 1M output tokens in the Vertex-Gemini-1 group, about 66% below the official list price. Prices are pay-as-you-go in USD with no monthly minimum.
How do I call gemini-3.1-flash-tts-preview?
Point any OpenAI-compatible client at https://api.nixapi.com/v1, use your NixAPI key and set the model to "gemini-3.1-flash-tts-preview".
Which routing groups serve gemini-3.1-flash-tts-preview?
gemini-3.1-flash-tts-preview is available in 6 routing groups: Vertex-Gemini-1, Aistudio-Gemini-2, Aistudio-Gemini-3, Vertex-Gemini-2, Vertex-Gemini-3, Aistudio-Gemini-4. The lowest price is in Vertex-Gemini-1.