Cursor is using old claude sonnet 4 model for openrouter

Describe the Bug

I’m using the OpenRouter API but encountering the following error. I added the latest model, anthropic/claude-sonnet-4, but the cursor is still trying to use claude-sonnet-4-20250514, which makes no sense.

We encountered an issue when using your API key: the provider was unable to process your request. API Error: Request failed with status code 400: {"error":{"message":"claude-sonnet-4-20250514 is not a valid model ID","code":400},"user_id":"user_2f1CRrIvYAEw6todO9i9R09DMIy"}

Steps to Reproduce

enable openrouter
add anthropic/claude-sonnet-4 model
try with chat

Expected Behavior

should work as like as normal model

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.2 (Universal)
VSCode Version: 1.99.3
Commit: faa03b17cce93e8a80b7d62d57f5eda6bb6ab9f0
Date: 2025-07-07T06:07:27.002Z
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

I am having the same issue with Cursor on Windows 11 , using the latest build of cursor. Is there a fix for this?

anything update here? I also face this problem

I also can’t use Anthropic API Key need help key already correct try generate 5 times still got same error

Unauthorized User API key
Request ID: 587701d7-4902-4b43-aa1f-1fc7dd3e0373

same problem

Also same problem.

this is still happening - can someone at Cursor please fix this!

"We encountered an issue when using your API key: Provider was unable to process your request API Error: Request failed with status code 400: {"error":{"message":"claude-sonnet-4-20250514 is not a valid model ID","code":400} }

please fix this

Here’s the workaround that might help Workaround to get Openrouter models working in Cursor

same problem