Speechbase
Providers

xAI

xAI Grok text-to-speech through the Speechbase gateway, with native audio tags.

Prefixxai
Default modelgrok-tts
Provider keyConnect 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

ModelStreamingAudio tagsTimestampsMax inputLanguages
grok-ttsYesYesSTT fallback1500016

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.mp3

Replace 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.

On this page