← All models
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
| Field | Type | Description |
|---|---|---|
| textrequired | string | The 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>. |
| voice | stringenum: carina, zagan, helix, orion, luna, iris… | Built-in xAI voice to use for synthesis. |
| language | stringenum: auto, en, ar-EG, ar-SA, ar-AE, bn… | BCP-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_format | — | Output format configuration. Defaults to MP3 at 24 kHz / 128 kbps. |
Output
| Field | Type | Description |
|---|---|---|
| audio | — | The generated audio file. |