I am not able to access gemini api from local environment. Shows "Consumer suspended"

Can anyone help me debug this error?

When trying to access Gemini API from local python environment, I am getting the following error:

raise ClientError(status_code, response_json, response)
google.genai.errors.ClientError: 403 PERMISSION_DENIED. {‘error’: {‘code’: 403, ‘message’: “Permission denied: Consumer ‘api_key:xxx’ has been suspended.”, ‘status’: ‘PERMISSION_DENIED’, ‘details’: [{‘@type’: ‘type.googleapis. com/google.rpc.ErrorInfo’, ‘reason’: ‘CONSUMER_SUSPENDED’, ‘domain’: ‘googleapis. com’, ‘metadata’: {‘consumer’: ‘projects/xx’, ‘containerInfo’: ‘api_key:xxx’, ‘service’: ‘generativelanguage. googleapis. com’}}, {‘@type’: ‘type.googleapis. com/google. rpc.LocalizedMessage’, ‘locale’: ‘en-US’, ‘message’: “Permission denied: Consumer ‘api_key:xxx’ has been suspended.”}]}}

I have verified my billing account and checked my account for any issues but could find any on the console.

HI @Sam4 ,

Thanks for reaching out!
Please try these steps :

  1. Try Incognito Mode: First, open a new Incognito (or Private) window.

  2. Check Your Google Account: Confirm that you are not logged into multiple Google Accounts (like a personal account and a work/school account).

  • Sign out of all Google Accounts in your browser.

  • Sign back in only with the personal account.

  1. Clear Cache and Cookies
  2. Disable Browser Extensions

Let us know if still the issue persists.