返回模型列表
Grok 4.6
xaixai/grok-4.6
供应商自营与 TheRouter 服务形态的差异
供应商自己运营时
xAI 通过自有 API(api.x.ai)运营 Grok 4.6,提供专有端点、原生推理强度控制(low / medium / high / xhigh)以及第一方计费。
在 TheRouter 上
TheRouter 通过统一的 OpenAI 兼容端点 /v1/chat/completions 提供 xai/grok-4.6。reasoning 参数原样透传。定价、区域与支持参数以 TheRouter 实时模型目录为准,而非供应商发布的规格页。
API 使用指南
Chat 调用
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"}]}'视觉(图像输入)
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"}}
]
}]
}'函数调用
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"
}'事实档案 — 本页每条断言可在此回溯来源
| 来源 | URL | 采集于 | |
|---|---|---|---|
| 发布日期 | — | — | 未知 |
| 上下文窗口 | docs.x.ai ↗ | 2026-08-18 | 已核实 |
| 最大输出 token | docs.x.ai ↗ | 2026-08-18 | 已核实 |
| 输入模态 | docs.x.ai ↗ | 2026-08-18 | 已核实 |
| 训练数据截止 | — | — | 未知 |
| 许可 | — | — | 已核实 |
| MMLU | x.ai ↗ | 2026-08-18 | 未知 |
| MATH-500 | x.ai ↗ | 2026-08-18 | 未知 |
| SWE-bench Verified | x.ai ↗ | 2026-08-18 | 未知 |