Grok 4 API Pricing 2026
Compare pricing, benchmarks, and providers for Grok 4. Find the best value for your use case.
Overview
Grok 4 was released on July 9, 2025. Pricing starts at $3.00 per million input tokens and $15.00 per million output tokens. The model supports a context window of up to 256K tokens. API access is available through xAI.
Grok 4 is priced at $3.00 per million input tokens and $15.00 per million output tokens. It has a context window of 256,000 tokens. It is available from 2 providers, with Vercel the cheapest at $3.00 per million input tokens. On benchmarks, Grok 4 scores Aider 79.6 (88th percentile).
Pricing Comparison
Compare Grok 4 with 10 similar models by price.
Current Pricing (per 1M tokens)
11 models
Provider | Model | Input $/M | Output $/M | Coding | MMLU | GPQA | Context | Actions |
|---|---|---|---|---|---|---|---|---|
X | $3.000 | $15.000 | — | — | — | 256,000 | ||
$2.500 | $10.000 | — | — | — | 8,000 | |||
AM | $2.500 | $12.500 | — | — | — | 1,000,000 | ||
$2.500 | $10.000 | — | — | — | 128,000 | |||
CO | $2.500 | $10.000 | — | — | — | 128,000 | ||
$3.000 | $15.000 | — | — | — | - | |||
X | $3.000 | $15.000 | — | — | — | 131,072 | ||
$3.000 | $6.000 | — | — | — | 131,072 | |||
$3.000 | $15.000 | — | — | — | 1,000,000 | |||
$3.000 | $15.000 | — | — | — | 200,000 | |||
$3.000 | $15.000 | — | — | — | 1,000,000 |
* Some models use tiered pricing based on prompt length. Displayed prices are for prompts ≤ 200k tokens.
Compare Providers
Grok 4 is available from multiple providers with different pricing and availability.
Provider Pricing
2 models
Provider | Input $/M | Output $/M | Cache Read $/M | Cache Write $/M | Uptime |
|---|---|---|---|---|---|
V Vercel Best Price | $3.000 | $15.000 | - | - | - |
xAI Best Price | $3.000 | $15.000 | - | - | - |
Community Rankings
How does Grok 4 perform? Vote based on your experience.
Cost vs. Quality
Compare Grok 4's benchmark performance against all models.
Try Grok 4
Use our Calculator
Estimate your costs based on expected token usage.
Open Cost CalculatorTry in Playground
Test Grok 4 directly in your browser.
Open PlaygroundCompare Grok 4
Similar Price Range
Same Provider
Popular Competitors
Compare by Brand
Frequently Asked Questions
All xAI Models
See pricing for all xAI models.
View all xAI models →