Gemini API cannot apply changes

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

You cannot apply changes made using the Gemini API.
You can apply changes by disabling the API or selecting a different model.
Cursor is a free plan.

Steps to Reproduce

  1. Enable the Gemini API key and select Gemini.
  2. Edit the file.
  3. Apply (failed).
  4. Disable the API key or select a model other than Gemini.
  5. Reapply (successful).

Screenshots / Screen Recordings

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.4.5 (user setup)
Commit: 1.99.3
Date: af58d92614edb1f72bdd756615d131bf8dfa5290
Electron: 2025-08-13T02:08:56.371Z
ElectronBuildId: 34.5.8
Chromium: undefined
Node.js: 132.0.6834.210
V8: 20.19.1
OS: 13.2.152.41-electron.0

Does this stop you from using Cursor

Yes - Cursor is unusable

Hi @OrderAgent could you please confirm if you were using Gemini API key and which model you used.

As shown in the video, I confirmed issues with gemini-2.5-pro and gemini-2.5-flash when using the Gemini API key.

No API keys are registered for other models.

When applying to a file, if you select a model other than Gemini or disable the Gemini API key, the application will succeed.

I have sent all the details to our dev team.

1 Like