# Gemini API key never works

**URL:** <https://forum.cursor.com/t/gemini-api-key-never-works/91207>\
**Category:** Help\
**Created:** [May 13, 2025, 7:32am UTC](https://forum.cursor.com/t/gemini-api-key-never-works/91207 "2025-05-13T07:32:57Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![hotairbag](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/hotairbag/32/49198_2.png) [@hotairbag](https://forum.cursor.com/u/hotairbag)\
**Post date:** [May 13, 2025, 7:32am UTC](https://forum.cursor.com/t/gemini-api-key-never-works/91207/1 "2025-05-13T07:32:57Z")

</div>

It constantly says i hit the API limit which was not true a few days ago. How do i fix this?

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [May 13, 2025, 8:35am UTC](https://forum.cursor.com/t/gemini-api-key-never-works/91207/2 "2025-05-13T08:35:06Z")

</div>

Hey, it might be an issue related to the API key. Have you tried creating a new one? Have you also tested its functionality outside of Cursor?

---

<div class="post-metadata">

**Author:** ![hotairbag](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/hotairbag/32/49198_2.png) [@hotairbag](https://forum.cursor.com/u/hotairbag)\
**Post date:** [May 14, 2025, 5:29am UTC](https://forum.cursor.com/t/gemini-api-key-never-works/91207/3 "2025-05-14T05:29:51Z")

</div>

tried to make a new api key already. it was working fine a few days ago.

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [May 14, 2025, 5:55am UTC](https://forum.cursor.com/t/gemini-api-key-never-works/91207/4 "2025-05-14T05:55:03Z")

</div>

Ok great, have you tried using the API key outside of Cursor to confirm the API key is working without limits?

---

<div class="post-metadata">

**Author:** ![hotairbag](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/hotairbag/32/49198_2.png) [@hotairbag](https://forum.cursor.com/u/hotairbag)\
**Post date:** [May 14, 2025, 8:03am UTC](https://forum.cursor.com/t/gemini-api-key-never-works/91207/5 "2025-05-14T08:03:35Z")

</div>

its working again randomly now. it doesnt seem like it has anything to do with the api key and more of a google/cursor issue

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [May 14, 2025, 8:20am UTC](https://forum.cursor.com/t/gemini-api-key-never-works/91207/6 "2025-05-14T08:20:27Z")

</div>

Could you share the Request ID where such a case occurs? Ideally the Request ID would need to be with Privacy setting Off so the Cursor Team can trace the details, you can then reenable that setting if required after the test.

---

<div class="post-metadata">

**Author:** ![hotairbag](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/hotairbag/32/49198_2.png) [@hotairbag](https://forum.cursor.com/u/hotairbag)\
**Post date:** [May 14, 2025, 8:41am UTC](https://forum.cursor.com/t/gemini-api-key-never-works/91207/7 "2025-05-14T08:41:50Z")

</div>

New error: 6e9df94b-1b9e-4d94-8140-95046a0dd10a

 ![CleanShot 2025-05-14 at 3 .40.58@2x](https://us1.discourse-cdn.com/cursor1/original/3X/9/9/99e4518624b4d36616d053532720f083c7f42883.png)

i havent got the api limit one in a while, it just comes randomly

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [May 14, 2025, 8:46am UTC](https://forum.cursor.com/t/gemini-api-key-never-works/91207/8 "2025-05-14T08:46:22Z")

</div>

This looks like a Google/Gemini error, probably a bug. Lets see if someone at Cursor can trace this @deanrie

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [May 14, 2025, 8:49am UTC](https://forum.cursor.com/t/gemini-api-key-never-works/91207/9 "2025-05-14T08:49:35Z")

</div>

Which Gemini model are you trying to use?

---

<div class="post-metadata">

**Author:** ![hotairbag](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/hotairbag/32/49198_2.png) [@hotairbag](https://forum.cursor.com/u/hotairbag)\
**Post date:** [May 14, 2025, 9:41am UTC](https://forum.cursor.com/t/gemini-api-key-never-works/91207/10 "2025-05-14T09:41:33Z")

</div>

latest gemini (max) via google api

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [May 14, 2025, 12:57pm UTC](https://forum.cursor.com/t/gemini-api-key-never-works/91207/11 "2025-05-14T12:57:31Z")

</div>

It looks like there was an issue on Google’s side. I just checked, and everything is working fine for me now. Could you confirm if it’s working for you as well?

---

<div class="post-metadata">

**Author:** ![hotairbag](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/hotairbag/32/49198_2.png) [@hotairbag](https://forum.cursor.com/u/hotairbag)\
**Post date:** [May 16, 2025, 6:30am UTC](https://forum.cursor.com/t/gemini-api-key-never-works/91207/12 "2025-05-16T06:30:02Z")

</div>

its back to having issues again. i shouldnt be limited

 ![CleanShot 2025-05-16 at 1 .29.26@2x](https://us1.discourse-cdn.com/cursor1/original/3X/2/c/2cd04836e179ea5c4e38f3d9ed0374fbb4f72cf8.png)  
 ![CleanShot 2025-05-16 at 1 .29.40@2x](https://us1.discourse-cdn.com/cursor1/original/3X/2/8/2853f42cf2251eb0c458206135c7dbdbb74e8f49.png)

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [May 16, 2025, 9:38am UTC](https://forum.cursor.com/t/gemini-api-key-never-works/91207/13 "2025-05-16T09:38:16Z")

</div>

You have to check how you can increase your rate limit for your own API key on Gemini admin pages. The message says this clearly. Not an issue with Cursor.

Basically you have reached your rate limit on your own Gemini API Key.

Once you get to a higher tier level you will have higher rate limits there.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [June 18, 2026, 10:42am UTC](https://forum.cursor.com/t/gemini-api-key-never-works/91207/14 "2026-06-18T10:42:38Z")

</div>

Closed on June 18, 2026, 10:42am UTC


