User provided API key rate limit exceeded?


What can I do with this? Thanks.

1 Like

Hi @dantengdanteng

Maybe your balance is out?

“User Provided API Key Rate Limit Exceeded” Again, this is bullshit!

1 Like

I’m also having this problem. AFAICT I’m not exceeding any limit that Claude or OpenAI enforces against my API key. So why is Cursor enforcing a rate limit on API requests that I’m paying for directly?

And no, it’s not about the balance, because waiting about 60 sec seems to fix the issue, but slows me down – undermining the whole reason I’m using this API key in the first place rather than waiting for the slow request queue.

2 Likes

I also having this problem, i reached the limit on premium models and try to go back using my Anthropic API Key but “User API Key Rate limit exceeded”. If i wait some minutes I can have the model running but not a complete answer.

Anybody has answer to this? I have provided TWO APIs one for Open AI and one for Anthropic but still having the same problem. Waiting does not make much of a difference. Yes, I still have balances and I even have auto-recharge turned on so they can just keep charging when my balance drops below a certain $ amount. Any ideas?

Composer should at least have a backoff/retry mechanism.

1 Like

Any solution yet?.. Facing the same issue. So frustrating! Charge me more money, make it slower if needed, but don’t just block the process without even any retry button!

Just be aware that Anthropic are having some teething issues with the increased demand on their models over the last month.

It’s possible that these limits are being imposed by Anthropic, not by Cursor.

To test this, set up a quick Jupyter notebook to test the Anthropic API, e.g.

# Install the Anthropic SDK
!pip install anthropic

# Import the Anthropic client
import anthropic

# Initialize the Anthropic client with API key
client = anthropic.Anthropic(
    api_key="your_api_key_here"  # Replace with your actual API key
)

# Send a message to the Claude 3.5 Sonnet model and retrieve a response
message = client.messages.create(
    model="claude-3-5-sonnet-20240620",  # Specify the Claude 3.5 Sonnet model
    max_tokens=1024,  # Set the maximum token limit
    messages=[
        {"role": "user", "content": "Write a short sonnet about the ocean."}  # Provide the prompt
    ]
)

# Print the response from the Claude 3.5 Sonnet model
print(message.content)

I don’t believe we enforce any rate limits on using your API key, so these will be limits enforced on the other end (Anthropic or OpenAI).

We have now enabled usage-based pricing for Pro users using premium models, which means if you exceed your 500 fast requests but don’t want to buy another 500, you can enable usage pricing.

For Claude 3.5 Sonnet, the cost is $0.04 per request ($20 / 500).

1 Like