How to Get a Free xai API Key (2026)
0 free models available — credit card may be required. Get your xai API key → Test free models →
xai FreeLLM Score
All Free xai Models — Context Windows & Rate Limits
| Model | Context | Max Output | Modality | Rate Limit | Released | Status |
|---|
What is xai?
xAI's Grok-4.3, Grok-4.1 Fast, Grok-3 Mini — 1M-2M context, OpenAI-compatible.
xAI (Elon Musk's AI company) offers newer Grok models — Grok-4.3, Grok-4.1 Fast, and Grok-3 Mini — through their API platform. Grok-4.1 Fast features an industry-leading 2M token context window. The API is OpenAI-compatible. Note: this is the same company as the Grok (xAI) provider on this site — xAI models appear under two provider slugs due to source data naming, but share the same API key and account.
- Grok-4.3: latest Grok reasoning model
- Grok-4.1 Fast: 2M context window
- Grok-3 Mini: fast, lightweight
- OpenAI-compatible endpoint
API Compatibility: OpenAI SDK-compatible (Chat Completions)
How to Get a xai API Key
- 1 Sign up at console.x.ai Same xAI account as Grok (xAI). If you already have an xAI key, it works here too.
- 2 Go to API Keys in settings
- 3 Generate or reuse an API key
- 4 Choose a model Grok-4.3 for reasoning. Grok-4.1 Fast for 2M context. Grok-3 Mini for speed.
- 5 Configure OpenAI client Base URL: https://api.x.ai/v1. Same endpoint as the Grok (xAI) provider.
xai Free Tier Limits & Pricing
xai API Setup Tutorial & Tools
xai is fully compatible with popular AI coding assistants like Cursor, Claude Code, and more. To see step-by-step API configuration instructions for your favorite tool, please visit our Global Configuration Guide →
Use Cases
What xai's free models are best for, based on aggregated model capabilities:
Limitations & Caveats
- Credit card required — same xAI account as Grok (xAI)
- Rate limits are credit-based — harder to predict than RPM
- Newer models may have less stable free tier availability
Frequently Asked Questions
What's the difference between the Grok (xAI) and xAI providers on this site?
They're the same company — xAI. The two entries exist because data sources name them differently. Both use the same xAI API key and console. The grok-(xAI) entry has Grok-2 and Grok-2 Mini. The xai entry has newer models: Grok-4.3, Grok-4.1 Fast, and Grok-3 Mini.
Does Grok-4.1 Fast really support 2 million tokens of context?
Yes — 2M tokens is one of the largest context windows available anywhere, including paid tiers. This allows processing entire codebases or book-length documents in a single request. Rate limits apply based on your credit balance.
Should I use Grok-4.3 or Grok-4.1 Fast?
Grok-4.3 is the reasoning-focused model — better for complex analysis, math, and multi-step tasks. Grok-4.1 Fast trades some reasoning depth for speed and a massive 2M context window. For most developers, Grok-4.1 Fast is the better default.