When using my own Anthropic API key, requests to sonnet 4.5 Thinking model fails with a 404 error. Other Claude models (like 3.5 Sonnet and Haiku) work fine. This just started happening about an hour ago. It was working fine an hour ago and then suddenly I started receiving the error.
Steps to Reproduce
Open Cursor Chat (Agent mode).
Set model to Claude 4.5 Thinking.
Use a valid Anthropic API key
Send any prompt.
Error immediately appears.
Expected Behavior
Claude 4.5 Thinking should respond normally using Anthropicâs endpoint.
Iâm having the same issue with Sonnet 4.5 and Sonnet 4 thinking models.
As a work around I had to switched to GPT-5 Codex, but itâs no where near as good as Sonnet. I fortunately have a OPEN AI API key to use with GPT-5 but for those who donât they are probably stuck.
Not sure if you have already diagnosed the issue; sharing my findings.
Claude Sonnet 4.5, Opus 4.1 are not working.
Haiku 4.5 is working.
Getting this error from request. I think it is trying to connect to OpenAI with my Anthropic API key
Request ID: 264f6031-039c-4176-9915-ee7993bf747d
{"error":"ERROR_OPENAI","details":{"title":"Unable to reach the model provider","detail":"We encountered an issue when using your API key: Provider was unable to process your request\n\nAPI Error:\n\n```\nRequest failed with status code 404: {\"type\":\"error\",\"error\":{\"type\":\"not_found_error\",\"message\":\"model: claude-4.5-sonnet\"},\"request_id\":\"req_011CUzw1dQTdpLbN8s3GPziP\"}\n```","additionalInfo":{},"buttons":[],"planChoices":[]},"isExpected":true}
ConnectError: [invalid_argument] Error
at sJc.$endAiConnectTransportReportError (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4989:399337)
at xwo._doInvokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:36007)
at xwo._invokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:35749)
Having the same issue of cursor trying to go to openai for claude 4.5 sonnet. 4.5 haiku works just fine.
{âerrorâ:âERROR_OPENAIâ,âdetailsâ:{âtitleâ:âUnable to reach the model providerâ,âdetailâ:âWe encountered an issue when using your API key: Provider was unable to process your request\\n\\nAPI Error:\\n\\n`\nRequest failed with status code 404: {\"type\":\"error\",\"error\":{\"type\":\"not_found_error\",\"message\":\"model: claude-4.5-sonnet\"},\"request_id\":\"req_011CV1F4gr1doo397Yzh5YC2\"}\n`â,âadditionalInfoâ:{},âbuttonsâ:[ ],âplanChoicesâ:[ ]},âisExpectedâ:true}
ConnectError: \[invalid_argument\] Error
at sJc.$endAiConnectTransportReportError (vscode-file://vscode-app/nix/store/4v4jly9lx48sgyqvnf360n239zbyivg4-code-cursor-2.0-extracted/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:4989:399337)
at xwo.\_doInvokeHandler (vscode-file://vscode-app/nix/store/4v4jly9lx48sgyqvnf360n239zbyivg4-code-cursor-2.0-extracted/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:492:36007)
at xwo.\_invokeHandler (vscode-file://vscode-app/nix/store/4v4jly9lx48sgyqvnf360n239zbyivg4-code-cursor-2.0-extracted/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:492:35749)
at xwo.\_receiveRequest (vscode-file://vscode-app/nix/store/4v4jly9lx48sgyqvnf360n239zbyivg4-code-cursor-2.0-extracted/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:492:34514)
at xwo.\_receiveOneMessage (vscode-file://vscode-app/nix/store/4v4jly9lx48sgyqvnf360n239zbyivg4-code-cursor-2.0-extracted/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:492:33336)
at $Dt.value (vscode-file://vscode-app/nix/store/4v4jly9lx48sgyqvnf360n239zbyivg4-code-cursor-2.0-extracted/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:492:31429)
at \_e.\_deliver (vscode-file://vscode-app/nix/store/4v4jly9lx48sgyqvnf360n239zbyivg4-code-cursor-2.0-extracted/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at \_e.fire (vscode-file://vscode-app/nix/store/4v4jly9lx48sgyqvnf360n239zbyivg4-code-cursor-2.0-extracted/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:3283)
at dgt.fire (vscode-file://vscode-app/nix/store/4v4jly9lx48sgyqvnf360n239zbyivg4-code-cursor-2.0-extracted/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:4974:12156)
at MessagePort. (vscode-file://vscode-app/nix/store/4v4jly9lx48sgyqvnf360n239zbyivg4-code-cursor-2.0-extracted/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7497:18439)```
From @skimâs observation, I was able to understand that the issue is because Cursor is reaching out to OpenAIâs API, and there is an internal system in Cursor which will route all models with the prefix claude- to Anthropic.
So as a temporary fix, go to Cursor settings > models and add a custom model, and enter âclaude-sonnet-4-5â. And select this model in the editor while sending out requests; this will route to Anthropic API and you can temporarily use this until the Cursor team fixes this.
When I try to use any anthropic model while having Anthropic API Key set it returns:
We encountered an issue when using your API key: Provider was unable to process your request
API Error: Request failed with status code 404: {âtypeâ:âerrorâ,âerrorâ:{âtypeâ:ânot_found_errorâ,âmessageâ:âmodel: claude-4.5-sonnetâ},ârequest_idâ:âreq_011CUzryhV1CNPZaaGSS9pjiâ}
However, when I disable my API key, it works normally.
I also added a custom model entry manually (claude-sonnet-4-5), and in that case it works correctly and I can see the usage in the Anthropic dashboard at https://console.anthropic.com.
Request ID: 5d58fe43-454c-425c-b351-670826efe56a
{âerrorâ:âERROR_OPENAIâ,âdetailsâ:{âtitleâ:âUnable to reach the model providerâ,âdetailâ:âWe encountered an issue when using your API key: Provider was unable to process your request\n\nAPI Error:\n\n\nRequest failed with status code 404: {\"type\":\"error\",\"error\":{\"type\":\"not_found_error\",\"message\":\"model: claude-4.5-sonnet\"},\"request_id\":\"req_011CUzuL7yCiTnkSgfwz4hFb\"}\nâ,âadditionalInfoâ:{},âbuttonsâ:,âplanChoicesâ:},âisExpectedâ:true}
ConnectError: [invalid_argument] Error
at sJc.$endAiConnectTransportReportError (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4989:399337)
at xwo._doInvokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:36007)
at xwo._invokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:35749)
at xwo._receiveRequest (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:34514)
at xwo._receiveOneMessage (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:33336)
at $Dt.value (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:31429)
at _e._deliver (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at _e.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:3283)
at dgt.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4974:12156)
at MessagePort. (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:7497:18439)
Steps to Reproduce
custom anthropic key
try to make a request
Operating System
MacOS
Current Cursor Version (Menu â About Cursor â Copy)
For AI issues: add Request ID with privacy disabled
Request ID: 5d58fe43-454c-425c-b351-670826efe56a
{âerrorâ:âERROR_OPENAIâ,âdetailsâ:{âtitleâ:âUnable to reach the model providerâ,âdetailâ:âWe encountered an issue when using your API key: Provider was unable to process your request\n\nAPI Error:\n\n\nRequest failed with status code 404: {\"type\":\"error\",\"error\":{\"type\":\"not_found_error\",\"message\":\"model: claude-4.5-sonnet\"},\"request_id\":\"req_011CUzuL7yCiTnkSgfwz4hFb\"}\nâ,âadditionalInfoâ:{},âbuttonsâ:,âplanChoicesâ:},âisExpectedâ:true}
ConnectError: [invalid_argument] Error
at sJc.$endAiConnectTransportReportError (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4989:399337)
at xwo._doInvokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:36007)
at xwo._invokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:35749)
at xwo._receiveRequest (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:34514)
at xwo._receiveOneMessage (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:33336)
at $Dt.value (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:31429)
at _e._deliver (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at _e.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:3283)
at dgt.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4974:12156)
at MessagePort. (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:7497:18439)
I use clause api key for claude models in cursor but it has 404, it was working this morning.
Request ID: 824b3a84-f510-4835-b62c-862ef487122b
{âerrorâ:âERROR_OPENAIâ,âdetailsâ:{âtitleâ:âUnable to reach the model providerâ,âdetailâ:âWe encountered an issue when using your API key: Provider was unable to process your request\n\nAPI Error:\n\n\nRequest failed with status code 404: {\"type\":\"error\",\"error\":{\"type\":\"not_found_error\",\"message\":\"model: claude-4.5-sonnet\"},\"request_id\":\"req_011CV15S8wpbbVqzmStfJAME\"}\nâ,âadditionalInfoâ:{},âbuttonsâ:,âplanChoicesâ:},âisExpectedâ:true}
ConnectError: [invalid_argument] Error
at sJc.$endAiConnectTransportReportError (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4989:399337)
at xwo._doInvokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:36007)
at xwo._invokeHandler (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:35749)
at xwo._receiveRequest (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:34514)
at xwo._receiveOneMessage (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:33336)
at $Dt.value (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:492:31429)
at _e._deliver (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at _e.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:49:3283)
at dgt.fire (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4974:12156)
at MessagePort. (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:7497:18439)
Steps to Reproduce
use anthropic api key
Operating System
MacOS
Current Cursor Version (Menu â About Cursor â Copy)