Grok 2 Vision (1212)

Model details

Grok 2 Vision (1212)

Model
grok-2-vision-1212
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
$2
Cost / million output
$10
Cost / million cache read
$2
Cost / million cache write
$0
Model config JSON
{
  "providers": {
    "xai": {
      "apiKey": "YOUR_API_KEY",
      "models": [
        {
          "id": "grok-2-vision-1212",
          "name": "Grok 2 Vision (1212)",
          "reasoning": false,
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 8192,
          "maxTokens": 4096,
          "cost": {
            "input": 2,
            "output": 10,
            "cacheRead": 2,
            "cacheWrite": 0
          }
        }
      ],
      "api": "openai-completions",
      "baseUrl": "https://api.x.ai/v1"
    }
  }
}