YepAPI
GoogleText to Speech/v1/media/queue

Gemini 3.1 Flash TTS API

Gemini 3.1 Flash TTS text to speech — 70+ languages, 200+ audio tags, billed on input length.

Google's widest-coverage speech model: 70+ languages, 30 named voices, and 200+ inline audio tags for directing delivery and emotion mid-sentence. Returns raw PCM.

Takes 30 seconds.

Gemini 3.1 Flash TTS API pricing

Pay per request from your YepAPI balance — no subscription, no monthly minimum. Prices updated October 23, 2026.

BillingPrice
Rate$0.2005/1K chars
What it costsPer job
Short reply200 characters$0.04
Blog post narration10,000 characters (~1,600 words)$2.01
Audiobook chapter100,000 characters$20.05

4,900+

Developers

2.3M+

API calls served

184

Endpoints

$0.01

Per call

Yep, that's it.

Playground coming soon — use the API endpoint directly with your API key.

Gemini 3.1 Flash TTS specs

ProviderGoogle
Model IDgoogle/gemini-3.1-flash-tts
Endpoint/v1/media/queue
TypeText to Speech
Output formatspcm
Voices12 presets (default Zephyr)

How to get a Gemini 3.1 Flash TTS API key

  1. 1

    Create an account

    Sign up at yepapi.com with Google or email. It takes about 30 seconds.

  2. 2

    Create an API key

    Open the dashboard, go to API Keys and create a key. Copy it — it starts with yep_sk_.

  3. 3

    Call Gemini 3.1 Flash TTS

    Send a request to /v1/media/queue with the x-api-key header and model "google/gemini-3.1-flash-tts".

  4. 4

    Pay as you go

    Usage is billed per request from your balance. Top up any amount; there is no subscription.

Strengths

✓
70+ languages

The broadest language coverage of any speech model on the platform, by a wide margin.

✓
200+ inline audio tags

Direct delivery and emotion mid-sentence with inline tags — the most expressive control surface available here.

✓
30 named voices

A full voice catalogue across the whole language range.

✓
PCM output

Returns headerless raw PCM rather than MP3, which suits real-time streaming pipelines.

Quick start

Copy this snippet and start making calls with Gemini 3.1 Flash TTS.

// Step 1: Submit job
const res = await fetch('https://api.yepapi.com/v1/media/queue', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "model": "google/gemini-3.1-flash-tts",
    "prompt": "Let me explain how this works — and I want you to stop me the moment something doesn't make sense.",
    "options": {
      "voice": "Zephyr"
    }
  }),
});
const { data } = await res.json();
const jobId = data.jobId;

// Step 2: Poll for result
const status = await fetch(`https://api.yepapi.com/v1/media/status/${jobId}`, {
  headers: { 'x-api-key': 'YOUR_API_KEY' },
});
const { data: job } = await status.json();
// job.status: "pending" | "processing" | "completed" | "failed"
// job.result: { text?, image?, audio?, video? }

Gemini 3.1 Flash TTS vs similar models

Every model below runs on the same API key — switch by changing the model ID.

ModelProviderPrice
Gemini 3.1 Flash TTSGoogle$0.2005/1K chars
Gemini 3.8 Flash Lite TTSGoogle$0.0359/1K chars
Gemini 3.8 Flash TTSGoogle$0.0527/1K chars
Kokoro 82Mhexgrad$0.0014/1K chars
Fish Audio Drama 3Fish Audio$0.0042/1K chars
HeyGen Voice TurboHeyGen$0.0084/1K chars
Sesame CSM 1BSesame$0.0148/1K chars
Voxtral TTS 3Mistral$0.0302/1K chars

Why use Gemini 3.1 Flash TTS through YepAPI?

✓One API key for all models — no separate accounts
✓No monthly minimums — pay per call
✓Switch models with one line of code
✓Simple REST API — works from any language
✓Unified billing across all providers
✓No rate limits for most use cases

Gemini 3.1 Flash TTS API — 70+ languages from Google

Gemini 3.1 Flash TTS is Google's text-to-speech model and a substantial step up from Gemini 2.5 Flash TTS. It covers more than 70 languages with 30 named voices and supports over 200 inline audio tags for directing delivery and emotion mid-sentence.

It returns raw PCM rather than MP3, which suits real-time streaming but means you wrap it yourself for file playback. Billed at $0.2005 per 1,000 characters on YepAPI.

Start generating in 30 seconds

Pay per call, no subscriptions.

What developers say

“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”

Marcus T.

SEO Platform Founder

“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”

Priya S.

Full-Stack Developer

“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”

Jake R.

Indie Hacker

Frequently asked questions

Google's widest-coverage speech model: 70+ languages, 30 named voices, and 200+ inline audio tags for directing delivery and emotion mid-sentence. Returns raw PCM.

Gemini 3.1 Flash TTS costs $0.2005/1K chars through YepAPI, billed per request with no monthly fee. For example, a short reply (200 characters) costs about $0.04.

Sign up at yepapi.com (Google or email, about 30 seconds), open the dashboard and create an API key. The same key works for Gemini 3.1 Flash TTS and every other model — no separate Google account or waitlist.

Use "google/gemini-3.1-flash-tts" as the model on /v1/media/queue. The short alias "gemini-tts" also works.

Ready to use Gemini 3.1 Flash TTS?

Pay per call, no subscriptions.

Explore more models