I'm trying to build an AI chatbot on my website using a free Google Gemini API key, but it seems all of my Workspace accounts have been blocked or locked in relation to the API.

Hello, I contacted the Google Workspace and Cloud teams, and they told me to ask here…

First of all, we are trying to build an AI chatbot on our website using a free Google Gemini API key.

The steps we are following are solid… A group of us got together and decided to build them individually on our respective sites.

Other organizations completed theirs successfully without any API errors..

The general workflow is as follows:

  1. Write the content for Gemini to read and learn from in a Google Sheet.
  2. Click on “Extensions” at the top of the Google Sheet, then click “Apps Script”.
  3. Enter the necessary code (HTML) for the chatbot AI in Apps Script, including some Gemini test code to check for errors.
  4. Generate a Gemini API key and enter it under “Script Properties” in the Apps Script project settings.
  5. Go back to the Apps Script code and deploy it.
  6. Take the web app URL generated after deployment and insert it into the chatbot design code that will be displayed on the website. (You can test this on the web by saving the file in Notepad as an .html file with “All Files” selected).
  7. Give this Notepad code to the website management company and ask them to display it on the website, and you are done.

But I am getting stuck at step 3.

It gets blocked even when I use the Gemini test model code, and the same thing happens even if I switch to the OpenAI API with a ChatGPT test model.

403, 404, and 429 errors keep happening no matter how I modify the code…

I have tried every single troubleshooting method suggested.
(We are using Google Workspace Non-profit accounts and organizational accounts, and as for the API key, I even tried using a different personal account.)

  1. Changed the Gemini API key, changed the OpenAI API key - didn’t work.
  2. Generated and swapped in an API key from a brand new account - didn’t work.
  3. Tried in Chrome Incognito mode - didn’t work.
  4. Generated and used a Gemini API key from Google Cloud Console - didn’t work.
  5. I even registered a credit card (Google AI Studio, Google Cloud) just in case, but the same 403, 404, and 429 errors still pop up.

Even if it is not listed above, I have literally tried everything Google suggested to fix this…

So, my guess is that maybe all of our Workspace accounts have had their API access blocked or locked.

If anyone can help guide me through this, I can also share the code..

Please help me…

Even customer support told me to ask here now…

I really need your help… Please help me!!!

Is there really no way to lift the block or unlock it??!?!?!? Seriously!??!!?

I asked a friend to try it with the exact same code in the exact same way…

and it works perfectly for them without any errors…

Please help me