xAI
Grok 4.20
model
grok-4-20MidStableStreamingToolsBatchLong contextGlobal
Context
2.0M
Input / 1M tokens
$1.25
Output / 1M tokens
$2.50
Cached input / 1M tokens
$0.3575
Cache write / 1M tokens
— (bills at input price)
About this model
Grok 4.20
Grok 4.20 is a model by xAI, available through the Anoman AI OpenAI-compatible API with a 2.0M-token context window. It costs $1.25 per 1M input tokens and $2.50 per 1M output tokens, and is available from the Pro plan.
Key facts
- Maker
- xAI
- Context window
- 2.0M tokens
- Max output
- 1.8M tokens
- Lane
- Guarded: the provider has confirmed it does not train on your data
- Modality
- Text
- Input price
- $1.25 per 1M tokens
- Output price
- $2.50 per 1M tokens
- Processing region(s)
- global
- Route
- Via OpenRouter
- Cheapest plan
- Available from the Pro plan
- Price comparison
- Priced below 114 of 250 pro-band guarded models on Anoman (blended price: 1 part input to 3 parts output).
Code example
Chat completion with Grok 4.20
from openai import OpenAI
client = OpenAI(
base_url="https://api.anoman.io/v1",
api_key="anm-sk-..."
)
response = client.chat.completions.create(
model="grok-4-20",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)Alternatives
Similar models in our catalog
Same maker first, then the closest price to Grok 4.20 in the Anoman catalog.