I’m encountering a strange issue with the Gemini image generation API.
When I make requests from Roanoke, Virginia, the API fails with the following error:
HTTP request failed! HTTP/1.1 404 Not Found
However, when I make the exact same request from Washington, Virginia, it works perfectly.
Here are the two locations:
- Roanoke, Virginia, United States
- Washington, Virginia, United States
I’m using the gemini-2.0-flash-exp-image-generation
model. Everything else in the request is identical — same endpoint, method, payload, and credentials. The only difference is the geographic origin.
This behavior is unexpected and suggests there may be a region-based restriction, IP filtering, or a routing issue affecting availability in some areas.
Could you please investigate this and let me know what’s going on?