Grok 4.20 Multi-Agent
By SpaceXAI. Unknown parameters, a context window of 2,000,000 tokens, licence Unknown.
Facts
- Released
- 2026-03-31 the day OpenRouter added the model OpenRouter, read
- Licence
- Unknown
- Open weights
- Unknown
- Parameters
- Unknown
- Active parameters
- Unknown
- Knowledge cutoff
- 2025-09-01 the knowledge cutoff OpenRouter lists OpenRouter, read
- Context window
- 2,000,000 tokens the context length OpenRouter lists OpenRouter, read
- Longest output
- 1,800,000 tokens the largest output OpenRouter's first provider allows OpenRouter, read
- Tool calling
- No OpenRouter does not list tools among the supported parameters OpenRouter, read
- Structured output
- Yes OpenRouter lists structured outputs among the supported parameters OpenRouter, read
- Reasoning controls
- Yes OpenRouter lists reasoning controls, with the efforts xhigh, high, medium, low OpenRouter, read
- Inputs and outputs
- text, image, file in, text out OpenRouter, read
- Good for
- Reasoning: OpenRouter lists reasoning controls for it OpenRouter, read
- Vision: OpenRouter lists images among its inputs OpenRouter, read
Prices
| Provider | Input | Output | Context | As of | Source |
|---|---|---|---|---|---|
| xAI through OpenRouter | 1.25 USD | 2.50 USD | 2,000,000 | OpenRouter endpoints, read | |
| xAI through OpenRouter | 1.25 USD | 2.50 USD | 2,000,000 | OpenRouter endpoints, read | |
| xAI through OpenRouter | 2.50 USD | 5.00 USD | 2,000,000 | OpenRouter endpoints, read | |
| xAI through OpenRouter | 2.50 USD | 5.00 USD | 2,000,000 | OpenRouter endpoints, read |
Run it on your own hardware
No source lists weight files or a parameter count for this model, so its memory needs are Unknown.
Use it from your harness
Set up for OpenRouter with the model x-ai/grok-4.20-multi-agent. Each endpoint page has the same setup for its own address.
OpenCode
Put this in opencode.json in your project folder:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"openrouter": {
"npm": "@ai-sdk/openai-compatible",
"name": "OpenRouter",
"options": {
"baseURL": "https://openrouter.ai/api/v1",
"apiKey": "{env:OPENROUTER_API_KEY}"
},
"models": {
"x-ai/grok-4.20-multi-agent": {
"name": "Grok 4.20 Multi-Agent",
"limit": {
"context": 2000000,
"output": 1800000
}
}
}
}
}
}- OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.
From OpenCode documentation, read .
Pi
Put this in ~/.pi/agent/models.json:
{
"providers": {
"openrouter": {
"baseUrl": "https://openrouter.ai/api/v1",
"api": "openai-completions",
"apiKey": "$OPENROUTER_API_KEY",
"models": [
{
"id": "x-ai/grok-4.20-multi-agent"
}
]
}
}
}- The apiKey field can name an environment variable as $NAME.
From Pi documentation, read .
Codex
Put this in ~/.codex/config.toml:
model = "x-ai/grok-4.20-multi-agent"
model_provider = "openrouter"
[model_providers.openrouter]
name = "OpenRouter"
base_url = "https://openrouter.ai/api/v1"
env_key = "OPENROUTER_API_KEY"- Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.
From Codex documentation, read .
Claude Code
Put this in ~/.claude/settings.json, or variables in your shell:
export ANTHROPIC_BASE_URL="https://openrouter.ai/api"
export ANTHROPIC_AUTH_TOKEN="$OPENROUTER_API_KEY"
export ANTHROPIC_MODEL="x-ai/grok-4.20-multi-agent"
claude- Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.
From Claude Code documentation, read .
Sources of this page
Paid links
No link in this directory is a paid link or an ad, and no listing is paid for. The order and the contents of every list come from the sources named on this page.