Get an xAI key
Start on xAI’s own page: xAI quickstart.
Checked on 2026-11-15 in xAI’s signed-in console, and against its quickstart.
Request an invitationSeats and pricing
Sign up at console.x.ai and load the account with xAI credits. Then create a key on the API Keys page. Those credits are xAI’s prepaid balance, not a lotgen balance.
In the console, open API Keys and choose Create API key. Give it a name. Advanced settings are optional: leave them on All models and All endpoints. Choose Create API key and copy the key. Grok Imagine on this key is the direct model.