← All errors · Lovable

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.

Lovable AI: deprecated models (as listed by Lovable on Nov 3, 2026)
ModelTypeRetirement dateAfter the retirement dateReplacement
GPT Image 1 MiniImageDecember 1, 2026Requests go to replacementGPT Image 2.5 Flare
GPT-5ChatDecember 11, 2026Requests go to replacementGPT-5.6 Sol
GPT-5 miniChatDecember 11, 2026Requests go to replacementGPT-5.6 Terra
GPT-5 nanoChatDecember 11, 2026Requests go to replacementGPT-5.6 Luna
GPT-4o mini TTSText to speechJanuary 6, 2027Requests failNone (switch before the date)
GPT-4o mini TranscribeSpeech to textFebruary 26, 2027Requests failNone (switch before the date)
GPT-4o TranscribeSpeech to textFebruary 26, 2027Requests failNone (switch before the date)
GPT-5.4 NanoChatApril 1, 2027Requests go to replacementGPT-6 Luna
GPT-5.4 ProChatNot announcedRequests go to replacementGPT-5.5 Pro
GPT-5.2ChatNot announcedRequests go to replacementGPT-5.6 Sol
Gemini 2.5 ProChatOctober 20, 2026 (retired)Requests go to replacementGemini 3.8 Flash
Gemini 2.5 FlashChatOctober 20, 2026 (retired)Requests go to replacementGemini 3.8 Flash
Gemini 2.5 Flash LiteChatOctober 20, 2026 (retired)Requests go to replacementGemini 3.1 Flash Lite
Gemini 3.6 FlashChatNovember 19, 2026Requests go to replacementGemini 3.8 Flash
Gemini 3.7 FlashChatJanuary 28, 2027Requests go to replacementGemini 3.8 Flash
Gemini 2.5 Flash ImageImageMarch 15, 2027Requests go to replacementGemini 3 Pro Image
Gemini 3.5 FlashChatNot announcedRequests go to replacementGemini 3.8 Flash
Gemini 3.1 Flash ImageImageNot announcedRequests failNone (switch before the date)
Gemini 2.5 Flash Lite Preview TTSText to speechNot announcedRequests go to replacementGemini 2.5 Flash TTS
OpenAI API: upcoming shutdowns (Nov 2026 to Apr 2027)
Shutdown dateModel / systemRecommended replacement
Nov 30, 2026v1/prompts API and reusable prompt objectsMove prompt content into your application code
Nov 30, 2026Evals dashboard and API (read-only from Oct 31, 2026)See OpenAI's Promptfoo migration guide
Nov 30, 2026Agent Builder (ChatKit remains available)Agents SDK or ChatGPT Workspace Agents
Dec 1, 2026gpt-image-1-minigpt-image-2.6-sunburst or gpt-image-2.6-flare
Dec 1, 2026gpt-image-1.5, gpt-image-1.5-2025-12-16gpt-image-2.6-sunburst or gpt-image-2.6-flare
Dec 1, 2026chatgpt-image-latestgpt-image-2.6-sunburst or gpt-image-2.6-flare
Dec 11, 2026gpt-5, gpt-5-2025-08-07gpt-6.1-sol
Dec 11, 2026gpt-5-mini, gpt-5-mini-2025-08-07gpt-6.1-terra
Dec 11, 2026gpt-5-nano, gpt-5-nano-2025-08-07gpt-6-luna
Dec 11, 2026gpt-5-pro, gpt-5-pro-2025-10-06gpt-6.1-sol (reasoning.mode: pro)
Dec 11, 2026o3, o3-2025-04-16gpt-6.1-sol
Dec 11, 2026o3-pro, o3-pro-2025-06-10gpt-6.1-sol (reasoning.mode: pro)
Jan 6, 2027tts-1, tts-1-hdgpt-realtime-2.1-mini
Jan 6, 2027gpt-4o-mini-tts (2025-03-20 and 2025-12-15 snapshots)gpt-realtime-2.1-mini
Jan 6, 2027Creating new fine-tuning jobs (active existing customers)Inference on fine-tuned models continues until the base model is deprecated
Jan 14, 2027gpt-4o-2024-08-06, gpt-4o-2024-11-20gpt-6-luna
Jan 14, 2027gpt-4o-mini-2024-07-18gpt-6-luna
Jan 14, 2027gpt-4.1-2025-04-14gpt-6-luna
Jan 14, 2027gpt-4.1-mini-2025-04-14gpt-6-luna
Jan 20, 2027gpt-realtime, gpt-realtime-2025-08-28, gpt-4o-realtimegpt-realtime-2.1
Jan 20, 2027gpt-realtime-mini, gpt-realtime-mini-2025-12-15, gpt-4o-mini-realtimegpt-realtime-2.1-mini
Jan 20, 2027gpt-audio, gpt-audio-2025-08-28, gpt-4o-audio, gpt-audio-mini, gpt-audio-mini-2025-12-15, gpt-4o-mini-audiogpt-audio-1.5
Jan 20, 2027gpt-4o-mini-transcribe-2025-03-20gpt-4o-mini-transcribe-2025-12-15
Feb 1, 2027gpt-5.5-cyber-previewThe most capable cyber model available to you
Feb 10, 2027gpt-image-2, gpt-image-2-2026-04-21gpt-image-2.6-sunburst or gpt-image-2.6-flare
Feb 26, 2027whisper-1, gpt-4o-transcribe, gpt-4o-mini-transcribe (incl. 2025-12-15), gpt-4o-transcribe-diarizegpt-live-transcribe or gpt-transcribe
Feb 26, 2027/v1/audio/translationsv1/realtime/translations
Apr 1, 2027gpt-5.3-codexgpt-6-sol
Apr 1, 2027gpt-5.4-nano, gpt-5.4-nano-2026-03-17gpt-6-luna
Apr 1, 2027gpt-5.1, gpt-5.1-2025-11-13gpt-6-sol
OpenAI API: already shut down on October 23, 2026
ModelSubstitute model
gpt-3.5-turbo, gpt-3.5-turbo-0125gpt-5.6-terra
gpt-4, gpt-4-0613gpt-5.6-sol
gpt-4-1106-previewgpt-5.6-sol
gpt-4-turbo, gpt-4-turbo-2024-04-09gpt-5.6-sol
gpt-4.1-nano, gpt-4.1-nano-2025-04-14gpt-5.6-luna
gpt-4o-2024-05-13gpt-5.6-sol
gpt-image-1gpt-image-2.5-sunburst or gpt-image-2.5-flare
o1, o1-2024-12-17gpt-5.6-sol
o1-pro, o1-pro-2025-03-19gpt-5.6-sol (reasoning.mode: pro)
o3-mini, o3-mini-2025-01-31gpt-5.6-sol
o4-mini, o4-mini-2025-04-16gpt-5.6-terra

Likely causes

How to 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:

    Replace any deprecated AI models in this app with current ones.
  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):

    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} .
  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):

    curl https://api.openai.com/v1/models/gpt-5-mini -H "Authorization: Bearer $OPENAI_API_KEY"
  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.

    const model = process.env.OPENAI_MODEL || 'gpt-5.6-terra';
  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.

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

More Lovable errors and fixes →

Get new fixes weekly

No spam. Unsubscribe anytime. Privacy