To get your Openai key , In 2024, OpenAI introduced Projects as the recommended way to obtain and manage API keys. Projects provide a shared environment where teams can collaborate, set usage limits, and maintain API security effectively. This guide will walk you through the steps to generate an OpenAI API key, configure project settings, and optimize usage.
Create A New Project
First of all, create a new project. Go to the Projects page and create a new project from the vertical menu on the left.

In the pop-up, add your project name e.g. React AI Image Generator, and create a new project. On the next page, you will see your project name and the project ID, which will be useful later.
Allow Models
Make sure you are in the correct project. You can see the project name on the navigation bar on top of the screen. In the picture below, it’s called React AI Image Generator.

Go to Limits from the vertical menu on the left. In the section Model usage, allow to use dall-e-3
, or any other model you may want to use.
It is a good practice to only select the models you think you will use and add more as necessary.
Create A New API Key
Go to the API Keys page and click on the button Create new secret key.

In the next pop, just add the name of your API key so you can remember it in the future. Every project could use more than one API key for different things.

Once you create the key, you should save it somewhere safe and accessible. For security reasons, you won’t be able to view it again through your OpenAI account. If you lose this secret key, you’ll need to generate a new one.
This sounds more scary than it actually is. But it is correct. If you lose your API key, you will have to create a new one.
In the same way, you can create as many keys as you need.
If you’re looking to jumpstart your career as a Data Scientist, consider enrolling in our comprehensive AI Residency Program Our program provides you with the skills and experience necessary to succeed in today’s data-driven world. You’ll learn the fundamentals of statistical analysis, as well as how to use tools such as SQL, Python, Excel, and PowerBI to analyze and visualize data designed by Mohammad Arshad, 19 years of Data Science & AI Experience. But that’s not all – our program also includes a 3-month internship with us where you can showcase your Capstone Project.
Are you passionate about AI and Data Science? Looking to connect with like-minded individuals, learn new concepts, and apply them in real-world situations? Join our growing AI community today! We provide a platform where you can engage in insightful discussions, share resources, collaborate on projects, and learn from experts in the field.
Don’t miss out on this opportunity to broaden your horizons and sharpen your skills. Visit https://decodingdatascience.com/ai and be part of our AI community. We can’t wait to see what you’ll bring to the table. Let’s shape the future of AI together!