Xai: grok-voice-tts-1.0
Grok Voice TTS 1.0 is a text-to-speech model from SpaceXAI. It converts text into spoken audio across 20+ languages with automatic language detection, and offers five built-in voices (Eve, Ara, Rex, Sal, Leo) covering a range of tones. Inline speech tags allow control over pauses, emphasis, pitch, speed, and vocal style. Output is available in MP3, WAV, PCM, μ-law, and A-law formats at sample rates from 8 kHz to 48 kHz, with up to 15,000 characters per request.
Pricing
Current price per 1,000,000 tokens. Every request is billed automatically from its exact usage.
Statistics
Live performance and usage of this model, aggregated across all users.
API
Turn text into speech and get the audio file back, using your API token.
https://apiex.cloud/api/v1/audio/speech
<?php
$ch = curl_init( "https://apiex.cloud/api/v1/audio/speech" );
curl_setopt_array( $ch, array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer YOUR_API_KEY",
"Content-Type: application/json",
),
CURLOPT_POSTFIELDS => json_encode( array(
"model" => "x-ai/grok-voice-tts-1.0",
"input" => "Hello! This is a test of the text-to-speech API.",
"voice" => "alloy",
) ),
) );
file_put_contents( "speech.mp3", curl_exec( $ch ) ); // audio/mpeg, or audio/wav for some models
Authentication
Every request must include an Authorization: Bearer <TOKEN> header. Generate a token from your account's API Keys page — you can set its rate limit and IP restrictions.
Supported parameters
| Parameter | Type | Description |
|---|---|---|
model |
string, required | This model's ID, exactly as shown above. |
input |
string, required | The text to speak. Up to 4,000 characters. |
voice |
string, optional | The voice to use. Which voices exist depends on the model. |
Frequently asked questions
What is grok-voice-tts-1.0?
Grok Voice TTS 1.0 is a text-to-speech model from SpaceXAI. It converts text into spoken audio across 20+ languages with automatic language detection, and offers five built-in voices (Eve, Ara, Rex, Sal, Leo) covering a range of tones. Inline speech tags allow control over pauses, emphasis, pitch, speed, and vocal style. Output is available in MP3, WAV, PCM, μ-law, and A-law formats at sample rates from 8 kHz to 48 kHz, with up to 15,000 characters per request.
How much does grok-voice-tts-1.0 cost?
Input tokens are priced at $18,00 per 1,000,000 tokens and output tokens at $0,00 per 1,000,000 tokens. Pricing is billed automatically per request; no separate plan is required.
What is the context length of grok-voice-tts-1.0?
grok-voice-tts-1.0 supports a context window of up to 15,000 tokens.
Does grok-voice-tts-1.0 support image input?
grok-voice-tts-1.0 currently accepts text input only.
Which provider is grok-voice-tts-1.0 from?
grok-voice-tts-1.0 is developed by Xai and made available on this gateway through our routing infrastructure.
When was grok-voice-tts-1.0 added to this gateway?
grok-voice-tts-1.0 has been available on this gateway since October 28, 2026.
Is grok-voice-tts-1.0 currently available?
Yes, grok-voice-tts-1.0 is active and can be used right now through this gateway.
Explore more models
Keep exploring
Ready to build with one API?
Create an account, make a key and send your first request in a few minutes.