# OpenAI GPT-5.1 Codex mini — deprecation status

> Yes — GPT-5.1 Codex mini 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 Terra.

The small Codex model for editor-loop completions, where a 200ms difference in latency is more valuable than a smarter answer. Retired July 23, 2026.

## Facts

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

## Replacement

- **GPT-5.6 Terra** (`gpt-5.6-terra`) · recommended — https://modeldeprecations.dev/openai/gpt-5.6-terra
  - OpenAI names Terra rather than a Codex id here. For editor-latency work gpt-5.3-codex-spark is the closer fit.
  - Parameters it accepts: https://modelparams.dev/models/openai/gpt-5.6-terra

```diff
- "model": "gpt-5.1-codex-mini"
+ "model": "gpt-5.6-terra"
```

## FAQ

### When did OpenAI GPT-5.1 Codex mini shut down?

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

### What replaces OpenAI GPT-5.1 Codex mini?

OpenAI recommends GPT-5.6 Terra (`gpt-5.6-terra`) as the replacement for OpenAI GPT-5.1 Codex mini. OpenAI names Terra rather than a Codex id here. For editor-latency work gpt-5.3-codex-spark is the closer fit.

### Is OpenAI GPT-5.1 Codex mini still available?

No. OpenAI GPT-5.1 Codex mini 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.1 Codex mini to gpt-5.6-terra?

Swap the model id in your API call: replace "gpt-5.1-codex-mini" with "gpt-5.6-terra". OpenAI names Terra rather than a Codex id here. For editor-latency work gpt-5.3-codex-spark is the closer fit.

## Sources

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

---

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