Error Code 400, Location : USA

Unable to use the API in my VPS located in USA.

Error :

 gunicorn[417039]: DEBUG: Error calling Gemini API: 400 FAILED_PRECONDITION. 

{'error': {'code': 400, 'message': 'User location is not supported for the API use.', 'status': 'FAILED_PRECONDITION'}}```

IPInfo:
{
  "ip": "redacted",
  "city": "Los Angeles",
  "region": "California",
  "country": "US",
  "loc": "34.0522,-118.2437",
  "org": "AS26666 Interserver, Inc",
  "postal": "90012",
  "timezone": "America/Los_Angeles",
  "readme": "https://ipinfo.io/missingauth"
}

Hi @sushant , Welcome to forum!!!

Thank you for providing the error details. The 400 FAILED_PRECONDITION error is due to billing not enabled on your Google AI Studio project. Please enable billing for the project and try the request again. If the issue persists after enabling billing, please let us know.

Thanks.