Providers
xAI
xAI Grok text-to-speech through the Speechbase gateway, with native audio tags.
| Prefix | xai |
| Default model | grok-tts |
| Provider key | Connect under Provider Keys |
Route to xAI by prefixing the model with xai/. grok-tts streams, interprets
audio tags, and accepts a large input window.
Models
| Model | Streaming | Audio tags | Timestamps | Max input | Languages |
|---|---|---|---|---|---|
grok-tts | Yes | Yes | STT fallback | 15000 | 16 |
Usage
curl -X POST https://api.speechbase.ai/v1/audio/speech \
-H "Authorization: Bearer $SPEECHBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"mode": "inline",
"model": "xai/grok-tts",
"voice": "default",
"text": "Hello from Speechbase!",
"output": "mp3"
}' --output hello.mp3Replace voice with an xAI voice name from the provider's catalog, or register
one as a saved Voice.
Provider options
Anything in providerOptions is forwarded to the xAI API unchanged.

