Consumer suspended
Opened this issue · 7 comments
It seems google has caught on to this. My API key has been suspended and it looks like a couple others have too.
C:\Users\Nick>curl -H "Content-Type: application/json" -d "{\"contents\":[{\"parts\":[{\"text\":\"Write a story about a magic backpack\"}]}]}" -X POST https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=API_KEY
{
"error": {
"code": 403,
"message": "Permission denied: Consumer 'api_key:<API_KEY' has been suspended.",
"status": "PERMISSION_DENIED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "CONSUMER_SUSPENDED",
"domain": "googleapis.com",
"metadata": {
"service": "generativelanguage.googleapis.com",
"consumer": "projects/993395320710"
}
}
]
}
}
Dang, you're right.
For now, I just registered a new API key - it seems that Google is banning the key, not the account :)
Oh no. I'm out (temporary ip ban). Getting this from the API now:
Sorry...
We're sorry but your computer or network may be sending automated queries. To protect our users, we can't process your request right now. See https://support.google.com/websearch/answer/86640 for more information.
Several hours have passed, and the ban still hasn't been appealed. Using VPN/proxy now.
Yeah, the same thing is happening to me. Got an error 403.
Fixed by regenerating API keys as per #6 (comment)
Update
After few hours of running:
{
"error": {
"code": 429,
"message": "Resource has been exhausted (e.g. check quota).",
"status": "RESOURCE_EXHAUSTED"
}
}
Unable to generate new APIs. Getting: The caller does not have permission
.
Update
After few hours of running:
{ "error": { "code": 429, "message": "Resource has been exhausted (e.g. check quota).", "status": "RESOURCE_EXHAUSTED" } }
Unable to generate new APIs. Getting:
The caller does not have permission
.
I solved this by using another browser that had not logged into the Google AI platform yet. I used Firefox first, got the "The caller does not have permissions" error. Logged into Chrome, and generated a new key. We will see how long it lasts if they are banning them.
Tried with several browsers. Doesn't work for me.