Azure OpenAI - Access denied due to invalid subscription key or wrong API endpoint

Witold Wydmański 80 Reputation points
2023-06-02T07:23:57.54+00:00

Hi!

I just got access to Azure OpenAI services. I'm trying to use Azure AI Studio to test out my subscription, but it looks like something's wrong - I can't even use the official GUI because I keep getting an "Acess denied due to invalid subscription key" error, as on the image below.

obraz

I created a deployment and did everything by the book. Is there something I'm missing?

Best wishes,

Witold Wydmański

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,103 questions
{count} votes

8 answers

Sort by: Most helpful
  1. Eirik Y Øra 25 Reputation points
    2023-09-07T14:00:15.3066667+00:00

    I got this error, but turned out that I had not properly set the API-key or endpoint variable. Print them to screen an make sure that they are not just set as "None" in your program. ;-)

    0 comments No comments

  2. Tech Kalapa 65 Reputation points
    2023-10-16T08:27:31.5766667+00:00

    I have the same error.

    0 comments No comments

  3. Jason Owens 0 Reputation points
    2024-08-15T00:01:38.5466667+00:00

    Make sure to use the correct endpoint. I was using vision.cognitiveservices.azure.com/ instead of face.cognitiveservices.azure.com/

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.