infery
← All models

xAI Text to Speech

tts-v1

Text to Speechby xAI

Generate speech with expressive and realistic voices from xAI

Details

Accepts
text

Pricing

Price
0.00187 cr / character

Prices in credits (1 credit = $0.01).

Data schema

Input

FieldTypeDescription
textrequiredstringThe text to convert to speech. Maximum 15,000 characters. Supports speech tags for expressive delivery: inline tags like [laugh], [pause], [sigh] and wrapping tags like <whisper>text</whisper>, <slow>text</slow>.
voicestringenum: carina, zagan, helix, orion, luna, irisBuilt-in xAI voice to use for synthesis.
languagestringenum: auto, en, ar-EG, ar-SA, ar-AE, bnBCP-47 language code or 'auto' for automatic detection. Supported: en, zh, fr, de, hi, id, it, ja, ko, pt-BR, pt-PT, ru, es-MX, es-ES, tr, vi, bn, ar-EG, ar-SA, ar-AE.
output_formatOutput format configuration. Defaults to MP3 at 24 kHz / 128 kbps.

Output

FieldTypeDescription
audioThe generated audio file.