MODELS / OPENAI

GPT 5.2 Codex

GPT‑5.2-Codex is a version of GPT‑5.2⁠ further optimized for agentic coding in Codex, including improvements on long-horizon work through context compaction, stronger performance on large code changes like refactors and migrations, improved performance in Windows environments,…

TEXTREASONINGFILE-INPUTIMPLICIT-CACHINGREASONINGTOOL-USEVISIONWEB-SEARCH
400K
CONTEXT WINDOW
128K
MAX OUTPUT TOKENS
$1.75
INPUT PRICE / 1M TOKENS
$14
OUTPUT PRICE / 1M TOKENS
QUICKSTART

Call it in one request.

OpenAI-compatible: change the base URL, and the setup is complete.

curl https://enterprise.blackbox.ai/v1/chat/completions \
  -H "Authorization: Bearer $BLACKBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "blackboxai/openai/gpt-5.2-codex",
    "messages": [{ "role": "user", "content": "Hello!" }],
    "stream": true
  }'
SPECIFICATIONS

The full spec sheet.

Context, pricing, modalities, routing, and deployment: everything GPT 5.2 Codex supports, in one table.

MODEL ID
blackboxai/openai/gpt-5.2-codex
DEVELOPED BY
OpenAI
MODEL TYPE
Text
RELEASED
Dec 18, 2025
CONTEXT WINDOW
400K
MAX OUTPUT TOKENS
128K
INPUT MODALITIES
text, image, pdf
OUTPUT MODALITIES
text
INPUT PRICE
$1.75 / 1M tokens
OUTPUT PRICE
$14 / 1M tokens
CACHE READ
$0.175 / 1M tokens
REASONING
Supported
DATA RETENTION
Standard retention
DEDICATED DEPLOYMENT
Not available (closed-weight model)
SUPPORTED PARAMETERS
max_tokenstemperaturestoptoolstool_choicereasoninginclude_reasoning