Lovable / OpenAI model retired or deprecated: retirement dates and replacements
What you see
In Lovable, your app's AI feature calls a model that has a Deprecated badge in Connectors → AI → Available models. After the retirement date, requests are either sent to a replacement model (the feature keeps working but can cost and respond differently) or rejected with an error that names the model and its retirement date. In your own OpenAI API code, calls that name a shut-down model stop working because the model is no longer accessible (for example gpt-4-turbo or o1 since October 23, 2026). Before that, OpenAI emails customers actively using a deprecated model.
What it means
Lovable AI: A deprecated model keeps working in apps that already use it until its retirement date. Lovable does not change the model in your app's code on its own; the app calls the deprecated model until you ask Lovable to switch. Lovable warns in the project chat: if you ask for a deprecated model it tells you, names the retirement date, and offers a current model. It also emails the owner of every project whose app calls the model, once a retirement date is set. On the retirement date at 00:00 UTC Lovable stops sending requests to the model. If the model is Replaced, requests go to a replacement model and the app keeps working without a code change, but the replacement can cost a different amount per request and respond differently. If the model is Rejected, requests fail with an error that names the model and its retirement date. Lovable routes retired requests to the nearest current model, which is not always the newest one for the job, so pick the model yourself and prefer a newer generation. Go by Lovable's dates, not the provider's: Lovable can retire a model before its provider does, and can deprecate a model even when its provider still offers it. OpenAI API (your own code): At shutdown the model or endpoint is no longer accessible. OpenAI notifies customers actively using a model by email and documents it on the deprecations page. Minimum notice is generally available models at least 6 months; specialized variants (chat-latest, codex, deep research) at least 3 months; preview models (the name contains "preview") can be retired with much shorter notice, such as 2 weeks. Fine-tuned versions follow the same shutdown schedule as their base models. Programmatic check: GET /v1/models (List models) and Retrieve a model return an optional shutdown_date field, a YYYY-MM-DD string, or null if none is announced.
| Model | Type | Retirement date | After the retirement date | Replacement |
|---|---|---|---|---|
| GPT Image 1 Mini | Image | December 1, 2026 | Requests go to replacement | GPT Image 2.5 Flare |
| GPT-5 | Chat | December 11, 2026 | Requests go to replacement | GPT-5.6 Sol |
| GPT-5 mini | Chat | December 11, 2026 | Requests go to replacement | GPT-5.6 Terra |
| GPT-5 nano | Chat | December 11, 2026 | Requests go to replacement | GPT-5.6 Luna |
| GPT-4o mini TTS | Text to speech | January 6, 2027 | Requests fail | None (switch before the date) |
| GPT-4o mini Transcribe | Speech to text | February 26, 2027 | Requests fail | None (switch before the date) |
| GPT-4o Transcribe | Speech to text | February 26, 2027 | Requests fail | None (switch before the date) |
| GPT-5.4 Nano | Chat | April 1, 2027 | Requests go to replacement | GPT-6 Luna |
| GPT-5.4 Pro | Chat | Not announced | Requests go to replacement | GPT-5.5 Pro |
| GPT-5.2 | Chat | Not announced | Requests go to replacement | GPT-5.6 Sol |
| Gemini 2.5 Pro | Chat | October 20, 2026 (retired) | Requests go to replacement | Gemini 3.8 Flash |
| Gemini 2.5 Flash | Chat | October 20, 2026 (retired) | Requests go to replacement | Gemini 3.8 Flash |
| Gemini 2.5 Flash Lite | Chat | October 20, 2026 (retired) | Requests go to replacement | Gemini 3.1 Flash Lite |
| Gemini 3.6 Flash | Chat | November 19, 2026 | Requests go to replacement | Gemini 3.8 Flash |
| Gemini 3.7 Flash | Chat | January 28, 2027 | Requests go to replacement | Gemini 3.8 Flash |
| Gemini 2.5 Flash Image | Image | March 15, 2027 | Requests go to replacement | Gemini 3 Pro Image |
| Gemini 3.5 Flash | Chat | Not announced | Requests go to replacement | Gemini 3.8 Flash |
| Gemini 3.1 Flash Image | Image | Not announced | Requests fail | None (switch before the date) |
| Gemini 2.5 Flash Lite Preview TTS | Text to speech | Not announced | Requests go to replacement | Gemini 2.5 Flash TTS |
| Shutdown date | Model / system | Recommended replacement |
|---|---|---|
| Nov 30, 2026 | v1/prompts API and reusable prompt objects | Move prompt content into your application code |
| Nov 30, 2026 | Evals dashboard and API (read-only from Oct 31, 2026) | See OpenAI's Promptfoo migration guide |
| Nov 30, 2026 | Agent Builder (ChatKit remains available) | Agents SDK or ChatGPT Workspace Agents |
| Dec 1, 2026 | gpt-image-1-mini | gpt-image-2.6-sunburst or gpt-image-2.6-flare |
| Dec 1, 2026 | gpt-image-1.5, gpt-image-1.5-2025-12-16 | gpt-image-2.6-sunburst or gpt-image-2.6-flare |
| Dec 1, 2026 | chatgpt-image-latest | gpt-image-2.6-sunburst or gpt-image-2.6-flare |
| Dec 11, 2026 | gpt-5, gpt-5-2025-08-07 | gpt-6.1-sol |
| Dec 11, 2026 | gpt-5-mini, gpt-5-mini-2025-08-07 | gpt-6.1-terra |
| Dec 11, 2026 | gpt-5-nano, gpt-5-nano-2025-08-07 | gpt-6-luna |
| Dec 11, 2026 | gpt-5-pro, gpt-5-pro-2025-10-06 | gpt-6.1-sol (reasoning.mode: pro) |
| Dec 11, 2026 | o3, o3-2025-04-16 | gpt-6.1-sol |
| Dec 11, 2026 | o3-pro, o3-pro-2025-06-10 | gpt-6.1-sol (reasoning.mode: pro) |
| Jan 6, 2027 | tts-1, tts-1-hd | gpt-realtime-2.1-mini |
| Jan 6, 2027 | gpt-4o-mini-tts (2025-03-20 and 2025-12-15 snapshots) | gpt-realtime-2.1-mini |
| Jan 6, 2027 | Creating new fine-tuning jobs (active existing customers) | Inference on fine-tuned models continues until the base model is deprecated |
| Jan 14, 2027 | gpt-4o-2024-08-06, gpt-4o-2024-11-20 | gpt-6-luna |
| Jan 14, 2027 | gpt-4o-mini-2024-07-18 | gpt-6-luna |
| Jan 14, 2027 | gpt-4.1-2025-04-14 | gpt-6-luna |
| Jan 14, 2027 | gpt-4.1-mini-2025-04-14 | gpt-6-luna |
| Jan 20, 2027 | gpt-realtime, gpt-realtime-2025-08-28, gpt-4o-realtime | gpt-realtime-2.1 |
| Jan 20, 2027 | gpt-realtime-mini, gpt-realtime-mini-2025-12-15, gpt-4o-mini-realtime | gpt-realtime-2.1-mini |
| Jan 20, 2027 | gpt-audio, gpt-audio-2025-08-28, gpt-4o-audio, gpt-audio-mini, gpt-audio-mini-2025-12-15, gpt-4o-mini-audio | gpt-audio-1.5 |
| Jan 20, 2027 | gpt-4o-mini-transcribe-2025-03-20 | gpt-4o-mini-transcribe-2025-12-15 |
| Feb 1, 2027 | gpt-5.5-cyber-preview | The most capable cyber model available to you |
| Feb 10, 2027 | gpt-image-2, gpt-image-2-2026-04-21 | gpt-image-2.6-sunburst or gpt-image-2.6-flare |
| Feb 26, 2027 | whisper-1, gpt-4o-transcribe, gpt-4o-mini-transcribe (incl. 2025-12-15), gpt-4o-transcribe-diarize | gpt-live-transcribe or gpt-transcribe |
| Feb 26, 2027 | /v1/audio/translations | v1/realtime/translations |
| Apr 1, 2027 | gpt-5.3-codex | gpt-6-sol |
| Apr 1, 2027 | gpt-5.4-nano, gpt-5.4-nano-2026-03-17 | gpt-6-luna |
| Apr 1, 2027 | gpt-5.1, gpt-5.1-2025-11-13 | gpt-6-sol |
| Model | Substitute model |
|---|---|
| gpt-3.5-turbo, gpt-3.5-turbo-0125 | gpt-5.6-terra |
| gpt-4, gpt-4-0613 | gpt-5.6-sol |
| gpt-4-1106-preview | gpt-5.6-sol |
| gpt-4-turbo, gpt-4-turbo-2024-04-09 | gpt-5.6-sol |
| gpt-4.1-nano, gpt-4.1-nano-2025-04-14 | gpt-5.6-luna |
| gpt-4o-2024-05-13 | gpt-5.6-sol |
| gpt-image-1 | gpt-image-2.5-sunburst or gpt-image-2.5-flare |
| o1, o1-2024-12-17 | gpt-5.6-sol |
| o1-pro, o1-pro-2025-03-19 | gpt-5.6-sol (reasoning.mode: pro) |
| o3-mini, o3-mini-2025-01-31 | gpt-5.6-sol |
| o4-mini, o4-mini-2025-04-16 | gpt-5.6-terra |
Likely causes
- Lovable: The app was built months ago on a model that now has a Deprecated badge and a retirement date, or you asked Lovable for a specific older model and the app still calls that model.
- Lovable: The retirement date passed and requests were rerouted: AI activity now shows a different model, and cost or output changed.
- Lovable: The retirement date passed for a "Requests fail" model (TTS, transcription, or Gemini 3.1 Flash Image) and the feature errors with the model name and its retirement date.
- Lovable: You assumed the provider's deprecation date applies, but Lovable's date is earlier.
- OpenAI API: A hardcoded model string in code (for example model: 'gpt-4-turbo') from an old tutorial or AI-generated code, or the model name lives in an env var (OPENAI_MODEL) or in config on Vercel or Supabase secrets.
- OpenAI API: A pinned dated snapshot of a model that is being retired, or a fine-tuned model whose base model is being retired.
- OpenAI API: A preview model retired on short notice.
- OpenAI API: AI coding tools (Cursor, Lovable, Bolt) often suggest older model names.
How to fix it
Lovable: Check which models your app uses. Open More → AI in the project; the AI activity list shows the model each AI request used. After a retirement date it shows the replacement model for redirected requests, so check before the date. Or ask Lovable in the project chat which models the app's AI features use.
Lovable: Compare those models against the table above and Lovable's deprecated models page.
Lovable: Ask Lovable to switch. You can paste this prompt, or name the model yourself (pick from Lovable's "Choosing a model" docs and prefer a newer generation). Lovable updates the backend code that calls the model; a different model can change cost per request:
Replace any deprecated AI models in this app with current ones.Lovable: Publish the change. Until you publish, only the preview uses the new model.
Lovable: Test the AI feature in the published app and confirm in AI activity that requests now show the new model.
OpenAI API: Find every model string in the repo, and also check .env files and your host's env vars (Vercel / Supabase Edge Function secrets):
grep -rnE "gpt-(3\.5|4|5)|\o[134](-mini|-pro)?\|gpt-image|tts-1|whisper-1|gpt-realtime|gpt-audio" --include=*.{js,ts,tsx,py} .OpenAI API: Check each model's shutdown date programmatically. List models and Retrieve a model return an optional shutdown_date field (YYYY-MM-DD, or null if none is announced):
curl https://api.openai.com/v1/models/gpt-5-mini -H "Authorization: Bearer $OPENAI_API_KEY"OpenAI API: Swap in the recommended replacement from the table. Prefer reading the model from one env var so the next swap is a one-line change. For gpt-5-pro, o3-pro and o1-pro replacements, OpenAI lists gpt-5.6-sol with reasoning.mode: pro.
const model = process.env.OPENAI_MODEL || 'gpt-5.6-terra';OpenAI API: Test before the shutdown date: run the feature in a preview deploy and compare output quality, cost and latency. Replacements can respond differently.
OpenAI API: For products, not models (prompts API, Agent Builder, Evals), follow OpenAI's migration guides linked in the sources.
Still stuck after trying this? Get it fixed for $49, or you don't pay.
FAQ
What does "Lovable / OpenAI model retired or deprecated: retirement dates and replacements" mean?
Lovable AI: A deprecated model keeps working in apps that already use it until its retirement date. Lovable does not change the model in your app's code on its own; the app calls the deprecated model until you ask Lovable to switch. Lovable warns in the project chat: if you ask for a deprecated model it tells you, names the retirement date, and offers a current model. It also emails the owner of every project whose app calls the model, once a retirement date is set. On the retirement date at 00:00 UTC Lovable stops sending requests to the model. If the model is Replaced, requests go to a replacement model and the app keeps working without a code change, but the replacement can cost a different amount per request and respond differently. If the model is Rejected, requests fail with an error that names the model and its retirement date. Lovable routes retired requests to the nearest current model, which is not always the newest one for the job, so pick the model yourself and prefer a newer generation. Go by Lovable's dates, not the provider's: Lovable can retire a model before its provider does, and can deprecate a model even when its provider still offers it. OpenAI API (your own code): At shutdown the model or endpoint is no longer accessible. OpenAI notifies customers actively using a model by email and documents it on the deprecations page. Minimum notice is generally available models at least 6 months; specialized variants (chat-latest, codex, deep research) at least 3 months; preview models (the name contains "preview") can be retired with much shorter notice, such as 2 weeks. Fine-tuned versions follow the same shutdown schedule as their base models. Programmatic check: GET /v1/models (List models) and Retrieve a model return an optional shutdown_date field, a YYYY-MM-DD string, or null if none is announced.
What usually causes it?
Lovable: The app was built months ago on a model that now has a Deprecated badge and a retirement date, or you asked Lovable for a specific older model and the app still calls that model. Lovable: The retirement date passed and requests were rerouted: AI activity now shows a different model, and cost or output changed. Lovable: The retirement date passed for a "Requests fail" model (TTS, transcription, or Gemini 3.1 Flash Image) and the feature errors with the model name and its retirement date. Lovable: You assumed the provider's deprecation date applies, but Lovable's date is earlier. OpenAI API: A hardcoded model string in code (for example model: 'gpt-4-turbo') from an old tutorial or AI-generated code, or the model name lives in an env var (OPENAI_MODEL) or in config on Vercel or Supabase secrets. OpenAI API: A pinned dated snapshot of a model that is being retired, or a fine-tuned model whose base model is being retired. OpenAI API: A preview model retired on short notice. OpenAI API: AI coding tools (Cursor, Lovable, Bolt) often suggest older model names.
How do I fix it?
1. Lovable: Check which models your app uses. Open More → AI in the project; the AI activity list shows the model each AI request used. After a retirement date it shows the replacement model for redirected requests, so check before the date. Or ask Lovable in the project chat which models the app's AI features use. 2. Lovable: Compare those models against the table above and Lovable's deprecated models page. 3. Lovable: Ask Lovable to switch. You can paste this prompt, or name the model yourself (pick from Lovable's "Choosing a model" docs and prefer a newer generation). Lovable updates the backend code that calls the model; a different model can change cost per request: 4. Lovable: Publish the change. Until you publish, only the preview uses the new model. 5. Lovable: Test the AI feature in the published app and confirm in AI activity that requests now show the new model. 6. OpenAI API: Find every model string in the repo, and also check .env files and your host's env vars (Vercel / Supabase Edge Function secrets): 7. OpenAI API: Check each model's shutdown date programmatically. List models and Retrieve a model return an optional shutdown_date field (YYYY-MM-DD, or null if none is announced): 8. OpenAI API: Swap in the recommended replacement from the table. Prefer reading the model from one env var so the next swap is a one-line change. For gpt-5-pro, o3-pro and o1-pro replacements, OpenAI lists gpt-5.6-sol with reasoning.mode: pro. 9. OpenAI API: Test before the shutdown date: run the feature in a preview deploy and compare output quality, cost and latency. Replacements can respond differently. 10. OpenAI API: For products, not models (prompts API, Agent Builder, Evals), follow OpenAI's migration guides linked in the sources.
Last checked against official docs on . Sources: Lovable docs: Replace deprecated AI models in your app, Lovable docs: AI features for your app, OpenAI API docs: Deprecations, OpenAI API reference: List models (shutdown_date).
Related errors
- Edge Function returned a non-2xx status code
- Environment variable is undefined in the browser
- Works locally but fails on Vercel
- Cursor: model is overloaded / slow requests
More Lovable errors and fixes →
Get new fixes weekly
No spam. Unsubscribe anytime. Privacy