Setup Guide
Create an xAI API Key
Blazebar needs an API key to talk to Grok models. This takes about 2 minutes. You'll need an xAI account.
1
Open the API Keys page
Go to console.x.ai and log in. Click API Keys in the left sidebar, then click Create API key.
API keys
Create API key
| Name | Endpoints | Models | Last updated |
|---|---|---|---|
| My Key xai-...2JaZ | All endpoints | All models | Created 1 day ago |
2
Configure your key
Give your key a name (e.g. Blazebar).
Leave Restrict access and Rate limits off.
Click Create API key.
Create API key
A human friendly name to help you identify this keyRestrict access
Restrict usage of this API key to specific models or endpoints
Rate limits
Apply granular rate limits on this specific API key
Create API key Cancel
3
Copy your key
Your key is shown only once. Click Copy and save it somewhere safe.
It starts with xai-...
4
Paste it into Blazebar
Open Blazebar settings (click the menu bar icon → Settings), select xAI as your provider, and paste your API key.
Tip: Blazebar stores your key securely in the macOS Keychain and sends it only to xAI — never to Blazebar's servers.
5
Add API credits
xAI's API uses prepaid credits. Go to Billing in the console sidebar and click Purchase credits. Load at least $5.
You're all set.