Skip to content

Gemini TTS

Integrate

Model id gemini-tts
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/gemini-tts?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Hello from Doitong. This is a short test sentence."
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

This request: ≈$0.03 30 API credits · ≈ ₽3.16 Run it on this page

Get API key
Google Text to Speech #text-to-speech#audio#gemini

Text-to-speech with 30 voices, multi-speaker dialogue, style instructions and a Flash or Pro model choice

Google · Audio

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required 50 / 50000

Speech text for Gemini TTS, accepting embedded natural-language directions for style, pace, accent, and emotion, such as 'Say cheerfully: Have a wonderful day!'. Inline markers including [slowly], [whispering], [excited], and [extremely fast] also control pace and style. Multiple speakers require lines beginning with aliases from the speakers field, for example 'Alice: Hello!\nBob: Hi!'.

Advanced style_instructions · output_format · voice · model · language_code · temperature · speakers
0 / 4000

Optional natural-language directions kept separate from spoken content and inserted before the prompt to shape expressiveness, accent, pace, tone, and emotion. Examples include 'Speak warmly and slowly', 'Read this as a dramatic newscast', 'Use a British accent with a cheerful tone', and 'Whisper mysteriously'.

output_format default mp3

Format for the output audio: mp3 provides compressed, compact files and is recommended; wav contains uncompressed PCM in a WAV container at 24 kHz with 16-bit mono audio; ogg_opus uses Opus inside Ogg for a favorable balance of quality and size.

default Kore

Single-speaker voice selection from 30 distinct presets; setting speakers makes this selection inactive. Popular female options are Kore, with a strong and firm delivery, Zephyr, with a bright and clear delivery, and Aoede, with a warm and melodic delivery; popular male options are Puck, upbeat and lively, and Charon, calm and professional.

default gemini-2.5-flash-tts

Gemini TTS model selection. For the highest quality in structured workflows such as audiobooks, podcasts, or customer support, use gemini-2.5-pro-tts.

Speech language for multilingual synthesis: omit it to let the model infer the language from your text, or supply it to guide the spoken output. Coverage includes 60+ languages in Preview and 24 in GA.

default 1

Speech randomness setting, ranging in effect from focused, predictable delivery at lower settings to creative, varied delivery at higher settings.

Speaker configuration supported by gemini-2.5-pro-tts and gemini-2.5-flash-tts, but not gemini-2.5-flash-lite-preview-tts. Providing it enables different voices to read different portions of the text; for each speaker, supply a voice plus a speaker_id alias corresponding to that speaker's prompt prefixes.

POST /run/gemini-tts?wait=20 quote → $0.03
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/gemini-tts?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Hello from Doitong. This is a short test sentence."
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Gemini TTS

Converts up to 50,000 characters of text to speech. Select a `voice`, and `model` gemini-2.5-flash-tts or gemini-2.5-pro-tts. `style_instructions` (up to 4000 characters) steers delivery, and `speakers` takes 2 to 10 entries for multi-voice scripts. Optional `language_code`, `temperature` 0 to 2, and wav, mp3 or ogg_opus output.

Parameters

NameType DefaultAllowed Description
promptrequired
Typestring
≤ 50,000 characters
Speech text for Gemini TTS, accepting embedded natural-language directions for style, pace, accent, and emotion, such as 'Say cheerfully: Have a wonderful day!'. Inline markers including [slowly], [whispering], [excited], and [extremely fast] also control pace and style. Multiple speakers require lines beginning with aliases from the speakers field, for example 'Alice: Hello!\nBob: Hi!'.
style_instructionsoptional
Typestring | null
≤ 4,000 characters
Optional natural-language directions kept separate from spoken content and inserted before the prompt to shape expressiveness, accent, pace, tone, and emotion. Examples include 'Speak warmly and slowly', 'Read this as a dramatic newscast', 'Use a British accent with a cheerful tone', and 'Whisper mysteriously'.
voiceoptional
Typeenum
DefaultKore
AchernarAchirdAlgenibAlgiebaAlnilamAoedeAutonoeCallirrhoeCharonDespinaEnceladusErinomeFenrirGacruxIapetusKore
+14 moreLaomedeiaLedaOrusPulcherrimaPuckRasalgethiSadachbiaSadaltagerSchedarSulafatUmbrielVindemiatrixZephyrZubenelgenubi
Single-speaker voice selection from 30 distinct presets; setting speakers makes this selection inactive. Popular female options are Kore, with a strong and firm delivery, Zephyr, with a bright and clear delivery, and Aoede, with a warm and melodic delivery; popular male options are Puck, upbeat and lively, and Charon, calm and professional.
modeloptional
Typeenum
Defaultgemini-2.5-flash-tts
gemini-2.5-flash-ttsgemini-2.5-pro-tts
Gemini TTS model selection. For the highest quality in structured workflows such as audiobooks, podcasts, or customer support, use gemini-2.5-pro-tts.
language_codeoptional
Typeenum
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)
+71 moreRussian (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)
Speech language for multilingual synthesis: omit it to let the model infer the language from your text, or supply it to guide the spoken output. Coverage includes 60+ languages in Preview and 24 in GA.
speakersoptional
Typeobject[]
≤ 10 items≥ 2 items
Speaker configuration supported by gemini-2.5-pro-tts and gemini-2.5-flash-tts, but not gemini-2.5-flash-lite-preview-tts. Providing it enables different voices to read different portions of the text; for each speaker, supply a voice plus a speaker_id alias corresponding to that speaker's prompt prefixes.
speakers[].voicerequired
Typeenum
AchernarAchirdAlgenibAlgiebaAlnilamAoedeAutonoeCallirrhoeCharonDespinaEnceladusErinomeFenrirGacruxIapetusKore
+14 moreLaomedeiaLedaOrusPulcherrimaPuckRasalgethiSadachbiaSadaltagerSchedarSulafatUmbrielVindemiatrixZephyrZubenelgenubi
Preset voice assigned to this speaker.
speakers[].speaker_idrequired
Typestring
Speaker alias containing only alphanumeric characters and no whitespace. Identify the speaker by prefixing their prompt text with this alias, as in 'Alice: Hello! Bob: Hi there!'.
temperatureoptional
Typenumber
Default1
0 – 2
Speech randomness setting, ranging in effect from focused, predictable delivery at lower settings to creative, varied delivery at higher settings.
output_formatoptional
Typeenum
Defaultmp3
wavmp3ogg_opus
Format for the output audio: mp3 provides compressed, compact files and is recommended; wav contains uncompressed PCM in a WAV container at 24 kHz with 16-bit mono audio; ogg_opus uses Opus inside Ogg for a favorable balance of quality and size.
required

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "gemini-tts",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 30,
    "usd": "0.03",
    "charged": 30,
    "refunded": 0
  },
  "input": {
    "prompt": "Hello from Doitong. This is a short test sentence."
  },
  "output": {
    "audio": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_name": "0-output.mp3",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "audio",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_size": 1843200,
      "duration": 12,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
audio
object {url, content_type, file_name, file_size}Audio file produced by generation.

For AI agents: this page as Markdown is at https://doitong.com/en-US/developers/models/gemini-tts.md. All models and guides: https://doitong.com/developers/llms.txt