Gemini 2.5 TTS
google/gemini-ttsGemini 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.
- आधार मूल्य
- $0.02USD / रन
- निष्पादन
- async
- मॉडल प्रकार
- audio
- इनपुट फ़ील्ड
- 7
model को आज़माएँ
प्लेग्राउंड
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
मॉडल कार्ड
विनिर्देश
मूल्य निर्धारण
- आधार मूल्य
- $0.02 / रन
संदर्भ और modalities
- इनपुट
- Schema-परिभाषित
- आउटपुट
- audio
क्षमताएँ
- चैट
- समर्थित नहीं
- विज़न
- समर्थित नहीं
- रीज़निंग
- समर्थित नहीं
- संरचित output
- समर्थित नहीं
- फ़ंक्शन कॉलिंग
- समर्थित नहीं
- ऑडियो इनपुट
- समर्थित नहीं
पहुंच
- प्रदाता
- मॉडल ID
- google/gemini-tts
- निष्पादन
- async
- बेस URL
- https://api.sandbase.ai
- API
- Unified Run API
- एंडपॉइंट
- /v1/run
API 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_instructionsand keeppromptfor the words to speak. - For dialogue, define each speaker in
speakersand start every line withAlias:.
बिल्डिंग शुरू करें
अपना पहला अनुरोध भेजें
एकीकृत authentication और usage tracking के साथ OpenAI-compatible endpoint.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"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"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"इनपुट स्कीमा
7 पैरामीटर · 1 आवश्यक · 6 वैकल्पिक
| पैरामीटर | प्रकार | आवश्यक | विवरण |
|---|---|---|---|
prompt | string | आवश्यक | Text to speak, up to 50,000 characters. Inline delivery cues work (e.g. 'Say cheerfully: Have a wonderful day!', [whispering], [slowly]). For multi-speaker synthesis, prefix lines with the speaker aliases defined in speakers (e.g. 'Alice: Hello!\nBob: Hi!'). · न्यूनतम लंबाई: 1 · अधिकतम लंबाई: 50000 |
voice | string | वैकल्पिक | Voice preset for single-speaker synthesis; ignored when speakers is set. Popular: Kore (firm female), Puck (upbeat male), Charon (calm male), Zephyr (bright female), Aoede (warm female). · विकल्प: Achernar, Achird, Algenib, Algieba, Alnilam, Aoede, Autonoe, Callirrhoe, Charon, Despina, Enceladus, Erinome, Fenrir, Gacrux, Iapetus, Kore, Laomedeia, Leda, Orus, Pulcherrima, Puck, Rasalgethi, Sadachbia, Sadaltager, Schedar, Sulafat, Umbriel, Vindemiatrix, Zephyr, Zubenelgenubi · डिफ़ॉल्ट: "Kore" AchernarAchirdAlgenibAlgiebaAlnilamAoedeAutonoeCallirrhoeCharonDespinaEnceladusErinomeFenrirGacruxIapetusKoreLaomedeiaLedaOrusPulcherrimaPuckRasalgethiSadachbiaSadaltagerSchedarSulafatUmbrielVindemiatrixZephyrZubenelgenubi |
language | string | वैकल्पिक | Language to speak. Omit it to detect the language from the text. · विकल्प: Arabic (Egypt), Bangla (Bangladesh), Dutch (Netherlands), English (India), English (US), French (France), German (Germany), Hindi (India), Indonesian (Indonesia), Italian (Italy), Japanese (Japan), Korean (South Korea), Marathi (India), Polish (Poland), Portuguese (Brazil), Romanian (Romania), Russian (Russia), Spanish (Spain), Tamil (India), Telugu (India), Thai (Thailand), Turkish (Turkey), Ukrainian (Ukraine), Vietnamese (Vietnam), Afrikaans (South Africa), Albanian (Albania), Amharic (Ethiopia), Arabic (World), Armenian (Armenia), Azerbaijani (Azerbaijan), Basque (Spain), Belarusian (Belarus), Bulgarian (Bulgaria), Burmese (Myanmar), Catalan (Spain), Cebuano (Philippines), Chinese Mandarin (China), Chinese Mandarin (Taiwan), Croatian (Croatia), Czech (Czech Republic), Danish (Denmark), English (Australia), English (UK), Estonian (Estonia), Filipino (Philippines), Finnish (Finland), French (Canada), Galician (Spain), Georgian (Georgia), Greek (Greece), Gujarati (India), Haitian Creole (Haiti), Hebrew (Israel), Hungarian (Hungary), Icelandic (Iceland), Javanese (Java), Kannada (India), Konkani (India), Lao (Laos), Latin (Vatican City), Latvian (Latvia), Lithuanian (Lithuania), Luxembourgish (Luxembourg), Macedonian (North Macedonia), Maithili (India), Malagasy (Madagascar), Malay (Malaysia), Malayalam (India), Mongolian (Mongolia), Nepali (Nepal), Norwegian Bokmal (Norway), Norwegian Nynorsk (Norway), Odia (India), Pashto (Afghanistan), Persian (Iran), Portuguese (Portugal), Punjabi (India), Serbian (Serbia), Sindhi (India), Sinhala (Sri Lanka), Slovak (Slovakia), Slovenian (Slovenia), Spanish (Latin America), Spanish (Mexico), Swahili (Kenya), Swedish (Sweden), Urdu (Pakistan) Arabic (Egypt)Bangla (Bangladesh)Dutch (Netherlands)English (India)English (US)French (France)German (Germany)Hindi (India)Indonesian (Indonesia)Italian (Italy)Japanese (Japan)Korean (South Korea)Marathi (India)Polish (Poland)Portuguese (Brazil)Romanian (Romania)Russian (Russia)Spanish (Spain)Tamil (India)Telugu (India)Thai (Thailand)Turkish (Turkey)Ukrainian (Ukraine)Vietnamese (Vietnam)Afrikaans (South Africa)Albanian (Albania)Amharic (Ethiopia)Arabic (World)Armenian (Armenia)Azerbaijani (Azerbaijan)Basque (Spain)Belarusian (Belarus)Bulgarian (Bulgaria)Burmese (Myanmar)Catalan (Spain)Cebuano (Philippines)Chinese Mandarin (China)Chinese Mandarin (Taiwan)Croatian (Croatia)Czech (Czech Republic)Danish (Denmark)English (Australia)English (UK)Estonian (Estonia)Filipino (Philippines)Finnish (Finland)French (Canada)Galician (Spain)Georgian (Georgia)Greek (Greece)Gujarati (India)Haitian Creole (Haiti)Hebrew (Israel)Hungarian (Hungary)Icelandic (Iceland)Javanese (Java)Kannada (India)Konkani (India)Lao (Laos)Latin (Vatican City)Latvian (Latvia)Lithuanian (Lithuania)Luxembourgish (Luxembourg)Macedonian (North Macedonia)Maithili (India)Malagasy (Madagascar)Malay (Malaysia)Malayalam (India)Mongolian (Mongolia)Nepali (Nepal)Norwegian Bokmal (Norway)Norwegian Nynorsk (Norway)Odia (India)Pashto (Afghanistan)Persian (Iran)Portuguese (Portugal)Punjabi (India)Serbian (Serbia)Sindhi (India)Sinhala (Sri Lanka)Slovak (Slovakia)Slovenian (Slovenia)Spanish (Latin America)Spanish (Mexico)Swahili (Kenya)Swedish (Sweden)Urdu (Pakistan) |
speakers | object[] | वैकल्पिक | Multi-speaker configuration. Each entry maps a speaker alias used in the prompt to a voice preset. |
tts_model | string | वैकल्पिक | gemini-2.5-flash-tts: low latency and lower cost. gemini-2.5-pro-tts: highest quality, for podcasts, audiobooks, and other structured long-form speech. · विकल्प: gemini-2.5-flash-tts, gemini-2.5-pro-tts · डिफ़ॉल्ट: "gemini-2.5-flash-tts" gemini-2.5-flash-ttsgemini-2.5-pro-tts |
output_format | string | वैकल्पिक | mp3: compressed (recommended). wav: 24 kHz 16-bit mono PCM. ogg_opus: Opus in an Ogg container. · विकल्प: wav, mp3, ogg_opus · डिफ़ॉल्ट: "mp3" wavmp3ogg_opus |
style_instructions | string | वैकल्पिक | Optional style and delivery instructions prepended to the prompt: tone, accent, pace, emotion. · अधिकतम लंबाई: 4000 |
आउटपुट स्कीमा
| फ़ील्ड | प्रकार | विवरण |
|---|---|---|
id | string | generation task के लिए विशिष्ट पहचानकर्ता |
status | string | कार्य की स्थिति: pending, running, completed, failed, timeout |
model | string | generation के लिए उपयोग किया गया model |
outputs | array | output items की array |
outputs[].url | string | जनरेट किए गए artifact का URL |
outputs[].content_type | string | MIME type (जैसे image/png, video/mp4) |
error | object | null | यदि failed हो तो error details, success पर null |
error.type | string | machine-readable error type code |
error.message | string | मानव-पठनीय error विवरण |
असिंक्रोनस वर्कफ़्लो
यह model asynchronously चलता है। अनुरोध सबमिट करें, फिर परिणाम के लिए poll करें।
- सबमिट करें: /v1/run पर POST करें और लौटाए गए
idको पढ़ें। - Poll करें: status
completed,failedयाtimeoutहोने तक /v1/run/{id} पर GET करें। - Retrieve करें: completed response से
outputsपढ़ें।
अपना मॉडल चुनें
मॉडलों की तुलना करें
| मॉडल | प्रकार | डिफ़ॉल्ट कीमत | रिलीज़ |
|---|---|---|---|
Gemini 2.5 TTSयह मॉडल Google | ऑडियो | $0.02 / रन | 20 मार्च 2026 |
Google | ऑडियो | $0.04 / रन | 25 सित॰ 2026 |
Google | ऑडियो | $0.03 / रन | 25 सित॰ 2026 |
Google | ऑडियो | $0.10 / रन | 15 सित॰ 2026 |
Google | ऑडियो | $0.05 / रन | 16 अप्रैल 2026 |
Google | ऑडियो | $0.08 / रन | 30 मार्च 2026 |
प्रश्न
FAQ
SandBase के माध्यम से Google Gemini 2.5 TTS को कैसे कॉल करें?
एक SandBase API key बनाएं, फिर model ID "google/gemini-tts" के साथ requests को https://api.sandbase.ai पर Unified Run API (/v1/run) भेजें। इस पेज पर दिए गए request examples exact payload दिखाते हैं।
क्या मुझे एक अलग Google account चाहिए?
नहीं। एक SandBase API key और balance आपको Google Gemini 2.5 TTS और catalog के अन्य models तक access देता है; आपको अलग से Google पर sign up करने की आवश्यकता नहीं है।
