What you need
Getting your API key
- Sign in at console.x.ai.
- Open API Keys for your team.
- Create a key, name it, and copy the value.
xai-.
Adding the connection
- Go to Connections and choose xAI.
- Paste the API key.
- Save.
What you can select afterwards
Choose your voice on Model Configurations. Model — pick from the dropdown, or type a name in for any speech model your account can reach. See xAI’s models page. Voice — a voice is referenced by name, for exampleeve, and the name is case-insensitive. Browse the current set on xAI’s text-to-speech page.
Language — BCP-47 codes, from broad codes like es through regional variants like es-MX. Set auto to let the model detect it. The supported list is on the same text-to-speech page.
Realtime is a separate connection
xAI’s speech-to-speech model is a separate provider in SentiVue Talk, with its own connection. See Grok Realtime. Connecting one does not connect the other, even though both use a key from the same console.Completing the pipeline
xAI drives voice only. You also need:- A language model to decide what the agent says
- A transcriber to turn caller speech into text
Troubleshooting
The key is rejected when I save
The key is rejected when I save
Confirm you copied the key whole including the
xai- prefix, and that it has not been deleted or rotated in the console.The key saved but calls fail with no audio
The key saved but calls fail with no audio
xAI needs credits on the account before it serves requests. Load credits on the team that owns the key.
A voice I entered is not found
A voice I entered is not found
Check the name against xAI’s text-to-speech page. Capitalisation is not the problem — voice names are case-insensitive — so a mismatch means the name itself is wrong or no longer offered.
The agent speaks the wrong language or accent
The agent speaks the wrong language or accent
The language is set on the voice, not inferred from your prompt. Set it to match your callers, or use
auto to let the model detect it. Regional variants are distinct — pt-BR and pt-PT are separate choices.