ModelRot
RetiredGPT-5.1 Codex Mini

gpt-5.1-codex-mini

gpt-5.1-codex-mini retirement: shut down Jul 23, 2026, replacement gpt-5.6-terra.

Countdown

Off

Jul 23, 2026

Replacement

gpt-5.6-terra

As recommended by the provider

Price per 1M tokens

— in · — out

Standard tier, list price

Price comparison

Per 1M tokensgpt-5.1-codex-minigpt-5.6-terra
Input—$2
Output—$12
Blended changeUnknown: a list price is missing

Full migration notes: gpt-5.1-codex-mini vs gpt-5.6-terra

Timeline

  1. Deprecation announced

    Apr 22, 2026

  2. Shutdown

    Jul 23, 2026

Source: https://developers.openai.com/api/docs/deprecations · checked Nov 16, 2026

Change history

Related OpenAI models

FAQ

When does gpt-5.1-codex-mini shut down?

OpenAI lists Jul 23, 2026 as the shutdown date for gpt-5.1-codex-mini (117 days ago). After that date, API calls to it fail.

What should I replace gpt-5.1-codex-mini with?

OpenAI recommends gpt-5.6-terra.

How much does gpt-5.1-codex-mini cost per 1M tokens?

OpenAI's current pricing page lists no standard per-token price for gpt-5.1-codex-mini because it is retired.

How do I find every place my code calls gpt-5.1-codex-mini?

Paste your code or a public GitHub repo URL into ModelRot's free scanner. It lists every file and line that uses gpt-5.1-codex-mini or any other retiring model, with the replacement and cost change.