How to retrieve key and endpoint for openai?

Wu, Wei-Ping 0 Reputation points
2023-07-04T07:01:35.5466667+00:00

Hi there

I am trying to get openai package in Python. But I am not sure how to get the retrieve kay and endpoint?

https://learn.microsoft.com/en-us/azure/cognitive-services/openai/chatgpt-quickstart?source=recommendations&tabs=bash&pivots=programming-language-python#prerequisites

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,549 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,057 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Konstantinos Passadis 19,281 Reputation points MVP
    2023-07-06T10:22:22.94+00:00

    Hello @Wu, Wei-Ping !

    Welcome to Microsoft QnA!

    Go to the portal.azure.com

    Find the OpenAI Resource

    Screenshot of the overview UI for an OpenAI Resource in the Azure portal with the endpoint & access keys location circled in red.

    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards

    2 people found this answer helpful.
    0 comments No comments

  2. JimmySalian-2011 42,221 Reputation points
    2023-07-04T09:22:04.5433333+00:00

    Hi,

    Did you tried the How-to-guide for OpenAI and check the steps listed if it helps -https://learn.microsoft.com/en-us/azure/cognitive-services/openai/how-to/chatgpt?pivots=programming-language-chat-completions

    Please try this if it helps.

    0 comments No comments

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.