Google: gemini-2.5-pro-preview-tts

gemini-2.5-pro-preview-tts is Google's speech generation model, designed for controllable voice, narration, and audio delivery.

Modalities
inTextoutAudio
Price
$0.95/ 1M in
Context
8K

Channels

Every channel serves the same model, but they differ in price and stability. On each API key in the Platform, you pick a primary and a backup channel per vendor, and each billing line shows which channel served the request.

Provider
Discount
Input /M
Cache read /M
Defaultcheap
—
$0.95
—
Officialstable
—
$1.10
—

Context pricing

This model’s price depends on how much input context a request carries. The headline price is the cheapest band, and a longer prompt moves the whole request into a higher one.

Input context
Input /M
Output /M
Defaultcheap
standardBase
$0.95
$19.00
Officialstable
standardBase
$1.10
$22.00

Quick start

POST /v1/audio/speech
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.mirapi.ai/v1",   # changed
    api_key=os.environ["MIRAPI_API_KEY"],   # changed
)

with client.audio.speech.with_streaming_response.create(
    model="gemini-2.5-pro-preview-tts",
    voice="alloy",
    input="The quick brown fox jumped over the lazy dog.",
) as resp:
    resp.stream_to_file("speech.mp3")
Wire gemini-2.5-pro-preview-tts into your product

1M free tokens to start, no card required. It’s OpenAI-compatible, so you only change the base URL.

Start free