You're looking at a specific version of this model. Jump to the model overview.

xai /grok-text-to-speech:443e01eb

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
text
string
Text to synthesize into speech. Maximum 15000 characters. Supports inline speech tags like '[pause]', '[laugh]', and wrapping tags like '<whisper>...</whisper>' for expressive delivery.
voice
None
eve
Voice to use for synthesis. 'eve' is energetic and upbeat (default), 'ara' is warm and friendly, 'rex' is confident and clear, 'sal' is smooth and balanced, 'leo' is authoritative and strong.
language
None
auto
BCP-47 language code for the input text. Set to 'auto' to let the model auto-detect the language.
output_format
None
mp3
Audio codec. 'mp3' is best for general use, 'wav' for lossless audio, 'pcm' for raw audio pipelines, 'mulaw'/'alaw' for telephony.
sample_rate
None
24000
Audio sample rate in Hz. Higher rates produce better quality at the cost of file size.
bit_rate
None
128000
MP3 bit rate in bits per second. Only used when 'output_format' is 'mp3'. Higher bit rates produce better quality at the cost of file size.
text_normalization
boolean
False
Normalize written-form text (numbers, abbreviations, symbols) into spoken-form before generating audio.

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'format': 'uri', 'title': 'Output', 'type': 'string'}