xAI: Grok 4.7 API Pricing
xAI: Grok 4.7 costs $2.00 per 1M input tokens and $6.00 per 1M output tokens (cache reads: $0.500). Context window: 500K. Prices verified 2026-10-21 · source
Alternatives to consider
97% cheaper with nearly identical quality (43.4 vs 46.4)
+13.6 quality points for 5% more
Cheapest x-ai model — 58% less per month
⚠️ Long-context price tier applies
The headline price only applies below the first threshold. Past it, you pay more per token:
See all thresholds on the long-context tiers page.
Rebuilt daily from our snapshot archive — the chart appears once a model has 5+ snapshots of history.
From our own daily snapshot archive — independent of provider announcements.
Intelligence measures reasoning/knowledge/coding benchmarks. A high score with a low blended price = value pick; check the value chart to see where this model lands.
Token economics
| Token type | Price | vs base input |
|---|---|---|
| Standard input | $2.00 | — |
| Cache read | $0.500 | −75% |
| Output | $6.00 | — |
| Web search tool | $5/1k searches | — |
Prompt caching stores repeated context server-side: reads cost far less, but writes carry a one-time premium.
Higher effort = deeper thinking = more reasoning tokens billed as output.
What would xAI: Grok 4.7 cost you per month?
| Workload | Requests/mo | Avg tokens (in/out) | Est. monthly cost |
|---|---|---|---|
| Light chatbot | 10,000 | 800 / 400 | $40.00 |
| Coding agent | 5,000 | 8,000 / 2,000 | $140.00 |
| RAG pipeline | 30,000 | 4,000 / 500 | $330.00 |
| Doc summarizer | 2,000 | 20,000 / 1,000 | $92.00 |
Estimates use list prices without prompt caching. Caching can cut input cost by up to 90% on repeated context.
About xAI: Grok 4.7
Grok 4.7 is xAI'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...
Compare xAI: Grok 4.7 with
- Grok 4.7 vs OpenAI: GPT-5.6 Terra Pro
- Grok 4.7 vs Anthropic: Claude Fable 5
- Grok 4.7 vs Anthropic: Claude Opus 5
- Grok 4.7 vs OpenAI: GPT-5.6 Sol
Popular head-to-heads — see all on the comparisons index.
Frequently asked questions
How much does xAI: Grok 4.7 cost?
xAI: Grok 4.7 costs $2.00 per 1M input tokens and $6.00 per 1M output tokens; cached input tokens cost $0.500 per 1M. Verified 2026-10-21 — provider source.
What is the context window?
500K tokens, with up to 450K output tokens per response. That's roughly 625 pages of text in a single request.
Does it support prompt caching?
Yes — cached input is $0.500/1M, about 75% cheaper than standard input. Agents and RAG workloads with repeated context benefit most.
What's a cheaper alternative?
ScaleDown: Summarize saves about 99% on a typical workload with comparable quality.
Official resources
- xAI: Grok 4.7 on OpenRouter — live endpoint, pricing source of record.
- Artificial Analysis leaderboard → — independent intelligence and performance rankings.
- xAI docs → — first-party model specifications and limits.
- Shred your current bill — paste a CSV and see if switching saves money.