Skip to content
youbot
Grok TTS cover

Grok TTS API

Also known as Grok Text to Speech · xAI TTS · Grok Voice TTS

grok-tts
GrokCommercial use API verifiedAudio & music

xAI's Grok text-to-speech — turn a script of up to 60,000 characters into natural speech in 26 voices and 20+ languages, with inline speech tags like [laugh] and <whisper> for expressive delivery.

by Grok

Get Your API Key
View as Markdown

Pricing: Grok TTS costs 1.35 credits per 1,000 characters (≈ $0.0135).

Save up to 18%with the $1,250 top-up pack (+10% bonus) — 10% lower than direct rates even without itTop up

24H Status Monitor

Operational
24h agonow
Loading…

Affordable Grok TTS API on you.bot

Access Grok's Grok TTS through one unified API — same model, better rates, one integration.

Grok TTS API pricing & guide (2026)

xAI's Grok text-to-speech — turn a script of up to 60,000 characters into natural speech in 26 voices and 20+ languages, with inline speech tags like [laugh] and <whisper> for expressive delivery. Through you.bot you call the Grok TTS API by Grok on the same unified endpoint as every other model — one key, one integration.

On you.bot, the Grok TTS API costs about $0.014 per track — roughly 10% cheaper than the official Grok price of $0.015. You only pay for successful generations; failed tasks are never charged.

Billing is pay-as-you-go in credits (1 credit = $0.01 USD) — no subscription, no monthly minimum, and credits never expire. So Grok TTS API pricing in 2026 is easy to predict: you pay per successful call and nothing for failures.

Core capabilities of the Grok TTS API

Full tracks from text

Turn a short description into a complete track with structure and vocals.

Style & instrumental control

Steer genre and mood, or generate an instrumental-only version.

Production-ready output

Get clean audio files ready to drop straight into your app.

How to access and deploy the Grok TTS API on you.bot

Step 1

Get your API key

Create a key in the dashboard — one key works across every model on the platform.

Step 2

Call the Grok TTS endpoint

POST your prompt and parameters to /api/v1/generate with your key in the Authorization header.

Step 3

Poll for your result

Use the returned taskId to poll the task endpoint, or register a webhook to receive the result URLs.

curl -X POST https://you.bot/api/v1/generate \
  -H "Authorization: Bearer sk-live-..." \
  -H "Content-Type: application/json" \
  -d '{
    "modelId": "grok-tts",
    "input": { "prompt": "..." }
  }'

Grok TTS API on you.bot vs going direct

Featureyou.botGoing direct
Price per track$0.014$0.015
Failed-task billingFree (auto-refund)Charged
IntegrationOne unified APIPer-vendor SDKs
Credit expiryNeverVaries

4.9

Based on 1,200+ developer reviews

Why choose you.bot for the Grok TTS API

10% cheaper

Lower rates than going direct to Grok — and you only pay for successful runs.

Production-grade reliability

Monitored availability with automatic credit refunds on failed jobs.

One API for everything

Swap models freely without touching your integration or juggling vendors.

FAQs about the Grok TTS API

Grok TTS is billed per track at about $0.014 on you.bot — and you only pay for successful generations.

Grok

Grok TTS API code example

POST/api/v1/generate

xAI's Grok text-to-speech — turn a script of up to 60,000 characters into natural speech in 26 voices and 20+ languages, with inline speech tags like [laugh] and <whisper> for expressive delivery.

Overview

Grok TTS runs in two steps: POST /api/v1/generate to start a task, then poll GET /api/v1/task/{taskId} until the result is ready.

Authentication

All requests require a Bearer Token in the header:

Authorization: Bearer YOUR_API_KEY

Request parameters

ParameterTypeRequiredDescription
modelIdstringYesModel id: `grok-tts`
inputobjectYesInput parameters object (see below)
callbackUrlstringNohttps URL we POST the finished task to. Signed with `X-Webhook-Signature` once you create a webhook signing key in Dashboard → Settings

input object parameters

ParameterTypeRequiredDescription
textstringYesUp to 60,000 characters. Add speech tags for delivery, e.g. [pause], [laugh], <whisper>…</whisper>. Billed per character. · default: Welcome to you.bot. [pause] This voice was generated by Grok text-to-speech.
voice_idstringYesOptions: eve, ara, leo, rex, sal, atlas, altair, carina, castor, celeste, cosmo, helios, helix, iris, kepler, lumen, luna, lux, naksh, orion, perseus, rigel, sirius, ursa, zagan, zenith · default: eve
languagestringYesAuto-detect reads the language from the text. Any voice can speak any language. (options: auto, en, ar-EG, ar-SA, ar-AE, bn, zh, fr, de, hi, id, it, ja, ko, pt-BR, pt-PT, ru, es-MX, es-ES, tr, vi) · default: auto
speednumberNo1.0 is normal speed. Lower is slower, higher is faster. (range 0.7–1.5) · default: 1
formatstringNoOptions: mp3, wav · default: mp3

Query task status

GET/api/v1/task/{taskId}?model=grok-tts

When state is success, the output is in resultUrls:

{ "state": "success", "resultUrls": ["https://…/api/file?t=…"] }

Error codes

CodeDescription
200Request successful
400Invalid request parameters
401Authentication failed — check API Key
402Insufficient account balance
403IP not allowed for this key, or the key is restricted to other models
404Task not found, or it has expired
409Duplicate request — an identical submit arrived moments ago. Nothing was charged; retry is safe
413Payload too large — see the character and file-size limits for this model
429Rate limit exceeded — retry after the Retry-After header
500Internal server error
504Upstream timed out — nothing was delivered; retry is safe
Request
curl --location 'https://you.bot/api/v1/generate' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "modelId": "grok-tts",
    "input": {
        "text": "Welcome to you.bot. [pause] This voice was generated by Grok text-to-speech.",
        "voice_id": "eve",
        "language": "auto",
        "speed": 1,
        "format": "mp3"
    },
    "callbackUrl": "https://your-domain.com/api/callback"
}'
Response
{
  "taskId": "281e5b0…f39b9",
  "creditsCharged": 0.1
}