Quick Steps Summary

  1. Log in to OpenAI.

  2. Click your avatar → View API Keys.

  3. Click Create new secret key, optionally name it.

  4. Copy the key immediately (only shown once).

  5. Store it securely and use it in your projects.

 


 
1. Log in or Sign Up

  • 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

 

 

 

 

 

 

 

 

 

 

 


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.