To get your secret key you first need to create an account on OpenAi Plateform and verify your email. Right after creating your account, you’ll be asked to provide your phone number and a secret code sent by SMS. Since OpenAI offers free credits, it prevents people from creating multiple accounts in order to get an unlimited number of free credits.
By clicking on “View API Keys”, you’ll access the API key generator. Here you can create a new API Key clicking on “Create new secret key”. In this page you can create several API Keys and revoke it at any moment. For more security, it’s a good practice to regulary revoke old keyws and create new ones, as it’s a good practice to regulary change your OpenAI login password.