Skip to main content

Create an OpenAI API key

Create an OpenAI API key to gain access to the ChatGPT API. This key allows OpenAI to track your usage and generate accurate billing.

  1. Log in or sign up to the OpenAI platform.

    Use the Log in or Sign up button
  2. Click Create new secret key.

    In the API Keys window, use the Create new secret key button

    You can check that your key is working by running a prompt in the playground. If your free trial is expired, inactive, or not working, you must set up a paid account in the billing dashboard.

  3. Copy your key to your clipboard.

    In the API key generated window, use the Copy button