We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.

Google: Gemini 3.1 Flash TTS Preview

google/gemini-3.1-flash-tts-preview
SpeechInput: text33KAdded Apr 24, 2026

Try Google: Gemini 3.1 Flash TTS Preview now

Runs on your balance at the prices above. New accounts start with free usage.

Sign in to use thisCreate free account
input_references
0/3
reference_transcript

Results will appear here.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign inSession cost $0.00

Google: Gemini 3.1 Flash TTS Preview at a glance

  • Input price is 94% lower than the median of 34 Speech models.
  • Context window of 32,768 tokens, enough for long documents and multi-turn conversations.

About Google: Gemini 3.1 Flash TTS Preview

Google: Gemini 3.1 Flash TTS Preview is a text to speech model from Google. It sits in the speech category and is a preview release, which means the behaviour and voice set may still change before a stable version lands. Google describes it as a substantial generational step up from Gemini 2.5 Flash TTS, so if you have used that model, this is the newer generation to evaluate.

The model takes text as its only input and returns speech as its only output. It supports a context window of 32,768 tokens, with a maximum output of 16,384 tokens, which is generous for narration and long form spoken content. Thirty voices are available: 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 and Sulafat. The range of names suggests a spread of vocal characters rather than a single default voice, so you can match tone to content.

Practical uses follow directly from a text in, audio out model with a large context window and many voices. You can generate narration for videos, podcasts or audiobooks, produce spoken versions of articles and documentation, build voice prompts for assistants and IVR flows, or create audio for accessibility features. Because the input limit is measured in tokens rather than characters, long scripts can be submitted in a single request, and the 16,384 token output ceiling gives room for extended spoken passages. The voice list makes it straightforward to assign different voices to different speakers or content types.

You call the model through api14's OpenAI compatible API using the model id "google/gemini-3.1-flash-tts-preview". Because the API follows the OpenAI shape, you point your existing client at api14's base URL and send a request in the usual format, with the model id above and your text as the input. The model lists no supported parameters beyond the basics, so plan on sending the model id and the text, and select a voice from the list above where the request format allows it. If your client expects a parameters block, keep it minimal rather than assuming tuning options that are not documented.

Two things are worth weighing before you commit. First, this is a preview model, so output and voice behaviour can shift, and it is not the right choice for a pipeline that needs frozen, reproducible audio. Second, it only accepts text and only returns speech, so it cannot transcribe audio, translate speech or handle images and documents. If your task is speech recognition, multimodal input or general text generation, a different model in the catalogue will fit better.

How to call the Google: Gemini 3.1 Flash TTS Preview API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "google/gemini-3.1-flash-tts-preview".
import { writeFile } from "node:fs/promises";
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api14.com/api/v1",
  apiKey: process.env.API14_API_KEY,
});

const audio = await client.audio.speech.create({
  "model": "google/gemini-3.1-flash-tts-preview",
  "input": "Hello from api14! One API for every model.",
  "voice": "alloy",
  "response_format": "mp3"
});
await writeFile("speech.mp3", Buffer.from(await audio.arrayBuffer()));

Specifications

Context length
32,768
Max output
16,384
Input
text
Output
speech
Voices
30

Requests on api14 · last 7 days

10-1610-1710-1810-1910-2010-2110-22

Google: Gemini 3.1 Flash TTS Preview: frequently asked questions

How much does the Google: Gemini 3.1 Flash TTS Preview API cost?
Google: Gemini 3.1 Flash TTS Preview costs Characters $3.50 / 1M characters. It is charged from your USD balance only for successful requests; failed requests are free.
What is the context window of Google: Gemini 3.1 Flash TTS Preview?
Google: Gemini 3.1 Flash TTS Preview reads up to 32,768 tokens per request: prompt, history and documents together. It writes up to 16,384 output tokens per response.
What can Google: Gemini 3.1 Flash TTS Preview do?
Google: Gemini 3.1 Flash TTS Preview accepts text and returns speech.
How do I call Google: Gemini 3.1 Flash TTS Preview from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "google/gemini-3.1-flash-tts-preview". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to Google: Gemini 3.1 Flash TTS Preview?
Comparable Speech models at a similar price: hexgrad: Kokoro 82M, Google: Gemini 3.8 Flash Lite TTS, Google: Gemini 3.8 Flash TTS. Each runs through the same API key, so switching is one string.

Google: Gemini 3.1 Flash TTS Preview community

New topic

This community has no topics yet. Open the first one about Google: Gemini 3.1 Flash TTS Preview.