Grok 4.7: API price, context window and how to connect

Grok 4.7 by xAI (SpaceXAI): $2 per million input tokens, $6 per million output tokens, a 500K-token window. What it is good for, what to compare it with and how to connect it in SKILLOK.

Updated Copy as Markdown
In this article

In short#

SpaceXAI's flagship for code, agentic tasks and knowledge work, successor to Grok 4.6. Especially strong at long software engineering tasks and verifying its own work.

Specifications#

Provider xAI (SpaceXAI)
Released 2026-09-21
Context window 500K tokens
Accepts text, images, files
Answers with text
Reasoning mode yes
Tool calling yes
Open weights no
Identifier x-ai/grok-4.7

Price#

Per 1M tokens In dollars
Input (question, context) $2
Output (answer) $6

For reference: a conversation of 20 questions of ~500 tokens and answers of ~800 tokens costs about $0.116. Models in reasoning mode spend more tokens on an answer than the text shows: the reasoning is paid for too.

What it is good for#

  • Long development tasks
  • Agents that check themselves
  • Analytical work

Similar models#

Catalog models with the same kind of output, closest in the price of a typical request.

Model Input Output Window Price
Mistral Medium 3.5 $1.5 $7.5 262K about the same
Kimi K3 $0.239 $11.936 1.05M 1.4× more expensive
GPT-6.1 Sol $2 $10 1.05M 1.4× more expensive
GPT-6.1 Sol Pro $2 $10 1.05M 1.4× more expensive
Claude Sonnet 5.5 $2 $10 1M 1.4× more expensive

Other xAI (SpaceXAI) models#

How to connect in SKILLOK#

Grok 4.7 works through OpenRouter: add an OpenRouter key in Settings → AI and pick the x-ai/grok-4.7 model. It then becomes available in Space AI, in tasks and to the repository agent. In detail — Connecting a model in SKILLOK.

Where the data comes from#

Prices, the context window and capabilities come from the public OpenRouter catalog as of 2026-10-19. A provider may change the price — the exact figure is always on the model's OpenRouter page.

Was this helpful?