403 errors from the Gemini API in Workspace for Education accounts

I am getting 403 errors (“Your project has been denied access. Please contact support”) when calling the Gemini API after a first successful call. Context:

  • Happens in all my Workspace for Education accounts.
  • AI Studio-generated keys/projects do not work at all, even in the first call.
  • I need to create a GCP project, enable the API, create a service account, create a Gemini API key and bind it to the service account; then, the first API call works, but subsequent calls fail permanently with the aforementioned access denied to project error.
  • If I create a new GCP project, etc., the same behaviour manifests (the first call works, but subsequent ones fail).
  • If I use an API key created in AI Studio using a personal or Workspace for non-profits account, everything works fine in my code.
  • My Workspace for Education tenants are unrestricted regarding age-based access controls or AI Studio access.

Any ideas? :folded_hands: Any magic switch I am unaware of? Maybe billing needs to be enabled in edu-domain GCP projects to use the Gemini API?

all ym calls are failing as well. i tried creating a key w a regular gmail account and it worked… but my workspace didnt