Here's how to do it:
- Visit the OpenAI platform website at platform.openai.com.
- Click the gear icon in the top-right corner of the window to access "Settings."
- Go to "API Keys."
- On the API Keys page, click the "Create new secret key" button.
- Enter the "Name" and "Project" for the new secret key.
- Select "Create secret key" to proceed.
- Copy the API key immediately after it is created, as you won’t be able to view it again later.