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...
Context
500Ktokens
About 714 pages of text at once
Max output
450Ktokens
About 643 pages in one answer
Intelligence
35/ 100
Above 63% of the catalogue
Output speed
71tokens/s
A 500-word answer in about 9.8 s
From public market statistics for this model
First token
1.8s
Reasoning models start later
From public market statistics for this model
Health, 30 days
50.00%
0 of 30 days without a fault
IranRouter’s measurements
Price & cost
Every rate in Rial. A request pays only for the tokens it actually uses.
| Input | 5,473,942 | IRR / 1M tokens |
|---|---|---|
| Output | 16,421,826 | IRR / 1M tokens |
| Reasoning tokensThe output rate | 16,421,826 | IRR / 1M tokens |
| Cache read | 1,368,486 | IRR / 1M tokens |
| Image input tokensThe input rate | 5,473,942 | IRR / 1M tokens |
| Per web search | 13,685 | IRR |
Under these conditions, these rates replace the ones above:
Prompts over 200K tokens
| Input | 10,947,884 | IRR / 1M tokens |
|---|---|---|
| Output | 32,843,652 | IRR / 1M tokens |
| Cache read | 2,736,971 | IRR / 1M tokens |
With prompt caching, the fixed part of your prompt is billed at the cache-read rate on later requests.
What would this model cost you a month?
Monthly cost
788.25MIRR
26.27M IRR a day, 13K IRR each request
The same work on peer models
30 days at today’s rate.
Rial price over 90 days
It moves with the exchange rate; the steps are the maker’s own price changes. Built at today’s margin, so approximate if the margin changed in the window.
Performance, 30 days
Health is measured by IranRouter itself: a day counts as healthy unless requests to this model failed on our side or it could not be served. First token and speed come from IranRouter’s traffic, and from public market statistics for this model on days without enough of it.
Daily health50.00%
Time to first token2.18 s
Output speed67 tokens/s
Place in the market
By usage across the global model market.
Daily rank
Share of the day’s tokens
Among its peers
Cost of one message against intelligence; this model is highlighted.
Cost of one message, IRR (log scale)
Capabilities
- Input
- TextImageFile
- Output
- Text
Parameters it accepts
include_reasoninglogprobsmax_tokensreasoningreasoning_effortresponse_formatseedstructured_outputstemperaturetool_choicetoolstop_logprobstop_pOther benchmarks
Design contests
- Game devElo: 1,317Win rate: 53%
- 3DElo: 1,268Win rate: 48%
- Code (overall)Elo: 1,268Win rate: 48%
- UI componentsElo: 1,266Win rate: 48%
2 moreShow less
- WebsitesElo: 1,249Win rate: 46%
- Data vizElo: 1,237Win rate: 46%
Start in a minute
The official OpenAI and Anthropic SDKs; only the address and the key change.
# pip install openai from openai import OpenAI client = OpenAI( base_url="https://iranrouter.com/v1", api_key="ir-...", ) r = client.chat.completions.create( model="x-ai/grok-4.7", messages=[{"role": "user", "content": "Hello, introduce yourself"}], ) print(r.choices[0].message.content)
Peer models
Its family and models with a close score; the last column compares one message’s cost with this model.
| Model | Against this model | ||||
|---|---|---|---|---|---|
| Anthropic: Claude Haiku 5.5Anthropic | 1,232 | 36.2 | 152 | 1M | 94% cheaper |
| Meta: Muse Spark 1.3Meta | 12,658 | 36.4 | 157 | 1M | 34% cheaper |
| Z.ai: GLM 5.3Z.ai | 2,299 | 31.7 | 82 | 1M | 88% cheaper |
| Google: Gemini 3.8 FlashGoogle | 9,237 | 30.5 | 74 | 1M | 52% cheaper |
| Qwen: Qwen3.6 Max PreviewQwen | 14,054 | 28.4 | — | 262K | 27% cheaper |
Technical specs
- ID
x-ai/grok-4.7- Maker
- xAI
- Tokenizer
- Grok
- Released
- Sep 21, 2026
- Added to IranRouter
- Sep 23, 2026
- Context
- 500,000 tokens
- Max output
- 450,000 tokens
Default parameters
top_p=0.95temperature=0.7Scores by Artificial Analysis, Design Arena, as of Oct 31, 2026





