- Model
grok-vision-beta- Provider
xai- API
openai-completions- Base URL
https://api.x.ai/v1- Input
- text, image
- Reasoning
- No
- Context window
- 8,192
- Max tokens
- 4,096
- Cost / million input
- $5
- Cost / million output
- $15
- Cost / million cache read
- $5
- Cost / million cache write
- $0
Model config JSON
{
"providers": {
"xai": {
"apiKey": "YOUR_API_KEY",
"models": [
{
"id": "grok-vision-beta",
"name": "Grok Vision Beta",
"reasoning": false,
"input": [
"text",
"image"
],
"contextWindow": 8192,
"maxTokens": 4096,
"cost": {
"input": 5,
"output": 15,
"cacheRead": 5,
"cacheWrite": 0
}
}
],
"api": "openai-completions",
"baseUrl": "https://api.x.ai/v1"
}
}
}