SpaceXAI: Grok 4.7

by xAI

x-ai/grok-4.7
UnavailableNew

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.

Input5,473,942IRR / 1M tokens
Output16,421,826IRR / 1M tokens
Reasoning tokensThe output rate16,421,826IRR / 1M tokens
Cache read1,368,486IRR / 1M tokens
Image input tokensThe input rate5,473,942IRR / 1M tokens
Per web search13,685IRR

Under these conditions, these rates replace the ones above:

Prompts over 200K tokens

Input10,947,884IRR / 1M tokens
Output32,843,652IRR / 1M tokens
Cache read2,736,971IRR / 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.

InputOutput

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

Image inputYes
Audio inputNo
Tool callingYes
JSON outputYes
ReasoningReasoning levels: xhigh, high, medium, low
Web searchNo
Prompt cacheYes
Makes imagesNo
Open weightsNo
On the free planNo
Input
TextImageFile
Output
Text

Parameters it accepts

include_reasoninglogprobsmax_tokensreasoningreasoning_effortresponse_formatseedstructured_outputstemperaturetool_choicetoolstop_logprobstop_p

Other benchmarks

Intelligence index35

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.

Base URLhttps://iranrouter.com/v1
Model IDx-ai/grok-4.7
# 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)
The full guide in the docs: keys, streaming and errors

Peer models

Its family and models with a close score; the last column compares one message’s cost with this model.

ModelAgainst this model
Anthropic: Claude Haiku 5.5Anthropic1,23236.21521M94% cheaper
Meta: Muse Spark 1.3Meta12,65836.41571M34% cheaper
Z.ai: GLM 5.3Z.ai2,29931.7821M88% cheaper
Google: Gemini 3.8 FlashGoogle9,23730.5741M52% cheaper
Qwen: Qwen3.6 Max PreviewQwen14,05428.4—262K27% 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.7

Scores by Artificial Analysis, Design Arena, as of Oct 31, 2026

SpaceXAI: Grok 4.7One message about 19,160 IRRStart with this model