← All models
Grok 4.7 · xAI

What does Grok 4.7 cost to run in a coding agent?

Grok 4.7 costs about $0.13 per average coding-agent request on our measured traffic, at list prices of $2 per million input and $6 per million output tokens. It scores 37.6% on the tbench.ai Terminal-Bench 4.0 leaderboard, close to GLM 5.3.

List prices: xAI models and pricing, checked 2026-10-13. Request costs: Standard Compute gateway data, 79,301 coding-agent requests from 75 users, Sep 13 to Oct 12, 2026. Benchmark: tbench.ai Terminal-Bench 4.0 leaderboard. How we compute this

Run current Claude, GPT, Gemini and open models in your agent

Or let the router send each step to the cheapest model that can do it, on providers we vet for price, uptime and speed. Plans from $19 a month.

See plans

What Grok 4.7 costs per coding-agent request

Cost at list priceGrok 4.7
Prompt under 100K tokens50% of requests, 87% of input cached$0.044
Prompt of 100K to 272K39% of requests, 88% of input cached$0.16
Prompt over 272K tokens11% of requests, 86% of input cached$0.48
Average request$0.13
100 requests$13.16
Median session16 requests; a session ends after 10 idle minutes$1.21
A month of regular usemedian of 20 users active on 5+ days$222

Each logged request priced at the vendor’s list rates for its own token counts, including cache reads and any higher rate for long prompts. Average output: 698 tokens per request. 1% of requests were larger than Grok 4.7's 500K context window and are left out of its figures.

Grok 4.7 benchmarks, speed and latency

Artificial AnalysisValueRank
Intelligence Index10 evaluations, 0 to 1004611 of 48
Terminal-Bench 4.0agentic coding in a terminal25.8%17 of 39
Output speedmedian86 tokens/s26 of 44
Time to first answer tokenincludes thinking time101 s29 of 44

Source: Artificial Analysis (artificialanalysis.ai). Measured variant: Grok 4.7 (Xhigh), speed on SpaceXAI. Fetched October 13, 2026. Rank is among the models on this site, older versions included. Artificial Analysis runs Terminal-Bench 4.0 in its own setup, so its scores differ from the tbench.ai leaderboard.

What to watch for

Every token in a prompt of 200K or more costs double, and 19% of our requests reached that line. Cache reads cost $0.50 per million, a quarter of input, where most vendors charge a tenth. Its 500K window leaves out the 1% of requests that are larger.

Where Grok 4.7 sits on the Artificial Analysis Intelligence Index

Artificial Analysis Intelligence Index bar chart with Grok 4.7 (Xhigh) highlighted, from artificialanalysis.ai, October 13, 2026
Artificial Analysis Intelligence Index v4.3.2, Grok 4.7 (Xhigh) highlighted, downloaded October 13, 2026. Source: Artificial Analysis (artificialanalysis.ai)

Leaderboards

About Grok 4.7

Grok 4.7 is xAI's flagship, released September 21, 2026 with a 500K-token context. It scores 46 on the Artificial Analysis Intelligence Index, close to GLM 5.3 (45) and GPT-5.6 Sol (47) and below the current Claude and GPT-6 models. On Terminal-Bench 4.0 it scores 37.6% on the tbench.ai leaderboard and 25.8% in Artificial Analysis's run. Its output price ($6 per million) is low for its class, but cache reads cost $0.50 per million and every token in a prompt of 200K or more bills at double rates, so it costs $0.13 per request in our measurements, more than Claude Sonnet 5.5 ($0.053) or GPT-6.1 Sol ($0.067). xAI reports 71.0% on DeepSWE v1.1 and 46.3% on CursorBench 4.0.

Sources: xAI announcement · Artificial Analysis · Terminal-Bench 4.0

Agents that support Grok 4.7

Output-heavy agent work with prompts under 200K tokens.

Grok 4.7 FAQ

How much does Grok 4.7 cost per coding-agent request?
$0.13 on average at list price, $13.16 per 100 requests, and $1.21 for a median 16-request session. That is 79,301 real coding-agent requests (Sep 13 to Oct 12, 2026) priced at xAI's list rates; the median request sent 99,534 input tokens, 87% of input was read from cache, and requests returned 698 output tokens on average.
Does Grok 4.7 charge more for long prompts?
Yes. Prompts 200K tokens or more are billed at $4 per million input and $12 per million output tokens, on every token in the request including cache reads. 19% of the coding-agent requests we measured were that large.
How fast is Grok 4.7?
Artificial Analysis measures Grok 4.7 (Xhigh) at 86 output tokens per second, with 101 seconds to the first answer token, thinking time included, on SpaceXAI's API. Source: Artificial Analysis (artificialanalysis.ai).
Is Grok 4.7 good for AI agents?
Output-heavy agent work with prompts under 200K tokens. On our scoring, which is calibrated to public benchmarks, it rates 7.9/10 for agentic ability and 8.6/10 for output quality. Low output price for its class ($6 per million).
What is Grok 4.7's context window?
Grok 4.7 has a 500K-token context window. xAI is the maker.
Can I self-host Grok 4.7?
No. Grok 4.7 is a proprietary, hosted-only model from xAI. You access it through an API, such as OpenRouter, rather than running the weights yourself.
What are the downsides of Grok 4.7?
The main trade-offs: Costs more per request than Sonnet 5.5 or GPT-6.1 Sol ($0.13 vs $0.053 and $0.067); Prompts of 200K tokens or more cost double; Cache reads cost $0.50 per million, a quarter of its input price. It's strongest for output-heavy agent work with prompts under 200K tokens.

Grok 4.7 compared

All 28 Grok 4.7 comparisons

The agent matters as much as the model. Which agent gets the most out of Grok 4.7? →

Current Claude, GPT, Gemini and open models run on Standard Compute

Standard Compute

Current frontier models Claude Fable 5.1 · GPT-6 Astra

More intelligence
per dollar.

Each step goes to the cheapest model that can do it, on providers we vet for price, uptime and speed, with automatic fallback when one fails.

Compliance
Opt-in rules keep a company, team or key on European or US providers
Privacy
We don’t train on your prompts or store them

Fixed monthly plans from $19 · cancel anytime

7-day fair refund Free trial, no card Billing by Stripe4,200+ agent users