Self Provided Google API No Longer Works

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

1 Like

I am seeing a similar issue without a custom API key

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

7 Likes

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

thankyou verymuch

Thanks for the fix. This worked for me!

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