# Azure GPT-5 API Key Not Working – Internal Server Error

**URL:** <https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572>\
**Category:** Bug Reports\
**Created:** [August 11, 2025, 10:30pm UTC](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572 "2025-08-11T22:30:33Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![user541](https://avatars.discourse-cdn.com/v4/letter/u/85f322/32.png) [@user541](https://forum.cursor.com/u/user541)\
**Post date:** [August 21, 2025, 6:25am UTC](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572/26 "2025-08-21T06:25:51Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

Hi!

I am trying to cover my Cursor token usage through my Azure account.

I have free credits there and want to use them.

### Steps to Reproduce

I have set up Azure as I think is correct and it passes the test on cursor’s side (as it accepts the deployment and marks as active, which it does not do if I use e.g. the wrong name for the deployment or the wrong key).

I can see in Azure that 30ish tokens are being sent, probably for the check.

I get an error message

### Expected Behavior

No error message and simple usage

### Screenshots / Screen Recordings

 ![Screenshot 2025-08-21 082320.png](https://us1.discourse-cdn.com/cursor1/original/3X/5/a/5a5ad09f4dc4fc7b1a52d13432a8ec240cfeaae6.png)

### Operating System

Windows 10/11

### Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.4.5 (user setup)  
VSCode Version: 1.99.3  
Commit: af58d92614edb1f72bdd756615d131bf8dfa5290  
Date: 2025-08-13T02:08:56.371Z  
Electron: 34.5.8  
Chromium: 132.0.6834.210  
Node.js: 20.19.1  
V8: 13.2.152.41-electron.0  
OS: Windows\_NT x64 10.0.26100

### Does this stop you from using Cursor

No - Cursor works, but with this issue

---

<div class="post-metadata">

**Author:** ![cherzog79](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@cherzog79](https://forum.cursor.com/u/cherzog79)\
**Post date:** [August 22, 2025, 9:12am UTC](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572/27 "2025-08-22T09:12:36Z")

</div>

Same issue here.

If the problem persists, please check your internet connection or VPN, or email us at [hi@cursor.com](mailto:hi@cursor.com).

(Request ID: 96f4c46a-955c-413a-8a77-c008cc860e69)

I’ve also tried to change the deployment name in my azure environment to exactly match the model choices I have in cursor (“gpt-5-high”) with same upper/lower case characters in case it’s case sensitive. - Nothing.

Is there an estimation when this will be fixed? If not I might have to get back to vs code + claude code instead.

---

<div class="post-metadata">

**Author:** ![user541](https://avatars.discourse-cdn.com/v4/letter/u/85f322/32.png) [@user541](https://forum.cursor.com/u/user541)\
**Post date:** [August 28, 2025, 12:59pm UTC](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572/28 "2025-08-28T12:59:09Z")

</div>

There’s no update on this or hidden trick, right? I’m dying over here… I really need this

---

<div class="post-metadata">

**Author:** ![Broqee](https://avatars.discourse-cdn.com/v4/letter/b/58f4c7/32.png) [@Broqee](https://forum.cursor.com/u/Broqee)\
**Post date:** [August 28, 2025, 1:12pm UTC](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572/30 "2025-08-28T13:12:39Z")

</div>

Is there still no solution? A lot of people are waiting.

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [August 28, 2025, 1:21pm UTC](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572/31 "2025-08-28T13:21:36Z")

</div>

I will check with the team. Thank you for bumping the issue.

---

<div class="post-metadata">

**Author:** ![drako](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@drako](https://forum.cursor.com/u/drako)\
**Post date:** [August 20, 2025, 8:35pm UTC](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572/32 "2025-08-20T20:35:14Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

Hi,

I’m trying to integrate GPT-5 via the Azure AI Foundry API. I already have GPT-5 enabled on my Azure account, but for some reason the setup fails when I try to use it with Cursor.

I’ve already verified that the base URL, deployment name, and access token match exactly what is provided on Azure.

I suspect that Cursor has not yet updated support for the reasoning endpoint (/openai/responses?api-version=2025-04-01-preview) for Azure AI models, which may be why we are seeing an internal server error. However, I request the Cursor tech team to investigate this issue, since I believe it is not coming from Azure’s end. I tested the credentials manually, and they work fine. The failure only occurs within Cursor.

Additionally, I’ve noticed there is no option in Cursor to:

Set reasoning to Low, Medium, or High

Adjust verbosity levels

Create multiple GPT-5 deployments with different reasoning settings

Configure input/output token limits

View reasoning traces

Could you please let me know how I can achieve these configurations, and also help me resolve the error?

Thank you

Error on Cursor:

Request ID: 7d82af56-e5fb-4ca9-9f9f-34f1112a08f3  
{“error”:“ERROR\_UNSPECIFIED”,“details”:{“title”:“Internal server error.”,“detail”:“If the problem persists, please check your internet connection or VPN, or email us at [hi@cursor.com](mailto:hi@cursor.com).”,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:false}

### Steps to Reproduce

In Cursor Settings \> Models, configure the Azure API by adding the Base URL, Deployment Name, and Access Key.

Add GPT-5 as the custom model name, disable all other models, and test using only the Azure model.

### Operating System

Windows 10/11

### Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.4.5 (user setup)  
VSCode Version: 1.99.3  
Commit: af58d92614edb1f72bdd756615d131bf8dfa5290  
Date: 2025-08-13T02:08:56.371Z  
Electron: 34.5.8  
Chromium: 132.0.6834.210  
Node.js: 20.19.1  
V8: 13.2.152.41-electron.0  
OS: Windows\_NT x64 10.0.27924

### Does this stop you from using Cursor

Yes - Cursor is unusable

---

<div class="post-metadata">

**Author:** ![sanjeed5](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/sanjeed5/32/9610_2.png) [@sanjeed5](https://forum.cursor.com/u/sanjeed5)\
**Post date:** [August 29, 2025, 9:47am UTC](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572/33 "2025-08-29T09:47:53Z")

</div>

Thanks for the report. I’ve raised it with team. Tracking similar issues here: [Azure GPT-5 API Key Not Working – Internal Server Error - #29 by Broqee](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572/29)

---

<div class="post-metadata">

**Author:** ![Broqee](https://avatars.discourse-cdn.com/v4/letter/b/58f4c7/32.png) [@Broqee](https://forum.cursor.com/u/Broqee)\
**Post date:** [September 2, 2025, 12:48pm UTC](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572/34 "2025-09-02T12:48:33Z")

</div>

Hello again and again 🙂 any update?

---

<div class="post-metadata">

**Author:** ![drako](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@drako](https://forum.cursor.com/u/drako)\
**Post date:** [September 3, 2025, 10:01pm UTC](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572/35 "2025-09-03T22:01:30Z")

</div>

Hey, when will this be resolved?

---

<div class="post-metadata">

**Author:** ![Jungwon423](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/jungwon423/32/77492_2.png) [@Jungwon423](https://forum.cursor.com/u/Jungwon423)\
**Post date:** [September 6, 2025, 2:04am UTC](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572/36 "2025-09-06T02:04:47Z")

</div>

I’m pretty sure they are not solving this issue on purpose

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [September 6, 2025, 11:26am UTC](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572/37 "2025-09-06T11:26:40Z")

</div>

@drako and @Broqee the team is in the process of improving this.

Hey @Jungwon423 please do not ruin this for others. We are a small team who are working hard to provide improvements and bug fixes additional to new features. We will fix this.

---

<div class="post-metadata">

**Author:** ![drako](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@drako](https://forum.cursor.com/u/drako)\
**Post date:** [September 6, 2025, 11:45am UTC](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572/38 "2025-09-06T11:45:57Z")

</div>

Hi @condor I had also suggested a few features surrounding Azure and GPT-5.  
Please consider this as well and implement during the same release.

> [@Feature Request: Customization Options for Reasoning Models in Cursor (Azure AI Foundry, Gemini, Claude, AWS Bedrock)](https://forum.cursor.com/t/feature-request-customization-options-for-reasoning-models-in-cursor-azure-ai-foundry-gemini-claude-aws-bedrock/131258):
>
> Currently, Cursor does not provide full configuration support for reasoning models (e.g., GPT-5 and other Azure reasoning-enabled models). While basic integration is possible, several important customization options are missing. I’d like to request the following features: 1. Reasoning Control Ability to set reasoning levels: Low, Medium, High Option to adjust reasoning verbosity (concise vs. detailed explanations) 2. Multiple Deployment Profiles Ability to configure and save multip…

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [September 6, 2025, 11:52am UTC](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572/39 "2025-09-06T11:52:54Z")

</div>

hi @drako yes we saw your feature request. As this specific task is about fixing issues the feature request will be handled separately for now. Overall fixing existing issues has priority.

---

<div class="post-metadata">

**Author:** ![Salvador\_Hernandez](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@Salvador\_Hernandez](https://forum.cursor.com/u/Salvador_Hernandez)\
**Post date:** [September 6, 2025, 4:31pm UTC](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572/40 "2025-09-06T16:31:30Z")

</div>

Please provide me with a deadline; this has been under repair for a month now.

---

<div class="post-metadata">

**Author:** ![user541](https://avatars.discourse-cdn.com/v4/letter/u/85f322/32.png) [@user541](https://forum.cursor.com/u/user541)\
**Post date:** [September 11, 2025, 10:20am UTC](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572/41 "2025-09-11T10:20:34Z")

</div>

Hi guys, any update on this? Would also love to know by when I can expect this to be done 🙂

Thanks for the support!

---

<div class="post-metadata">

**Author:** ![Salvador\_Hernandez](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@Salvador\_Hernandez](https://forum.cursor.com/u/Salvador_Hernandez)\
**Post date:** [September 12, 2025, 2:04pm UTC](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572/42 "2025-09-12T14:04:42Z")

</div>

Please provide me with a deadline;

---

<div class="post-metadata">

**Author:** ![gabrii](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/gabrii/32/79648_2.png) [@gabrii](https://forum.cursor.com/u/gabrii)\
**Post date:** [September 14, 2025, 4:15pm UTC](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572/43 "2025-09-14T16:15:06Z")

</div>

Hi @Salvador_Hernandez @user541 @Broqee @cherzog79 @dionator @yatree @SPotelickyDev @Jungwon423 and all of those impatient to use Azure GPT-5 in Cursor.

I’ve created this project for the community which allows you to do so: [GitHub - gabrii/Cursor-Azure-GPT-5: A service that allows Cursor to use Azure GPT-5 deployments.](https://github.com/gabrii/Cursor-Azure-GPT-5)

It’s not perfect, but useful until model support is further improved and buys the team some time.

---

<div class="post-metadata">

**Author:** ![Broqee](https://avatars.discourse-cdn.com/v4/letter/b/58f4c7/32.png) [@Broqee](https://forum.cursor.com/u/Broqee)\
**Post date:** [September 14, 2025, 10:56pm UTC](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572/44 "2025-09-14T22:56:31Z")

</div>

I get a Request failed error. Can you look it up on Github?

---

<div class="post-metadata">

**Author:** ![gabrii](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/gabrii/32/79648_2.png) [@gabrii](https://forum.cursor.com/u/gabrii)\
**Post date:** [September 15, 2025, 7:04am UTC](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572/46 "2025-09-15T07:04:15Z")

</div>

Thanks for the report @Broqee ! Issue fixed on main branch, please pull and try again.

_ps: Let’s try to keep the discussion on Github_

---

<div class="post-metadata">

**Author:** ![Broqee](https://avatars.discourse-cdn.com/v4/letter/b/58f4c7/32.png) [@Broqee](https://forum.cursor.com/u/Broqee)\
**Post date:** [September 28, 2025, 10:16pm UTC](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572/47 "2025-09-28T22:16:47Z")

</div>

@condor After many updates, there’s still no solution. Is this a joke?

[Previous page](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572.md?page=1)

[Next page](https://forum.cursor.com/t/azure-gpt-5-api-key-not-working-internal-server-error/128572.md?page=3)
