Billing Setup Failure: 401 generateAccessToken / System Error

Hi,

I am unable to complete the Gemini API billing setup in Google AI Studio[cite: 1, 2]. Every attempt returns a “System error” modal, preventing my account from activating paid tier access[cite: 1, 7].

Account & Project Details:

  • Account Email: an…@gmail.com[cite: 2, 5]
  • GCP Billing Account ID: 0141CB-FA25EA-1DCB..[cite: 1, 2, 3]
  • Linked Project: Content Enrichment (gen-lang-client-0740382408)[cite: 2, 3]
  • Current Balance: -$100.00 credit balance (manual payment on Oct 6 in Console Google Cloud)[cite: 3]

Issue Description:
When attempting to click “Set up prepay” at AI Studio Google, the setup fails with a “System error” modal[cite: 1, 2, 7]. AI Studio continues to report “No prepayment method set up” despite the GCP billing account being active with credit[cite: 2, 3].

DevTools Console Log Errors:

  1. HTTP 401 Unauthorized on Token Generation:
    Failed to load resource: server responded with 401 () alkalisersuite…generateAccessToken[cite: 4]
  2. CSP Frame Restriction Error:
    Framing ‘ttps://accounts.google.com/’ violates Content Security Policy directive: "frame-ancestors “ttps://console.cloud.google.com”. The request has been blocked.[cite: 4]
  3. postMessage Cross-Origin Block:
    Failed to execute ‘postMessage’ on ‘DOMWindow’: Target origin provided (‘ttps://www.google.com’) does not match recipient window’s origin (‘ttps://aistudio.google.com’).[cite: 4]

Troubleshooting Already Performed:

  • Verified single Google account session (no multi-account conflicts)[cite: 5].
  • Explicitly enabled third-party cookies in Chrome settings[cite: 6].
  • Tested in Chrome Incognito mode with all browser extensions disabled[cite: 7].

Request:
My account appears stuck in a backend state lock between GCP Postpay and AI Studio Prepay provisioning[cite: 2, 3, 4]. Could you please manually trigger a billing state sync or reset the setup lock for Billing Account ID 0141CB-FA25EA-1DC..?

Thank you!

Hello @dechkov ,

Thanks for the detailed report. A payment made in the Google Cloud console doesn’t add AI Studio Prepay credits. Prepay is set up and funded separately in AI Studio (details). We’ve sent you a direct message to collect a few more details so we can look into the “System error”. Please don’t post your billing account ID publicly.

Hello @dechkov ,

Glad the new project is working. A payment made in the Google Cloud console is applied to your Google Cloud (postpay) charges. Gemini API usage on Prepay is paid only from credits bought on the AI Studio Billing page (details). For questions about the Cloud credit itself, including refunds, please contact Cloud Billing support.

Could you also confirm whether you were able to set up Prepay in AI Studio and buy credits from the AI Studio Billing page?