Назад к моделям
Grok 4.20
xaixai/grok-4.20-non-reasoning
Чем обслуживание в TheRouter отличается от вендорского
Как её эксплуатирует вендор
xAI предоставляет grok-4.20-0309-non-reasoning как нативную модель xAI API с ценовыми уровнями xAI, лимитами xAI и документированным ограничением: logprobs/top_logprobs silently ignored для Grok 4.20 и новее.
На TheRouter
TheRouter обслуживает закреплённый маршрут xai/grok-4.20-non-reasoning через OpenAI-compatible chat endpoint с ценами и routing-метаданными TheRouter; endpoints для media generation, audio и embeddings для этой модели не предоставляются.
Гид по API
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.20-non-reasoning",
"messages": [{"role": "user", "content": "Summarise the key points in the following document:"}]
}'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.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"
}'Vision — изображение + текст
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 | проверено |
| Максимум токенов завершения | — | — | проверено |
| Модальности ввода | 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 | проверено |