Grok 4.7 API Pricing & Token Cost Calculator
xAI · Flagship tier · $2.00 / 1M input · $0.50 / 1M cached (75% off) · $6.00 / 1M output.
Estimated monthly spend
$15,525
1.35M requests / month
Cost per 1,000 requests
$11.50
Blended input + output
Prompt cache savings
$4,860
Without cache: $20,385/mo
Monthly cost component breakdown
| Cost component | Effective rate | Monthly spend |
|---|---|---|
| Uncached input tokens | $2.00 / 1M | $5,400 |
| Cached input tokens | $0.50 / 1M | $1,620 |
| Output tokens (incl. reasoning) | $6.00 / 1M | $8,505 |
| Total monthly bill | — | $15,525 |
Official Grok 4.7 API pricing specifications
| Pricing dimension | Published specification |
|---|---|
| Provider & model tier | xAI · Flagship |
| Standard input rate | $2.00 per 1M tokens |
| Cached input rate | $0.50 per 1M tokens (75% discount vs standard input) |
| Output token rate | $6.00 per 1M tokens |
| Context window | Standard (provider default) |
| Batch API discount | 20% off (24h asynchronous SLA) |
| Reasoning / extended thinking | Supported (thinking tokens billed at output rate) |
| Long-context pricing tier | Applies >= 200K input tokens: $4.00 input / $1.00 cached / $12.00 output per 1M |
| Pricing note | 20% Batch API discount; 2x long-context tier (>=200K input tokens: $4.00 / $1.00 / $12.00) |
Monthly cost scenarios for Grok 4.7
Pre-computed monthly spend assuming 1,500 system prompt tokens (75% cache hit rate), 500 dynamic input tokens, and 500 visible output tokens per request (with 1.5x reasoning token overhead).
| Daily traffic | Monthly volume | Cost / 1K reqs | Standard monthly | Batch API monthly |
|---|---|---|---|---|
| 10K requests / day | 300K req/mo | $6.813 | $2,044 | $1,635 |
| 100K requests / day | 3M req/mo | $6.813 | $20,438 | $16,350 |
| 1M requests / day | 30M req/mo | $6.813 | $204,375 | $163,500 |
Head-to-head comparisons featuring Grok 4.7
GPT-6.2 Sol vs Grok 4.7
Compare Grok 4.7 against GPT-6.2 Sol (OpenAI) on input, cached, output, and monthly bills.
Claude Sonnet 5.5 vs Grok 4.7
Compare Grok 4.7 against Claude Sonnet 5.5 (Anthropic) on input, cached, output, and monthly bills.
Gemini 4 Neon vs Grok 4.7
Compare Grok 4.7 against Gemini 4 Neon (Google) on input, cached, output, and monthly bills.
Alternative LLM models to compare
GPT-6.1 Terra (OpenAI)
Efficient tier · $1.00/1M input · $5.00/1M output
Gemini 4 Hydrogen (Google)
Efficient tier · $1.50/1M input · $7.50/1M output
Qwen 4 Max (Alibaba)
Flagship tier · $1.50/1M input · $4.50/1M output
DeepSeek V4 Pro (DeepSeek)
Reasoning tier · $1.32/1M input · $3.96/1M output
Frequently asked questions about Grok 4.7 pricing
How much does Grok 4.7 API cost per 1M tokens?
Grok 4.7 (xAI) is billed at $2.00 per 1M standard input tokens, $0.50 per 1M cached input tokens (75% cache discount), and $6.00 per 1M output tokens in TokenScale dataset v2026.12.
Does Grok 4.7 support prompt caching and Batch API discounts?
Yes. Grok 4.7 discounts repeated cached prompt prefixes by 75% ($0.50/1M) and offers a 20% Batch API discount for asynchronous 24-hour workloads.
What is the monthly cost of Grok 4.7 at 100K requests per day?
For 100,000 daily requests (3M/month) averaging 2,000 input tokens (75% cached system prefix) and 500 output tokens, Grok 4.7 costs approximately $20,438/month on standard pricing or $16,350/month using the Batch API.
How does Grok 4.7 handle context window and reasoning tokens?
Grok 4.7 is a flagship-tier reasoning model with Standard (provider default) context. Note: 20% Batch API discount; 2x long-context tier (>=200K input tokens: $4.00 / $1.00 / $12.00).