Hi Google AI Developers Community,
I’m developing HOMIX, a Swiss AI-powered platform for beauty salons. Our AI assistant uses the Gemini API to communicate with customers, provide consultations, and assist with appointment management.
We are experiencing persistent HTTP 403 Forbidden errors when sending Gemini API requests from our Linux VPS hosted in a Netherlands datacenter.
The issue is preventing us from reliably operating our AI assistant and completing our production readiness testing.
Technical environment
-
Backend: Python / FastAPI
-
Operating system: Ubuntu Linux
-
Infrastructure: Third-party VPS hosted in the Netherlands
-
Model tested:
gemini-2.5-flash -
Authentication: Gemini API key
-
Google API billing: Paid API usage enabled
Diagnostic results
| Environment | Result |
|---|---|
| Linux VPS | HTTP 403 Forbidden |
| macOS development machine | HTTP 200 OK |
| Google Cloud Shell (Vertex AI inference) | Successful |
| Google Cloud Run | Authenticated connectivity investigated separately |
On the VPS:
-
Model-listing requests returned HTTP 403.
-
Content-generation requests also returned HTTP 403.
-
Some responses were Google-generated HTML error pages instead of standard JSON API responses.
-
No application-level HTTP proxy was configured during our diagnostics.
The same API connectivity tests succeeded from our macOS development environment.
Our VPS hosting provider suggested that the datacenter IP address might be restricted by Google, but could not confirm this.
Questions
-
Could Google network-level security systems block legitimate Gemini API traffic originating from certain datacenter IP ranges?
-
How can we distinguish an IP/network restriction from API-key, project, billing, or regional restrictions?
-
Is there an official process to request a review of a potentially restricted VPS IP address?
-
Are HTML 403 error responses expected when Google security systems reject requests before they reach the Gemini API?
-
What additional diagnostics would help identify the root cause?
-
Is there a recommended supported architecture for reliable Gemini API access from a third-party VPS?
We would prefer to resolve the root cause rather than migrate our entire production infrastructure based on an unconfirmed hypothesis.
I can provide sanitized HTTP response details, request timestamps, and additional diagnostics if needed.
Any guidance from Google engineers or developers who have encountered similar behavior would be greatly appreciated.
Thank you!