xAI Grok 4.7 API pricing
Token prices on OpenRouter and at the provider’s list price, and what your own workload would cost per month.
- Input
- $2.00
- Output
- $6.00
- Cached input
- $0.50
OpenRouter, per 1M tokens. A dash means no listed price.
Your monthly cost
- Input not in cache
- $180
- Output
- $108
- Total per month
- $288
- Per day
- $9.60
- Per request
- $0.0096
The share you mark as “from cache” is billed at this model’s published cache-read price. Cache-write charges are not included. Compare this bill with other models.
Every price, with its source
OpenRouter price, per 1M tokens
- Input
- $2.00
- Output
- $6.00
- Cached input (read)75% below the input price
- $0.50
- Context window
- 500,000 tokens
- Maximum output
- 450,000 tokens
- Accepts
- text, image, file
- Reasoning mode
- yes
- Intelligence Indexby Artificial Analysis, relayed by OpenRouter
- 46.4
- Listed since
- 21 Sep 2026
Provider list price, per 1M tokens
- Input / output
- $2.00 / $6.00
- Cached input (read)
- $0.50
- Above 200K tokens (input / output)
- $4.00 / $12.00
As recorded in the LiteLLM price table under xai/grok-4.7, which cites the provider’s pricing page. It matches the OpenRouter price.
Collected from the OpenRouter models API (466 entries). 99 models are cross-checked against provider list prices in the LiteLLM price table.
About Grok 4.7
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, and...
Description supplied by OpenRouter. Model id for the API: x-ai/grok-4.7
Grok 4.7 against other models
Other xAI models
Questions and answers
How much does xAI Grok 4.7 cost per million tokens?
At the collection of 3 Oct 2026, 08:40 UTC, OpenRouter listed xAI Grok 4.7 at $2.00 per million input tokens and $6.00 per million output tokens. The provider list price recorded by LiteLLM is $2.00 for input and $6.00 for output.
What would xAI Grok 4.7 cost per month?
For 1,000 requests a day with 3,000 input and 600 output tokens each, over a 30-day month and with no caching, the bill is $288. Change the numbers in the simulator on this page to match your own traffic.
Does xAI Grok 4.7 have a cheaper price for cached input?
Yes. Cached input is listed at $0.50 per million tokens, 75% below the normal input price.
What is the context window of xAI Grok 4.7?
500,000 tokens, with a maximum output of 450,000 tokens, as reported by OpenRouter.
Keep going
- Price tableEvery model and its price, sorted by your monthly bill.
- Cost calculatorYour monthly bill on up to four models, line by line.
- Cheapest modelsThe five lowest-cost models in each category.
- Free modelsModels listed at zero price, kept apart from the paid ones.
- Price changesA dated log of every price that went up or down.
- Caching and batch discountsHow the two discounts work and what you save.
- Long-context pricingModels that read very long prompts, and what they charge.