Hello everyone,
First of all, I’d like to say that this is my first post, and I hope I’m not breaking any rules. I’ve tried searching for a solution to my problem but couldn’t find anything similar, so here it goes. Hopefully, someone can lend me a hand.
I have an app where (my mistake) I was calling the gemini-2.5-flash-preview-05-20
model, using its free tier (I don’t have a payment method added) from Google AI Studio.
This model was deprecated a few days ago, so when I realized it, I started looking for a free tier model that could replace it, but the documentation is a bit confusing. I’m seeing different model names on some pages compared to others.
The thing is, I’ve tried using the following names (endpoints):
gemini-2.5-flash-preview-04-17
gemini-2.5-flash-lite-preview-06-17
gemini-2.5-flash
And I’m sure I’m forgetting a few others. All of them return the same 500 error. I don’t know what else to try because I can’t find any other names, and I find it very strange that there isn’t another 2.5-flash endpoint available. Could it be that there’s no longer a free tier for this model, even though the documentation says there is?
I add more logs to my app and that’s what I can see:
message: “[GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent: [500] An internal error has occurred. Please retry or report in Troubleshooting guide | Gemini API | Google AI for Developers”
I also find it strange that no one else seems to be running into this problem, so it must be something on my end. That said, if I use the 2.0-flash
model, it does work.
Regards,
Santi.