SpaceXAI · live price
Grok 4.7 API pricing
Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6. It is particularly strong at long-running software engineering tasks, verifying its own work, and...
- Input
- $2
- per 1M tokens
- Output
- $6
- per 1M tokens
- Cached input
- $0.5
- per 1M tokens
- Context
- 500K
- 450K max output
List price from OpenRouter, which passes SpaceXAI's price through without markup. Refreshed hourly. Released September 21, 2026. Model id x-ai/grok-4.7.
What Grok 4.7 costs in practice
1,000 chat messages
$5.00
1,000 input + 500 output tokens each
1,000 RAG questions
$19.00
8,000 input + 500 output tokens each
100 coding-agent steps
$7.20
30,000 input + 2,000 output tokens each, no caching
Grok 4.7 price history
Grok 4.7 price by host
- xAI$2 in · $6 out · 500K ctx · 99.6% uptime 24h
Where to buy SpaceXAI credits for less
Disclosure: this site is run by the team behind smaaart, one of the options compared. Tables are ranked by price only, from live quotes and published fees, including when smaaart isn't first. How we compare
Grok 4.7 cost calculator
Cheaper alternatives to Grok 4.7
| Model | Input / 1M | Output / 1M |
|---|---|---|
| OpenAI: GPT-6 Luna Pro | $0.1 | $0.5 |
| OpenAI: GPT-6 Luna | $0.1 | $0.5 |
| Qwen: Qwen3.8 Omni Flash | $0.15 | $0.47 |
| Z.ai: GLM 5.3 FlashX | $0.37 | $1.25 |
| DeepSeek: DeepSeek V4.1 Flash | $0.03 | $0.5 |
| Google: Gemini 3.8 Flash | $0.75 | $3.75 |
Other SpaceXAI models
| Model | Input / 1M | Output / 1M |
|---|---|---|
| Grok 4.6 | $2 | $6 |
| Grok 4.5 | $2 | $6 |
| Grok Build 0.1 | $1 | $2 |
| Grok 4.3 | $1.25 | $2.50 |
| Grok 4.20 Multi-Agent | $1.25 | $2.50 |
| Grok 4.20 | $1.25 | $2.50 |
Head-to-head comparisons
- Grok 4.7 vs GPT-6.1 Sol Pro
- Grok 4.7 vs GPT-6.1 Sol
- Grok 4.7 vs Claude Sonnet 5.5
- Grok 4.7 vs GLM 5.3 Prime
- Grok 4.7 vs Grok 4.6
- Grok 4.7 vs Claude Sonnet 5
- Grok 4.7 vs Gemini 3.8 Flash
- Grok 4.7 vs Gemini 3.7 Flash
- Grok 4.7 vs R1
- Grok 4.7 vs Qwen3.8 Max (0902)
- Grok 4.7 vs Qwen3.8 27B
- Grok 4.7 vs Mistral Medium 3.5
- Grok 4.7 vs Mistral Large 2407
- Grok 4.7 vs Kimi K3
- Grok 4.7 vs Kimi K2.7 Code
- Grok 4.7 vs GLM 5.3