by xAI

71 voices across 20 languages with speech tags

xai/grok-tts/text-to-speech
Grok TTS AI Voice Generator online
  • 71 voices
  • 20 languages
  • Text to Speech

About Grok TTS

Grok TTS can serve a long-form narration tool or a phone prompt asset pipeline. Its script field accepts performed sound tags and passage-level delivery tags, while export settings include both ordinary audio files and raw encodings. The trail guide example provides a straightforward read; the game announcer example adds an inline laugh. Treat those as examples to audition rather than promises of fixed timing or identical performances.

Call it with the model name xai/grok-tts/text-to-speech on POST /jobs/createTask, from $0.018.

Introduction

What it returns

Each task returns one audio file. The default output is mono MP3 at 24 kHz and 128 kbps. The result does not include word timestamps or subtitles. Send between 1 and 15,000 characters in text.

Choosing a voice

voice_id selects one of 71 preset voices and defaults to eve. Eve, Ara, Leo, Rex and Sal are multilingual. The other 66 voices are tuned for individual languages; the form lists each voice by name, gender and language. Leave language on auto for Danish, Dutch, Finnish, Polish, Swedish or Thai voices, because those languages do not have a separate value in this endpoint’s language selector.

Directing the delivery with tags

Add performance tags to text. Square-bracket tags request pauses or sounds at that point: [pause], [long-pause], [hum-tune], [laugh], [chuckle], [giggle], [cry], [tsk], [tongue-click], [lip-smack], [breath], [inhale], [exhale], [sigh]. Paired tags direct the delivery of the words they enclose: <soft>, <whisper>, <loud>, <build-intensity>, <decrease-intensity>, <higher-pitch>, <lower-pitch>, <slow>, <fast>, <sing-song>, <singing>, <laugh-speak>, <emphasis>. Close each paired tag after the words it should affect.

Speed, language and format

speed ranges from 0.7 to 1.5. language is detected when set to auto; set the language if a short or mixed-language script is read in the wrong language. output_format defaults to mp3; choose wav for editing. pcm, mulaw and alaw are raw streams without file headers; use sample_rate 8000 for telephone audio. bitrate applies only to MP3.

Request parameters

ParameterRequiredDescription
textYesThe words to be spoken, exactly as written.
speedNoSpeaking pace. ≥ 0.7 · ≤ 1.5 · Default: 1
bitrateNoAudio bitrate. Higher sounds better and makes bigger files. 32000 · 64000 · 96000 · 128000 · 192000 · Default: 128000
languageNoThe language of the speech. auto · en · zh · ar-EG · ar-SA · ar-AE · bn · fr · de · hi · id · it · ja · ko · pt-BR · pt-PT · ru · es-MX · es-ES · tr · vi · Default: auto
voice_idNoPick from the available voices. ara · eve · leo · rex · sal · jpi39icg · d18jlf6v · 33g9t0jl · 26w6ihxi · dr8gqysu · wy0m9l5w · om17cury · x7avnu1k · bcs7l2c3 · hqxr4yub · h27ltdnz · 89q2pnko · 73xd5dum · 0p0rt7o1 · hbxkrnwm · 69smp8rm · yis75yfp · ekhwx401 · jupvcf34 · 0hhfxxqq · 0ih5oi34 · gwnexu6y · 97zmdc6s · fc7de6afcf6c · 7a9ee820b342 · 0895a5b8ce5c · f8cf5c2c78d4 · 96819d0bd28d · 79f3a8b96d43 · 78a495fdbb39 · e22152e06fd8 · 490ea3be50b1 · 1f046a033914 · dfe7b9e7d217 · c3a2c594479e · 83c6f4fea98e · 34fd4dce1ba3 · d634b6da3d3b · 670a0c3ac005 · 182a91893636 · d0cb9ff07d95 · b1a7441b97a1 · bf9fe5b5f981 · b5ae17439907 · a0401c9101f8 · 23be42535a45 · abfbdf26f115 · 6da5baee46d0 · 3d030bc92a87 · a13662ba951c · 58d27475085e · 247783ebdd51 · 244e27b39200 · 97fabd54445f · 37329fd8895a · 2badb5f46b1e · 1b12d5daee6b · 908c4626660f · 4ff93971bfdc · 70013edeb8e8 · 35c8d7f60dc8 · 23468361b4ef · 458705c07139 · 41321eb41295 · 40f31906b23d · 3a7889066fa2 · Default: eve
sample_rateNoAudio sample rate. Higher sounds clearer and makes bigger files. 8000 · 16000 · 22050 · 24000 · 44100 · 48000 · Default: 24000
output_formatNoFile type of the result. mp3 · wav · pcm · mulaw · alaw · Default: mp3
text_normalizationNoConvert numbers, abbreviations and symbols to spoken words before reading them aloud. Default: false
optimize_streaming_latencyNoStreaming latency: 0 prioritizes quality; 1 and 2 use smaller initial chunks, with more quality trade-offs at chunk boundaries. 0 · 1 · 2 · Default: 0

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 1,000 characters
Standard$0.018

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 Grok 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 xai/grok-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": "xai/grok-tts/text-to-speech",
  "input": {
    "text": "Welcome back. Your files finished rendering a minute ago and are ready to download.",
    "voice_id": "eve",
    "language": "auto"
  }
}'

# 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 Grok TTS API

  • Build an audiobook segment editor with a preview of the exact submitted script. Let authors add pauses and expressive tags without hiding them from the request preview, since these characters remain part of the text that the endpoint meters.
  • Support phone system asset preparation with explicit encoding and sample rate presets. Keep the telephony export path separate from browser playback: headerless pcm, mulaw and alaw need matching decoder metadata and cannot simply be treated as WAV downloads.

Grok TTS parameter notes

  • text has a larger limit than many short narration endpoints, but it is still bounded. Optional cues such as [laugh] and paired whisper tags belong in that field. Preserve opening and closing tags during script edits so an intended passage does not accidentally include later paragraphs.
  • voice_id defaults to eve. The catalog identifies Eve, Ara, Leo, Rex and Sal as voices spanning all supported languages; other presets are language-specific. Store the exact identifier behind a localized display name and keep the supported language enum available to your validator.
  • bitrate affects mp3 only. output_format also accepts wav and the raw pcm, mulaw and alaw encodings. sample_rate is an integer enum, and speed is a bounded decimal multiplier. Do not carry an MP3 bitrate control into a raw audio export as though it controlled that encoding.
  • text_normalization can rewrite numbers, symbols and abbreviations into spoken forms. Test it on actual phone menus or specialist scripts before enabling it by default. optimize_streaming_latency is an integer quality tradeoff setting; its presence does not turn the PopNow jobs interface into a synchronous audio stream.

How Grok TTS API pricing adds up

Grok speech uses character billing on text, including inline performance tags. The length of a tag-rich script therefore matters even when the visible dialogue is short. Request the live USD quote for the serialized text, retain the accepted hold information and read costUsd after completion. Export encoding and playback duration should not be substituted for the documented character meter.

  • Text to Speech: $0.018 per run, $1.80 for 100 runs

Async jobs, webhooks and rate limits

Every Grok 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 xai/grok-tts/text-to-speech never runs or bills twice.

Common Grok TTS API errors

errorCodeWhat it usually means and how to fix it
invalid_requestCheck the final tagged script against its length limit, preserve correct parameter types and use supported voice, language and sample rate values. A display name is not necessarily an accepted voice_id.
timeoutQuery the saved taskId to distinguish a slow speech job from a terminal timeout. Do not generate a duplicate chapter merely because your frontend stopped waiting.
rate_limitedApply queue backoff using Retry-After. Keep already accepted narration tasks in progress instead of restarting the entire chapter batch.

Grok TTS API questions

How much does the Grok TTS API cost?

Grok TTS costs $0.018 per 1,000 characters. 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 Grok TTS in the API?

Put xai/grok-tts/text-to-speech for Text to Speech in the model field of POST /jobs/createTask.

Can I play every Grok export with a normal audio element?

MP3 and WAV are file-oriented choices. Raw exports have no header, so the consuming application must supply the matching encoding, channel assumptions and sample rate rather than relying on filename detection.

Does the latency option change how I retrieve results?

No. Use createTask followed by recordInfo polling or a verified callBackUrl notification. Save the task state independently from any playback component in your app.

Do performance tags count toward script billing?

Yes. Tags are included in the text meter. Keep them in the quoted payload and use the current API quote instead of counting only the words an author expects to hear.

What are the limits of the Grok TTS API?

Text length (characters): 15,000; Voices: 71; Languages: 20. Requests outside these limits are rejected before anything is charged.

Can I try Grok TTS without writing code?

Run Grok 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 Grok models

Gemini 3.8 Flash TTS gives a more acted read with two voices in one file. Grok is the one for long scripts in one request.

More about Grok TTS