I cant send https request to my azure open ai service . getting unauthrized every time

גיא אנצלוביץ 5 Reputation points
2023-10-12T13:00:40.8666667+00:00

I am trying to use Azure Open AI api by sending https request. I used my key correctly with "Authorizatio" : "Bearer {my_kay}" and yet getting bad key message every time

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,696 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Saurabh Sharma 23,826 Reputation points Microsoft Employee
    2023-10-12T14:25:59.6566667+00:00

    Hi @גיא אנצלוביץ

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

    Can you please share your rest call request details. You need to make sure that you have "Cognitive Services User" permissions to access specific AI services resource.

    Please refer to the documentation for additional details.

    Thanks

    Saurabh


    Please 'Accept as answer' and Upvote if it helped so that it can help others in the community looking for help on similar topics.


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.