GPT 5.1 Codex Mini

Chat Completions API
gpt-5.1-codex-mini
отOpenAIСоздана 13 нояб. 2025 г.400K контекст
Chat Completions API

GPT-5.1-Codex-Mini is a smaller OpenAI model tuned for agentic coding in Codex-style environments. It favors lower latency and cost for focused changes, code review and routine developer tasks while retaining tool-assisted workflows. For work that needs deeper reasoning or sustained autonomy, use a larger Codex model.

Пример кода

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