Okapi Okapi

OpenAI · Model retirement

gpt-5.1-codex-max

Stopped working

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

What to use instead of gpt-5.1-codex-max

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

Facts

API
OpenAI api.openai.com
Model
gpt-5.1-codex-max
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