# Self Provided Google API No Longer Works

**URL:** <https://forum.cursor.com/t/self-provided-google-api-no-longer-works/118889>\
**Category:** Bug Reports\
**Created:** [July 17, 2025, 12:30am UTC](https://forum.cursor.com/t/self-provided-google-api-no-longer-works/118889 "2025-07-17T00:30:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChristianNorth](https://avatars.discourse-cdn.com/v4/letter/c/4af34b/32.png) [@ChristianNorth](https://forum.cursor.com/u/ChristianNorth)\
**Post date:** [July 17, 2025, 12:30am UTC](https://forum.cursor.com/t/self-provided-google-api-no-longer-works/118889/1 "2025-07-17T00:30:26Z")

</div>

### Describe the Bug

I am getting the following error whenever I try to use my self provided google api key, which I know 100% is valid. It looks like some of the model names in the google API has changed, and Cursor has not updated it. I was using Azure OpenAI before and now Google doesn’t work either. I might as well switch to github copilot at this rate…

We encountered an issue when using your API key: Provider was unable to process your request API Error: `Request failed with status code 404: [{ "error": { "code": 404, "message": "models/gemini-2.5-pro-latest is not found for API version v1main, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.", "status": "NOT_FOUND" } }]`

### Steps to Reproduce

1. Add google API key
2. Send a message
3. Get a bug

### Operating System

MacOS

### Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.4 (Universal)  
VSCode Version: 1.99.3  
Commit: a8e95743c5268be73767c46944a71f4465d05c90  
Date: 2025-07-10T16:55:16.443Z  
Electron: 34.5.1  
Chromium: 132.0.6834.210  
Node.js: 20.19.0  
V8: 13.2.152.41-electron.0  
OS: Darwin arm64 24.5.0

### Does this stop you from using Cursor

Yes - Cursor is unusable

---

<div class="post-metadata">

**Author:** ![ManniCS](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mannics/32/71223_2.png) [@ManniCS](https://forum.cursor.com/u/ManniCS)\
**Post date:** [July 17, 2025, 12:38am UTC](https://forum.cursor.com/t/self-provided-google-api-no-longer-works/118889/2 "2025-07-17T00:38:47Z")

</div>

I am seeing a similar issue without a custom API key

---

<div class="post-metadata">

**Author:** ![ChristianNorth](https://avatars.discourse-cdn.com/v4/letter/c/4af34b/32.png) [@ChristianNorth](https://forum.cursor.com/u/ChristianNorth)\
**Post date:** [July 17, 2025, 1:18am UTC](https://forum.cursor.com/t/self-provided-google-api-no-longer-works/118889/3 "2025-07-17T01:18:33Z")

</div>

For anyone looking, a temporary fix is to add a custom model with the new gemini model names: e.g., gemini-2.5-pro-preview-06-05

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/4/1/4173dd520151fc5e0b6b1974f6927cd040609067.png)

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/9/6/96ce7353861cd99f92432582afe5698a45eac4ff.png)

---

<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:** [July 17, 2025, 11:18am UTC](https://forum.cursor.com/t/self-provided-google-api-no-longer-works/118889/4 "2025-07-17T11:18:41Z")

</div>

Hey, do you have MCP servers enabled? Try disabling them and check again.

---

<div class="post-metadata">

**Author:** ![GuoShamin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/guoshamin/32/71627_2.png) [@GuoShamin](https://forum.cursor.com/u/GuoShamin)\
**Post date:** [July 18, 2025, 5:52pm UTC](https://forum.cursor.com/t/self-provided-google-api-no-longer-works/118889/5 "2025-07-18T17:52:49Z")

</div>

thankyou verymuch

---

<div class="post-metadata">

**Author:** ![Ngambarde](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ngambarde/32/72530_2.png) [@Ngambarde](https://forum.cursor.com/u/Ngambarde)\
**Post date:** [July 23, 2025, 9:06am UTC](https://forum.cursor.com/t/self-provided-google-api-no-longer-works/118889/6 "2025-07-23T09:06:36Z")

</div>

Thanks for the fix. This worked for me!

---

<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:** [August 14, 2025, 9:06am UTC](https://forum.cursor.com/t/self-provided-google-api-no-longer-works/118889/7 "2025-08-14T09:06:55Z")

</div>

Closed on August 14, 2025, 9:06am UTC

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.
