PopNowAPI Docs
Main content

Gemini 3.8 Flash-Lite TTS API reference

Fast, lightweight speech in 30 voices

Call Gemini 3.8 Flash-Lite TTS from your own code with one PopNow API key. Below are the exact model IDs to send, every input field the model accepts, what each request costs in credits, and a request you can paste into a terminal.

At a glance

Made by
Google
Output
Audio
From
0.03 credits per second of output ($0.0003)
Typical time
about 11 s

1 credit = $0.01. A task holds the highest possible charge when it is accepted and settles the real amount when it finishes, rounded up to whole credits; failed tasks are not charged. Ask POST /api/v1/jobs/quote for the exact figure before you run.

Text to Speech

google/gemini-3.8-flash-lite-tts/text-to-speech

Price

OptionCredits (per second of output)US dollars
Default0.03$0.0003

Parameters

FieldTypeDefaultAllowedWhat it does
textOptionalstring—up to 5,000 charactersThe words to be spoken, exactly as written. Spell out sounds such as sighs or laughter; bracketed cues may be read aloud.
dialogueOptionalarray<object>—up to 20 itemsA scripted conversation, used instead of text: each line names a speaker from speakers.
speakersOptionalarray<object>—up to 2 itemsThe cast for dialogue: one or two voices, each with a name the lines refer to.
voice_idOptionalstringKoreAchernar, Achird, Algenib, Algieba, Alnilam, Aoede, Autonoe, Callirrhoe, Charon, Despina, Enceladus, Erinome, Fenrir, Gacrux, … (+16)Prebuilt voice that reads the text. Each voice has a fixed character.
styleOptionalstring—whisper, empathetic, vocal_smile, newscaster, promo_hype, deadpanOverall manner of the reading. Omit it to use the voice's own default manner.
paceOptionalstring—natural, rapid_fire, the_drift, staccatoRhythm of the reading. Omit it to keep the voice's own rhythm.
accentOptionalstring—neutral, american_general, american_valley, american_south, british_rp, british_brixton, transatlantic, australianEnglish accent used for the reading.
instructionsOptionalstring—up to 1,000 charactersHow to read the text: mood, distance from the microphone, who is listening. Shapes the delivery and is not spoken.
sceneOptionalstring—up to 500 charactersWhere and to whom the words are spoken. Shapes the delivery and is not spoken.
temperatureOptionalnumber—0 to 2Variation between takes; higher is less predictable.

Example request

This request runs as it is; any field you leave out uses its default. Put your key in POPNOW_API_KEY first.

POST /api/v1/jobs/createTask?wait=60
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask?wait=60" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "google/gemini-3.8-flash-lite-tts/text-to-speech",
  "input": {
    "text": "Hi there! This voice was created with the PopNow API in just a few seconds."
  }
}'

The response carries a taskId straight away. Read the result with GET /api/v1/jobs/recordInfo, or add callBackUrl to be notified.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Next steps

On this page