grok-4.20
xAI
Reasoning-oriented Grok variant built for multi-step problem solving and agentic tool use, with strict prompt adherence and low hallucination.
$2.125/ M
$4.25/ M
$0.34/ M
$0/ M
Multi-agent variant that dispatches sub-agents in parallel for deep research, multi-step reasoning, and tool orchestration.
Цена ввода
Рынок: $4
/ M
Цена вывода
Рынок: $12
/ M
Чтение кэша
Рынок: $0.4
/ M
Запись кэша
/ M
Ввод
Текст
Вывод
Текст
{
"model": "xai/grok-4.20-multi-agent",
"messages": [
{
"role": "user",
"content": "你好!请先介绍一下你自己,包括你的主要能力与适用场景,并给一个简短的使用示例。"
}
],
"stream": false
}{}API
Готовый код для вызова этой модели через OpenAI-совместимый API EasyAPI.
Создайте API-токен в консоли и задайте его как переменную окружения:
Замените sk-xxxxxxxx на API-токен из консоли (Bearer Token).
Создать API-токенexport EASYAPI_API_KEY=sk-xxxxxxxxИспользуйте xai/grok-4.20-multi-agent с API EasyAPI:
curl https://token.easyapi.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $EASYAPI_API_KEY" \
-d '{"model":"xai/grok-4.20-multi-agent","messages":[{"role":"user","content":"Hello!"}]}'Добавьте "stream": true в тело запроса для получения ответов через SSE:
curl -N https://token.easyapi.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $EASYAPI_API_KEY" \
-d '{"model":"xai/grok-4.20-multi-agent","messages":[{"role":"user","content":"Hello!"}],"stream":true}'Отправляет запрос chat completion. Поддерживает потоковый и обычный режим.
https://token.easyapi.com/v1/chat/completionsBearer $EASYAPI_API_KEYapplication/jsonxai/grok-4.20-multi-agent发送对话补全请求,支持流式与非流式。 Документация
https://token.easyapi.com/v1/modelsBearer $EASYAPI_API_KEY获取当前账户可用模型列表。 Документация
| Имя | Тип | По умолчанию | Описание |
|---|---|---|---|
model | string | — | 模型 ID,如 openai/gpt-4o、anthropic/claude-3-5-sonnet |
messages | array | — | 对话消息列表,每项含 role 与 content |
stream | boolean | false | 设为 true 时以 SSE 流式返回 |
temperature | float | 1 | 采样温度,越高越随机 |
max_tokens | integer | — | 单次回复最大生成 Token 数 |
top_p | float | 1 | 核采样,限制候选词累积概率 |
frequency_penalty | float | 0 | 频率惩罚,降低重复用词 |
presence_penalty | float | 0 | 存在惩罚,鼓励新话题 |
Официальные SDK OpenAI и других работают при замене base URL. См. руководство по интеграции
xAI
Reasoning-oriented Grok variant built for multi-step problem solving and agentic tool use, with strict prompt adherence and low hallucination.
$2.125/ M
$4.25/ M
$0.34/ M
$0/ M
xAI
Reasoning-oriented Grok variant built for multi-step problem solving and agentic tool use, with strict prompt adherence and low hallucination.
$2.125/ M
$4.25/ M
$0.34/ M
$0/ M
xAI
Grok 4.3 is a reasoning model from xAI that supports text and image inputs with text output. It is suited for agentic workflows, instruction following, long-document analysis, and deep research. The model supports a 1M token context window. Requests above 200K total tokens are billed at a higher rate.
$2.125/ M
$4.25/ M
$0.34/ M
$0/ M
xAI
Grok's flagship reasoning model, running an internal chain of thought before responding. Strong performance on coding and STEM tasks, with support for text, image, and file inputs. Suited for technical problem-solving and long-document analysis.
$1.7/ M
$5.1/ M
$0.425/ M
$0/ M