My gemini chatbot stops working in app. Gemini 1.5 Flash 404 Error

Hey everyone,

I’m running into a weird issue in Firebase Studio/Genkit. My chatbot works perfectly, but as soon as I make unrelated UI changes (like CSS or component names), the AI connection breaks.

The logs show this error: 404 Not Found: models/gemini-1.5-flash is not found for API version v1beta

I haven’t touched my genkit.ts or flow files, but it seems like the environment suddenly loses the mapping to the stable model and tries to call a v1beta endpoint that doesn’t exist.

Has anyone else experienced Firebase Studio “forgetting” the Gemini connection during frontend updates? Is there a way to hard-lock the API to a stable version?

Thanks for any help!

Read https://ai.google.dev/gemini-api/docs/pricing

Google has stoped Gemini 1.5 flash now.

You can switch different model

Did switching to a different AI version work for you. All mine say not found

2.5 gemini version is working for me!