GPT 5.2 Codex

Chat Completions API
gpt-5.2-codex
отOpenAIСоздана 15 янв. 2026 г.400K контекст
Chat Completions API

GPT-5.2-Codex is an enhanced version of GPT-5.1-Codex, optimized for software engineering and coding tasks. Designed for both interactive sessions and longer, independent execution, it excels at building projects, developing features, debugging, large-scale refactoring, and code review. Compared to its predecessor, 5.2-Codex follows developer instructions more closely and delivers cleaner, higher-quality code. It integrates seamlessly with developer tools—CLI, IDEs, GitHub, and cloud platforms—and adapts its reasoning effort based on task complexity, providing quick responses for simple tasks and maintaining extended performance for larger projects. The model supports structured code reviews, detects critical flaws, validates behavior against tests, and handles multimodal inputs like images for UI work. It is specifically tailored for agentic coding applications.

Цены

Оплата по факту использования этой модели. Подробнее здесь.
Входные токены (1 млн)
$1.54
Выходные токены (1 млн)
$12.32

Возможности

Входные модальности

ТекстИзображение

Выходные модальности

Текст

Параметры

Параметры, доступные в API-запросах
Frequency PenaltyFunction CallFunctionsLogit BiasMax Completion TokensParallel Tool CallsPredictionPresence PenaltyReasoning EffortResponse FormatStopTool ChoiceToolsWeb Search Options

Статистика использования

Использование токенов этой модели на платформе

Недостаточно данных для графика использования

Доступность

Надёжность за последние 7 дней

Недостаточно данных для графика доступности

Пропускная способность

Недостаточно данных о пропускной способности

Время до первого токена (TTFT)

Недостаточно данных о TTFT

Пример кода

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