Grok 4.7

Chat Completions API
grok-4.7
отxAIСоздана 21 сент. 2026 г.500K контекст
Chat Completions API

Grok 4.7 is an xAI frontier model for coding, agentic tasks and knowledge work. It accepts text and image inputs, supports a 500,000-token context window and configurable reasoning effort, and can work through long, multi-step tasks. Its API route is distinct from earlier Grok 4 variants.

Пример кода

Пример использования модели через API на Python или cURL. Замените значения-заполнители своим API-ключом и ID модели.

Базовый пример запроса. Проверьте разрешения API-ключа. Подробнее см. документацию.
curl https://api.makura.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  --data-raw '{
  "model": "grok-4.7",
  "messages": [
    {
      "role": "user",
      "content": "Сколько будет 2 + 2?"
    }
  ]
}'