xAI pricing
Grok 4 Cost Calculator
Grok 4 is xAI's flagship with native X (Twitter) integration for real-time information and reasoning.
Input
$4.00
per 1M tokens
Output
$20.00
per 1M tokens
Context window
256K
tokens
Released
2025-11
Cutoff 2025-09
≈ Estimated tokenizer·$4.00 in·$20.00 out (per 1M)
Quick start with a use case
Total cost per call$0.0140
Input$0.004000
Output$0.0100
Cost comparison
Standard
$0.0140
With Caching
$0.0125
Save 11% ↓
With Batch
Not supported
Detailed pricing
Grok 4 pricing breakdown
All pricing dimensions including caching and batch discounts.
| Type | Price (per 1M tokens) |
|---|---|
| Input | $4.0000 |
| Output | $20.0000 |
| Cached input | $1.0000 |
Last verified 2026-05-01 · xAI official pricing
How it compares
Grok 4 vs alternatives
Single-call cost (1000 input + 500 output tokens) ranked from cheapest.
| Model | Per call |
|---|---|
Grok 4 xAI · this page | $0.0140 |
| GPT-5 mini OpenAI | $0.000600 |
| DeepSeek V4 DeepSeek | $0.000900 |
| Gemini 3.0 Flash Google | $0.001250 |
| o4-mini OpenAI | $0.002700 |
| Claude Haiku 4.5 Anthropic | $0.003500 |
Recommended use
When to choose Grok 4
Grok 4 shines for general-purpose tasks, complex multi-step reasoning, tasks needing real-time information, and image and document understanding. Token counts are estimated within ~10-20% margin.
✓Context window of 256K tokens handles long conversations and large documents.
✓Prompt caching available — significant savings for repeated system prompts.
✓Tool / function calling supported.
FAQ
Frequently asked questions
Grok 4 costs $4.00 per 1M input tokens and $20.00 per 1M output tokens. A typical chat call (1000 input + 500 output tokens) costs approximately $0.0140. Use the calculator above to estimate your specific use case.
Related
Other models you might consider
OpenAI
GPT-5 mini
OpenAI's affordable everyday workhorse
$0.20 in$0.80 out
DeepSeek
DeepSeek V4
DeepSeek's open MoE flagship — top open-weight performer
$0.30 in$1.20 out
Google
Gemini 3.0 Flash
Google's high-throughput multimodal model
$0.25 in$2.00 out
OpenAI
o4-mini
OpenAI's reasoning model — cheaper than o3
$0.90 in$3.60 out
Anthropic
Claude Haiku 4.5
Anthropic's fast affordable workhorse
$1.00 in$5.00 out