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

Grok 4.20 by xAI (SpaceXAI): $1.25 per million input tokens, $2.5 per million output tokens, a 2M-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#

A SpaceXAI reasoning model focused on speed and tool calling. According to the developer it has the lowest hallucination rate and strict prompt adherence. A 2-million-token window.

Specifications#

Provider xAI (SpaceXAI)
Released 2026-03-31
Context window 2M tokens
Accepts text, images, files
Answers with text
Reasoning mode yes
Tool calling yes
Open weights no
Knowledge up to 2025-09
Identifier x-ai/grok-4.20

Price#

Per 1M tokens In dollars
Input (question, context) $1.25
Output (answer) $2.5

For reference: a conversation of 20 questions of ~500 tokens and answers of ~800 tokens costs about $0.052. 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#

  • Very long context
  • Fast agents with tools
  • Answers where making things up is costly

Similar models#

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

Model Input Output Window Price
Grok 4.3 $1.25 $2.5 1M about the same
Kimi K2.6 $0.65 $3.41 262K about the same
Kimi K2.7 Code $0.671 $3.35 262K about the same
Gemini 3.8 Flash $0.825 $4.125 1.05M 1.2× more expensive
DeepSeek V4 Pro 0423 $0.955 $1.911 1.05M 1.3× cheaper

Other xAI (SpaceXAI) models#

How to connect in SKILLOK#

Grok 4.20 works through OpenRouter: add an OpenRouter key in Settings → AI and pick the x-ai/grok-4.20 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?