Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gemini Flash Image Generation not working (gemini-2.0-flash-exp)

I was using google API to generate images and suddenly everything stopped working. I tried with 3 different keys and all return HTTP request failed! HTTP/1.1 404 Not Found, with this error message:

models/gemini-2.0-flash-exp-image-generation is not found for API version v1beta, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.

The url is still present in the documentation, so it's should still be in use:

https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash-exp-image-generation:generateContent

It's been 2 days already, I'm really confused about the reason why it stopped working. Doesn't seem to be a problem of the server. I tried v1 / v1beta and gemini-2.0-flash/ gemini-2.0-flash-exp but they all return the same error (also gemini-2.0-flash with billing returns 404). Did they just move everything on Vertex AI? The old documentation is still there though!

TA Matt

like image 373
Matt Avatar asked Sep 14 '25 12:09

Matt


1 Answers

According to the official statement, "gemini-2.0-flash-exp-image-generation is not currently supported in a number of countries in Europe, Middle East & Africa".

If you're geo-blocked, you options are:

  • Use a VPN

  • Use a third party provider like Image Router

like image 141
DaWe Avatar answered Sep 17 '25 18:09

DaWe