OpenAI · model

gpt-5.1-codex-mini deprecation: shutdown date & replacement

Shut down July 23, 2026
Provider
OpenAI
Type
model
Announced
Shutdown
Replacement
gpt-5.6-terra
Source
Official OpenAI notice

How to migrate off gpt-5.1-codex-mini

  1. Find every place that references it:
    grep -rn --exclude-dir={node_modules,.git,dist} "gpt-5.1-codex-mini" .
  2. Replace the model ID:
    - model: "gpt-5.1-codex-mini"
    + model: "gpt-5.6-terra"
  3. Re-run your evals or a sample of real prompts — output style, token usage and pricing can change between models.
  4. Check config outside code too: environment variables, feature flags, prompt-management tools, and fine-tuned model references.
  5. Deploy before July 23, 2026, and add the CI scanner so it cannot come back.

Also shutting down on July 23, 2026 (OpenAI)

Questions

Is gpt-5.1-codex-mini deprecated?

Yes. OpenAI has deprecated gpt-5.1-codex-mini. It was shut down on July 23, 2026.

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

July 23, 2026, according to OpenAI's official deprecation notice.

What should I use instead of gpt-5.1-codex-mini?

OpenAI recommends gpt-5.6-terra. Switch the model ID and re-test your prompts, since outputs, pricing and limits can differ.

What happens to requests to gpt-5.1-codex-mini after the shutdown?

Requests using the retired model ID fail with an error, so any code still calling it breaks. Update and deploy before the shutdown date.

ModelSunset Alerts

Hear about a shutdown before your users do

Tell us which models and providers you depend on. We email you (or ping Slack) the day a deprecation is announced, and again 90, 30 and 7 days before shutdown.

  • Watchlist of up to 50 models across all providers
  • Instant alert when a new deprecation is published
  • Reminders 90 / 30 / 7 days before shutdown
  • Slack and email, weekly digest for your team

$5/ month

Early access pricing. Cancel anytime. Payments by Creem.