ModelRot
RetiredGPT-5.2 Codex

gpt-5.2-codex

gpt-5.2-codex retirement: shut down Jul 23, 2026, replacement gpt-5.6-sol.

Countdown

Off

Jul 23, 2026

Replacement

gpt-5.6-sol

As recommended by the provider

Price per 1M tokens

— in · — out

Standard tier, list price

Price comparison

Per 1M tokensgpt-5.2-codexgpt-5.6-sol
Input—$4
Output—$20
Blended changeUnknown: a list price is missing

Full migration notes: gpt-5.2-codex vs gpt-5.6-sol

Timeline

  1. Deprecation announced

    Apr 22, 2026

  2. Shutdown

    Jul 23, 2026

Source: https://developers.openai.com/api/docs/deprecations · checked Nov 16, 2026

Change history

Related OpenAI models

FAQ

When does gpt-5.2-codex shut down?

OpenAI lists Jul 23, 2026 as the shutdown date for gpt-5.2-codex (117 days ago). After that date, API calls to it fail.

What should I replace gpt-5.2-codex with?

OpenAI recommends gpt-5.6-sol.

How much does gpt-5.2-codex cost per 1M tokens?

OpenAI's current pricing page lists no standard per-token price for gpt-5.2-codex because it is retired.

How do I find every place my code calls gpt-5.2-codex?

Paste your code or a public GitHub repo URL into ModelRot's free scanner. It lists every file and line that uses gpt-5.2-codex or any other retiring model, with the replacement and cost change.