Skip to content
CostPerPrompt

Grok 4.7 API Pricing

xAI · context window 500K · prices updated 2026-09-29

Input per 1M tokens
$2.00
Output per 1M tokens
$6.00
Cached input per 1M
$0.5
75% cheaper than fresh input

Where Grok 4.7 sits on price

At $6.00 per million output tokens, Grok 4.7 is a premium tier model — 2.7× the median output price of $2.20, which puts it cheaper than 30% and pricier than 70% of the models we track. It sits 6th cheapest of the 8 xAI models we track. Output is only 3.0× the input price, an unusually flat spread: long prompts hurt about as much as long answers, so prompt size is where the savings are.

Output tokens per $1
166,667
One full context fill
$1.00
Cheaper than
30% of tracked models

Cached input is 75% cheaper. On an input-heavy workload you need roughly a 33% cache-hit rate to take 25% off the input line — reachable for chatbots and agents that resend the same system prompt and history.

What real workloads cost on Grok 4.7

These three workloads are the ones teams actually run on a premium-priced model — a $6.00/1M model is not bought for the same job as one ten times the price.

Workload Per request Per month
Support chatbot — 500 conversations/day (5K in / 1.4K out) Conversation history re-sent each turn — the classic prompt-caching win. $0.0184 $276
Coding agent — 300 sessions/day (60K in / 12K out) Multi-step loops re-read the same files; caching matters more than raw price. $0.192 $1728
Long-context analysis — 200 runs/day (250K in / 4K out) Only possible on large-context models; input cost is nearly the whole bill. $0.524 $3144

Model your exact traffic in the API cost calculator — it preloads Grok 4.7 with caching and batch options.

Grok 4.7 price history

xAI last raised Grok 4.7's output price on Sep 29, 2026 (+25% per output token), from $1.60/$4.80 to $2.00/$6.00 per 1M in/out. That is the only repricing in the 7 days we have tracked it — worth knowing before you hard-code today's rate into a budget.

Date Input /1M Output /1M Output change
Sep 22, 2026 (tracking began) $1.60 $4.80 —
Sep 29, 2026 $2.00 $6.00 +25%

Change-points from our daily price snapshots (tracking since Sep 22, 2026; intraday moves between snapshots are not captured).

Grok 4.7 vs Qwen3.8 Max (0902)

The closest-priced alternative from another vendor is Qwen3.8 Max (0902) (Alibaba (Qwen)) — priced within a rounding error on output, with identical input pricing. When two models land this close on price, the decision is quality on your own workload, not the price sheet: run 50 real requests through both and compare.

See Qwen3.8 Max (0902) pricing →

Cheaper alternatives

More xAI models

Frequently asked questions

› How much does the Grok 4.7 API cost?

Grok 4.7 costs $2.00 per million input tokens and $6.00 per million output tokens, with cached input at $0.5 per million (75% cheaper). That works out to roughly 166,667 output tokens per dollar.

› What does the support chatbot workload cost on Grok 4.7?

Support chatbot — 500 conversations/day (5K in / 1.4K out) costs about $0.0184 per request and $276 per month on Grok 4.7. Conversation history re-sent each turn — the classic prompt-caching win.

› What does it cost to fill Grok 4.7's 500K context window?

Sending 500K of input in a single request costs $1.00 at $2.00 per million tokens — before any output. With prompt caching that same fill drops to about $0.25 on repeat requests. This is why large context windows are cheap to advertise and expensive to actually use.

› Is Grok 4.7 worth the price?

Grok 4.7 sits in the middle of the market (6 of 8 by price within xAI). The honest test is a routing experiment: send the same 200 real requests to this model and to a tier below, and compare failure rate against the price gap — most teams find a majority of traffic never needed the pricier model.