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.

console.x.ai
Dashboard
API Keys
Usage
Models
Billing
API keys Create API key
NameEndpointsModelsLast 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.

console.x.ai / API keys / Create

Create API key

A human friendly name to help you identify this key
Restrict 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-...

console.x.ai / API keys / Create

Save your API key

Please save your key in a safe place — you won't be able to view it again.

xai-xxxxxxxxxxxxxxxxxxxxxxxx...xxxx Copy
Done
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.