Okapi Okapi

OpenAI · Model retirement

gpt-5.2-codex

Stopped working

Calls to the model gpt-5.2-codex on OpenAI stopped working on July 23, 2026.

What to use instead of gpt-5.2-codex

Move to gpt-5.6-sol, recommended by OpenAI.

Facts

API
OpenAI api.openai.com
Model
gpt-5.2-codex
Kind
Model retirement
Takes effect
July 23, 2026
Calls after that day
Fail
Source
Deprecations page
Last updated

More from OpenAI

Know before your API calls break.

Okapi finds the calls a breaking change hits in your code and opens the pull request that fixes them.

Add to GitHub