Does reaching one's monthly usage limit prevent from using an Azure OpenAI key with Cursor IDE?

I use Cursor IDE. I have reached my monthly usage limit. Therefore, I have added my Azure OpenAI key:

However, I’m still getting the error message when trying to use the model that is accessed via my Azure OpenAI key:

You’ve reached your monthly usage limit. Request higher limits to continue using Cursor.

Did I misconfigure something or does reaching one’s monthly usage limit prevent from using an Azure OpenAI key with Cursor IDE?

Hey, this isn’t a misconfiguration. Using your own API keys (BYOK), including Azure OpenAI, now requires a Pro subscription. On the Free plan, your own keys won’t work even if they’re set up correctly.

It used to work as an undocumented option, but the behavior changed. More details here: Ask mode with my own API Key required Pro Subscription

Options:

  • Upgrade to Pro ($20/month), then your Azure OpenAI key will work
  • Stay on Free and use Cursor’s built-in free models without your own keys

Let me know if you have any questions.

Thanks, I use Cursor Enterprise.

Hmm, from what we can see on our side, your account shows as Free.

If you’re actually on Enterprise, then BYOK with Azure OpenAI should work. A couple things to check:

  1. Make sure you’re logged in with your Enterprise account, the email that’s tied to the Enterprise team.
  2. Check with your Enterprise admin whether BYOK is disabled at the team level. In Enterprise there’s a setting called Restrict personal API keys, and it can block BYOK.

Let me know what you see in settings and we’ll figure it out.

Oh interesting, thanks very much, this is good to know, I’ll check with my admin. I use Cursor with a different account (enterprise account).

1 Like

Since today it April 1, I received my new monthly Cursor pocket money and wanted to retest BYOK with Azure OpenAI: no complain about the key, but also, no output. Any idea? I feel Cursor should give some kind of message (invalid key, BYOK disabled, invalid, model deployment name, etc.) so maybe worth raising an issue internally on your side. I’m leaving my enterprise email in the screenshot if you want to see the log + model deployment name to show it matches the selected model in Cursor chat:

Looking at https://cursor.com/dashboard/usage, it says there is some error but doesn’t give any details:

The key is fine because if I mess it up on purpose, then I get a clear API key error (“User API key etc.”):

Another bug is that it tries BYOK even for models that are not configured for BYOK e.g.:

Entire error message:

Request failed with status code 400: {"error":{"type":"client","reason":"invalid_input","message":"model is required","retryable":false}}

Thanks!