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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With