Skip to main content

Speech model

Gemini 3.1 Flash TTS Preview

google/gemini-3.1-flash-tts-preview

google/gemini-3.1-flash-tts-preview is a text-to-speech model from Google you can call on the OceanToken API.

Price card, similar models and questions answered: Gemini 3.1 Flash TTS Preview on oceantoken.ai.

At a glance

Model IDgoogle/gemini-3.1-flash-tts-preview
TypeSpeech
PublisherGoogle
PriceOn oceantoken.ai
Endpoint/v1/audio/speech
API shapeOpenAI-compatible
In the catalog since2026-04-24

API

POST /v1/audio/speech. Base URL https://api.oceantoken.ai, your OceanToken key as the bearer token. The OpenAI SDKs work unchanged; see the Quickstart.

Download this spec (JSON) · llms.txt for AI assistants

Basic

curl https://api.oceantoken.ai/v1/audio/speech \
-H "Authorization: Bearer $OCEANTOKEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-3.1-flash-tts-preview",
"input": "Welcome aboard.",
"voice": "Kore"
}' --output speech.wav

Request parameters

Only what this model takes. Anything else in the request is left out before it reaches the model.

ParameterTypeDescription
model
required
stringThis model's ID.
input
required
stringThe text to read.
voice
required
stringOne of this model's voices (see the Speech guide).
response_formatstring
mp3, wav, opus, aac, flac, pcm, url
Audio format; url returns a link instead of the audio.
speednumber
0.25 to 4
default 1
Pace, on models that support it.
instructionsstringTone notes such as "calm, slow", on models that support them.

Response

FieldTypeDescription
(body)binaryThe audio file.

More examples and how errors and billing work: Speech and transcription.

Compared with similar models

Speech models on OceanToken in the same price range as google/gemini-3.1-flash-tts-preview. Compare their prices on oceantoken.ai.

ModelPublisherContext
Gemini 3.1 Flash TTS Preview
google/gemini-3.1-flash-tts-preview
Google—
Gemini 3.8 Flash TTS
google/gemini-3.8-flash-tts
Google—
Gemini 3.8 Flash Lite TTS
google/gemini-3.8-flash-lite-tts
Google—

More from Google

All Google models on OceanToken

Use it

Create an account Price on oceantoken.ai

The facts on this page were read from the live OceanToken catalog on 2026-12-02 (UTC), when the documentation was built. Prices are published on oceantoken.ai.