We encountered an issue when using your Anthropic API key

The slow requests are taking several minutes, and i switch to my claude API, but it works for a couple seconds to a min and then i get this warning:

"unable to reach anthropic
We encountered an issue when using your Anthropic API key. Please check your API key settings and try again.

Request ID: 3ac6deab-8976-4409-93a4-f862a29cd39d"

I am a cursor pro member. And anthropic confirms i am getting billed.

Hey, when you switch to your API key, are you not using other models in your subscription, like GPT-4o or any other?

1 Like

I have claude-3.5-sonnet selected
image

Same: We encountered an issue when using your anthropic API key. Please check your API key settings and try again.

I have a cursor pro account. And I want to use my anthropic API Key. I went to Anthropic and created an account and funded my account, and created a key. Now over to cursor, copy/paste, enable my Anthropic key and I get Bad User API key Unauthorized User API key

Since this API key is brand spanking new I went back to the anthropic console and I see I am being charged for the requests coming from cursor. I go to the cursor settings to ‘verify’ my key, click it the verify button and nothing happens. No messages or anything.

Can someone help out here?

Hey, is it possible that your key is incorrect? Try creating a new one. When you click to verify, does your API key not activate?

Not sure what you mean by ‘API key not activate?’. I’m getting charged for the requests. The API key is solely being used with cursor so I am assuming athropic charging me is because cursor is in fact making the request (although it is a Bad User API key). So by this I think it is activated? Also, when I click on the ‘verify’ button nothing happens. I don’t a message or anything.

And yes. I have created different API keys to try out and all of them result in the same.

It’s not working for me either, I’ll report it to the developers.

1 Like

Any updates here? I tried all possible solutions that I could find in the forum and simply nothing works. I am trying to use my own Anthropic API key, I can see Cursor calls the API every time I launch it, but when I try the chat, I get the error “We encountered an issue when using your anthropic API key: Provider was unable to process your request”, “Request failed with status code 404”, request ID cb4161c2-1c2a-49b7-bcc8-679ad800f9c3

Never mind, I figure it out. In the chat option, I needed to chose the “normal” claude sonnet agent, not the one added with the API key. This should be explained better in the documentation.

Also encounter the “Bad User API key” problem, when i clear all the custom api key and base url except the anthropic api key in the settings ,it magically works , hope it helps .

1 Like

Hey @arenxxxe , did you get any fix for this for Google API Key?

I’m getting the same issue.
I am on a free plan in Cursor, and I tried to add my Anthropic API Key (including brand new one). When I click “Verify” in Cursor “Models/API Keys” menu, it seems to think for a while, and nothing happens. After that if I want to call claude, it says that I’m on a free plan and can’t do so.

And yes, I get charged, so the key is definitely active and correct

1 Like

same issue here, i am using azure openai
Missing model name: Missing model name
encountered an issue when using your API key: Provider was unable to process your request