GPT-5.2-Codex

OpenAI
GPT-5.2-Codex launch post cover

No longer available

The publisher shut this model down on July 23, 2026. It can no longer be used from its own API. Recommended replacement: gpt-5.6-sol. Publisher notice

Cost/1M tokens

input
$1.75
cached
$0.175
output
$14.00
Context
400Ktokens
Released
11mo ago

GPT-5.2-Codex is a version of OpenAI's GPT-5.2 adapted for agentic coding in the Codex environment. OpenAI's announcement presents it as the company's most advanced agentic coding model to date, citing improved long-horizon work through context compaction, stronger performance on large code changes such as refactors and migrations, better results in Windows environments, and stronger cybersecurity capabilities. The model is built for professional software engineering and defensive cybersecurity work.

How it compares

Score vs. cost

Each model at its best score · Dashed: the best score at each cost

  • OpenAI
  • Anthropic
  • Google DeepMind
  • Qwen
  • Moonshot AI
  • Meta
  • Tencent
  • Thinking Machines Lab
  • DeepSeek
  • Z.ai
  • Xiaomi
Level

FlagshipThe lab's most capable generally available line, priced for hard tasks.

Vs. your stack

Add the models you use to see how this one compares.

Sign in
Vs. what you use
Is GPT-5.2-Codex better than what you use?BetterSameWorse

No verdicts yet

Discussion

Sign in to join the discussion

No comments yet

Be the first to share your thoughts.

Additional source evidence
Source model
openai/gpt-5.2-codex
Source family
gpt-codex
Last updated
2025-12-11
Knowledge cutoff
2025-08-31
Model context
400K
Maximum input
272K
Model output limit
128K
Open weights
No
File attachments
Yes
Reasoning
Yes
Tool calling
Yes
Temperature control
No

Published benchmarks

BenchmarkScoreEvaluation detailsEvidence
SWE-Bench Pro41.04 · resolve ratepublicSource
Complete source record (JSON)
{
  "id": "openai/gpt-5.2-codex",
  "name": "GPT-5.2 Codex",
  "description": "Code-specialist GPT for repository edits, reviews, and long-running software agents",
  "family": "gpt-codex",
  "last_updated": "2025-12-11",
  "knowledge": "2025-08-31",
  "attachment": true,
  "reasoning": true,
  "tool_call": true,
  "temperature": false,
  "modalities": {
    "input": [
      "text",
      "image",
      "pdf"
    ],
    "output": [
      "text"
    ]
  },
  "limit": {
    "context": 400000,
    "input": 272000,
    "output": 128000
  },
  "benchmarks": [
    {
      "name": "SWE-Bench Pro",
      "score": 41.04,
      "source": "https://labs.scale.com/leaderboard/swe_bench_pro_public",
      "metric": "resolve rate",
      "dataset": "public"
    }
  ],
  "release_date": "2025-12-11",
  "open_weights": false
}

Text provenance

EU · product-scoped

OpenAI textGrain watermarking

In the EU, ChatGPT-generated text uses textGrain. OpenAI says API customers can opt in globally for select models, so watermarking depends on the product surface and configuration.

Official explanation

Frequently asked questions

API and pricing

Compare GPT-5.2-Codex providers

Privacy and data

Generated from Vertical Tabs data, updated November 24, 2026.

More in GPT

To give you the best experience, we use cookies for personalization, insights, and performance. Learn more.