How to create openai api key

Written by

Alessandro Morandi

Published on

2023-21-03

How to create OpenAI API keys

To use OpenAI through API, you must create a free account and generate keys. Fortunately, it is pretty straightforward.

  1. Sign up here link. You can use your Google account to sign up if you don't want to create using an email/password combination.

  2. Now, visit your OpenAI key page link or click the menu item "View API keys"

  3. Create a new key by clicking the "Create new secret key" button. See the image for reference.

That's all. You can use this key in your applications.

Cost

Do note that you will be charged based on your monthly usage but don't worry, for personal use is close to zero cost.

Setting limits

OpenAI gives $18 free credits which you can consume within the first 3 months. This is a great way to test the service.

If you plan to use it regularly, you need to add your credit card information here link

You can also set up a usage limit, if you have a paid setup. Here the limits link