YepAPI

Command Palette

Search for a command to run...

GoogleText to Speech/v1/media/queue

Gemini 3.1 Flash TTS

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.

No credit card required. Takes 30 seconds.

2,400+

Developers

1.2M+

API calls served

100+

Endpoints

$0.01

Per call

Yep, that's it.

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

Pricing

Per character: $0.2005/1K chars

Endpoint

/v1/media/queue

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? }

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

$5 free credit on signup. No credit card required. Pay per call.

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.

Pricing for Gemini 3.1 Flash TTS through YepAPI is based on usage. No monthly minimums — you only pay for what you use.

Sign up for a free API key, then send requests to the /v1/media/queue endpoint.

Ready to use Gemini 3.1 Flash TTS?

$5 free credit on signup. No credit card required. Pay per call.

Explore more models