A DesaA
BuildShip2y ago
11 replies
A Desa

Gemini API location error

When I try to use the Gemini Text Editor node I get the following error

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

If I run the code to connect to Gemini API from the command line using curl and the same API key, it is a success. The user location is also supported for API use as per the Google documentation.
Was this page helpful?