I started getting 400 error in the last couple of days. I have been using it without problems before that. I tried with both Free and Paid keys, both are throwing the same error.
Also checked with a friend and he has the same issue.
export GEMINI_API_KEY=xxx
Doing a simple CURL →
“error”: {
“code”: 400,
“message”: “API key not valid. Please pass a valid API key.”,
“status”: “INVALID_ARGUMENT”,