Skip to main content

How to get an xAI (Grok) API key

Last updated

  1. Open the xAI console keys page and sign in.
  2. Add prepaid credits under billing before you create a key. xAI rejects requests once the balance reaches zero. Start with $5, and if you turn on auto top-up, keep its amount at $5.
  3. Click Create API key.
  4. Type a name such as Besidka. Advanced settings are optional. Click Create API key.
  5. In All set, here is your API key, click Copy API Key, then Done.
  6. In Besidka, go to Profile, API Keys, then the xAI card. Paste the key into API Key and click Save.
  7. Start a new chat and pick a Grok model.

Good to know. xAI's billing FAQ says cards issued in India cannot be saved for billing.

Open xAI console keys page (opens in new tab)

Got your key? Use it in Besidka

Paste the key once and chat with every model it unlocks. You pay the provider directly for what you use.