返回模型列表
Grok 4.20
xaixai/grok-4.20-non-reasoning
供应商自营与 TheRouter 服务形态的差异
供应商自己运营时
xAI 将 grok-4.20-0309-non-reasoning 作为原生 xAI API 模型提供,使用 xAI 自身价格层级、xAI 限流,并说明 Grok 4.20 及更新模型会静默忽略 logprobs/top_logprobs。
在 TheRouter 上
TheRouter 通过 OpenAI 兼容 chat 端点提供固定的 xai/grok-4.20-non-reasoning 路由,使用 TheRouter 的价格与路由元数据;该模型不暴露媒体生成、音频或 embeddings 端点。
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.20-non-reasoning",
"messages": [{"role": "user", "content": "Summarise the key points in the following document:"}]
}'函数调用
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.20-non-reasoning",
"messages": [{"role": "user", "content": "Look up the order status for order #12345."}],
"tools": [{"type": "function", "function": {"name": "get_order_status", "description": "Get order status by ID", "parameters": {"type": "object", "properties": {"order_id": {"type": "string"}}, "required": ["order_id"]}}}],
"tool_choice": "auto"
}'视觉——图片 + 文本
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.20-non-reasoning",
"messages": [{
"role": "user",
"content": [
{"type": "image_url", "image_url": {"url": "https://therouter.ai/assets/vision-sample.png"}},
{"type": "text", "text": "Extract all line items from this invoice as JSON."}
]
}]
}'事实档案 — 本页每条断言可在此回溯来源
| 来源 | URL | 采集于 | |
|---|---|---|---|
| 发布日期(公开 API) | — | — | 未知 |
| API 模型标识(固定版本) | docs.x.ai ↗ | 2026-06-09 | 已核实 |
| 推理模式 | — | — | 已核实 |
| 上下文窗口 | docs.x.ai ↗ | 2026-06-09 | 已核实 |
| 最大生成 token 数 | — | — | 已核实 |
| 输入模态 | docs.x.ai ↗ | 2026-06-09 | 已核实 |
| 输出模态 | — | — | 已核实 |
| xAI API 定价(当前) | docs.x.ai ↗ | 2026-06-09 | 已核实 |
| 函数调用 / 工具 | — | — | 已核实 |
| 结构化输出(response_format) | — | — | 已核实 |
| logprobs / top_logprobs | docs.x.ai ↗ | 2026-06-09 | 已核实 |
| 知识截止日期 | — | — | 未知 |
| 许可 | — | — | 已核实 |
| 限流(xAI API) | docs.x.ai ↗ | 2026-06-09 | 已核实 |
| AA Intelligence Index | docs.x.ai ↗ | 2026-08-01 | 未知 |
| AA Coding Index | docs.x.ai ↗ | 2026-08-01 | 未知 |
| AA Agentic Index | docs.x.ai ↗ | 2026-08-01 | 未知 |
| GPQA Diamond | docs.x.ai ↗ | 2026-08-01 | 未知 |
| HLE (Humanity's Last Exam) | docs.x.ai ↗ | 2026-08-01 | 未知 |
| SciCode | docs.x.ai ↗ | 2026-08-01 | 未知 |
| τ²-Bench (Telecom) | docs.x.ai ↗ | 2026-08-01 | 未知 |
| IFBench (Instruction Following) | docs.x.ai ↗ | 2026-08-01 | 未知 |
| AA-LCR (Long-Context Reasoning) | docs.x.ai ↗ | 2026-08-01 | 未知 |
| TerminalBench Hard | docs.x.ai ↗ | 2026-08-01 | 未知 |
| Grok 4.20 Beta 以四个 API 变体发布,包含非推理模式 | grokipedia.com ↗ | 2026-06-09 | 已核实 |