# OpenAI GPT-5 Codex — deprecation status

> Yes — GPT-5 Codex is retired. OpenAI deprecated it on April 22, 2026 and shut it down on July 23, 2026; API requests to it now fail. The recommended replacement is GPT-5.6 Sol.

The model that relaunched the Codex name for agentic coding, tuned for long autonomous runs rather than inline completion. It was retired in July 2026 together with every other first-generation Codex id in a single announcement.

## Facts

| Field | Value |
| --- | --- |
| Provider | OpenAI |
| Model id | `gpt-5-codex` |
| Status | Retired |
| Deprecated | April 22, 2026 |
| Shutdown | July 23, 2026 (7 days ago) |
| Last verified | July 30, 2026 |

## Replacement

- **GPT-5.6 Sol** (`gpt-5.6-sol`) · recommended — https://modeldeprecations.dev/openai/gpt-5.6-sol
  - For coding-agent work the current equivalent is gpt-5.3-codex; OpenAI names Sol as the general replacement.
  - Parameters it accepts: https://modelparams.dev/models/openai/gpt-5.6-sol

```diff
- "model": "gpt-5-codex"
+ "model": "gpt-5.6-sol"
```

## FAQ

### When did OpenAI GPT-5 Codex shut down?

OpenAI GPT-5 Codex shut down on July 23, 2026. API requests to it fail from that date onward.

### What replaces OpenAI GPT-5 Codex?

OpenAI recommends GPT-5.6 Sol (`gpt-5.6-sol`) as the replacement for OpenAI GPT-5 Codex. For coding-agent work the current equivalent is gpt-5.3-codex; OpenAI names Sol as the general replacement.

### Is OpenAI GPT-5 Codex still available?

No. OpenAI GPT-5 Codex is retired and no longer served — it was shut down on July 23, 2026. Calls to it return an error.

### How do I migrate from OpenAI GPT-5 Codex to gpt-5.6-sol?

Swap the model id in your API call: replace "gpt-5-codex" with "gpt-5.6-sol". For coding-agent work the current equivalent is gpt-5.3-codex; OpenAI names Sol as the general replacement.

## Sources

- [OpenAI API deprecations](https://developers.openai.com/api/docs/deprecations) — accessed 2026-07-30

---

Canonical page: https://modeldeprecations.dev/openai/gpt-5-codex
JSON: https://modeldeprecations.dev/api/v1/models/openai/gpt-5-codex.json
