ReplicateText to speechComing soon
xai/grok-text-to-speech
xai/grok-text-to-speech is a text to speech tool from Replicate that runs in the background and returns audio. Coming soon: listed with its price, not yet open to runs.
This tool is listed but not yet available to run.
Priced by usagePricing
$0.0195 per 1,000 characters of text.
Limits
- Runs
- In the background
- Returns
- audio
- Longest queue wait
- 3600s
- Run deadline
- 1800s
- Largest inline input
- 1024 KB
- Largest input file
- 500 MB
- Largest output
- 4768 MB
- Outputs per run
- 16
Input
| Field | Kind | Default | Description |
|---|---|---|---|
text required | text | — | 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 | JSON | 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. |
bit_rate | JSON | 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. |
language | JSON | auto | BCP-47 language code for the input text. Set to 'auto' to let the model auto-detect the language. |
sample_rate | JSON | 24000 | Audio sample rate in Hz. Higher rates produce better quality at the cost of file size. |
output_format | JSON | mp3 | Audio codec. 'mp3' is best for general use, 'wav' for lossless audio, 'pcm' for raw audio pipelines, 'mulaw'/'alaw' for telephony. |
text_normalization | true or false | false | Normalize written-form text (numbers, abbreviations, symbols) into spoken-form before generating audio. |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "replicate",
"model": "xai/grok-text-to-speech",
"input": {
"text": "<text>"
}
}'