LLMCost
x-ai

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

🔔 Price alerts coming soon

Alternatives to consider

💰 Save money
Anthropic: Claude Haiku 5.5 (batch)
$0.050 in / $0.250 out
Quality score: 43.4

97% cheaper with nearly identical quality (43.4 vs 46.4)

⬆️ Upgrade smart
MoonshotAI: Kimi K3
$0.239 in / $11.94 out
Quality score: 60

+13.6 quality points for 5% more

🏠 Same provider
xAI: Grok Build 0.1
$1.00 in / $2.00 out
Quality score: 27.2

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:

≥ 200,000 tokens: $4.00 in / $12.00 out per 1M(2.0× base)

See all thresholds on the long-context tiers page.

Price history
2026-09-22 → 2026-10-21 · 59 daily snapshots
inputoutputinput +25% over windowoutput +25%

Rebuilt daily from our snapshot archive — the chart appears once a model has 5+ snapshots of history.

Pricing behavior
2 price changes in the last 59 daily snapshots
Last move (2026-09-29): input +25%

From our own daily snapshot archive — independent of provider announcements.

Intelligence & capability
via Artificial Analysis
46.4
Intelligence index · top 13% of 288 scored
$3
Blended $/1M (3:1 in:out)

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.

Input / 1M tokens
$2.00
Output / 1M tokens
$6.00
Context window
500K
Max output
450K

Token economics

Token typePricevs 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.

Reasoning behavior
Mode: Always on (mandatory)
Effort levels:xhighhighmediumlow

Higher effort = deeper thinking = more reasoning tokens billed as output.

What would xAI: Grok 4.7 cost you per month?

WorkloadRequests/moAvg tokens (in/out)Est. monthly cost
Light chatbot10,000800 / 400$40.00
Coding agent5,0008,000 / 2,000$140.00
RAG pipeline30,0004,000 / 500$330.00
Doc summarizer2,00020,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

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