On the OpenAI API, gpt-5, gpt-5-mini and gpt-5-nano (and their -2025-08-07 snapshots), gpt-5-pro, o3 and o3-pro shut down on 11 December 2026; OpenAI says a shut-down model no longer accepts requests through the standard API, and fine-tunes of them stop on the same date. OpenAI's recommended replacements: gpt-5 → gpt-6.2-sol, gpt-5-mini → gpt-6.1-terra, gpt-5-nano → gpt-6-luna, gpt-5-pro/o3-pro → gpt-6.2-sol with reasoning.mode: pro in the Responses API, o3 → gpt-6.2-sol. Before switching: replace reasoning effort minimal with low (GPT-6.2 Sol also rejects none), remove temperature, top_p and logprobs, and move tool calling to the Responses API for GPT-6.2 Sol and GPT-6.1 Terra (GPT-6 Luna allows Chat Completions tools only with reasoning effort none). List prices go up for mini and nano (GPT-5 mini $0.25 / $2 → GPT-6.1 Terra $1 / $5 per million tokens). Lovable's built-in AI retires the same three models on 11 Dec at 00:00 UTC but routes them to GPT-5.6 Sol, Terra and Luna, which cost more per token than OpenAI's recommended GPT-6 replacements, so pick a model yourself.
What shuts down, when, and what replaces it
OpenAI announced on 11 June 2026 that six reasoning models would shut down on 11 December 2026. Its deprecations page defines a shut-down model as one that "no longer accepts requests through the standard API", and says fine-tuned versions of these models follow the same schedule as their base model. OpenAI's policy gives at least six months' notice for generally available models and emails customers who actively use a model when it's deprecated.
| Model IDs | Shutdown | OpenAI's recommended replacement |
|---|---|---|
gpt-5, gpt-5-2025-08-07 | 11 Dec 2026 | gpt-6.2-sol |
gpt-5-mini, gpt-5-mini-2025-08-07 | 11 Dec 2026 | gpt-6.1-terra |
gpt-5-nano, gpt-5-nano-2025-08-07 | 11 Dec 2026 | gpt-6-luna |
gpt-5-pro, gpt-5-pro-2025-10-06 | 11 Dec 2026 | gpt-6.2-sol with reasoning.mode: pro in the Responses API |
o3, o3-2025-04-16 | 11 Dec 2026 | gpt-6.2-sol |
o3-pro, o3-pro-2025-06-10 | 11 Dec 2026 | gpt-6.2-sol with reasoning.mode: pro in the Responses API |
Not on this list: gpt-5.1 (shuts down 1 April 2027) and GPT-4o / GPT-4.1 snapshots (14 January 2027). OpenAI doesn't publish a time of day for the 11 December shutdown or the exact error a request gets afterwards, so treat 10 December as your last safe day.
Is my app affected? Find the model ID
You're affected if your app calls the OpenAI API with your own key and asks for one of the IDs above. In AI-built apps that call usually sits in server-side code: a Supabase Edge Function (common in Lovable and Bolt apps with their own Supabase), a Next.js or Express API route, a Cloudflare Worker, or an automation. The model name can also live in an environment variable such as OPENAI_MODEL.
Lovable apps that use Lovable's built-in AI (no OpenAI key of your own) follow Lovable's schedule instead; see the Lovable section below.
- Search the code with the command below. It matches
gpt-5,gpt-5-mini,gpt-5-nano,gpt-5-pro, dated snapshots, gateway-style IDs likeopenai/gpt-5-mini,o3ando3-pro, but notgpt-5.1,gpt-5.6-soloro3-mini. - Check environment variables and secrets on your host and in Supabase for a variable that holds the model name.
supabase secrets listonly shows names and digests, so look at what your code reads. - Ask the API: OpenAI's deprecations page says the List models (
GET /v1/models) and Retrieve a model endpoints return an optionalshutdown_datefield for each model (example in the test section below). - Check your inbox: OpenAI says it emails customers actively using a model when it announces the deprecation.
# ripgrep (rg)
rg -n "gpt-5(-mini|-nano|-pro)?(-20[0-9]{2}-[0-9]{2}-[0-9]{2})?([\"'\`]|\$)|[\"'/=]o3(-pro)?(-20[0-9-]+)?([\"'\`]|\$)" .
# grep
grep -rnE "gpt-5(-mini|-nano|-pro)?(-20[0-9]{2}-[0-9]{2}-[0-9]{2})?([\"'\`]|$)|[\"'/=]o3(-pro)?(-20[0-9-]+)?([\"'\`]|$)" --exclude-dir=node_modules . Switch without new errors: what changes
Changing the model string is most of the job, but OpenAI's GPT-6.2 migration guide and the replacement model pages list settings that GPT-5-era code often sends and the new models handle differently.
| If your code… | On the replacement | Change it to |
|---|---|---|
Sends reasoning effort minimal (GPT-5 accepted minimal, low, medium, high) | minimal isn't in the supported list of GPT-6.2 Sol, GPT-6.1 Terra or GPT-6 Luna | low (OpenAI's guide: if you use none or minimal, use low) |
Sends reasoning effort none to gpt-6.2-sol | OpenAI: "The API rejects requests that set reasoning effort to none" | low or higher (GPT-6.1 Terra and GPT-6 Luna do accept none) |
Sends temperature, top_p, logprobs or top_logprobs | OpenAI's migration guide says to omit them | Remove them; steer output with the prompt |
Calls tools (function calling) through Chat Completions with gpt-6.2-sol or gpt-6.1-terra | OpenAI: tool calling requires the Responses API | Move that call to /v1/responses (example below) |
Calls tools through Chat Completions with gpt-6-luna | Supported only with reasoning_effort set to none | Set reasoning_effort: "none" or move to the Responses API |
Uses gpt-5-pro or o3-pro | No separate pro model ID | gpt-6.2-sol with reasoning.mode: pro in the Responses API |
Sets prompt_cache_retention (moving to gpt-6.2-sol) | Replaced for GPT-6.2 when migrating from GPT-5.5 or earlier | prompt_cache_options.ttl set to "30m" |
Plain text calls through Chat Completions with no tools keep working on all three replacements; OpenAI lists Chat Completions as supported for each. OpenAI's GPT-6.2 guide also notes that GPT-6.2 Astra writes more concisely by default, so re-read prompts that say "be concise" after switching.
Before and after: a typical AI-builder call
This is a common pattern in AI-generated backends: Chat Completions with gpt-5-mini, minimal reasoning and a tool. The after version follows OpenAI's migration guide for gpt-6.1-terra. Keep your own prompt, tools and error handling; this only shows the fields that change.
// BEFORE (GPT-5 mini): stops working on 11 Dec 2026
const completion = await openai.chat.completions.create({
model: "gpt-5-mini",
reasoning_effort: "minimal",
messages: [{ role: "user", content: prompt }],
tools: [{ type: "function", function: { name: "lookup_order", parameters: schema } }],
});
const text = completion.choices[0].message.content;
// AFTER (GPT-6.1 Terra): tools need the Responses API
const response = await openai.responses.create({
model: "gpt-6.1-terra",
reasoning: { effort: "low" },
input: prompt,
tools: [{ type: "function", name: "lookup_order", parameters: schema }],
});
const text = response.output_text;
// No tools? Chat Completions still works; just change these two fields:
// model: "gpt-6.1-terra", reasoning_effort: "low" In the Responses API, function tools are flat (name and parameters at the top level, not under function) and tool calls come back as items in response.output, so the code that runs your function and sends its result back (as a function_call_output item with the same call_id) also changes. Responses also tries strict mode when you omit strict; set strict: false to keep Chat Completions behaviour. OpenAI's "Migrate to the Responses API" guide covers that loop. If you can't move a tool-calling gpt-5-nano call before the deadline, gpt-6-luna with reasoning_effort: "none" keeps it on Chat Completions.
What it costs after the switch
| Model | Input | Cached input | Output |
|---|---|---|---|
| GPT-5 (retiring) | $1.25 | $0.125 | $10 |
| GPT-6.2 Sol (OpenAI's replacement for GPT-5) | $2 | $0.10 | $10 |
| GPT-5.6 Sol (Lovable's reroute for GPT-5) | $4 (see note) | $0.40 | $20 (see note) |
| GPT-5 mini (retiring) | $0.25 | $0.025 | $2 |
| GPT-6.1 Terra (OpenAI's replacement for GPT-5 mini) | $1 | $0.05 | $5 |
| GPT-5.6 Terra (Lovable's reroute for GPT-5 mini) | $2 | $0.20 | $12 |
| GPT-5 nano (retiring) | $0.05 | $0.005 | $0.40 |
| GPT-6 Luna (OpenAI's replacement for GPT-5 nano) | $0.10 | $0.01 | $0.50 |
| GPT-5.6 Luna (Lovable's reroute for GPT-5 nano) | $0.20 | $0.02 | $1.20 |
Our arithmetic on OpenAI's list prices: moving from GPT-5 mini to GPT-6.1 Terra is 4× the input price and 2.5× the output price; from GPT-5 nano to GPT-6 Luna, 2× and 1.25×. GPT-5 to GPT-6.2 Sol keeps output at $10 and raises input by 60%. Token counts and reasoning length also change with the model, so compare a day of real usage after switching rather than trusting the per-token table.
Note on GPT-5.6 Sol: OpenAI's model and pricing pages describe $4 / $20 as promotional pricing "available until November 30, 2026". On 1 December the pages still showed $4 / $20 and didn't state the price after the promotion. The page calls $4 / $20 a 20% input and 33% output reduction, which would put the regular price around $5 / $30; that's our arithmetic, not a published figure.
GPT-6.2 Sol and GPT-6.1 Terra also bill cache writes ($2.50 and $1.25 per million tokens for 30-minute retention), and requests over 272K input tokens cost more. Check OpenAI's pricing page for your exact usage.
Lovable apps: rerouted to GPT-5.6 on 11 December
Apps built in Lovable can call OpenAI models through Lovable's built-in AI connector, without an OpenAI account. Lovable's deprecated-models page lists GPT-5, GPT-5 mini and GPT-5 nano retiring there on 11 December 2026, at 00:00 UTC per the same page. After that Lovable sends GPT-5 requests to GPT-5.6 Sol, GPT-5 mini to GPT-5.6 Terra and GPT-5 nano to GPT-5.6 Luna, so the feature keeps running without a code change.
The catch is cost. Those GPT-5.6 models are not OpenAI's recommended replacements, and their list prices are higher (table above). Lovable bills AI usage in credits at rates based on the provider's model costs, so a rerouted feature can cost more per request. Lovable's own page says a replacement "is not a model you chose" and recommends picking a newer generation yourself. Its chat models page lists GPT-6.2 Sol, GPT-6.1 Terra and GPT-6 Luna, so you can ask for OpenAI's recommended replacements. On Enterprise, GPT-6.1 Terra is available only after an admin enables Extended-retention models.
Lovable says it emails project owners whose apps call a model with a retirement date, and doesn't change the model in your code by itself. To switch: open More → AI in the project to see which model each request uses, then prompt the project chat, for example "Switch every GPT-5, GPT-5 mini and GPT-5 nano call in this app to GPT-6.2 Sol, GPT-6.1 Terra and GPT-6 Luna", publish, and test the feature. If your Lovable app calls OpenAI with your own key in a Supabase Edge Function instead, the OpenAI API date and changes above apply.
| Model | Retires in Lovable | After that date |
|---|---|---|
| GPT Image 1 Mini | 1 Dec 2026 | Requests go to GPT Image 2.5 Flare |
| GPT-5 | 11 Dec 2026 | Requests go to GPT-5.6 Sol |
| GPT-5 mini | 11 Dec 2026 | Requests go to GPT-5.6 Terra |
| GPT-5 nano | 11 Dec 2026 | Requests go to GPT-5.6 Luna |
| GPT-4o mini TTS | 6 Jan 2027 | Requests fail |
Test the new model before you deploy
Send one request with the new model ID and your real prompt before you change production. Set OPENAI_API_KEY in your terminal first. A 200 response means the ID and settings are accepted. The second command reads a model's shutdown_date, which OpenAI documents as an optional field. Then deploy the function (for Supabase: supabase functions deploy <name>) and run the feature once in the live app.
# 1. Does the replacement accept your settings?
curl https://api.openai.com/v1/chat/completions \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6.1-terra",
"reasoning_effort": "low",
"messages": [{"role": "user", "content": "Say hello"}]
}'
# 2. When does a model shut down? (look for shutdown_date)
curl https://api.openai.com/v1/models/gpt-5-mini \
-H "Authorization: Bearer $OPENAI_API_KEY" Confirmed vs not published
| Question | Status |
|---|---|
| gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-pro, o3, o3-pro and their snapshots shut down on the OpenAI API on 11 Dec 2026 | Confirmed (OpenAI deprecations page, notice date 11 Jun 2026) |
| Recommended replacements gpt-6.2-sol, gpt-6.1-terra, gpt-6-luna | Confirmed (OpenAI deprecations page) |
| Reasoning effort, unsupported parameters and Responses-only tool calling | Confirmed (OpenAI Using GPT-6.2 guide and model pages for GPT-6.2 Sol, GPT-6.1 Terra, GPT-6 Luna) |
| List prices in the cost table | Confirmed (OpenAI pricing and model pages, 1 Dec 2026) |
| GPT-5.6 Sol price after its promotion ended on 30 Nov 2026 | Not published; pages still showed $4 / $20 on 1 Dec |
| Lovable retires GPT-5, GPT-5 mini and GPT-5 nano on 11 Dec 2026 00:00 UTC and reroutes to GPT-5.6 Sol, Terra and Luna | Confirmed (Lovable deprecated models page) |
| How many Lovable credits a rerouted request costs | Not published per model; Lovable says rates are based on provider model costs |
| Time of day of the OpenAI API shutdown and the exact error returned | Not published |
| How Azure OpenAI, Vercel AI Gateway, OpenRouter and other gateways handle these IDs | Not checked; they set their own schedules, see your provider's model list |
Common questions
When does GPT-5 stop working in the OpenAI API?
On 11 December 2026. The shutdown covers gpt-5, gpt-5-mini, gpt-5-nano and their 2025-08-07 snapshots, plus gpt-5-pro, o3 and o3-pro. OpenAI doesn't publish a time of day, so switch by 10 December.
What should I replace gpt-5-mini with?
OpenAI recommends gpt-6.1-terra. Replace reasoning effort minimal with low, remove temperature and top_p, and move tool calling to the Responses API. It costs $1 input and $5 output per million tokens versus $0.25 and $2 for GPT-5 mini.
Can I just change gpt-5 to gpt-6.2-sol?
Only if the request sends no reasoning effort of minimal or none, no temperature, top_p or logprobs, and doesn't call tools through Chat Completions. Otherwise fix those settings in the same change.
Is gpt-5.1 also shutting down on 11 December?
No. OpenAI lists gpt-5.1 for shutdown on 1 April 2027. The 11 December date covers gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-pro, o3 and o3-pro.
Does this affect my Lovable app?
If it uses Lovable's built-in AI, Lovable retires GPT-5, GPT-5 mini and GPT-5 nano on 11 December 2026 at 00:00 UTC and routes them to GPT-5.6 Sol, Terra and Luna. The app keeps working, but those models have higher list prices than OpenAI's recommended GPT-6 replacements, so ask Lovable to switch to a model you choose and publish again.
How do I check a model's shutdown date from code?
Call GET /v1/models or GET /v1/models/{model} and read the optional shutdown_date field, which OpenAI documents for this purpose.
Related on VibeLiftoff
- Claude Sonnet 4.5 retirement (30 Nov 2026)
- Fix: environment variables missing after export
- Fix: Stripe webhook in a Supabase Edge Function
- Lovable managed Google Maps credits
- Vercel 413 FUNCTION_PAYLOAD_TOO_LARGE
- Lovable: deploy options
- Custom domain cost & setup by builder
- Vercel Hobby commercial use explained
- Replit deployment costs & spend caps
- Supabase vs Neon vs Firebase vs Turso
- Supabase 42501 on new tables (Oct 30 change)
- Vercel Hobby Data Cache → Runtime Cache (29 Nov)
- Cursor Live Apps: built-in hosting explained
- Netlify Server: Express and WebSockets on Netlify
- Supabase CLI v3: --remote, --yes and the new errors
- Cloudflare Workers spending limit
- Vercel Security Review: setup and cost
- Vercel build minutes: Standard builds now billed
- vercel.toml: convert vercel.json
- Cloudflare Email Sending on the free plan
- Cloudflare Search for Agents