How to generate your OpenAI key for Generative AI applications

Neesh AI
3 min readNov 20, 2023

--

Welcome to NeeshAi!

OpenAi key is free, and depending upon your usage, you will be required to make payment, or opt for Plus membership/account. The blog shares the steps on generating your OpenAi API key to use in Generative AI products and applications.

Few points of concerns :

1. If you are using your personal account on OpenAI, then you can create (or, delete) your keys multiple times, but each of your keys has limits on the number of times you can use them

2. For your official or enterprise accounts, you have to make payment depending upon the rate limits — Rate limits are determined by 2 factors — TPM (Tokens per minute) and RPM (Requests per minute)

The page on the official website gives a detailed info on the pricing for different types of the models and their usage : https://openai.com/pricing#language-models

Take care of the following while generating/handling your keys :

  • Avoid spaces in your text
  • Keep the text of medium length
  • Store your keys in separate file, and call it in your notebooks/scripts
  • Avoid sharing the keys over public code repositories or videos

One can also refer to the official page on OpenAI to follow the steps wrt key safety : https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety

Steps to enable OpenAI key :

Step 1 : Register your account on https://chat.openai.com/auth/login

Step 2 : Login and visit ​​https://platform.openai.com/account/

Step 3 : Select ‘API Keys’ on the left side toolbar, and click on ‘+Create new secret key’. This should open up the following alert box.

Step 4 : Your key should be generated and listed under the ‘API keys’ section

Step 5 : Keep track of your key usage under the ‘Usage’ section on the left toolbar. Ensure the amount is not showing any unexpected spike, or even regular small deductions.

Once your keys are generated, you can start with creating your own Assistants on ChatGPT or you can make use of the API keys in creating your RAGs. The applications are endless.

Try with ‘Playground’ on the OpenAI portal.

We hope you liked the write-up. Soon, we will come up with more exciting blogs in Generative Ai.

Do share your feedback and follow NeeshAi to learn more about theoretical and practical blogs on Tech! Keep learning.

Enjoy GPTing!!

--

--

Neesh AI

An AI & analytics focused firm helping create data-driven outcomes for technology businesses.