xAI API Key (Grok)
Last updated
Last updated
Navigate to .
If you donβt have an account:
Click Sign Up and provide your email address, password, and other required details.
Verify your email by clicking the link sent to your inbox.
If you have an account, click Sign In and log in using your credentials or authenticate via your X (Twitter) or Google account.
After logging in, youβll be prompted to create a team (required for API access).
Enter a Team Name and a brief Description.
Click Create Team. You can skip inviting team members if working solo.
Once created, youβll be redirected to the xAI Console dashboard.
During the public beta (until the end of 2024), xAI provides $25 in free monthly API credits, so you may not need to purchase credits immediately.
If you need additional credits:
Go to the Billing section in the xAI Console.
Click Credits and select Purchase Credits.
Set up your billing profile and payment method, then purchase the desired amount of credits.
Note: Teams spending at least $5 and opting into data sharing may be eligible for $150 in monthly free credits (check country eligibility).
From the xAI Console dashboard, navigate to the API Keys section.
Click the Create API Key button. A dialog window will open to customize permissions (Access Control Lists or ACLs).
Select the appropriate permissions:
For general Grok access (e.g., chat completions), choose chat:write.
For raw Grok-1 model sampling, choose sampler:write.
Note: Permissions affect token usage, so select only what you need.
Click Save to generate the API key.
The new API key will appear in the list. Click the Copy button to save it securely.
Log in to your Stammer.ai dashboard.
Go to Agency β Vault β OpenAI API Key.
Paste your Grok API key.
Click Verify & Save.
Run a quick test chat. If the reply comes back, you are set.