Fresh paint, wet floors — we're rebuilding CostOfToken into a cross-provider price comparison. Some corners are still under construction; the full version is coming up soon.

grok-4.7 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… grok-4.7 from xAI costs $2.00 per 1M input tokens and $6.00 per 1M output tokens. Cached input is $0.500 per 1M. Context window 500,000 tokens.

API id grok-4.7 · xAI · source · updated 2026-09-25 · general-purpose

$2.00
Input / 1M tokens
$6.00
Output / 1M tokens
$0.500
Cached input / 1M
500K
Context window

Long-context pricing

Prompts over 128K tokens are billed at $4.00 per 1M input and $12.00 per 1M output — roughly 2.0× the standard input rate. Budget for this if you send large documents.

grok-4.7 specifications

Provider
xAI
API id
grok-4.7
Model type
general-purpose
Context window
500K tokens
Max output
450K tokens
Currency
USD
Price source
First-party
Last checked
2026-09-25

Tags

  • flagship
  • reasoning
  • vision

grok-4.7 across providers

The same model, priced by every seller we track. Ranked by the cost of 1M input + 1M output tokens, standard tier; savings measured against buying from the vendor directly.

ProviderInput /1MCached /1MOutput /1M1M in + 1M outvs vendor
OpenRouterHostCheapest
$1.60$0.400$4.80$6.40−20%
xAIVendorviewing
$2.00$0.500$6.00$8.00—

What grok-4.7 costs in practice

Estimated cost at common usage volumes
WorkloadInput tokensOutput tokensEstimated cost
Short chat turn1,000500$0.0050
Document summary50,0002,000$0.11
1M tokens in, 200K out1,000,000200,000$3.20

Estimates use the standard tier and ignore caching discounts, so real bills with repeated prompt prefixes are typically lower.

Common questions

How much does grok-4.7 cost per 1M tokens?
grok-4.7 costs $2.00 per 1M input tokens and $6.00 per 1M output tokens on the standard tier. Cached input is $0.500 per 1M.
What is grok-4.7's context window?
grok-4.7 accepts up to 500,000 tokens in a single request, and can return up to 450,000 output tokens.
Is there a cheaper Grok model than grok-4.7?
Yes. grok-4.20-0309-reasoning is $1.25 per 1M input tokens versus $2.00 for grok-4.7, with a 1,000,000 token context window.
Where does this grok-4.7 price come from?
Directly from xAI's published pricing page, re-read every day and normalized to USD per 1,000,000 tokens.

Head-to-head comparisons

Other Grok models

See all Grok pricing →