Grok 4
xAINext-generation xAI model with enhanced reasoning and coding capability. Competes with Claude Opus and o3 Pro tier.
Grok 4 Pricing
| Token Type | Price per Million |
|---|---|
| Input tokens | $5.00 |
| Output tokens | $25.00 |
Estimated Cost by Project Size
Realistic cost estimates for common coding scenarios. Assumes 30% cache hit rate where caching is available.
| Scenario | Token Usage | Estimated Cost |
|---|---|---|
| Small Script (1K lines) | 50K input / 30K output | $0.93 |
| Medium Feature (10K lines) | 500K input / 200K output | $6.75 |
| Large Project (50K lines) | 2,500K input / 1,000K output | $33.75 |
| Code Review (5K lines) | 250K input / 25K output | $1.50 |
Get Access to Grok 4
Ready to start using Grok 4? Get API access directly from xAI.
Get API Access →How Does Grok 4 Compare?
| Model | Input ($/M) | Medium Feature Cost | |
|---|---|---|---|
| Grok 4 | $5.00 | $6.75 | selected |
| Qwen 3 Max | $5.00 | $5.75 | Compare |
| Grok 3 Vision | $5.00 | $5.75 | Compare |
| Claude Sonnet 4 | $3.00 | $4.66 | Compare |
| Claude 3.5 Sonnet | $3.00 | $4.66 | Compare |
| Claude 3 Sonnet | $3.00 | $4.05 | Compare |
Related Models
Claude Sonnet 4
AnthropicAnthropic's balanced model for coding and general tasks. Best price-performance ratio in the Claude family.
Claude Opus 4
AnthropicAnthropic's most powerful model. Best for complex reasoning and challenging coding tasks.
Claude 3.5 Sonnet
AnthropicPrevious generation Sonnet. Still excellent for coding tasks at the same price point.
GPT-4o
OpenAIOpenAI's flagship multimodal model. Strong coding and reasoning at competitive pricing.