The error you get
What OpenAI answers a call to codex-mini-latest once the model is gone, as recorded from real responses:
{"error":{"message":"The model `codex-mini-latest` 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 codex-mini-latest
Move to gpt-5-codex-mini, which OpenAI recommends as the replacement.
In OpenAI's words
Shutdown date: Feb 12, 2026; Affected model or feature: codex-mini-latest; Listed replacement: gpt-5-codex-mini; Notice date: Nov 17, 2025
Facts
- API
- OpenAI
api.openai.com - Model
codex-mini-latest- Kind
- Model retirement
- Takes effect
- February 12, 2026
- Calls after that day
- Fail
- Source
- Deprecations page
- Last updated
- Verified
- , against OpenAI's own pages
Questions
When does codex-mini-latest shut down?
Calls to the model codex-mini-latest on OpenAI stopped working on February 12, 2026.
What happens to calls after February 12, 2026?
They have failed since February 12, 2026.
What error does codex-mini-latest return once it is shut down?
OpenAI answers HTTP 404: "The model `codex-mini-latest` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations". Send another model to fix it.
More from OpenAI 10
| Effective | Model | Status |
|---|---|---|
chatgpt-4o-latest | stopped working | |
gpt-4-0125-preview | stopped working | |
gpt-4-turbo-preview | stopped working | |
gpt-4-turbo-preview-completions | stopped working | |
gpt-4o-audio-preview | stopped working | |
gpt-4o-mini-audio-preview | stopped working | |
gpt-4o-mini-realtime-preview | stopped working | |
gpt-4o-realtime-preview | stopped working | |
gpt-4o-realtime-preview-2024-12-17 | stopped working | |
gpt-4o-realtime-preview-2025-06-03 | stopped working |