Textby xAI

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...

  • By price it is in the pricier half of the 343 text models GenMagic runs (254th cheapest).
  • It scores 35.5 on the Artificial Analysis Intelligence Index, 24th of the 118 text models with a score.
  • Among the models GenMagic runs, it places in the top 10 on 2 of its 32 benchmarks: 4th of 46 on Design Arena: Mobile Apps (agentic), 10th of 41 on FrontierCode.
  • It was listed on Sep 21, 2026.

Data last changed Nov 5, 2026 · tracked since Oct 29, 2026 · Every model change

Try Grok 4.7

Generate with Grok 4.7 right here. Verify your email to start with free credits.

Try

Specifications

Context window

500K tokens

Max output

450K tokens

Input price

$3.00 / 1M tokens

Output price

$9.00 / 1M tokens

Cached input

$0.75 / 1M tokens

Benchmarks

How Grok 4.7 scores on public benchmarks. Each card links to the benchmark explainer and to the original source.

35.5

source date 2026-11-05
Source: openrouter
AIMEMathematics

98.1%± 1.4

xhighsource date 2026-09-22
Source: epoch
APEX-AgentsAgentic & Tool Use

54.6%

unknown
Source: epoch
ARC-AGI-1Reasoning & Knowledge

90.2%

high
Source: epoch
ARC-AGI-2Reasoning & Knowledge

61.4%

xhigh
Source: epoch
Chess PuzzlesReasoning & Knowledge

41%± 4.9

xhighsource date 2026-10-13
Source: epoch
Design Arena: 3DDesign & Generation

1262 Elo

Source: designarena
Design Arena: CodeDesign & Generation

1272 Elo

Source: designarena
DTBenchReasoning & Knowledge

96%

xhigh
Source: epoch

47.6

unknown; Reasoning effort: high; Harness: grok-build
Source: epoch

17.1%± 5.9

xhighsource date 2026-09-22
Source: epoch

53%± 3.0

xhighsource date 2026-09-22
Source: epoch
GPQA DiamondReasoning & Knowledge

91.9%

source date 2026-11-03
Source: openrouter
LMArena (Coding)Instruction & Preference

1428 Elo

xhighsource date 2026-10-28
Source: lmarena
LMArena: Creative WritingInstruction & Preference

1381 Elo

xhighsource date 2026-10-28
Source: lmarena
LMArena: Hard PromptsInstruction & Preference

1414 Elo

xhighsource date 2026-10-28
Source: lmarena

1415 Elo

xhighsource date 2026-10-28
Source: lmarena
LMArena: MathMathematics

1434 Elo

xhighsource date 2026-10-28
Source: lmarena
LMArena: Multi-TurnInstruction & Preference

1394 Elo

xhighsource date 2026-10-28
Source: lmarena
LMArena (Overall)Instruction & Preference

1398 Elo

xhighsource date 2026-10-28
Source: lmarena
LMCAReasoning & Knowledge

49.4

xhigh
Source: epoch
Mystery Game PuzzlesReasoning & Knowledge

29%± 4.6

xhighsource date 2026-09-22
Source: epoch
ProofBenchMathematics

26%

unknown
Source: epoch
SciCodeCoding

57.8%

high
Source: epoch
SimpleQA VerifiedReasoning & Knowledge

56%± 1.6

xhighsource date 2026-09-22
Source: epoch
tau-bench (Airline)Agentic & Tool Use

75.3%

source date 2026-11-03
Source: openrouter
WebDev ArenaAgentic & Tool Use

1638 Elo

xhigh
Source: epoch

Compare against every model in the full benchmark matrix.

Capabilities

Reasoning

Works through multi-step problems before answering, for harder tasks.

Vision input

Accepts images alongside text, so you can prompt with pictures and screenshots.

Tool use

Can call functions and tools, enabling agentic and structured workflows.

Structured output

Returns validated JSON that conforms to a schema you define.

Use Grok 4.7 through the API

The model id is x-ai/grok-4.7. Requests bill your GenMagic balance at the price above, and each response reports what it cost.

curl
curl https://genmagic.co/api/v1/chat/completions \
  -H "Authorization: Bearer $GENMAGIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "x-ai/grok-4.7",
    "messages": [{ "role": "user", "content": "Explain vector databases in two sentences." }]
  }'
Python (openai SDK)
from openai import OpenAI

client = OpenAI(base_url="https://genmagic.co/api/v1", api_key="YOUR_GENMAGIC_API_KEY")

resp = client.chat.completions.create(
    model="x-ai/grok-4.7",
    messages=[{"role": "user", "content": "Explain vector databases in two sentences."}],
)
print(resp.choices[0].message.content)

From an AI agent, call generate_text with "model": "x-ai/grok-4.7" on the GenMagic MCP server. Keys, limits and every endpoint are in the API documentation.

Use Grok 4.7 in n8n

  1. In n8n, open the nodes panel, search for GenMagic and install it (a verified community node), then add it to your workflow.
  2. Set Resource to Text and Operation to Generate.
  3. In Model Name or ID, pick SpaceXAI: Grok 4.7, or enter x-ai/grok-4.7 as an expression.
  4. Connect your GenMagic API key (get one free). Each run is billed at the price above, and the node returns what it cost.

Ready-to-import workflows that already use the node are on GenMagic for n8n.

Similar-priced text models from other providers

Other text models GenMagic runs at a comparable price, on the same balance and API key.

ModelProviderPriceContext
SpaceXAI: Grok 4.7 (this model)xAI$3.00 in / $9.00 out per 1M tokens500K
Sakana: Fugu MaxSakana AI$3.00 in / $9.00 out per 1M tokens1M
Qwen: Qwen3.8 Max (0902)Qwen$3.00 in / $9.00 out per 1M tokens1M
DeepSeek: DeepSeek Pro LatestDeepSeek$0.14 in / $12.00 out per 1M tokens1M
AionLabs: Aion 3.5AionLabs$4.50 in / $9.00 out per 1M tokens262K
Mistral: Mistral Medium 3.5Mistral AI$2.25 in / $11.25 out per 1M tokens262K

Compare Grok 4.7

More from xAI

All 12 xAI models

Price and listing history

Every change GenMagic has recorded for Grok 4.7 since it began tracking the model on Oct 29, 2026. Prices are GenMagic's, the same the studio and the API charge.

DateChangeBeforeAfter
Nov 4, 2026Updated: intelligence index--
Nov 1, 2026Price up 36%$2.20 in / $6.60 out per 1M tokens$3.00 in / $9.00 out per 1M tokens

Where these figures come from

  • Price: GenMagic's own price, what the studio and the API charge, recomputed from the provider's price list every few minutes and recorded daily. How pricing works.
  • Specs and description: as xAI publishes them, checked daily.
  • Benchmarks: 32 scores from Artificial Analysis and OpenRouter, Epoch AI, Design Arena, LMArena, re-read daily. Each score above links to its source.
  • Changes: the data on this page last changed on Nov 5, 2026, tracked since Oct 29, 2026. Every model's new listings, price changes and retirements are in the model changes log, and how every figure on GenMagic is sourced is on our sources page.

Generate with Grok 4.7 today

One GenMagic plan unlocks Grok 4.7 and every other model across text, image, audio, and video.