Google AI Studio – Image generation failure, billing setup prompt, and API key persistence issues

Dear Google Support Team, I’m submitting a technical support request regarding issues encountered while using Google AI Studio and the Gemini API by a learner in an Google AI Professional course.

Issue Summary:

  1. Image Generation Failure: The image generation functionality fails to generate output and returns errors, even after waiting for more than 24 hours since initial setup.
  2. Billing Requirement Prompt: When attempting to use the default API key, a prompt appears stating: “Set up billing for project ‘Default Gemini Project’ to use key ‘Default Gemini API Key’”. Please verify whether an active Google Cloud billing account is required for image generation models within Google AI Studio.
  3. API Key Session/Persistence Issue: After linking an API key and briefly navigating away from or reloading Google AI Studio, the session loses the key association and continuously prompts the user to re-enter or import an API key.

Environment Details:

  • Service: Google AI Studio / Gemini API

Could you please review the account permissions, API quota limits, and the activation status of image generation capabilities for this project?

Hello @Ej_Aj ,

Please follow these troubleshooting steps:

  1. As noted in the official Gemini API Pricing and Gemini API Rate Limits & Usage Tiers, image generation models operate strictly on a pay-as-you-go paid tier. Unbilled projects will fail immediately with quota or permission errors.
  2. Follow the Gemini API Billing & Upgrading guide to link an active Google Cloud Billing account to a standard Google Cloud project (the auto-generated “Default Gemini Project” cannot be upgraded directly).
  3. Visit Google AI Studio API Keys to generate or select a key linked to your billed project. If you experience repeated key prompts upon reloading, ensure cookies and local site storage are enabled for aistudio.google.com (and disable strict privacy/ad-blocking extensions).