Getting Started with the OpenAI API
Learn how to sign up for the OpenAI API.
We'll cover the following
In order to integrate the OpenAI API in our applications, we need to first create an account.
For that, we need to complete a few steps.
Sign up
Visit the registration link and perform the following steps:
Enter a valid “Email address,” create a “Password,” and click the “Continue” button.
You will receive a verification email in your provided email address inbox.
Open the received email and click the “Verify email address” link. It will open a new tab.
In the new tab, fill in the details under the heading “Tell us about you” and click “Continue.”
Next, enter a valid “phone number” and click “Send code.”
You will then receive a code on the “Phone number” given in the previous step. Enter the 6-digit code that you receive. Once that has been verified, you’ll be directed to the next page.
Lastly, choose your use case.
You’ll be redirected to the welcome page once the account is created.
Note: Your account will start with a certain amount of free credits. After you use up your credits you will have to add a credit card number to purchase more credits. The free credits may be enough to finish this course.
Fetch the API key
Visit this page and click your profile at the top right corner. From the drop-down menu, select the “Manage account” option.
Click “API Keys” from the sidebar.
Now click "Create new secret key." Type the name and then click "Create secret key."
Copy the key and paste it somewhere safe and readily accessible.
Save the API key
Let’s save the API key to use throughout the course.
Follow the instructions below:
Click the “Edit” button in the following widget.
Enter the secret key in the
API_KEY
field. Click the “Save” button. Once theAPI_KEY
is saved, it can be used throughout the course.Now try out the ChatGPT simulator below.