> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sleekchat.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create an OpenAI API Key

> Learn how to create your own OpenAI API key for use in Open WebUI. A few simple steps to get started and you will be ready to go!

## OpenAI Console

If you already have your OpenAI API key, you can skip this section. Otherwise, let's walk through the steps to get your OpenAI API key.

Go to the [OpenAI Console](https://platform.openai.com/docs/overview) where on the top right corner, you will see a button to sign up or sign in. If you don't have an account, click on the **Sign Up** button and follow the instructions to create an account.

<Frame caption="Sign up for an OpenAI account, click on the button marked with the red rectangle.">
  <img src="https://mintcdn.com/sleekinc/DKiZGOrvGcLo1bzI/images/openai-reg.png?fit=max&auto=format&n=DKiZGOrvGcLo1bzI&q=85&s=bd2eaeb4cf06ae123ddc8a7a0c14d638" width="400" data-path="images/openai-reg.png" />
</Frame>

Don't worry about the developer focused content, you will be able to use the OpenAI API without any programming knowledge. Once you have signed up, you will be taken to the OpenAI Console.

After you are signed in, you will see a gear icon on the top right corner, click on it to open the settings menu.

<Frame caption="Go to your settings page, click on the button marked with the red rectangle.">
  <img src="https://mintcdn.com/sleekinc/DKiZGOrvGcLo1bzI/images/openai-gear.png?fit=max&auto=format&n=DKiZGOrvGcLo1bzI&q=85&s=c22ac38993295ed6551d19dd2be6c5fe" width="400" data-path="images/openai-gear.png" />
</Frame>

There are 2 options for the API keys, you can create an organization wide key or a project wide key. For the sake of this tutorial, we will create an organization wide key.

<Frame caption="Go to your Organization API keys page, click on the button marked with the red rectangle.">
  <img src="https://mintcdn.com/sleekinc/DKiZGOrvGcLo1bzI/images/openai-api-keys.png?fit=max&auto=format&n=DKiZGOrvGcLo1bzI&q=85&s=9d2fcba58d73dcbe3cfc0795c50ac844" width="300" data-path="images/openai-api-keys.png" />
</Frame>

You will see a button on the top right corner. Click on the **Create new secret key** button.

<Frame caption="Click on this button to create a new API key.">
  <img src="https://mintcdn.com/sleekinc/DKiZGOrvGcLo1bzI/images/openai-create-api-key.png?fit=max&auto=format&n=DKiZGOrvGcLo1bzI&q=85&s=68080ab7aef6bd5134de3cbdf0fe2fde" width="250" data-path="images/openai-create-api-key.png" />
</Frame>

A modal window will then pop up asking you to name your API key. You can name it anything you want, but for the sake of this tutorial, we will name it **Open WebUI**. Click on the **Create secret key** button to create the API key.

<Frame>
  <img src="https://mintcdn.com/sleekinc/DKiZGOrvGcLo1bzI/images/openai-modal-key.png?fit=max&auto=format&n=DKiZGOrvGcLo1bzI&q=85&s=3f3e8074fd7eecc64e66fba96cb3d2dd" width="350" data-path="images/openai-modal-key.png" />
</Frame>

<Steps>
  <Step title="First Step">
    In the `Owned by` field, select `You`.
  </Step>

  <Step title="Second Step">
    You can set any arbitrary name for your API key.
  </Step>

  <Step title="Third Step">
    In the Project field, you can choose the `Default Project`.
  </Step>

  <Step title="Fourth Step">
    For the `Permissions` field, let's select `All`.
  </Step>

  <Step title="Fifth Step">
    Click on the `Create secret key` button on the bottom right corner of the modal window.
  </Step>
</Steps>

<Frame caption="Your new OpenAI API key, keep this safe, we will use this to configure Open WebUI in the next step.">
  <img src="https://mintcdn.com/sleekinc/DKiZGOrvGcLo1bzI/images/openai-new-key.png?fit=max&auto=format&n=DKiZGOrvGcLo1bzI&q=85&s=1de01e5c166d954dc60a2941ddd7ee51" width="450" data-path="images/openai-new-key.png" />
</Frame>

### Important Note About API Keys

Never share the API keys you have created with anyone. Store it somewhere safe. For more information, follow OpenAI's best practice below:

[OpenAI API Key Best Practices](https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety)

## Congrats!

You are now done creating your own OpenAI API key. Let's move on to the next step and configure Open WebUI with your OpenAI API key.
