How to Get OpenAI API Key (3 Easy Steps)

An OpenAI API key is a unique code that allows you to use OpenAI’s AI models.

But, how to get the secret key from your OpenAI account? Don’t worry. I’ll guide you on how to get the OpenAI API key with three steps.

Step 1: Sign up or Log in to OpenAI

Visit the OpenAI website and sign up for an account if you haven’t already. If you have one, enter your email and password.

Login to OpenAI

After logging in, you’ll see two options: ChatGPT and API. Click on the “API” option to go to the OpenAI dashboard and make a key.

But, if you choose the “ChatGPT”, you’ll start chatting with ChatGPT. (Don’t choose this option)

ChatGPT and API options

Step 2: Navigate to the API Keys tab

Once you’re logged in, click “API keys”.

Navigate to the API keys tab

The tab will show all your current keys and the option to create new ones.

Step 3: Create your OpenAI API key

Click on “+ Create new secret key” to generate a new key.

Select the "+ Create new secret key" button

Name the API key, then choose “Create secret key”.

Confirm the "Create secret key" button

Once created, your new API key will appear on your screen for a brief moment. Copy it carefully and store it in a secure location, like a password manager.

Create new secret key success

Remember, never share your API key with anyone! Don’t share the key in a public place like an application or website that you do not trust.

Final thoughts

With your OpenAI API key, you can use OpenAI’s AI tools for your projects. Just follow the three steps above.

But, keep your key safe and secret, and be aware of an expiration date.

Share your love
Louis Muswell

Louis Muswell

Louis Muswell is the Founder of AI Discovery. He has over 10 years of experience in AI research and development. Louis has created an online platform for AI enthusiasts to explore the depths of artificial intelligence, making it accessible to everyone.