xAI Grok API Pricing

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

2
Models
$0.30โ€“$3.00
per 1M tokens
128K
Context window
Apr 2026
Pricing Verified
Model Input (per 1M tokens) Output (per 1M tokens) Context Window Tier
Grok 3 $30.00 $150.00 128K Premium
Grok 3 Mini $3.00 $5.00 128K Mid

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

Grok 3 Mini at $3.00/$5.00 per 1M tokens offers strong reasoning at a mid-tier price point. Grok 3 at $30.00/$150.00 is a premium model positioned alongside Claude 4 Opus and GPT-5.

Which Grok Model Should You Use?

Two models for different performance and cost requirements.

Grok 3

$3.00 input / $15.00 output per 1M tokens
  • 128K context window
  • Strong reasoning and analysis
  • Real-time world knowledge
  • Complex multi-step tasks
  • Competitive with GPT-4o and Claude Sonnet
Best for: Production workloads needing high-quality reasoning with real-time knowledge. Ideal for research, analysis, and tasks requiring current information.

Grok 3 Mini

$0.30 input / $0.50 output per 1M tokens
  • 128K 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 3 $3.00 $15.00 128K
OpenAI GPT-4o $2.50 $10.00 128K
Anthropic Claude Sonnet 4 $3.00 $15.00 200K
DeepSeek V4 Pro $2.18 $8.72 128K
xAI Grok 3 Mini $0.30 $0.50 128K
OpenAI GPT-4o mini $0.15 $0.60 128K
Google Gemini 2.0 Flash $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.

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 →

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 →
Report a Pricing Error