Skip to main content

API Key

In this step, we are going to create an OpenAI API Key.

Creating the key

  1. Navigate to https://platform.openai.com/account/api-keys
  • Login with your existing account or sign up.

Api Key 1

  • Create a secret key, and note it somewhere

Api Key 2

Free Quota

As a free trial API user, you will benefit from an initial credit of $5 that expires after three months.

Upgrading to the pay-as-you-go plan will increase your usage quota to $120/month which is required when deploying the app and going live.

  • Set up a paid account for production

Api Key 4

  • You can monitor your usage under the usage tab

Api Key 4

Setting the key

  1. Go to the project files, open the .env file and paste your API Key

Api Key 3

  1. Save and move to the next step
Changing the key

The app should be rebuilt and restarted whenever any change is made to the key within the env file