Logo SVG copied to clipboard
Custom development The team behind Manifest can help you develop what your company needs around your LLM gateway. Talk to us

OpenAI gpt-5.2-codex model retirement

Stopped working

On July 23, 2026, OpenAI retired model gpt-5.2-codex. Any API requests sent to model gpt-5.2-codex fail since that date. Developers using this model must update their integrations to avoid request failures.

View as Markdown

The error you get

What OpenAI answers a call to gpt-5.2-codex once the model is gone, as recorded from real responses:

HTTP 404
{"error":{"message":"The model `gpt-5.2-codex` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations","type":"invalid_request_error","param":null,"code":"model_not_found"}}

What to use instead of gpt-5.2-codex

Move to gpt-5.6-sol, which is the replacement recommended by OpenAI.

In OpenAI's words

Shutdown date: Jul 23, 2026; Affected model or feature: gpt-5.2-codex; Listed replacement: gpt-5.6-sol; Notice date: Apr 22, 2026

OpenAI, Deprecations page

Facts

API
OpenAI api.openai.com
Model
gpt-5.2-codex
Released
December 11, 2025 (models.dev)
Kind
Model retirement
Takes effect
July 23, 2026
Calls after that day
Fail
Last updated
Verified
, against OpenAI's own pages

This data is open source (MIT): mnfst/model-deprecations. Something wrong or missing? Edit on GitHub.

Self-host for free, or let us run it for $19/month.