Unexpected Billing due to Infinite Loop Code in Google AI Studio Build (Case 71759080)

Hello Gemini API Team,

I am writing this to report a critical issue and request assistance regarding my recent Gemini API billing. Google Cloud Billing Support directed me to report this bug here.

Issue Description:
I was using the Google AI Studio Build to create a web application. The AI agent automatically generated the application code. However, the code generated by the AI agent contained a logic flaw—specifically, an infinite loop logic around the Gemini API call using the genai SDK. The while statement failed to meet its break condition during the script generation loop.

Because I ran the code exactly as it was generated and provided by the Google AI Studio Build agent, this infinite loop caused an uncontrolled number of unexpected API calls in a short amount of time before I could stop it. This resulted in a very high, unexpected billing amount on my account.

Additional Evidence (Screen Recordings):
I have captured the actual bug behavior where the UI miscalculated the session costs and automatically triggered a massive API billing loop due to missing error-handling code.

Video 1:

Video 2:

Please escalate this to the Google AI Studio Build engineering team to investigate this UI counter discrepancy and autonomous retry loop.

Thank you.

Hello Google Cloud Support Team, I am following up on this issue. Could you please provide an update on my account status and the requested guidance on how to check the billing details? Thank you for your continued support.