Invalid api key with Anthropic key

when I key in my Anthropic key and verify

the error msg come up

{“type”:“error”,“error”:{“type”:“not_found_error”,“message”:“model: claude-3-opus-20240229”}}

please try angin,or run the following command in your terminal to verify that you heve not hit your spend limit:

What can I do to fix it?

BTW I’m sure my Anthropic account still got money in it.

Please someone help me, thank you very much.

It shows you’re trying to use a deprecated model I believe - try switching to a more recent one like Opus 4. Does that work for you? It would be helpful if you reported back to let others with the same issue know how to fix!

Ty for reply
I delete all claude-3 model I can and left claude-4-sonnet on.then close Cursor and reopen it ,but the error msg
{“type”:“error”,“error”:{“type”:“not_found_error”,“message”:“model: claude-3-opus-20240229”}}
remainds.

Hey, I just checked and it’s working for me. Could you let me know if you have a Pro subscription?

cc @danperks

reply on deanrie:
yes I have a pro subscription.
and whether if I open or close Enable usage-based pricing
the error comes up anyway.

I am having the exact same issue; I just tried to add an Anthropic key and get the exact same error irrespective of which models I have selected.

Ya and I look for help in [email protected],and they haven’t solve my problem yet.

does anyone solve the problem ?? I am having the exact same issue

I have the same issue when trying to add my anthropic API key.

I have the same issue as well

Im getting this same issue, it looks like its running verify against a deprecated model “claude-3-opus-20240229”. I cant change that and if I make a curl request I get a valid response

I am having the same issue, its trying to use deprecated model looks like

Hey all,

Cursor’s claim about the curl command working with the deprecated model is false. I’ve tested extensively:

  • :cross_mark: claude-3-opus-20240229 (what Cursor uses) = error
  • :white_check_mark: claude-opus-4-20250514 (current model) = works fine

I’ve sent proof multiple times but no response. The issue is simple: Cursor is hardcoded to use a deprecated model that Anthropic no longer supports.

Let’s all email [[email protected]] - they need to hear from multiple users to prioritize this fix. It’s literally just updating one model string in their code.

Temporary workaround: Use OpenRouter instead of direct Anthropic API.

Thank for the workaround Eric, appreciate it, will try :). It is as you said, updating a single hardcoded variable

How can something this important be broken for so long? This application is becoming more unusable every day.

I’m having the same problem.
I tried to connect and use the API key due to a problem caused by a new limitation of the professional pricing plan, but there is a problem, so I can’t use it that much.

This is still an issue? I have not tried again, been using CC. If so, that is hilarious. Are the devs reading these forums and only responding to criticisms on price instead of easy suggestions to make the product better lol

Having the same problem

I think its just a UI bug when you add the key. does it work when you make chat requests?

Update to the latest version of Cursor 1.3.1 and the issue is solved. I just did it. Thanks