Loom / Guides / xAI (Grok)

Cloud · xAI

xAI (Grok)

Use Grok with your own xAI API key.

Overview

xAI’s API is billed separately from the Grok chat on x.com. A SuperGrok or X Premium plan does not include it.

Get a key

  1. 1
    Go to console.x.ai and sign in or create an account.
  2. 2
    Open Billing and buy credit. The API runs on prepaid credit, and requests are refused when the balance is zero.
  3. 3
    Choose API Keys in the sidebar, then Create API Key, and name it.
  4. 4
    Copy the key. It is shown once; if you close the dialog, delete it and make another.

Cost. Prepaid, per token. Keys belong to a team, so add the credit in the same team where you made the key.

Add it to Loom

  1. 1
    Open Loom, then Providers in the menu, and choose Add provider.
  2. 2
    Pick xAI Grok (the search box finds it).
  3. 3
    Fill in the fields in the table below.
  4. 4
    Choose Connect. Loom checks the key and says how many models it found. If it cannot check, it says so, and you can Save anyway and try a message.
  5. 5
    Open the model chip below the message box and pick a model.
Field in LoomWhat to putNeeded
API keyPaste the key you copied. Create one at console.x.ai → API keys.Yes
Endpointhttps://api.x.ai/v1Pre-filled
NameAnything you like. It is shown in the model pickerOptional

At a glance

Appears in Loom asxAI Grok
Sign-inYour key, sent as Authorization: Bearer
ModelsLoom fetches the list from your account
Tools (connectors, search)Yes
PhotosYes (JPG and PNG)
PDFsNo

If something goes wrong

What you seeWhat to do
The Create button does nothing, or requests fail with a billing errorAdd credit first, and check you are in the same team for both billing and the key.
401Paste the key again, or create a new one.

Official documentation