Gemini 2.5 Pro TTS focuses on higher-quality text-to-speech generation through AIHub’s speech endpoint.
Key strengths
- Higher-quality speech
- Natural prosody
- Managed Gemini access
Use cases
- Premium narration
- Brand voice content
- Long-form speech
Google's google/gemini-2.5-pro-tts is a high-quality speech model. It generates natural-sounding speech across multiple voices and languages, with low-latency streaming output suitable for real-time voice applications.
Supports SSML-style controls, configurable voices, speaking rate, and pitch. Compatible with the OpenAI `/audio/speech` and `/audio/transcriptions` endpoint shapes.
google/gemini-2.5-pro-tts is fully OpenAI-compatible — drop in your existing OpenAI Python or Node SDK and switch `baseURL` to `https://api.tokenlx.ai`. TokenLX transparently routes your requests to the optimal provider endpoint while preserving streaming, function-calling, and structured-output semantics.
Performance
Compare different providers across TokenLX · All locations.
Effective Pricing
Actual cost per million tokens across providers over the past 7 days.
Recent activity
Total usage per day on TokenLX (last 30 days).
Sample code & API
TokenLX normalizes requests and responses across providers. Use any OpenAI SDK or our native SDK.
import requests
headers = {
"Authorization": "Bearer sk-aihub-...",
"Content-Type": "application/json",
}
# Text to speech
response_1 = requests.post(
"https://api.tokenlx.ai/v1/generate/speech",
headers=headers,
json={"model": "gemini-2.5-pro-tts", "text": "Hello from AIHub. 你好,这是 Gemini TTS 语音合成测试。", "voiceName": "Kore"},
)
print(response_1.json())Replace sk-aihubrouter-… with your key from the dashboard.