How to Retrieve Your OpenAI API Key
Important Note: This guide assumes you have already set up an organization on OpenAI. If you haven't created an organization yet, you'll need to do that first before proceeding with these steps.
Retrieving Your API Key
-
Go to the OpenAI platform website
-
Sign in to your account
- Use your email and password credentials
- If you don't have an account, you'll need to create one first
-
Verify your organization
- Confirm you're in the correct organization by checking the organization name in the top-left corner
- If you need to switch organizations, click on the organization name and select the appropriate one from the dropdown
-
Navigate to API keys section
- In the left sidebar, click on "API keys"
-
Generate a new API key
- Click the "Create new secret key" button
- Optionally, provide a descriptive name for your key to help you identify its purpose later
-
Copy your API key
- Your new API key will be displayed only once
- Copy it immediately to a secure location
- Important: You won't be able to see the full key again after closing this screen
-
Store your API key securely
- Keep it in a password manager or other secure location
- Never share your API key publicly or commit it to version control
Remember that your API key grants access to your account and associated billing. Keep it secure and rotate keys periodically as a security best practice.