Getting Started

Learn how to set up and start using the OpenAI API in just a few minutes.

1
Install the OpenAI SDK

First, install the OpenAI Python package using pip:

Terminal
pip install openai
2
Get Your API Key
  1. Go to platform.openai.com/api-keys
  2. Sign in or create an account
  3. Click Create new secret key
  4. Copy the key

You are All Set!

Check out the Examples page to see what you can build.