Google AI Studio consistently displays “An internal error has occurred” after I select a paid API key.
Reproduction:
- Open a new AI Studio chat.
- Select my paid API key.
- Send a short text prompt without attachments.
- The request fails with “An internal error has occurred.”
The issue affects multiple models and reproduces on both:
- Desktop browser
- Mobile AI Studio web app over cellular data, independently of the desktop network
The API project has an available balance. The same API key works successfully in Paratranz, so the failure appears specific to AI Studio.
HAR findings:
- Host: alkalimakersuite-pa.clients6.googlecom
- CountTokens: OPTIONS preflight returns HTTP 403
- GenerateContent: OPTIONS preflight returns HTTP 403
- The GenerateContent POST fails with net::ERR_FAILED and no HTTP response.
- The preflight requests include x-aistudio-user-api-key in Access-Control-Request-Headers.
Please investigate why AI Studio’s CORS preflight requests are being rejected when a paid API key is selected. I can provide a sanitized HAR through a private support channel if needed.