Issues with Azure OpenAI API key?

Hi

First time cursor user here. Decided to give it a go but have already failed at the first hurdle. I went into Cursor Settings > Models and scrolled down to “Azure API Key”. I entered my endpoint, api key and deployment name but I get “Invalid credentials. Please Try again”.

I have no problem making an API request using the same details but cursor’s not playing ball. Conscious I need to specify the API version in my API calls (e.g., 2024-03-01-preview) but I don’t see any such option with cursor.

Would appreciate any help as I’m keen to try out Cursor. Thanks

Having the same issue. Any update on this?

For me this worked

BaseUrl: https://<deployment-url>.openai.azure.com
deployment: gpt-35-turbo
Api Key: <AZURE-API-KEY>

Not working over here and I don’t see anything suspicious in the logs.

This is likely related to your network permissions and possibly incorrect values used on Cursor Settings.

Clear step-by-step instructions with images: Struggling with Azure OpenAI setting - #15 by darrensapalo