How to Create OpenAI API Credentials

How to Create OpenAI API Credentials

This week was a highly anticipated week in the world of AI with Google’s announcement of Bard and Microsoft’s announcement of the partnership with OpenAI to bring ChatGPT features to the Bing SERP and Microsoft Edge. If you’re reading this, you have more than likely played with ChatGPT and are ready to start scaling up your use of the GPT-3 large language model in your everyday work or even as a side project.

Creating the API credentials is pretty easy and straightforward, but it doesn’t feel right to bypass this important step and jump right into the first request since this site is designed to cater up to even the greenest of beginners.

Create Your Login

First, you need to visit the OpenAI API page and select Sign Up.

OpenAI Login Screen

This will take you to a signup page where you can sign in with Google, Microsoft, or create a separate OpenAI account using your email and a password.

Phone verification is required, so after you get logged in, it will ask for your phone number and send you a text to verify the account.

Creating Your API Key

After you’ve created your account, click on your profile drop down at the top right and click on View API Keys.

OpenAI API Key Screen

Once there, click on + Create new secret key and an API key will be generated for you. Copy the API key to your clipboard. Once you close the pop-up, you’ll never be able to recover that API key if you don’t have it stored somewhere. You can create new API keys, but OpenAI will never show you a secret key again.

If you want to follow along with my guide, create a plain text file called api-key.txt in the folder where you plan to create your Python script. Paste the API key in there and consider this step complete.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Related Posts

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top