- Model
xai/grok-4.20-non-reasoning- Provider
vercel-ai-gateway- API
anthropic-messages- Base URL
https://ai-gateway.vercel.sh- Input
- text, image
- Reasoning
- No
- Context window
- 2,000,000
- Max tokens
- 2,000,000
- Cost / million input
- $2
- Cost / million output
- $6
- Cost / million cache read
- $0.2
- Cost / million cache write
- $0
Model config JSON
{
"providers": {
"vercel-ai-gateway": {
"apiKey": "YOUR_API_KEY",
"models": [
{
"id": "xai/grok-4.20-non-reasoning",
"name": "Grok 4.20 Non-Reasoning",
"reasoning": false,
"input": [
"text",
"image"
],
"contextWindow": 2000000,
"maxTokens": 2000000,
"cost": {
"input": 2,
"output": 6,
"cacheRead": 0.19999999999999998,
"cacheWrite": 0
}
}
],
"api": "anthropic-messages",
"baseUrl": "https://ai-gateway.vercel.sh"
}
}
}