OpenAI
gpt-5.1-codex: retirement date, replacement, how to migrate
gpt-5.1-codex was retired on 2026-07-23 on the OpenAI API; the vendor's named replacement is gpt-5.6-sol.
This date is the one in the OpenAI notice for the OpenAI API. Other platforms that host the same model publish their own dates.
Facts
- Retirement date
- Status
- Retired, 83 days ago
- Replacement
gpt-5.6-sol- Official notice
- https://developers.openai.com/api/docs/deprecations#2026-04-22-legacy-gpt-model-snapshots-july-2026-shutdown
- Notice date
Find it in your code
npx @upseam/cli inspect openai
grep -rnF 'gpt-5.1-codex' .
The first command reads your repository and the change data bundled in the package; nothing leaves your machine. The second is a plain text search.
Migrate
gpt-5.1-codexgpt-5.6-sol
Change the id in your code and config to the vendor's named replacement. The record does not say whether outputs, parameters or prices stay the same, so read the vendor's notice before you switch. Open the vendor's notice.
Retiring the same day
computer-use-preview-2025-03-11gpt-4o-mini-search-preview-2025-03-11gpt-4o-search-preview-2025-03-11gpt-5-chat-latestgpt-5-codexgpt-5.1-chat-latestgpt-5.1-codex-maxgpt-5.1-codex-minigpt-5.2-codexgpt-audio-mini-2025-10-06gpt-realtime-mini-2025-10-06o3-deep-research-2025-06-26o4-mini-deep-research-2025-06-26
Get warned automatically
Upseam is Dependabot for APIs: it watches vendor changelogs and opens a checked pull request when a change affects your code. See how it works.
Last updated 2026-04-22 · Markdown copy