Step-by-Step Guide: How to Get Your OpenAI API Key
The OpenAI Developer Platform lets you generate API secret keys to integrate AI models into your applications and workflows.
Step 1: Access the OpenAI Platform
-
Open your browser and go to platform.openai.com.
-
Sign in to your account, or click Sign up to create a new one.
Step 2: Navigate to API Keys
-
In the left-hand navigation sidebar, click on API keys (or go directly to
[platform.openai.com/api-keys](https://platform.openai.com/api-keys)).
Step 3: Add Billing Details (Required)
-
Navigate to Settings > Billing.
-
Click Add payment details to attach a valid payment method and add initial credit to your balance.
Step 4: Generate Your Secret Key
-
-
Return to the API keys page and click Create new secret key.
-
![]()
-
Enter a descriptive name for your key (e.g.,
Demo Key).
-
Set your preferred permissions (default is set to All Permissions).
-
Click Create secret key.
Step 5: Copy and Secure Your Key
-
Click the copy icon to save your new key to your clipboard.
