Getting Started with the OpenAI API

Learn how to sign up for the OpenAI API.

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:

  1. Enter a valid “Email address,” create a “Password,” and click the “Continue” button.

  2. You will receive a verification email in your provided email address inbox.

  3. Open the received email and click the “Verify email address” link. It will open a new tab.

  4. In the new tab, fill in the details under the heading “Tell us about you” and click “Continue.”

  5. Next, enter a valid “phone number” and click “Send code.”

  6. 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.

  7. 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

  1. Visit this page and click your profile at the top right corner. From the drop-down menu, select the “Manage account” option.

  2. Click “API Keys” from the sidebar.

  3. Now click "Create new secret key." Type the name and then click "Create secret key."

  4. Copy the key and paste it somewhere safe and readily accessible.

Press + to interact
Creating a new API key
Creating a new API key

Save the API key

Let’s save the API key to use throughout the course.

Follow the instructions below:

  1. Click the “Edit” button in the following widget.

  2. Enter the secret key in the API_KEY field. Click the “Save” button. Once the API_KEY is saved, it can be used throughout the course.

  3. Now try out the ChatGPT simulator below.