Google: Gemini 3.1 Flash TTS Preview: audio model
Gemini 3.1 Flash TTS Preview is Google's text-to-speech model with 200+ inline audio tags and two-speaker dialogue across 70+ languages. Reachable from inside Iran through Hormouz.
- Pricing:
- $1/M text tokens · $20/M audio tokens
- Type:
- audio
- Audio
Gemini 3.1 Flash TTS Preview is a text-to-speech model from Google and a substantial step up from Gemini 2.5 Flash TTS. It produces speech across more than 70 languages.
More than 200 inline audio tags such as [whispers] or [laughs] steer delivery mid-sentence, and up to two speakers can each have their own voice. Output is PCM audio at 24 kHz, 16-bit mono. Hormouz serves Gemini 3.1 Flash TTS Preview on two endpoints: the OpenAI-compatible /v1/audio/speech, which returns the audio in the same response, and /v1/predictions for background jobs. Set voice to one of the model's own voices, for example "Kore", and response_format to pcm.
Billing has two parts: the input text and the length of the generated audio (audio tokens); the current rates are in the price table on this page. Hormouz provides stable access to it from inside Iran, with no foreign credit card or circumvention tooling required.
Gemini 3.1 Flash TTS Preview is a text-to-speech model from Google, and a substantial generational step up from Gemini 2.5 Flash TTS. It takes text input and produces audio output...
Quickstart
curl https://api.hormouz.net/v1/audio/speech \
-H "Authorization: Bearer ng-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"google/gemini-3.1-flash-tts-preview","voice":"Zephyr","input":"Hello from Hormouz.","response_format":"pcm"}' \
--output speech.pcmSpecs
| Vendor | |
|---|---|
| Type | Audio |
| Context window | — |
| Pricing | $1/M text tokens · $20/M audio tokens |
| API | speech |
Code example
curl https://api.hormouz.net/v1/audio/speech \
-H "Authorization: Bearer ng-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"google/gemini-3.1-flash-tts-preview","voice":"Zephyr","input":"Hello from Hormouz.","response_format":"pcm"}' \
--output speech.pcmfrom openai import OpenAI
client = OpenAI(api_key="ng-YOUR_API_KEY", base_url="https://api.hormouz.net/v1")
with client.audio.speech.with_streaming_response.create(
model="google/gemini-3.1-flash-tts-preview",
voice="Zephyr",
input="Hello from Hormouz.",
response_format="pcm",
) as resp:
resp.stream_to_file("speech.pcm")import OpenAI from "openai";
import { writeFile } from "node:fs/promises";
const client = new OpenAI({ apiKey: "ng-YOUR_API_KEY", baseURL: "https://api.hormouz.net/v1" });
const speech = await client.audio.speech.create({
model: "google/gemini-3.1-flash-tts-preview",
voice: "Zephyr",
input: "Hello from Hormouz.",
response_format: "pcm",
});
await writeFile("speech.pcm", Buffer.from(await speech.arrayBuffer()));Buy the Google: Gemini 3.1 Flash TTS Preview API, paid in rial
- Buy credit with an Iranian bank card; no foreign card or account needed.
- One Hormouz key reaches Google: Gemini 3.1 Flash TTS Preview and 600+ other models, and you pay only for what you use.
- No VPN and no risk of a banned account; just change the base URL to api.hormouz.net/v1.
Use via Hormouz
Connect to this model and 600+ others with one API key, then see usage down to each request.
Request company accessFAQ
- How much does Gemini 3.1 Flash TTS Preview cost?
- Billing has two parts: the input text and the length of the generated audio (audio tokens); the current rates are in the price table on this page.
- How do I use Gemini 3.1 Flash TTS Preview from inside Iran?
- Create a Hormouz account and generate an API key. Hormouz gives you a stable route to the model from inside Iran, with no foreign credit card or circumvention tooling needed.
- How do I call Gemini 3.1 Flash TTS Preview?
- Hormouz serves Gemini 3.1 Flash TTS Preview on two endpoints: the OpenAI-compatible /v1/audio/speech, which returns the audio in the same response, and /v1/predictions for background jobs. Set voice to one of the model's own voices, for example "Kore", and response_format to pcm.
- Is there a newer version of Gemini 3.1 Flash TTS Preview?
- Yes. Gemini 3.8 Flash TTS is its successor, and Gemini 3.8 Flash Lite TTS is the faster member of the same family; both are available on Hormouz.
Updated 2026-10-13