Back to Models

Grok 4.6

xaixai/grok-4.6

How TheRouter serves this differently from the vendor

As the vendor operates it

xAI operates Grok 4.6 on its own API at api.x.ai with proprietary endpoints, native reasoning-effort control (low / medium / high / xhigh), and first-party billing.

On TheRouter

TheRouter exposes xai/grok-4.6 through a unified OpenAI-compatible /v1/chat/completions endpoint. The reasoning parameter passes through verbatim. Pricing, regions, and supported parameters reflect the live TheRouter model catalog, not the vendor's published card.

API guide

Chat completion

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"xai/grok-4.6","messages":[{"role":"user","content":"Hello"}]}'

Vision (image input)

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "xai/grok-4.6",
    "messages": [{
      "role": "user",
      "content": [
        {"type": "text", "text": "What is in this image?"},
        {"type": "image_url", "image_url": {"url": "https://example.com/image.jpg"}}
      ]
    }]
  }'

Function calling

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "xai/grok-4.6",
    "messages": [{"role": "user", "content": "What is the weather in San Francisco?"}],
    "tools": [{
      "type": "function",
      "function": {
        "name": "get_weather",
        "description": "Get current weather for a location",
        "parameters": {
          "type": "object",
          "properties": {"location": {"type": "string"}},
          "required": ["location"]
        }
      }
    }],
    "tool_choice": "auto"
  }'
Fact ledger β€” every claim on this page traces here
sourceURLretrieved
Release dateβ€”β€”unknown
Context windowdocs.x.ai β†—2026-08-18verified
Max output tokensdocs.x.ai β†—2026-08-18verified
Input modalitiesdocs.x.ai β†—2026-08-18verified
Training cutoffβ€”β€”unknown
Licenseβ€”β€”verified
MMLUx.ai β†—2026-08-18unknown
MATH-500x.ai β†—2026-08-18unknown
SWE-bench Verifiedx.ai β†—2026-08-18unknown
Help & contact