x-ai logo
x-ai

SpaceXAI: Grok 4.20

Grok 4.20 is a reasoning model from SpaceXAI with industry-leading speed and agentic tool calling capabilities. $1.25 per million input tokens, $2.50 per million output tokens. 2,000,000 token context window. Includes independent benchmarks from Artificial Analysis.

Overview

Model specifications

Context
2,000,000 tokens
Maximum output
1,800,000 tokens
Architecture
text+image+file->text
Tokenizer
Grok
Knowledge cutoff
2025-09-01
Moderated
No
OPENROUTER

Complete pricing

Synchronized OpenRouter rates. Token prices are shown per one million tokens.

Input
$1.25
/M tokens
  • ≤200K$1.25
  • >200K$2.5
Output
$2.5
/M tokens
  • ≤200K$2.5
  • >200K$5
Cache read
$0.2
/M tokens
  • ≤200K$0.2
  • >200K$0.4
Web search
$5
/1K calls
API

Model configuration

Reasoning

Moderated
No
Default parameters
No
API

Quick start

Call this exact model ID through OpenRouter’s OpenAI-compatible API.

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"x-ai/grok-4.20","messages":[{"role":"user","content":"Hello!"}]}'
Capabilities

InputOutput

Input
textimagefile
Output
text
Reasoning

No

API

Supported API parameters

include_reasoninglogprobsmax_tokensreasoningresponse_formatseedstructured_outputstemperaturetool_choicetoolstop_logprobstop_p
Available providers

4 providers

Live providers on OpenRouter

Provider availability, latency, throughput and routing can change continuously. Open the source page for current operational data.

OpenRouter

xAI

unknown
Context
2M
Maximum output
1.8M
Input
$1.25
Output
$2.50
Cache read
$0.200
Cache write
Not provided

xAI

unknown
Context
2M
Maximum output
1.8M
Input
$1.25
Output
$2.50
Cache read
$0.200
Cache write
Not provided

xAI

unknown
Context
2M
Maximum output
1.8M
Input
$2.50
Output
$5.00
Cache read
$0.400
Cache write
Not provided

xAI

unknown
Context
2M
Maximum output
1.8M
Input
$2.50
Output
$5.00
Cache read
$0.400
Cache write
Not provided
x-ai

models

All models