Do you want to access OpenAI models (such as ChatGPT) from Python scripts or other applications? Then you need an OpenAI API Key! Follow the below steps to get an API key:
Note: a paid OpenAI subscription is not required to use the API. But you need to have credit on your account. A few dollars is more than enough to get started.
- Navigate to https://platform.openai.com/ and login with your account (or create a new account)
2. Click on settings in the top menu and then click on billing on the left menu. Make sure there’s some credit on your account (a few dollars is more than enough to start with).
3. Now in the top menu, click on dashboard
4. Now in the left menu, click op API keys
5. Click on the green button in the center of the page Create new secret key
6. Now you can provide a name for your API key. It’s good practice to reference to your project, so you can remove the API key when your project is retired. You can also configure permissions.