Quick Steps Summary
-
Log in to OpenAI.
-
Click your avatar → View API Keys.
-
Click Create new secret key, optionally name it.
-
Copy the key immediately (only shown once).
-
Store it securely and use it in your projects.
-
Navigate to the OpenAI platform.
-
Click Log in (or Sign up if you're new) at the top-right corner.
-
Complete the login or registration process.
2. Create an Ozgar Project
- In the top right click the Projects Dropdown and Select Create Project
- Create a new project Ozgar
3. Create a New Secret Key
-
In your Ozgar project select API Keys → https://platform.openai.com/settings/organization/api-keys
-
On the API Keys page, click the “Create new secret key” button.
- Create the Key under a service account and assign it to the new Ozgar project
4. Copy Your API Key
-
A popup will appear revealing your newly created API key—this is your only chance to view it.
-
Click Copy and paste it into a secure location (e.g., your password manager or environment variable).
-
5. Finalize (Optional)
-
Once copied, you can safely click Done to close the dialog.
-
You'll be taken back to the API Keys listing, where your new key may be referenced, but not fully visible.
6. Security Best Practices
-
Keep your key secret! Never commit it to public repositories or share it.
-
Consider using the key through environment variables or secret managers.
-
If you suspect your key has been compromised, delete it immediately and generate a new one.