Gemini API key not working in Cursor, getting PROVIDER_ERROR

still getting same error i got since yesterday:

Request ID: fa36f981-8d51-4087-a436-3af57766f530
{“error”:“ERROR_PROVIDER_ERROR”,“details”:{“title”:“Provider Error”,“detail”:“Provider returned error: [{\n “error”: {\n “code”: 400,\n “message”: “Invalid JSON (for ‘extra_body’): no such field: ‘disable_thought_tag’”,\n “status”: “INVALID_ARGUMENT”\n }\n}\n]”,“isRetryable”:false,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}
Provider Error Provider returned error: [{
“error”: {
“code”: 400,
“message”: “Invalid JSON (for ‘extra_body’): no such field: ‘disable_thought_tag’”,
“status”: “INVALID_ARGUMENT”
}
}
]
Svs: Provider Error Provider returned error: [{
“error”: {
“code”: 400,
“message”: “Invalid JSON (for ‘extra_body’): no such field: ‘disable_thought_tag’”,
“status”: “INVALID_ARGUMENT”
}
}
]
at cg_ (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:29432:24260)
at ag_ (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:29432:23144)
at gg_ (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:29433:6490)
at tCh.run (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:29433:11307)
at async lQi.runAgentLoop (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:41749:12418)
at async him.streamFromAgentBackend (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:41817:12344)
at async him.getAgentStreamResponse (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:41817:19567)
at async pCt.submitChatMaybeAbortCurrent (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:29548:16906)
at async Xa (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:40804:4244)

on version:

Version: 3.2.14
VSCode Version: 1.105.1
Commit: 6e821a7fc68d5ce5b4ab821f73fe4137e0851e60
Date: 2026-04-28T13:25:40.706Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 24.6.0

intrestingly,

a new chat does NOT solve the issue.
but a new chat that begins with a greeting does solve it. (lol)

Alright, it works now, thank you.

it is still not working , i am on version 3.2.16

+1 It’s really flaky sometimes it works and on other windows it fails.
Really frustrating, blocking us, specially it feels like such minor issue.

Awesome. This workaround fixed the problem.

The same problem is happening again and again from time to time - 1 in 10 prompts @Colin

Version: 3.2.16 (user setup)
VSCode Version: 1.105.1
Commit: 3e548838cf824b70851dd3ef27d0c6aae371b3f0
Date: 2026-04-28T21:07:47.682Z
Layout: glass
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

@Felipe_Mahlmeister Could you grab a Request ID from a working run and a non working run?

@Colin can we get this resolved ?

@NIPUN_SETHI Do you have a new Request ID? (text, no screenshot please :slight_smile:)

Hello Colin, how are you doing? It took me a while to reply because I was waiting for the issue to occur again, and the good news is that I haven’t had this problem in the last few days. I hope the issue has been resolved; if it happens again, I will come back with more information about the error, as requested. Thank you for your support. Thanks