401 while accessing my openai endpoint on azure service using right apikey

Maddy 0 Reputation points
2023-12-04T21:54:55.3133333+00:00

https://<resname>.openai.azure.com/openai/deployments/<modelname>/completions?api-version=2023-09-15-preview

Even with the right key, my end point given above is not accessible returning 401
Even with the right key, my end point given above is not accessible returning 401.

The resource name, deployment name and api version are correct.

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

2 answers

Sort by: Most helpful
  1. Saurabh Sharma 23,846 Reputation points Microsoft Employee Moderator
    2023-12-05T00:25:40.3666667+00:00

    Hi @Maddy

    Welcome to Microsoft Q&A! Thanks for posting the question.

    Which GPT model you are using and in which location. Also, did you check the model in Azure Open AI Chat Playground under completions.

    User's image

    Thanks

    Saurabh

    0 comments No comments

  2. Ravi Khunt 0 Reputation points
    2024-01-03T08:37:56.01+00:00

    Same issue

    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.