Why did the AI feature in my Lovable app stop working?

By Arif Khan, AIVolve LLC · Updated November 30, 2026

"The AI chat in my Lovable app worked last week. Now it just spins or shows an error, and I did not change anything. What happened?"

Short answer: Open the project and go to More → AI. The AI activity list shows every AI request your app made, with its status, the model it used and what it cost, so you can see whether requests are failing. The most common cause is credits: when the monthly AI grant and your general credits are both used up, your app's AI requests fail with a 402 Payment Required error, and Lovable shows no message for the failed calls themselves. Other causes are a usage limit, too many requests per minute (429 Too Many Requests), a retired model, a request setting the replacement model rejects, an admin turning the AI connector off, or a fix that was never published. Each has a different fix, and the table below matches what you see to the cause.

Start with the AI activity list

Lovable's docs describe a per-project dashboard for your app's AI features:

Lovable reads this activity too, so you can ask it in the project chat why requests are failing. If the list shows no requests at all while your app's AI feature is failing, the request is not reaching Lovable's AI connector. Look at the last two rows of the table.

What you see, and what usually causes it

What you see Likely cause What to do
Requests fail with 402 Payment Required The workspace has no credits left for AI: the monthly AI grant and your general credits are both used up A workspace admin or owner adds credits or turns on auto top-up in Workspace settings → Plans & credit usage (on Free, upgrade). AI features start working again within a few seconds.
AI stopped at a set amount, but credits remain A usage limit on the project or workspace blocks AI or run usage A workspace admin or owner raises or removes it in Workspace settings → Usage limits & alerts.
Some requests fail with 429 Too Many Requests at busy times The workspace rate limit, counted in requests per minute Make fewer AI calls per user action. On Free, upgrade; on paid plans, ask Lovable support for more capacity.
The error names the model and its retirement date The model is retired and Lovable rejects requests for it Ask Lovable to switch to a current model, then publish.
Claude Haiku 4.5 requests fail from December 2, 2026 Haiku 4.5 is retired and requests go to Claude Haiku 5.5, which rejects some settings, such as a custom temperature Switch to a current model, then publish. See the Haiku 4.5 alert.
AI stopped in every app in the workspace at once An admin disabled the built-in AI connector (AI Gateway), or an optional provider such as ElevenLabs that those features use A workspace admin or owner enables it again in Connectors.
Works in the preview, not on the live site The change was never published Publish. The live site keeps the version you last published.
No AI requests at all, and sign-in and data are broken too The backend is paused, which stops edge functions, including AI in older apps Wake the backend up. See our paused backend guide.

Two rarer cases: if a workspace admin turned on EU inference, your app can only use models that run in the European Union, and a request for any other model fails with an error. On Enterprise plans, the Claude models and some others need an admin to enable Extended-retention models first.

Why it seems to break "for no reason"

Retired models: the December dates to know

Lovable lists every model it is retiring on its deprecated models page, with what happens to your app's requests after the date. A retired model is either replaced (requests go to another model, which can cost a different amount and respond differently) or rejected (requests fail with an error that names the model and its retirement date). Lovable does not change the model in your app's code on its own. It emails the owner of every project whose app calls the model once a retirement date is set.

Dates on Lovable's list in the next few weeks:

Retirement happens at 00:00 UTC on the date. After it, the AI activity list shows the replacement model for redirected requests, so check which models your app uses before the date.

Fix it in five steps

  1. Open More → AI. Pick a time range that covers when it broke, look at Success rate, and open a failed entry. Note the model and, if AI app context is on, the error that came back.
  2. Check credits. Open Workspace settings → Plans & credit usage. Hold the pointer over the info icon next to Free usage included to see how much of the monthly AI grant is left. Usage details → Run credits shows AI usage by project.
  3. Check limits. A workspace admin or owner opens Workspace settings → Usage limits & alerts and looks for a project or workspace limit that blocks usage.
  4. Check the model. Compare the model from step 1 with Lovable's deprecated models page. Lovable's suggested prompt is "Replace any deprecated AI models in this app with current ones."
  5. Publish and test the live site. Until you publish, only the preview uses the change. Then use the AI feature on the published app, not just the preview, and check that a new entry shows a success status in More → AI.

A prompt for Lovable (Chat mode)

The AI feature in my published app stopped working. Do not change any code yet. 1. List every AI feature in this app, the file that calls the model, and the exact model name each one uses. 2. Look at the recent AI activity for failed requests and tell me the status codes and error messages. 3. Tell me whether any model this app uses is deprecated or retired, and whether any AI request sends temperature, top_p or top_k. 4. Tell me what a user sees when an AI request fails, and suggest a clear error message instead of an endless spinner. Wait for my approval before changing anything.

How to check you are done

  1. More → AI shows new requests with a success status, from the published app.
  2. Every model your app uses is a current one, not on Lovable's deprecated models page.
  3. No AI request to a Claude Haiku model sends temperature, top_p or top_k.
  4. Someone with billing access has a low-balance alert or auto top-up set, so the AI grant running out does not take the feature down on a weekend.
  5. When an AI request fails, your app tells the user what happened instead of spinning forever.

FAQ

Why does my Lovable app's AI return a 402 error?+

A 402 Payment Required error means your workspace is out of credits for AI. Your app's AI requests use the monthly AI grant first, then general credits, and fail when both are gone. A workspace admin or owner can add credits or turn on auto top-up in Workspace settings → Plans & credit usage, and AI features start working again within a few seconds.

Can I still build in Lovable while my app's AI features are down?+

Yes, often. Daily build credits pay for building in the editor, but not for AI features in your deployed app, which use the monthly AI grant and then general credits. That is why the editor can keep working while the AI feature on your live site fails.

Will my Lovable app break now that Claude Haiku 4.5 is retired?+

Since December 2, 2026 at 00:00 UTC, Lovable sends requests for Claude Haiku 4.5 to Claude Haiku 5.5. Requests that send settings Haiku 5.5 rejects, such as a custom temperature, now fail. Ask Lovable to switch your app to a current model and remove those settings, then publish.

Does Lovable switch my app to a new AI model automatically?+

No. Lovable does not change the model in your app's code on its own, and it keeps your current models when you ask for unrelated changes. On a model's retirement date, Lovable either sends its requests to a replacement model or rejects them, depending on the model.

Can I use my own OpenAI or Anthropic key so my app's AI does not use Lovable credits?+

Not with the built-in AI connector, which always runs through Lovable and bills your workspace credits. You can ask Lovable to call the provider directly from a backend function, with your key stored as a secret. The provider then bills you, and your app only uses Lovable Cloud usage to run the function.

Want a second pair of eyes?

An AI feature that fails quietly is often one of several loose ends in an app that looked finished. Our free X-ray takes about 2 minutes and needs no code or passwords. You get a plain-English verdict, and an AIVolve developer reviews every one within 1 business day. Get a free X-ray →

Related: Alert: Lovable retired Claude Haiku 4.5 on December 2 · Lovable app stopped working after credits ran out: how to wake up a paused backend · Where do I put my API key in Lovable so nobody can see it? · Lovable security findings before you publish: what to do

Written by Arif Khan, AIVolve LLC. VibeCoderSOS isn't affiliated with Lovable or Anthropic. Based on Lovable's documentation (AI features, deprecated models, credits and usage, out-of-credits recovery, usage limits and alerts, pausing the database, publishing) and Lovable's changelog of November 26, 2026, plus Anthropic's Claude Haiku 5.5 migration guide, checked on November 30, 2026. We have not tested these steps on a live Lovable project, and Lovable changes its product often, so follow the text in your project if it differs.

Need help?

AI feature still failing after these checks? A free X-ray tells you what works, what only looks done and what to fix first.

Get a free X-ray →