# PERMISSION\_DENIED

**URL:** <https://discuss.ai.google.dev/t/permission-denied/176199>\
**Category:** Google AI Studio\
**Tags:** gemini\
**Created:** [July 27, 2026, 4:05am UTC](https://discuss.ai.google.dev/t/permission-denied/176199 "2026-07-27T04:05:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tao\_Chen\_668](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/tao_chen_668/32/24668_2.png) [@Tao\_Chen\_668](https://discuss.ai.google.dev/u/Tao_Chen_668)\
**Post date:** [July 27, 2026, 4:05am UTC](https://discuss.ai.google.dev/t/permission-denied/176199/1 "2026-07-27T04:05:59Z")

</div>

The API key regenerated in Android Studio → Settings → Tools → Model Providers → Google AI Studio → Get a Gemini API key is causing an error when used in the Agent: “Model query failed: PERMISSION\_DENIED: Your account is not eligible for this service at this time.” Please let me know the cause. Thank you.

---

<div class="post-metadata">

**Author:** ![Payal\_Sharma2](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/payal_sharma2/32/31911_2.png) [@Payal\_Sharma2](https://discuss.ai.google.dev/u/Payal_Sharma2)\
**Post date:** [July 30, 2026, 5:32pm UTC](https://discuss.ai.google.dev/t/permission-denied/176199/2 "2026-07-30T17:32:19Z")

</div>

Hello, could you please elaborate on the “Permission Denied” error you are encountering? For example, are you unable to create a new API key, or are you receiving this error during a specific API call? Please share a screenshot of the error if possible so we can investigate this further.
