xAI Grok 4.7 API Pricing and Speed

xAI Grok 4.7 API pricing: $2.00 per 1M tokens for input and $6.00 per 1M tokens for output, from the official API price list of xAI. Official rate checked (source); OpenRouter is a separate channel below. Our measured latency and output speed are shown by route and country below. Published OpenRouter: Last checked · Source (data) · Methodology

OpenRouter: Amount worked out from the source page: $2.00 per 1M tokens, in USD · as shown in the United States on 9 Nov 2026 · the page does not say whether tax is included; we do not assume it is excluded · no price change seen since 16 Oct 2026.

Data as of9 Nov 2026Prices checked 9 Nov 2026 · test requests to 8 Nov 2026Data & API

Quality on your task: not measured by Measured Lab yet. On our data, Grok 4.7 fits 6 of 6 common tasks by published prices, context window and terms, with calculated monthly costs.

What can I use it for?

Six common tasks cost a month at list prices

  • Calculated Answer customer messages: $35.50 for 5,000 customer messages a month
  • Calculated Pull data from invoices and documents with strict JSON and page images: $12.80 for 2,000 documents a month
  • Calculated Summarize documents and meetings: $17.60 for 1,000 documents or meetings a month
  • Calculated Translate content: $22.20 for 3,000 pages a month
  • Calculated Chat assistant on your website: $381.00 for 10,000 conversations a month
  • Calculated Write and review code with tool calls: $109.50 for 500 coding tasks a month

What our data confirms

Example to try

“Review this pull request and list bugs and missing tests, with the file and line of each.” Run it on your own data before you choose.

What we measured

  • Observed Speed on a short test request: first token 9.5 s, 397 tokens/s (median of 114 test requests on 23 dates, short request)
  • Observed Hidden reasoning: 1,020 tokens on that request, billed as output

Stated by the provider

  • Stated by the provider xAI for this model: CursorBench 4.0 46.3%, DeepSWE v1.1 71.0%, Terminal-Bench 4.0 38.0%; quotes and test conditions in Quality signals

Before you choose

Compare it with other models for your task

Prices USD per 1M tokens, as listed

  • $2.00Input per 1M tokens, from xAI Published
  • $6.00Output per 1M tokens, from xAI Published
  • $0.50Cached input per 1M tokens, from xAI Published
All prices by channel
Price per 1M tokensxAI directThrough OpenRouterPrevious prices by channel
Input$2.00 Published$2.00 Published—
Output$6.00 Published$6.00 Published—
Cached input · read$0.50 Published$0.50 Published—
Above the long-request threshold · input$4.00 Published——
Above the long-request threshold · output$12.00 Published——
Above the long-request threshold · cached input$1.00 Published——
Batch · input / output—$1.60 / $4.80 Published—

Input price from xAI, 16 Oct 2026 – 9 Nov 2026

16 Oct 2026$2.00 throughout9 Nov 2026

Input price through OpenRouter, 16 Oct 2026 – 9 Nov 2026

16 Oct 2026$2.00 throughout9 Nov 2026

Context window500,000tokens Published
Max output450,000tokens Published
Long-request price above200,000tokens Published

OpenRouter providers who serves this model through OpenRouter, at what price

OpenRouter sends a call without a pinned provider to one of these endpoints, and each endpoint has its own price. Prices are USD per 1M tokens, input / output.

Pinned min: $2.00 / $6.00 · Amazon Bedrock (amazon-bedrock/global)

Unpinned range: input $2.00–$4.00, output $6.00–$12.00 across 6 endpoints of 2 providers (listing shows $2.00 / $6.00).

Models with the widest provider price spread on OpenRouter

Request fragment that pins Amazon Bedrock (amazon-bedrock/global):

{"provider": {"order": ["amazon-bedrock/global"], "allow_fallbacks": false}}

With fallbacks turned off, OpenRouter does not move the call to another provider. A full endpoint tag pins that endpoint; the provider name alone covers all of its endpoints (OpenRouter provider routing).

All endpoints (6), by input price
ProviderEndpoint tagPrecisionInputOutputContext, tokens
Amazon Bedrockamazon-bedrock/globalNot stated$2.00$6.00500,000
xAIxaiNot stated$2.00$6.00500,000
xAIxai/zdrNot stated$2.00$6.00500,000
xAIxai/zdr/usNot stated$2.20$6.60500,000
xAIxai/priorityNot stated$4.00$12.00500,000
xAIxai/zdr/priorityNot stated$4.00$12.00500,000

Sorted by input price, then output price. Precision is the quantization field of the endpoints list.

Measured by us our own short test request: about 380 tokens in, a short JSON answer out · medians from answers on two dates or more

United States

RouteFirst answer tokenOutput speedCost per requestHidden reasoning
Direct API · xAIreasoning: low114 answers on 23 dates · 99 % answered9.51 srange 4.22–19.83 s · slow 10 %: 12.47 s Observed397 tokens/srange 106–718 · slowest 10 %: 239 tokens/s$0.00971range $0.00631–$0.0138 CalculatedObserved billed by the provider: $0.00798 (range $0.00458–$0.0121)1,020for 68 visible
OpenRouter → xAIreasoning: low115 answers on 23 dates · 100 % answered9.49 srange 4.01–20.12 s · slow 10 %: 12.49 s Observed387 tokens/srange 70.8–723 · slowest 10 %: 230 tokens/s$0.00959range $0.00602–$0.0195 Calculated1,001for 67 visible

United Kingdom

RouteFirst answer tokenOutput speedCost per requestHidden reasoning
Direct API · xAIreasoning: low105 answers on 21 dates · 100 % answered8.88 srange 3.78–17.12 s · slow 10 %: 11.97 s Observed344 tokens/srange 67.8–645 · slowest 10 %: 210 tokens/s$0.00977range $0.00589–$0.0143 CalculatedObserved billed by the provider: $0.00804 (range $0.00416–$0.0126)1,033for 67 visible
OpenRouter → xAIreasoning: low105 answers on 21 dates · 100 % answered9.52 srange 4.15–17.01 s · slow 10 %: 13.09 s Observed314 tokens/srange 122–596 · slowest 10 %: 220 tokens/s$0.00968range $0.00627–$0.0141 Calculated1,014for 67 visible

Germany

RouteFirst answer tokenOutput speedCost per requestHidden reasoning
Direct API · xAIreasoning: low104 answers on 21 dates · 99 % answered9.52 srange 3.57–25.16 s · slow 10 %: 13.66 s Observed324 tokens/srange 126–638 · slowest 10 %: 235 tokens/s$0.00968range $0.00621–$0.017 CalculatedObserved billed by the provider: $0.00796 (range $0.00449–$0.0153)1,018for 68 visible
OpenRouter → xAIreasoning: low105 answers on 21 dates · 100 % answered8.99 srange 3.66–20.05 s · slow 10 %: 14.18 s Observed308 tokens/srange 63.1–671 · slowest 10 %: 200 tokens/s$0.00966range $0.00625–$0.0156 Calculated1,013for 67 visible

Canada

RouteFirst answer tokenOutput speedCost per requestHidden reasoning
Direct API · xAIreasoning: low104 answers on 21 dates · 99 % answered9.93 srange 4.09–20.59 s · slow 10 %: 13.78 s Observed396 tokens/srange 93.2–715 · slowest 10 %: 251 tokens/s$0.01range $0.00619–$0.0175 CalculatedObserved billed by the provider: $0.00831 (range $0.00447–$0.0158)1,073for 67 visible
OpenRouter → xAIreasoning: low105 answers on 21 dates · 100 % answered8.88 srange 4.24–22.07 s · slow 10 %: 12.63 s Observed376 tokens/srange 62.2–732 · slowest 10 %: 214 tokens/s$0.00977range $0.00588–$0.016 Calculated1,034for 68 visible

Australia

RouteFirst answer tokenOutput speedCost per requestHidden reasoning
Direct API · xAIreasoning: low105 answers on 21 dates · 100 % answered9.47 srange 4.77–31.23 s · slow 10 %: 12.35 s Observed340 tokens/srange 120–563 · slowest 10 %: 238 tokens/s$0.00969range $0.00612–$0.0154 CalculatedObserved billed by the provider: $0.00797 (range $0.00439–$0.0137)1,012for 67 visible
OpenRouter → xAIreasoning: low105 answers on 21 dates · 100 % answered9.62 srange 4.58–22.20 s · slow 10 %: 13.33 s Observed325 tokens/srange 81.4–645 · slowest 10 %: 221 tokens/s$0.00969range $0.00612–$0.016 Calculated1,013for 66 visible
  • Calculated Extra input billed: about 1,224 tokens more than the typical count for the same short request (1,599 billed against 375 across the models we test).
  • Hidden reasoning tokens are billed as output, at the output price, even though they are not part of the answer.
  • Observed Billed by the provider: the cost xAI states in its own API response to our test request, next to our estimate from the published prices.
  • Through OpenRouter, the request goes to the named provider; the price and speed can differ from the direct API.

How the test works and what each number means: methodology. The figures are also in our open data.

Quality signals public test results, each with its source and date

SignalResultSource
Instruction followingIFEval, 50 prompts · reasoning: low98 % Observedof 50 prompts with every instruction followedOur run of a fixed IFEval subset, checked by code98 % on 22 Oct 2026 · 96 % on 17 Oct 2026 · instruction level 99 %
Figures the provider publishes (6)
BenchmarkProvider's figureWhere the provider says it
CursorBench 4.0at xhigh46.3% Stated by the providerGrok 4.7 scores 46.3% at xhigh and 43.9% at high. Model Card: Grok 4.7 (September 21, 2026, Revision: 2026-09-21)read 17 Oct 2026
DeepSWE v1.1at high71.0% Stated by the providerGrok 4.7 scores 71.0% at high. Model Card: Grok 4.7 (September 21, 2026, Revision: 2026-09-21)read 17 Oct 2026
Terminal-Bench 4.0at xhigh38.0% Stated by the providerGrok 4.7 scores 38.0% at xhigh, evaluated with the Grok Build harness. Model Card: Grok 4.7 (September 21, 2026, Revision: 2026-09-21)read 17 Oct 2026
HealthBench Professionalat xhigh56.7% Stated by the providerGrok 4.7 scores 56.7% at xhigh on HealthBench Professional, up from 48.5% for Grok 4.6 at xhigh. Model Card: Grok 4.7 (September 21, 2026, Revision: 2026-09-21)read 17 Oct 2026
SWE-Marathon v1.1at high46.0% Stated by the providerGrok 4.7 scores 46.0% at high. Model Card: Grok 4.7 (September 21, 2026, Revision: 2026-09-21)read 17 Oct 2026
Harvey Legal Agent Benchmarkat xhigh19.6% Stated by the providerGrok 4.7 scores 19.6% at xhigh. Model Card: Grok 4.7 (September 21, 2026, Revision: 2026-09-21)read 17 Oct 2026
  • Your own task: quality on it is not measured here. These are public test sets; a short trial on a few of your own examples is the check that fits your work.
  • Other public leaderboards, without figures copied here: human preference votes on open-ended answers: Arena (LMArena) text leaderboard; long tasks in coding, data analysis and research: LiveBench.

What each signal covers and how our run is scored: methodology.

What typical tasks cost with this model

TaskAt xAI's price ($2.00 / $6.00)Through OpenRouter ($2.00 / $6.00)
1,000 chat replies$3.80$3.80
Summarizing 100 documents$1.06$1.06
A day of coding assistant use$3.36$3.36

Calculated Prices per 1M tokens (input / output) in brackets; token counts and what is not included: our assumptions and the same tasks on other models.

How we got this number

  • What we read: the published price on openrouter.ai/api/v1/models
  • Checked: ; tracked since 16 Oct 2026
  • Shown in: the United States
  • Checks so far: 25 checks since 16 Oct 2026
  • What changed: no price change since 16 Oct 2026
  • Page updated:

Other measured facts

QuestionAnswerCheckedStatus
Above how many request tokens does Grok 4.7 switch to its long-request price directly from xAI (official API price)?200 thousand tokensPublished
How much does Grok 4.7 cost per 1M cache-read tokens (cache hits) directly from xAI (official API price)?$0.50 per 1M tokensPublished
How much does Grok 4.7 cost per 1M cache-read tokens (cache hits) when a request is above the long-request threshold, directly from xAI (official API price)?$1.00 per 1M tokensPublished
How much does Grok 4.7 cost per 1M input tokens directly from xAI (official API price)?$2.00 per 1M tokensPublished
How much does Grok 4.7 cost per 1M output tokens directly from xAI (official API price)?$6.00 per 1M tokensPublished
How much does Grok 4.7 cost per 1M request tokens when a request is above the long-request threshold, directly from xAI (official API price)?$4.00 per 1M tokensPublished
How much does Grok 4.7 cost per 1M response tokens when a request is above the long-request threshold, directly from xAI (official API price)?$12.00 per 1M tokensPublished
How much does SpaceXAI Grok 4.7 cost per 1M cache-read tokens (cache hits) on OpenRouter?$0.50 per 1M tokensPublished
How much does SpaceXAI Grok 4.7 cost per 1M output tokens on OpenRouter?$6.00 per 1M tokensPublished
What is the context window of SpaceXAI Grok 4.7 on OpenRouter, in tokens?500,000 tokensPublished
What is the maximum output length of SpaceXAI Grok 4.7 on OpenRouter, in tokens?450,000 tokensPublished

History

Same price in all 25 checks since 16 Oct 2026.

  1. — First check: $2.00 per 1M tokens

The source record lists $0.000002 per token ($2.00 per 1M tokens), fetched on 9 Nov 2026.

The source record, as published
"prompt":"0.000002"
What the source says · openrouter.ai

Latest briefings each price change recalculated as a task cost

  1. DeepSeek V4 Pro 0813: price rise input $0.115 → $0.111 per 1M tokens (-3 %), output $4.00 → $4.44 per 1M tokens (+11 %)
  2. DeepSeek V4.1 Flash 1017: price cut input $0.300 → $0.0060 per 1M tokens (-98 %), output $1.20 → $0.500 per 1M tokens (-58 %)
  3. MoonshotAI Kimi K2.5: price rise input $0.500 → $0.532 per 1M tokens (+6 %), output $2.50 → $3.33 per 1M tokens (+33 %)

All briefings

Record history — 278 records for 12 questions
Last record
Shown in
the United States
How much does SpaceXAI Grok 4.7 cost per 1M input tokens on OpenRouter?
TimeValueStatus
9 Nov 2026$2.00 per 1M tokensPublished
8 Nov 2026$2.00 per 1M tokensPublished
7 Nov 2026$2.00 per 1M tokensPublished
6 Nov 2026$2.00 per 1M tokensPublished
5 Nov 2026$2.00 per 1M tokensPublished
Above how many request tokens does Grok 4.7 switch to its long-request price directly from xAI (official API price)?
TimeValueStatus
9 Nov 2026200 thousand tokensPublished
8 Nov 2026200 thousand tokensPublished
7 Nov 2026200 thousand tokensPublished
6 Nov 2026200 thousand tokensPublished
5 Nov 2026200 thousand tokensPublished
How much does Grok 4.7 cost per 1M cache-read tokens (cache hits) directly from xAI (official API price)?
TimeValueStatus
9 Nov 2026$0.50 per 1M tokensPublished
8 Nov 2026$0.50 per 1M tokensPublished
7 Nov 2026$0.50 per 1M tokensPublished
6 Nov 2026$0.50 per 1M tokensPublished
5 Nov 2026$0.50 per 1M tokensPublished
How much does Grok 4.7 cost per 1M cache-read tokens (cache hits) when a request is above the long-request threshold, directly from xAI (official API price)?
TimeValueStatus
9 Nov 2026$1.00 per 1M tokensPublished
8 Nov 2026$1.00 per 1M tokensPublished
7 Nov 2026$1.00 per 1M tokensPublished
6 Nov 2026$1.00 per 1M tokensPublished
5 Nov 2026$1.00 per 1M tokensPublished
How much does Grok 4.7 cost per 1M input tokens directly from xAI (official API price)?
TimeValueStatus
9 Nov 2026$2.00 per 1M tokensPublished
8 Nov 2026$2.00 per 1M tokensPublished
7 Nov 2026$2.00 per 1M tokensPublished
6 Nov 2026$2.00 per 1M tokensPublished
5 Nov 2026$2.00 per 1M tokensPublished
How much does Grok 4.7 cost per 1M output tokens directly from xAI (official API price)?
TimeValueStatus
9 Nov 2026$6.00 per 1M tokensPublished
8 Nov 2026$6.00 per 1M tokensPublished
7 Nov 2026$6.00 per 1M tokensPublished
6 Nov 2026$6.00 per 1M tokensPublished
5 Nov 2026$6.00 per 1M tokensPublished
How much does Grok 4.7 cost per 1M request tokens when a request is above the long-request threshold, directly from xAI (official API price)?
TimeValueStatus
9 Nov 2026$4.00 per 1M tokensPublished
8 Nov 2026$4.00 per 1M tokensPublished
7 Nov 2026$4.00 per 1M tokensPublished
6 Nov 2026$4.00 per 1M tokensPublished
5 Nov 2026$4.00 per 1M tokensPublished
How much does Grok 4.7 cost per 1M response tokens when a request is above the long-request threshold, directly from xAI (official API price)?
TimeValueStatus
9 Nov 2026$12.00 per 1M tokensPublished
8 Nov 2026$12.00 per 1M tokensPublished
7 Nov 2026$12.00 per 1M tokensPublished
6 Nov 2026$12.00 per 1M tokensPublished
5 Nov 2026$12.00 per 1M tokensPublished
How much does SpaceXAI Grok 4.7 cost per 1M cache-read tokens (cache hits) on OpenRouter?
TimeValueStatus
9 Nov 2026$0.50 per 1M tokensPublished
8 Nov 2026$0.50 per 1M tokensPublished
7 Nov 2026$0.50 per 1M tokensPublished
6 Nov 2026$0.50 per 1M tokensPublished
5 Nov 2026$0.50 per 1M tokensPublished
How much does SpaceXAI Grok 4.7 cost per 1M output tokens on OpenRouter?
TimeValueStatus
9 Nov 2026$6.00 per 1M tokensPublished
8 Nov 2026$6.00 per 1M tokensPublished
7 Nov 2026$6.00 per 1M tokensPublished
6 Nov 2026$6.00 per 1M tokensPublished
5 Nov 2026$6.00 per 1M tokensPublished
What is the context window of SpaceXAI Grok 4.7 on OpenRouter, in tokens?
TimeValueStatus
9 Nov 2026500,000 tokensPublished
8 Nov 2026500,000 tokensPublished
7 Nov 2026500,000 tokensPublished
6 Nov 2026500,000 tokensPublished
5 Nov 2026500,000 tokensPublished
What is the maximum output length of SpaceXAI Grok 4.7 on OpenRouter, in tokens?
TimeValueStatus
9 Nov 2026450,000 tokensPublished
8 Nov 2026450,000 tokensPublished
7 Nov 2026450,000 tokensPublished
6 Nov 2026450,000 tokensPublished
5 Nov 2026450,000 tokensPublished

Showing the latest 60 of 278 records; the full history is in data.json and data.csv.