- Model
xai/grok-3- Provider
vercel-ai-gateway- API
anthropic-messages- Base URL
https://ai-gateway.vercel.sh- Input
- text
- Reasoning
- No
- Context window
- 131,072
- Max tokens
- 131,072
- Cost / million input
- $3
- Cost / million output
- $15
- Cost / million cache read
- $0.75
- Cost / million cache write
- $0
Model config JSON
{
"providers": {
"vercel-ai-gateway": {
"apiKey": "YOUR_API_KEY",
"models": [
{
"id": "xai/grok-3",
"name": "Grok 3 Beta",
"reasoning": false,
"input": [
"text"
],
"contextWindow": 131072,
"maxTokens": 131072,
"cost": {
"input": 3,
"output": 15,
"cacheRead": 0.75,
"cacheWrite": 0
}
}
],
"api": "anthropic-messages",
"baseUrl": "https://ai-gateway.vercel.sh"
}
}
}