xAI Grok API Pricing

Elon Musk's AI lab offering Grok models with real-time knowledge and deep X/Twitter integration

4
Models
$1.00–$2.00
Input per 1M tokens
1M
Max Context
Jul 2026
Pricing Verified
Model Input (per 1M tokens) Output (per 1M tokens) Context Window Tier
Grok 4.5 $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

Why xAI Grok?

Grok models bring unique capabilities with real-time world knowledge and native X/Twitter integration.

🌍

Real-Time Knowledge

Grok models have access to real-time information, making them ideal for tasks that require up-to-date knowledge about current events, trends, and breaking news.

𝕏

X/Twitter Integration

Native integration with the X platform gives Grok unique access to social media data, conversations, and trending topics — useful for sentiment analysis and social listening.

💰

Competitive Pricing

4 models from $1.00 to $2.00 input per 1M tokens. Grok 4.5 ($2.00/$6.00) is the flagship, Grok 4.20/4.3 ($1.25/$2.50) offer strong mid-tier value, and Grok Build 0.1 ($1.00/$2.00) handles high-volume workloads.

Which Grok Model Should You Use?

Four models for different performance and cost requirements.

Grok 4.5

$2.00 input / $6.00 output per 1M tokens
  • 500K context window
  • Flagship reasoning model
  • Most capable Grok model
  • Complex multi-step tasks
  • Competitive with GPT-5.5 and Claude Opus
Best for: Maximum-quality reasoning, research, and analysis tasks where accuracy matters more than cost.

Grok 4.20

$1.25 input / $2.50 output per 1M tokens
  • 1M context window
  • Latest mid-tier model
  • Strong reasoning and analysis
  • Real-time world knowledge
  • Same price as Grok 4.3, newer architecture
Best for: Production workloads needing strong reasoning with the latest model improvements at a mid-tier price.

Grok 4.3

$1.25 input / $2.50 output per 1M tokens
  • 1M context window
  • Proven mid-tier model
  • Strong reasoning and analysis
  • Real-time world knowledge
  • Established track record
Best for: Reliable production workloads with well-tested behavior. Good default choice for mid-tier tasks.

Grok Build 0.1

$1.00 input / $2.00 output per 1M tokens
  • 256K context window
  • Ultra-fast response times
  • Classification and extraction
  • High-volume workloads
  • Budget-friendly pricing
Best for: High-throughput tasks like classification, summarization, and simple Q&A. Excellent for startups and prototyping at a low cost.

xAI Grok Cost Calculator

Estimate your monthly spend on xAI Grok models.

Monthly Cost Estimate

Input cost $0.00
Output cost $0.00
Total tokens/month 0
Monthly Total $0.00

Based on published API pricing. Actual costs may vary.

Need the full calculator with all providers? Compare xAI against OpenAI, Anthropic, Google, and more.

Try the Full APIpulse Calculator

xAI Grok vs Competitors

How xAI Grok pricing stacks up against other major LLM providers.

Provider Model Input (per 1M tokens) Output (per 1M tokens) Context Window
xAI Grok 4.5 $2.00 $6.00 500K
xAI Grok 4.20 $1.25 $2.50 1M
xAI Grok 4.3 $1.25 $2.50 1M
OpenAI GPT-4o $2.50 $10.00 128K
Anthropic Claude Sonnet 4.6 $3.00 $15.00 200K
DeepSeek V4 Pro $2.18 $8.72 128K
xAI Grok Build 0.1 $1.00 $2.00 256K
OpenAI GPT-4o mini $0.15 $0.60 128K
Google Gemini 2.5 Flash-Lite $0.10 $0.40 1M
DeepSeek V4 Flash $0.14 $0.28 128K
Compare xAI Models Side-by-Side

See how xAI Grok models stack up against OpenAI, Anthropic, and more

Related Reading

Deep dives into AI pricing, provider comparisons, and cost optimization.

Grok 4.3 vs GPT-5.4: Which Mid-Tier AI API Wins?

GPT-5.4 costs 6x more on output tokens than Grok 4.3. Real pricing breakdown, use cases, and when to pick each.

Read the comparison →

DeepSeek V4 Pricing Breakdown: The Cheapest Frontier Model?

A detailed look at DeepSeek V4 Pro and V4 Flash pricing, and how they compare to GPT-4o and Claude Sonnet.

Read the full breakdown →

Best LLM APIs for Startups in 2026

Which AI API providers offer the best value for early-stage startups? We rank every major option by price, quality, and developer experience.

Read the full ranking →

How to Switch LLM Providers Without Breaking Your App

A practical guide to migrating between AI API providers while minimizing downtime and code changes.

Read the full guide →

Stop guessing — get exact xAI costs

No signup required to 88-model comparison, migration code snippets, PDF reports, price alerts, and cost monitoring. ✅ All tools free.

Free Tools →

Calculate Your xAI Grok Costs

See exactly what xAI Grok will cost for your specific workload. Compare against other providers in seconds.

Go to Calculator →

🔔 Track xAI price changes

Get alerted when Grok 4.5, Grok 4.20, Grok 4.3, Grok Build 0.1, or any xAI model changes price.

Set Up Free xAI Alerts →
Report a Pricing Error
This was a snapshot. What about next month?
Prices change. New models launch. Our tools catch what a one-time calculation can't — and saves you money every month.
Free Tools → 🔍 Free audit first