Continuous Error: The model is overloaded

can someone please tell what the hell is this happening with gemini api ??
Any help is appreciated…!!

Error details: {
message: ‘[GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent: [503 Service Unavailable] The model is overloaded. Please try again later.’,
stack: ‘Error: [GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent: [503 Service Unavailable] The model is overloaded. Please try again later.\n’ +

2 Likes

[SIMILAR]

It’s possible to fix it by using the experimental model “gemini-exp-114”. I believe that Google allocated too many resources to the experimental model, possibly due to an imminent update.

1 Like

Getting the same error using genkit

1 Like

I was also getting same error . But when I go with gemni-1.5-pro it works for me.Its also free you just need to change model

1 Like

Also happening for me. What can we do to fix this?? My entire app relies on this API to scan and process images. I can afford for it to be offline like this. Using flutter, tried the official generative ai package from google and the flutter_gemini package. Nothing fixes it.

1 Like