About the Rex voice
One of the original Grok voices; xAI uses Rex in its own high-fidelity MP3 example in the API docs.
Rex is one of the five original Grok voices, so it is the same voice you hear in the Grok app's voice mode. We suggest trying it first for ads, trailers, sports, but every Grok voice handles every kind of text; the samples above let you judge in seconds.
Use Rex in the xAI text to speech API
The voice id is rex (case-insensitive). A complete request:
curl -X POST https://api.x.ai/v1/tts \
-H "Authorization: Bearer $XAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "Hello, this is Rex. [pause] Nice to meet you.",
"voice_id": "rex",
"language": "en",
"speed": 1.0
}' \
--output rex.mp3Add output_format for WAV, PCM or telephony codecs, with_timestamps for per-character timing, and the same voice_id as the voice of a Grok voice agent. Full parameter list in the Grok Voice API guide; official reference at docs.x.ai.
Languages Rex can speak
English, Arabic (Egypt), Arabic (Saudi Arabia), Arabic (UAE), Bengali, Chinese (Simplified), French, German, Hindi, Indonesian, Italian, Japanese, Korean, Portuguese (Brazil), Portuguese (Portugal), Russian, Spanish (Mexico), Spanish (Spain), Turkish, Vietnamese. Pass the BCP-47 code (for example zh, ja, pt-BR) or auto.
Compare with the original Grok voices
- Grok Ara voice — narration, product demos
- Grok Eve voice — announcements, explainer videos
- Grok Leo voice — documentaries, audiobooks
- Grok Sal voice — podcasts, radio-style reads