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
- 2
Open Billing and buy credit. The API runs on prepaid credit, and requests are refused when the balance is zero.
- 3
Choose API Keys in the sidebar, then Create API Key, and name it.
- 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
Open Loom, then Providers in the menu, and choose Add provider.
- 2
Pick xAI Grok (the search box finds it).
- 3
Fill in the fields in the table below.
- 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
Open the model chip below the message box and pick a model.
| Field in Loom | What to put | Needed |
|---|
| API key | Paste the key you copied. Create one at console.x.ai → API keys. | Yes |
| Endpoint | https://api.x.ai/v1 | Pre-filled |
| Name | Anything you like. It is shown in the model picker | Optional |
At a glance
| Appears in Loom as | xAI Grok |
| Sign-in | Your key, sent as Authorization: Bearer |
| Models | Loom fetches the list from your account |
| Tools (connectors, search) | Yes |
| Photos | Yes (JPG and PNG) |
| PDFs | No |
If something goes wrong
| What you see | What to do |
|---|
| The Create button does nothing, or requests fail with a billing error | Add credit first, and check you are in the same team for both billing and the key. |
| 401 | Paste the key again, or create a new one. |