How to get OpenAI API key

  • Visit OpenAI API Keys page. (https://platform.openai.com/api-keys)
  • Log in if you already have an account, or sign up if you don’t.
  • In the left sidebar, click on “API Keys” or go directly to this link (https://platform.openai.com/api-keys).
  • Click the “Create New Secret Key” button at the top right.
  • Name your key (choose any name you like).
  • Select a project (or use the default one).
  • Leave the permissions as they are.
  • Click the “Create Secret Key” button.
  • Your key will be displayed as a long alphanumeric string.
  • Click to copy it (you won’t be able to see the key again, so make sure to store it safely before closing the popup).
  • The key will now be listed on the API Keys page.
  • If you lose it, you can delete the key and create a new one.

Reminder: Do not share you API key with anyone!