Skip to content

Models / SpaceXAI

SpaceXAIAvailable on TokenCenter

Grok 4.20

x-ai/grok-4.20

Grok 4.20 is a reasoning model from SpaceXAI with industry-leading speed and agentic tool calling capabilities.

Key facts

Input price
$1.25 / 1M tokens
Output price
$2.50 / 1M tokens
Context window
2M tokens
Max output
1.8M tokens
Accepts
Text, Images, Files
Returns
Text

Example: 1,000 requests with 1,000 input and 500 output tokens each would cost about $2.50 (1M input tokens × $1.25 + 0.5M output tokens × $2.50). Estimate your own usage.

Prices are the provider’s own per-token rates with zero markup, from our price list as of Oct 18, 2026. If a call has extra provider charges (images, audio, web search, cached prompts), you pay the reported cost.

Call it from your code

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

Works with any OpenAI-compatible SDK: set the base URL to https://api.tokenctr.com/v1. Quickstart

Benchmarks

Artificial Analysis

Intelligence index
25.7

Design Arena

CategoryRankEloWin rate
Agents: HTML slides11118045.7%
Agents: Web apps28113849.7%
Models: ASCII art29117748.2%
Agents: Godot game dev31108938.5%
Agents: Full-stack34105441.1%
Agents: Android native35106035%
Models: SVG38116452.4%
Agents: Mobile apps41108745.4%
Models: 3D51119352.1%
Models: Data visualization51121952%
Models: Websites51123151.8%
Models: Code52122251.8%
Models: Game dev56119650.1%
Models: UI components56119949%

Source: Artificial Analysis indexes and Design Arena results as published in OpenRouter’s model data, fetched Oct 15, 2026. Higher is better. Not measured by TokenCenter. See all rankings.

Supported request parameters

include_reasoninglogprobsmax_tokensreasoningresponse_formatseedstructured_outputstemperaturetool_choicetoolstop_logprobstop_p