HappycapyGuide

By Connie · Last reviewed: April 2026 — pricing & tools verified · This article contains affiliate links. We may earn a commission at no extra cost to you if you sign up through our links.

Breaking News

OpenAI Deprecating 6 Codex Models Today (April 14) — Full Migration Guide

April 14, 2026 · 7 min read

TL;DR

  • 6 older Codex and GPT models are being retired by OpenAI today, April 14, 2026
  • Affected: code-davinci-002, code-cushman-001, text-davinci-002/003, and others
  • API calls to these models will return 404 errors after cutoff
  • Recommended replacements: gpt-5.3-codex for code; gpt-4.1-mini for text tasks
  • Retained models: gpt-5.4 and gpt-5.3-codex are NOT affected

Today, April 14, 2026, OpenAI is completing a deprecation cycle that removes six legacy Codex and GPT-3 era models from its API. If your applications, scripts, or integrations call any of the affected model IDs, they will break today. Here is everything you need to migrate cleanly.

Which Models Are Being Deprecated

The following model IDs will return HTTP 404 errors from the OpenAI API after April 14:

Deprecated ModelTypePrimary Use CaseRecommended Replacement
code-davinci-002CodexCode completion (legacy)gpt-5.3-codex
code-cushman-001CodexFast code completiongpt-5.3-codex
gpt-3.5-turbo-instruct-0914InstructInstruction following (legacy)gpt-4.1-mini
text-davinci-002GPT-3Text generationgpt-4.1-mini
text-davinci-003GPT-3Text generation (RLHF)gpt-4.1-mini
text-curie-001GPT-3Lighter text tasksgpt-4.1-nano

Which Models Are NOT Affected

To be clear about what remains available:

ModelStatusBest For
gpt-5.4Active — no changesGeneral reasoning, complex tasks
gpt-5.3-codexActive — no changesCode generation and review
gpt-4.1Active — no changesBalanced cost/performance
gpt-4.1-miniActive — no changesFast, low-cost instruction following
gpt-4.1-nanoActive — no changesLightest tasks, highest throughput
o3-miniActive — no changesSTEM reasoning, math, code logic

How to Find Affected Calls in Your Codebase

Run this command in your project root to surface all deprecated model strings:

grep -r "code-davinci-002\|code-cushman-001\|text-davinci-00\|text-curie-001\|gpt-3.5-turbo-instruct-0914" . --include="*.py" --include="*.js" --include="*.ts" --include="*.json" -l

This outputs every file containing deprecated model IDs. For a quick replacement on most code-focused files:

# Python (replace code-davinci-002 with gpt-5.3-codex)
sed -i 's/code-davinci-002/gpt-5.3-codex/g' your_file.py

# Node.js
sed -i 's/text-davinci-003/gpt-4.1-mini/g' your_file.js

Migration Guide by Use Case

Code Completion (code-davinci-002 / code-cushman-001)

These were the original Codex models, released in 2021. They're substantially outperformed by modern alternatives:

If you're calling the Codex API endpoint directly (rather than the chat completions endpoint), you need to switch to chat completions format. The Codex-style completions endpoint is also being retired with these models.

Text Generation (text-davinci-002/003, text-curie-001)

These are GPT-3 era completion models. The modern equivalents in the chat completions API are faster, cheaper, and better:

The key migration change: text completion models used a prompt-in, completion-out format. Chat models require messages format. Update your API calls to use messages: [{role: "user", content: your_prompt}] instead of passing a raw prompt string.

Instruct Format (gpt-3.5-turbo-instruct-0914)

This snapshot was the last instruct-format (non-chat) GPT-3.5 model. Migrate to gpt-4.1-mini, which offers the chat completions interface with equivalent or better instruction-following at lower latency and cost.

What Happens If You Miss the Deadline

After April 14, API calls to deprecated model IDs return HTTP 404 with error code `model_not_found`. Your application will receive an exception and fail. OpenAI does not auto-redirect deprecated model calls to successor models — the migration is on you.

If you're using an OpenAI client library (Python, Node, etc.), also check that you're on a recent version — older library versions may cache deprecated model lists and not handle the 404 cleanly.

Quick Migration Checklist

Want access to OpenAI, Anthropic, and Google models without juggling API keys?

Happycapy gives you GPT-4.1, Claude Opus 4.6, Gemini 3.1, and more in one workspace. No API key management — just the best model for each task.

Try Happycapy Free

Frequently Asked Questions

Which models are deprecated on April 14, 2026?

code-davinci-002, code-cushman-001, gpt-3.5-turbo-instruct-0914, text-davinci-002, text-davinci-003, and text-curie-001.

What should I migrate to for code tasks?

gpt-5.3-codex for direct replacement of legacy Codex models. gpt-4.1 or o3-mini for complex reasoning and algorithmic tasks.

What happens if I miss the deadline?

API calls to deprecated model IDs return HTTP 404 (model_not_found). Your application will break. OpenAI does not auto-redirect to replacement models.

SharePost on XLinkedIn
Was this helpful?

Get the best AI tools tips — weekly

Honest reviews, tutorials, and Happycapy tips. No spam.

Comments