Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Gemini API throws: "Image generation is not available in your country."

ilkerc
New Member

Hello,

Gemini image creation, which I have been using for about a month without any problems, started giving the following error a few days ago.

There is no problem during development (Turkey-Türkiye), but when I publish it to the server (France location), it gives the following error as I said.

 

{
"error": {
"code": 400,
"message": "Image generation is not available in your country.",
"status": "FAILED_PRECONDITION"
}
}

 

The Gemini API model I use is; "gemini-2.0-flash-exp"

It was working fine for about a month, but this problem has only been happening for a few days.

Thanks.

0 0 20
0 REPLIES 0