by Google

Directable voices for narration and two-person dialogue

google/gemini-2.5-pro-tts/text-to-speech
Gemini 2.5 Pro TTS AI Voice Generator online
  • 30 voices
  • Text to Speech

About Gemini 2.5 Pro TTS

Gemini 2.5 Pro TTS fits a documentary narration editor or scripted radio production tool. A single text passage uses a preset voice; structured dialogue assigns lines to named speakers. Scene and delivery instructions provide context without becoming spoken copy. The documentary narration and radio ad examples are useful review fixtures for contrasting performance briefs, rather than measurements of how every script will be delivered.

Call it with the model name google/gemini-2.5-pro-tts/text-to-speech on POST /jobs/createTask, from $0.00045.

Introduction

What it returns

One WAV file per task: 24 kHz, 16-bit, mono PCM. There are no word timings or subtitles in the result.

Choosing a voice

voice_id takes one of 30 prebuilt voices and defaults to Kore. The voice does not change with the language of the script.

Directing the delivery

  • style sets an overall manner: whisper, empathetic, vocal_smile, newscaster, promo_hype or deadpan. Leave it out and the voice reads in its own default manner.
  • accent picks an English accent and defaults to neutral.
  • pace sets the rhythm: natural, rapid_fire, the_drift or staccato.
  • instructions takes free text about how to read: pace, mood, distance from the microphone, who is being addressed. scene says where and to whom the words are spoken. Neither is spoken.
  • temperature (0–2) sets how much the delivery varies between takes.
  • Inside text, cues in square brackets such as [sighs] or [whispering] are acted out rather than read aloud.

Two voices in one clip

For a conversation, send dialogue instead of text, plus speakers with the cast: one or two entries, each with a name, a voice_id and optionally accent, style, pace and profile, a short description of who is speaking that is not read aloud. Each dialogue line is {speaker, text}, where speaker is one of those names; lines are performed in order, up to 20 lines of 250 characters each. Settings a speaker leaves out fall back to the top-level accent, style and pace.

Length and timing

text accepts up to 5,000 characters. A 270-character paragraph came back as 23–29 seconds of audio in our tests, depending on voice and style. The model stops at 16,384 audio tokens, about 655 seconds. Most tasks finish in under a minute.

Request parameters

ParameterRequiredDescription
paceNoRhythm of the reading. natural · rapid_fire · the_drift · staccato
textNoThe words to be spoken, exactly as written.
sceneNoWhere and to whom the words are spoken. Not read aloud.
styleNoA preset look or genre. whisper · empathetic · vocal_smile · newscaster · promo_hype · deadpan
accentNoAccent used for the reading. neutral · american_general · american_valley · american_south · british_rp · british_brixton · transatlantic · australian · Default: neutral
dialogueNoA scripted conversation. Each line names one of the speakers.
speakersNoThe voices in the dialogue, each with a name the lines refer to.
voice_idNoPick from the available voices. Achernar · Achird · Algenib · Algieba · Alnilam · Aoede · Autonoe · Callirrhoe · Charon · Despina · Enceladus · Erinome · Fenrir · Gacrux · Iapetus · Kore · Laomedeia · Leda · Orus · Puck · Pulcherrima · Rasalgethi · Sadachbia · Sadaltager · Schedar · Sulafat · Umbriel · Vindemiatrix · Zephyr · Zubenelgenubi · Default: Kore
temperatureNoVariation between takes. Higher is less predictable. ≥ 0 · ≤ 2
instructionsNoHow to read the text: mood, distance from the mic, who’s listening. Not read aloud.

Pricing

Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

OptionUSD per second
Standard$0.00045

Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.

API quick start

Call the Gemini 2.5 Pro TTS API in three steps

  1. Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
  2. Send the request. POST /jobs/createTask with model google/gemini-2.5-pro-tts/text-to-speech and an input object that follows the parameter table. The response returns a task ID straight away.
  3. Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{
  "model": "google/gemini-2.5-pro-tts/text-to-speech",
  "input": {
    "text": "Welcome back. Your files finished rendering a minute ago and are ready to download.",
    "voice_id": "Kore",
    "accent": "neutral"
  }
}'

# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.

What to build with the Gemini 2.5 Pro TTS API

  • Provide a narration workspace with separate fields for script, scene and performance. An author can change the imagined audience or microphone distance through instructions while preserving the approved spoken words.
  • Create a cast-based dialogue form where speakers are defined once and lines reference their names. Keep each cast member's preset and delivery options visible when editing the script so the request remains understandable before submission.

Gemini 2.5 Pro TTS parameter notes

  • Use either text or the conversation structure rather than interpreting the empty required array as permission to submit no content. dialogue supplies ordered objects with speaker and text, while speakers defines the names and required voice_id selections.
  • Dialogue line text has a much shorter bound than the single text field. Validate each line individually before aggregating the request, and cap the line count and cast size according to schema. A long monologue cannot simply be copied into one dialogue item.
  • style, pace and accent are enum controls. scene and instructions are bounded freeform text that shapes the performance and is not spoken. Per-speaker profile describes the speaker without adding words to the recording.
  • temperature is a bounded number governing take variation. Square-bracket cues such as [sighs] are described as performed in this model's schema. Do not assume that another model's longer dialogue line limits or freeform line style property are supported here.

How Gemini 2.5 Pro TTS API pricing adds up

The billing unit is generated speech time. Script length can help an author plan a recording but does not replace the duration meter. Quote the selected narration or conversation payload, confirm the current maximum USD hold and reconcile final costUsd after completion. A slower performance may produce a different duration without changing the written script.

  • Text to Speech, 5-second clip: $0.00225 each, $0.225 for 100 clips

Async jobs, webhooks and rate limits

Every Gemini 2.5 Pro TTS request is asynchronous: createTask returns a taskId straight away, and the result arrives when the job finishes. Poll GET /jobs/recordInfo every few seconds, or pass a public https callBackUrl and verify the X-Webhook-Signature header (HMAC-SHA256 over taskId, timestamp and the body hash) before trusting the payload. Each account gets 1,000 write requests per 10 seconds; a 429 carries Retry-After. Send an Idempotency-Key with createTask so a retried request for google/gemini-2.5-pro-tts/text-to-speech never runs or bills twice.

Common Gemini 2.5 Pro TTS API errors

errorCodeWhat it usually means and how to fix it
invalid_requestCheck every dialogue line against its own text bound, verify matching cast names and provide required preset voices. Remove line properties that are absent from this model's schema.
timeoutLook up the saved task before rerendering a narration. Maintain a distinction between a player's wait limit and the asynchronous job's actual terminal state.
upstream_failedKeep the accepted script and casting choices with the failure record. Use the returned request identifier for diagnosis before offering another production take.

Gemini 2.5 Pro TTS API questions

How much does the Gemini 2.5 Pro TTS API cost?

Gemini 2.5 Pro TTS costs $0.00045 per second. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

What is the model name for Gemini 2.5 Pro TTS in the API?

Put google/gemini-2.5-pro-tts/text-to-speech for Text to Speech in the model field of POST /jobs/createTask.

How does a production editor receive the recording?

Track the createTask taskId and poll recordInfo, or verify a task-level webhook before attaching the result. Update the submitted script revision rather than whichever draft is currently open.

Are cast profiles read aloud?

No. profile, scene and instructions guide delivery. Spoken words belong in text or dialogue line text, keeping production notes separate from the approved script.

Can I reuse another Gemini dialogue validator?

Only if it reads this endpoint's schema. This model has its own line lengths and speaker requirements, so a shared family label is not sufficient to validate a conversation payload.

What are the limits of the Gemini 2.5 Pro TTS API?

Text length (characters): 5,000; Voices: 30. Requests outside these limits are rejected before anything is charged.

Can I try Gemini 2.5 Pro TTS without writing code?

Run Gemini 2.5 Pro TTS in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.

All Gemini models

Gemini 3.8 Flash TTS is Google's newer model and acts out bracketed cues like [whispering] inside the script.

More about Gemini 2.5 Pro TTS