# Google Gemini 2.5 TTS API

> Gemini 2.5 TTS by Google turns text into expressive speech with 30 voices, single- or multi-speaker dialogue, and natural-language style control in 80+ languages, using the Flash or Pro TTS model.

Source: https://www.sandbase.ai/models/google/gemini-tts
API reference: https://www.sandbase.ai/models/google/gemini-tts#api

## Facts

- Provider: Google
- Type: Audio model
- Model ID: `google/gemini-tts`
- Price: From $0.02 per run
- Capabilities: text to speech
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "google/gemini-tts",
  "voice": "Kore",
  "prompt": "Host: Welcome back to AI Frontiers, the podcast where we explore the latest breakthroughs in artificial intelligence. Today we have a very special guest. Doctor Chen, thank you for joining us!\nDrChen: Thanks for having me! I'"'"'m excited to be here.\nHost: So, let'"'"'s dive right in. Your recent paper on neural architecture search has been making waves. Can you tell our listeners what inspired this research?\nDrChen: Absolutely. It all started when we noticed that most existing approaches were optimizing for the wrong metrics. We asked ourselves, what if we could let the model design itself?",
  "language": "English (US)",
  "speakers": [
    [
      {
        "voice": "Charon",
        "speaker_id": "Host"
      },
      {
        "voice": "Kore",
        "speaker_id": "DrChen"
      }
    ]
  ],
  "tts_model": "gemini-2.5-flash-tts",
  "output_format": "mp3",
  "style_instructions": "Say the following in a warm, conversational tone"
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call Google Gemini 2.5 TTS through SandBase?

Create a SandBase API key, then send requests with the model ID "google/gemini-tts" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate Google account?

No. One SandBase API key and balance gives you access to Google Gemini 2.5 TTS and the other models in the catalog; you do not need to sign up with Google separately.

## README

### Gemini 2.5 TTS

Gemini 2.5 TTS speaks text with 30 preset voices, supports two-speaker dialogue and natural-language style direction, and covers 80+ languages. Choose Flash for speed or Pro for the highest quality.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Text to speak, up to 50,000 characters; inline cues such as `[whispering]` work. |
| `tts_model` | `gemini-2.5-flash-tts` / `gemini-2.5-pro-tts` | `gemini-2.5-flash-tts` | Flash is faster and cheaper; Pro has the best quality. |
| `voice` | string | `Kore` | Single-speaker voice preset; ignored when `speakers` is set. See the schema for supported values. |
| `style_instructions` | string | — | Tone, accent, pace, or emotion, up to 4,000 characters. |
| `speakers` | array of `{speaker_id, voice}` | — | Multi-speaker setup; prefix prompt lines with each `speaker_id`. |
| `language` | string | — | Language to speak; omit to auto-detect. See the schema for supported values. |
| `output_format` | `wav` / `mp3` / `ogg_opus` | `mp3` | Audio file format. |

#### Billing

$0.02 per 1,000 characters of `prompt` with Flash, $0.04 with Pro, billed per character with a $0.01 minimum per request.

| Text | Flash | Pro |
|---|---|---|
| 200 characters | $0.01 | $0.01 |
| 1,000 characters | $0.02 | $0.04 |
| 10,000 characters | $0.20 | $0.40 |

Failed runs are not charged.

#### Prompting

- Put stable style direction in `style_instructions` and keep `prompt` for the words to speak.
- For dialogue, define each speaker in `speakers` and start every line with `Alias:`.
