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
| source | URL | retrieved | |
|---|---|---|---|
| Release date | β | β | unknown |
| Context window | docs.x.ai β | 2026-08-18 | verified |
| Max output tokens | docs.x.ai β | 2026-08-18 | verified |
| Input modalities | docs.x.ai β | 2026-08-18 | verified |
| Training cutoff | β | β | unknown |
| License | β | β | verified |
| MMLU | x.ai β | 2026-08-18 | unknown |
| MATH-500 | x.ai β | 2026-08-18 | unknown |
| SWE-bench Verified | x.ai β | 2026-08-18 | unknown |