Grok 4.20 Reasoning (Batch) · vercel
Grok 4.20 Beta is the newest flagship model from xAI with industry-leading speed and agentic tool calling capabilities. It combines the lowest hallucination rate on the market with strict prompt adherence, delivering consistently precise and truthful responses.
Вход, $/1M $1.00
Выход, $/1M $2.00
Чтение из кэша $0.16
Запись в кэш —
Контекст 2 000 000
Макс. выход 2 000 000
Принимает картинки, pdf, текст
Последняя проверка 04.11.2026 12:00:14 UTC
Источник —
Уведомления о ценах
API
API, совместимый с OpenAI: подходят официальные SDK OpenAI с этим адресом. YOUR_API_KEY замените на свой ключ от провайдера.
| Адрес API | |
|---|---|
| Эндпоинт | |
| Модель (id в API) | |
curl
curl https://ai-gateway.vercel.sh/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "spacexai/grok-4.20-reasoning-batch", "messages": [{"role": "user", "content": "Hello!"}], "max_tokens": 256}'Python
import requests
r = requests.post(
"https://ai-gateway.vercel.sh/v1/chat/completions",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"model": "spacexai/grok-4.20-reasoning-batch",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"max_tokens": 256
},
)
print(r.json())JavaScript
const r = await fetch("https://ai-gateway.vercel.sh/v1/chat/completions", {
method: "POST",
headers: {Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json"},
body: JSON.stringify({
"model": "spacexai/grok-4.20-reasoning-batch",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"max_tokens": 256
}),
});
console.log(await r.json());Запрос (JSON)
{
"model": "spacexai/grok-4.20-reasoning-batch",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"max_tokens": 256
}Ответ (JSON)
{
"id": "chatcmpl-...",
"object": "chat.completion",
"model": "spacexai/grok-4.20-reasoning-batch",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hi! How can I help?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 12,
"total_tokens": 21
}
}Адрес взят из списка моделей провайдера - сверьте с его документацией.
Source: AI Rate Card, https://airatecard.com/ru/c/offer%3Avercel%7Cspacexai/grok-4.20-reasoning-batch, prices checked 2026-11-04
Технические данные
ID: offer:vercel|spacexai/grok-4.20-reasoning-batch