# Using Azure OpenAI API Key

**URL:** <https://forum.cursor.com/t/using-azure-openai-api-key/162214>\
**Category:** Bug Reports\
**Tags:** byok, nightly, openai\
**Created:** [June 2, 2026, 11:14am UTC](https://forum.cursor.com/t/using-azure-openai-api-key/162214 "2026-06-02T11:14:07Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Limunce](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@Limunce](https://forum.cursor.com/u/Limunce)\
**Post date:** [June 2, 2026, 11:14am UTC](https://forum.cursor.com/t/using-azure-openai-api-key/162214/1 "2026-06-02T11:14:07Z")

</div>

### Describe the Bug

I added Azure OpenAI configuration in Cursor IDE.  
Base URL, Deployment Name and API Key.  
When I try to chat with Agent using GPT-5.5 I get:  
Request ID: ac5d1512-3125-413a-82cb-84085eb645d5  
{“error”:“ERROR\_PROVIDER\_ERROR”,“details”:{“title”:“Provider Error”,“detail”:“We’re having trouble finding the resource you requested. If the problem persists, please contact support.”,“isRetryable”:false,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}  
Provider Error We’re having trouble finding the resource you requested. If the problem persists, please contact support.  
kds: Provider Error We’re having trouble finding the resource you requested. If the problem persists, please contact support.

### Steps to Reproduce

Explained above

### Expected Behavior

I expect it to work 😃

### Operating System

MacOS

### Version Information

Version: 3.4.20  
VSCode Version: 1.105.1  
Commit: 0cf8b06883f54e26bb4f0fb8647c9500ccb43310  
Date: 2026-05-15T02:26:10.351Z  
Layout: editor  
Build Type: Stable  
Release Track: Nightly  
Electron: 39.8.1  
Chromium: 142.0.7444.265  
Node.js: 22.22.1  
V8: 14.2.231.22-electron.0  
OS: Darwin arm64 25.0.0

### For AI issues: which model did you use?

GPT-5.5

### Does this stop you from using Cursor

Yes - Cursor is unusable

---

<div class="post-metadata">

**Author:** ![kevinn](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kevinn/32/101206_2.png) [@kevinn](https://forum.cursor.com/u/kevinn)\
**Post date:** [June 2, 2026, 5:26pm UTC](https://forum.cursor.com/t/using-azure-openai-api-key/162214/7 "2026-06-02T17:26:10Z")

</div>

Hi @Limunce I apologize for the inconvenience. This is a known issue, and I’ve linked the forum post to the bug report so we can keep you updated on the status of it. In the meantime, the following options may immediately help you:

1. Use a non-GPT-5 model on your Azure key. Models outside the GPT-5 family — for example a GPT-4.1 or GPT-4o deployment — use Azure’s standard deployment endpoint and should work today with your existing BYOK configuration. Just deploy/select one of those in Azure and pick it in Cursor’s model picker.

2. If you specifically need GPT-5.5 in the meantime, you can use it through Cursor’s built-in model access (i.e., without the custom Azure key for that model). That path routes correctly. Note this draws on your normal Cursor usage rather than billing to your Azure account.

---

<div class="post-metadata">

**Author:** ![Ansh\_Arora](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ansh_arora/32/114007_2.png) [@Ansh\_Arora](https://forum.cursor.com/u/Ansh_Arora)\
**Post date:** [July 9, 2026, 8:27am UTC](https://forum.cursor.com/t/using-azure-openai-api-key/162214/9 "2026-07-09T08:27:41Z")

</div>

Hi,

Any update on this working!

Best,  
Ansh

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [July 22, 2026, 1:46pm UTC](https://forum.cursor.com/t/using-azure-openai-api-key/162214/11 "2026-07-22T13:46:05Z")

</div>

Hey @Limunce,

The Azure OpenAI BYOK issue with GPT-5 models, where you were hitting the “trouble finding the resource you requested” error, should have been fixed on our end in a recent deploy. Could you give it another try and let me know if you still run into it?

_cc @Ansh_Arora_

---

<div class="post-metadata">

**Author:** ![Ansh\_Arora](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ansh_arora/32/114007_2.png) [@Ansh\_Arora](https://forum.cursor.com/u/Ansh_Arora)\
**Post date:** [July 22, 2026, 2:05pm UTC](https://forum.cursor.com/t/using-azure-openai-api-key/162214/12 "2026-07-22T14:05:43Z")

</div>

Hey thanks for lmk, ill test it when I have need, maybe you’ll be glad to know that with grok 4.5 release i havent even been using the gpt 5 models anymore!

---

<div class="post-metadata">

**Author:** ![Ansh\_Arora](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ansh_arora/32/114007_2.png) [@Ansh\_Arora](https://forum.cursor.com/u/Ansh_Arora)\
**Post date:** [July 29, 2026, 2:31pm UTC](https://forum.cursor.com/t/using-azure-openai-api-key/162214/13 "2026-07-29T14:31:24Z")

</div>

hi its not working on the latest update i just downloaded 1 minute ago, wasn’t working before then either!:

Request ID: edec6fa3-f5a0-414a-8858-3d2e0e047d72  
{“error”:“ERROR\_PROVIDER\_ERROR”,“details”:{“title”:“Provider Error”,“detail”:“We’re having trouble finding the resource you requested. If the problem persists, please contact support.”,“isRetryable”:false,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}  
We’re having trouble finding the resource you requested. If the problem persists, please contact support.  
Provider Error We’re having trouble finding the resource you requested. If the problem persists, please contact support.  
NonRetriableError: Provider Error We’re having trouble finding the resource you requested. If the problem persists, please contact support.  
at \_Ob (vscode-file://vscode-app/c:/Users/gamin/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:9323:6780)  
at mBr (vscode-file://vscode-app/c:/Users/gamin/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:9323:5417)  
at ZHm (vscode-file://vscode-app/c:/Users/gamin/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:9324:12870)  
at Object.classify (vscode-file://vscode-app/c:/Users/gamin/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:9324:17485)  
at AOb (vscode-file://vscode-app/c:/Users/gamin/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:9324:5856)  
at async Kel.runWithSharedTurnRunner (vscode-file://vscode-app/c:/Users/gamin/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:9324:16837)  
at async YG.runAgentLoop (vscode-file://vscode-app/c:/Users/gamin/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:12036:52450)  
at async LWl.streamFromAgentBackend (vscode-file://vscode-app/c:/Users/gamin/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:17886:15130)  
at async LWl.getAgentStreamResponse (vscode-file://vscode-app/c:/Users/gamin/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:17886:24972)  
at async P8e.submitChatMaybeAbortCurrent (vscode-file://vscode-app/c:/Users/gamin/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.glass.main.js:9490:2511)

and naturally with the other URL:

Provider returned error: {“error”:{“code”:“BadRequest”,“message”:“API version not supported”}} Request ID: 7df190af-a141-4f37-a3f1-d3473d9c9f75

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [July 29, 2026, 2:58pm UTC](https://forum.cursor.com/t/using-azure-openai-api-key/162214/14 "2026-07-29T14:58:52Z")

</div>

Hey @Ansh_Arora

Hard to know exactly what URLs you’re talking about!

For the URL associated with this error:

> [@Ansh\_Arora](#):
>
> Request ID: edec6fa3-f5a0-414a-8858-3d2e0e047d72  
> {“error”:“ERROR\_PROVIDER\_ERROR”,“details”:{“title”:“Provider Error”,“detail”:“We’re having trouble finding the resource you requested. If the problem persists, please contact support.”,“isRetryable”:false,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}  
> We’re having trouble finding the resource you requested. If the problem persists, please contact

> Make sure the URL is nothing more than `https://****.openai.azure.com` (replace `****` with your resource name) — no `/openai/v1` or anything else on the end, Cursor appends the rest.

Also make sure the deployment field is set to the name of your actual Azure deployment, and that you’re pointing at the `*.openai.azure.com` resource rather than an Azure AI Foundry project endpoint (`*.services.ai.azure.com`), which we don’t currently support.

---

<div class="post-metadata">

**Author:** ![Ansh\_Arora](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ansh_arora/32/114007_2.png) [@Ansh\_Arora](https://forum.cursor.com/u/Ansh_Arora)\
**Post date:** [July 29, 2026, 3:28pm UTC](https://forum.cursor.com/t/using-azure-openai-api-key/162214/15 "2026-07-29T15:28:23Z")

</div>

yep that works thanks!

---

<div class="post-metadata">

**Author:** ![Ansh\_Arora](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ansh_arora/32/114007_2.png) [@Ansh\_Arora](https://forum.cursor.com/u/Ansh_Arora)\
**Post date:** [July 30, 2026, 11:02am UTC](https://forum.cursor.com/t/using-azure-openai-api-key/162214/16 "2026-07-30T11:02:35Z")

</div>

potentially flaky bug but super annoying, grok 4.5 says doesnt support custom api keys when ive enabled azure openai so is there a way i can keep azure enabled always + still use grok 4.5 directly?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [July 30, 2026, 11:17am UTC](https://forum.cursor.com/t/using-azure-openai-api-key/162214/17 "2026-07-30T11:17:38Z")

</div>

This is a known limitation of BYOK.

> [@Composer 2.5 fails with BYOK](https://forum.cursor.com/t/composer-2-5-fails-with-byok/164176/13):
>
> Hey, thanks for coming back with details on Grok 4.5. You’re right, it’s the same root cause, not a separate issue. When Override OpenAI Base URL or an OpenAI key is enabled, those creds get attached to every request. So any model that’s routed through Cursor infrastructure like Composer 2.5 and now Grok 4.5 fails with This model does not support custom API keys. Auto works because on that path the BYOK creds aren’t attached. The fact that after the Grok 4.5 release this is more noticeable and…

---

<div class="post-metadata">

**Author:** ![Ansh\_Arora](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ansh_arora/32/114007_2.png) [@Ansh\_Arora](https://forum.cursor.com/u/Ansh_Arora)\
**Post date:** [August 23, 2026, 10:30pm UTC](https://forum.cursor.com/t/using-azure-openai-api-key/162214/18 "2026-08-23T22:30:45Z")

</div>

Hey, small bug when using GPT-5.6 Limunce with Azure OpenAI: when I leave it to run autonomously, it works fine, but when I have to manually call /summarise, it says “context summarised”. It doesn’t actually spend any time summarising it, and I can see that the context hasn’t decreased. Bug: when I want to do manual /summaries, it doesn’t do it.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [August 24, 2026, 7:38am UTC](https://forum.cursor.com/t/using-azure-openai-api-key/162214/19 "2026-08-24T07:38:10Z")

</div>

@Ansh_Arora can you raise a new thread, including a [request id](https://cursor.com/help/troubleshooting/reporting-bugs#what-is-a-request-id)?

> [@Ansh\_Arora](#):
>
> GPT-5.6 Limunce

Not sure what this is. 🙂

---

<div class="post-metadata">

**Author:** ![Ansh\_Arora](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ansh_arora/32/114007_2.png) [@Ansh\_Arora](https://forum.cursor.com/u/Ansh_Arora)\
**Post date:** [August 24, 2026, 7:52am UTC](https://forum.cursor.com/t/using-azure-openai-api-key/162214/20 "2026-08-24T07:52:38Z")

</div>

apols i meant luna, thats wispr flow.
