OpenAI Model Shutdown Kit: gpt-5, o3, tts-1, gpt-4o, whisper-1 (Dec 2026 to Feb 2027)
OpenAI's deprecations page lists a wave of shutdowns:
- 11 December 2026: gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-pro, o3 and o3-pro.
- - 6 January 2027: tts-1, tts-1-hd and gpt-4o-mini-tts. The replacement, gpt-realtime-2.1-mini, isn't supported on /v1/audio/speech, so text-to-speech code has to move to the Realtime API.
- - 14 January 2027: the gpt-4o, gpt-4o-mini, gpt-4.1 and gpt-4.1-mini snapshots.
- - 20 January 2027: the gpt-realtime and gpt-audio models.
- - 26 February 2027: whisper-1 and the gpt-4o transcribe models, plus /v1/audio/translations.
Swapping the model string isn't enough. The GPT-6.2 models reject temperature, top_p and logprobs, gpt-6.2-sol rejects reasoning effort "none", tool calling on the new models needs the Responses API (gpt-6-luna allows it in Chat Completions only with reasoning_effort "none"), and three tts-1 voices (fable, onyx, nova) don't exist in Realtime.
What's inside:
- oai_scan.py: a read-only scanner. It finds all 50 retiring model IDs (and fine-tuned ft: models) in Python, JS/TS, YAML, TOML and .env files, plus /v1/audio/translations calls. It shows the shutdown date, days left and replacement for each. It won't confuse gpt-5 with gpt-5.1 or gpt-4o with gpt-4o-mini, and it flags the speech endpoint, missing voices, sampling parameters and reasoning effort "none" in affected files. CI exit codes; never prints line contents.
- - oai_check_models.py: asks GET /v1/models with your key for each model's official shutdown_date and flags any difference from the kit's table.
- - oai_adapt.py: adapt_request() rewrites Chat Completions and Responses payloads for gpt-6.2-sol, gpt-6.1-terra and gpt-6-luna. It strips the parameters OpenAI documents as unsupported, maps reasoning effort, moves prompt_cache_retention, and warns about tool calling.
- - tts_realtime.py: speak(), a replacement for audio.speech.create built on the Realtime WebSocket API with gpt-realtime-2.1-mini. It takes text, voice and speed and returns a WAV or PCM file. It requires an explicit mapping for missing voices, enforces the 0.25-1.5 speed range, and checks the spoken transcript against your text.
- - MIGRATION-GUIDE.md with before/after code for each date, CHECKLIST.md and 30 offline tests.
Honest limits:
- Built from OpenAI's docs as of 5 December 2026.
- - The live API calls follow OpenAI's documented shapes and are tested offline against fake servers. They weren't run against the live API: try one real call on your key first.
- - Realtime has no documented verbatim read-aloud mode, so word-for-word speech isn't guaranteed. The transcript check tells you when it drifts.
- - Python 3.9+, standard library only, except websocket-client for the TTS adapter.
Independent product. Not affiliated with OpenAI.