Grok 3 Mini

Chat Completions API
grok-3-mini
отxAIСоздана 23 июн. 2025 г.128K контекст
Chat Completions API

A lightweight, high-speed model from xAI, engineered for logic-based tasks that do not require deep domain knowledge. Grok-3-mini is optimized for rapid response and efficient reasoning, making it ideal for applications where speed and concise logic are prioritized over extensive context or specialized expertise. The model exposes raw thinking traces, providing transparency into its decision-making process and enabling advanced debugging or educational use cases.

API-методы и структура запроса

Здесь собран публичный контракт интеграции модели: поддерживаемые API-методы, параметры запросов и примеры вызовов.

Chat Completions APIPOST/v1/chat/completions

Пример кода

Пример использования модели через 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-3-mini",
  "messages": [
    {
      "role": "user",
      "content": "Сколько будет 2 + 2?"
    }
  ]
}'

Параметры

Параметры, доступные в API-запросах
Frequency PenaltyMax Completion TokensPresence PenaltyResponse FormatStopTemperatureTool ChoiceToolsTop PWeb Search Options