xAI's Grok models offer something no other AI API can: built-in real-time access to X/Twitter data. This guide breaks down the complete pricing for all 4 Grok models — Grok 4.5, Grok 4.3, Grok 4.20, and Grok Build 0.1 — with cost-per-request examples and head-to-head comparisons against GPT-5, Claude, and Gemini.
All xAI Grok Models: Pricing Overview
xAI currently offers 4 Grok models via API. Grok 4.5 is the recommended default; Grok 4.20 and 4.3 are mid-tier options; Grok Build 0.1 handles budget workloads.
| Model | Input / 1M Tokens | Output / 1M Tokens | Context Window | Tier |
|---|---|---|---|---|
| Grok 4.5 Recommended | $2.00 | $6.00 | 500K | Flagship |
| Grok 4.20 | $1.25 | $2.50 | 1M | Mid |
| Grok 4.3 | $1.25 | $2.50 | 1M | Mid |
| Grok Build 0.1 | $1.00 | $2.00 | 256K | Budget |
Which Grok Model Should You Pick?
Here's the quick decision framework:
- Grok 4.5 — xAI's recommended default. Best reasoning, largest effective context (500K). Use for complex agentic tasks, multi-step analysis, and anything where quality matters most. Only 60% more expensive than 4.3/4.20 on input.
- Grok 4.20 — Same price as 4.3 but newer architecture. Best value if you need the 1M context window (e.g., ingesting large documents or long conversation histories).
- Grok 4.3 — Solid mid-tier option at $1.25/$2.50. Same pricing as 4.20; choose 4.20 unless you have a specific reason to prefer 4.3.
- Grok Build 0.1 — Cheapest option at $1/$2. Good for high-volume chatbots, classification, summarization, and any workload where X/Twitter data access matters more than reasoning depth.
Cost Per Request: Real Examples
Here's what you'll actually pay per request across all 4 models:
| Use Case | Input Tokens | Output Tokens | Grok 4.5 | Grok 4.20 / 4.3 | Build 0.1 |
|---|---|---|---|---|---|
| Quick chat message | 800 | 250 | $0.0031 | $0.0016 | $0.0013 |
| Social media analysis | 2,000 | 800 | $0.0088 | $0.0045 | $0.0036 |
| Long-form content | 1,500 | 2,000 | $0.0150 | $0.0069 | $0.0055 |
| Code generation | 2,500 | 1,000 | $0.0110 | $0.0056 | $0.0045 |
Monthly Cost Projections
At typical usage volumes, here's what you'd pay monthly:
| Volume | Requests/Day | Grok 4.5 | Grok 4.20 / 4.3 | Build 0.1 |
|---|---|---|---|---|
| Hobby / Testing | 100 | ~$27 | ~$14 | ~$11 |
| Startup | 1,000 | ~$270 | ~$140 | ~$110 |
| Scale-up | 10,000 | ~$2,700 | ~$1,400 | ~$1,100 |
Based on average chat request: 1,500 input tokens, 400 output tokens.
Grok vs Competitors: Head-to-Head
How does Grok stack up against the big three? Grok is significantly cheaper than GPT-5 and Claude flagships, with the unique advantage of real-time X/Twitter data access.
| Model | Input / 1M | Output / 1M | Real-time Data | Context |
|---|---|---|---|---|
| Grok 4.5 | $2.00 | $6.00 | ✅ X/Twitter | 500K |
| Claude Sonnet 5 intro | $2.00 | $10.00 | ❌ | 200K |
| Gemini 3.1 Pro | $2.00 | $12.00 | ❌ | 1M |
| GPT-5 | $10.00 | $30.00 | ❌ | 128K |
| Grok 4.20 / 4.3 | $1.25 | $2.50 | ✅ X/Twitter | 1M |
| Claude Haiku 4.5 | $0.80 | $4.00 | ❌ | 200K |
| GPT-5 mini | $1.50 | $6.00 | ❌ | 128K |
| Grok Build 0.1 | $1.00 | $2.00 | ✅ X/Twitter | 256K |
Key Takeaways
- Grok 4.5 matches Claude Sonnet 5 on input pricing ($2.00) but is 40% cheaper on output ($6 vs $10). And you get X/Twitter data access.
- Grok 4.20/4.3 are 8x cheaper than GPT-5 on output tokens ($2.50 vs $30). The value gap is enormous.
- Grok Build 0.1 is the cheapest model with real-time data access — $1.00/$2.00 undercuts every comparable competitor.
- No other provider offers real-time social media data — this is Grok's unique moat.
When to Use Grok 4.5
Grok 4.5 is xAI's recommended default. Use it when you need:
- Complex reasoning with social context: Multi-step analysis of social media dynamics, public opinion, and breaking events
- Real-time social media analysis: Monitor trends, sentiment, and breaking news directly from X/Twitter
- Agentic workflows: The 500K context window and strong reasoning make it suitable for multi-step agent chains
- Quality-first tasks: When accuracy matters more than cost — Grok 4.5 is xAI's most capable model
When to Use Grok 4.20 or 4.3
At $1.25/$2.50 with 1M context, these models are the sweet spot for large-context workloads:
- Long document analysis: 1M tokens of context means you can ingest entire codebases or document collections
- Conversation-heavy apps: Keep long conversation histories without hitting context limits
- Budget-conscious reasoning: 37.5% cheaper than Grok 4.5 on input, 58% cheaper on output
When to Use Grok Build 0.1
Grok Build 0.1 is the smart choice for high-volume, cost-sensitive workloads:
- High-volume chatbots: $1.00/$2.00 pricing makes it affordable at scale
- Content summarization: Summarize social media posts and threads at low cost
- Classification and extraction: Categorize social media content efficiently
- Production workloads: Cost-effective for any task that benefits from X/Twitter data access
xAI Free Tier
New xAI accounts receive $25 in free credits. Here's how far that goes:
- Grok 4.5: ~12.5M input tokens or ~4.2M output tokens
- Grok 4.20 / 4.3: ~20M input tokens or ~10M output tokens
- Grok Build 0.1: ~25M input tokens or ~12.5M output tokens
The free tier is generous enough for serious prototyping. On Grok Build 0.1, you can run tens of thousands of requests before spending $25.
5 Tips to Reduce Grok API Costs
- Default to Grok Build 0.1: Only route tasks requiring deep reasoning to Grok 4.5. Saves 50%+.
- Use Grok 4.20 over 4.3: Same price, newer architecture. No reason to choose 4.3 for new projects.
- Batch social media processing: Analyze multiple posts in a single request instead of one per post.
- Set max_tokens: Control output length to avoid surprise costs on verbose responses.
- Monitor usage in real-time: Set up billing alerts in the xAI console to catch cost spikes early.
Calculate your exact Grok API costs
xAI Grok Cost Calculator →Related Resources
- xAI Provider Page — All 4 Grok models compared
- xAI Grok Cost Calculator — Estimate your exact spend
- GPT-5 Cost Calculator — Compare OpenAI pricing
- Claude Cost Calculator — Compare Anthropic pricing
- xAI vs OpenAI — Head-to-head comparison
- Cheapest AI API Finder — Find the cheapest model for your use case