# Solution for "Your prepayment credits are depleted" in Android Studio

**URL:** <https://discuss.ai.google.dev/t/solution-for-your-prepayment-credits-are-depleted-in-android-studio/172680>\
**Category:** Google AI Studio\
**Tags:** rate-limits, ai-studio, gemini\
**Created:** [June 25, 2026, 7:45pm UTC](https://discuss.ai.google.dev/t/solution-for-your-prepayment-credits-are-depleted-in-android-studio/172680 "2026-06-25T19:45:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phil\_Burk](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/phil_burk/32/98222_2.png) [@Phil\_Burk](https://discuss.ai.google.dev/u/Phil_Burk)\
**Post date:** [June 25, 2026, 7:45pm UTC](https://discuss.ai.google.dev/t/solution-for-your-prepayment-credits-are-depleted-in-android-studio/172680/1 "2026-06-25T19:45:08Z")

</div>

I have AI Pro. But when using Android Studio I quickly hit a limit when asking Gemini for help.  
When I go to [https://ai.studio/projects](https://ai.studio/projects) I see that I have zero credits and it thinks I paid nothing.  
The problem is that Android Studio is using my free AIStudio key and not my paid AI Pro key.  
You need to remove the free key so it uses the paid key.

The fix was to:

1. Open the Agents window.
2. Click on the model menu in the bottom right. It may say “Default”, then select “Manage Models…”.
3. There are two tabs: “Gemini” and “Google AI Studio”. Select Gemini.
4. Verify that you have “Current plan: AI Pro” or whatever you paid for.
5. Now select the Google AI Studio" tab.
6. If you see an “API key” just delete it. That is a bad key for the free plan that is overriding your paid plan.
7. Click OK
8. Restart Android Studio

Now you should have the correct quotas from your paid plan.

---

<div class="post-metadata">

**Author:** ![system](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/system/32/1_2.png) [@system](https://discuss.ai.google.dev/u/system)\
**Post date:** [November 5, 2026, 6:42pm UTC](https://discuss.ai.google.dev/t/solution-for-your-prepayment-credits-are-depleted-in-android-studio/172680/2 "2026-11-05T18:42:39Z")

</div>

Closed on November 5, 2026, 6:42pm UTC

This thread was automatically closed 60 days after the last reply. If you are running into an issue, please create a new post.
