THE SUZENT HANDBOOK
xAI (Grok)
Use Grok models with an xAI API key.
Use Grok models with an API key from xAI.
Set up
- Get an API key from console.x.ai.
- Open Settings → Providers → xAI (Grok), click CHANGE on the API KEYS tab, and paste the key.
- On the MODELS tab, click FETCH, tick the models you want, and click Save Changes.
Settings
| Field | Environment variable | Notes |
|---|---|---|
| API Key | XAI_API_KEY | Starts with xai-. |
You can set the key's environment variable before starting Suzent instead of pasting it. It then shows as Set in env and can't be changed from the app.