grok-4.20
grok-4.20
StreamingTool callingVisionReasoningJSON modeWeb search
Overview
grok-4.20 is available on MAX through the OpenAI-compatible API.
Pricing
Official list prices: token prices are per 1M tokens.Input ≤ 199,999 tokens
- Input
- $1.25
- Output
- $2.5
- Cache read
- $0.2
Input > 199,999 tokens
- Input
- $2.5
- Output
- $5
- Cache read
- $0.4
| Tier | Input | Output | Cache read |
|---|---|---|---|
| Input ≤ 199,999 tokens | $1.25 | $2.5 | $0.2 |
| Input > 199,999 tokens | $2.5 | $5 | $0.4 |
This model uses tiered pricing: the tier is chosen by the total input length of each request.
Cache read applies to prompt tokens served from the prompt cache; cache write applies to tokens written into it.
Example request
curl https://api.link-io.cloud/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.20",
"messages": [{"role": "user", "content": "Hello!"}]
}'