# Create OpenAI API Key

If you don't have an account, let's create one at <https://platform.openai.com/signup>.&#x20;

### Step 1: Add payment details

If you don't have free credit, you might need to add payment detail and add credit balance to start using OpenAI API. Go to <https://platform.openai.com/account/billing/overview> and click "Add payment details".&#x20;

Otherwise, if you already have credit balance, just skip this step and go to [#step-6-go-to-https-platform.openai.com-api-keys-and-click-create-new-secret-key](#step-6-go-to-https-platform.openai.com-api-keys-and-click-create-new-secret-key "mention").

<figure><img src="https://2130568151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxe3N3qPZEhbHGWOpdQfl%2Fuploads%2FjBmCzkcurVSweCVpNQGp%2Fopenai-apikey1.jpg?alt=media&#x26;token=fb392b24-0d3b-4e7c-bb78-ae08dde85c81" alt=""><figcaption></figcaption></figure>

### Step 2: Select payment type

Choose your best fit payment type. Let try with "Individual" if you plan to use the API personally.

<figure><img src="https://2130568151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxe3N3qPZEhbHGWOpdQfl%2Fuploads%2F6bwiTFei8gppOeiAlY0u%2Fopenai-apikey2.jpg?alt=media&#x26;token=6917bcd1-839b-49e2-ac96-28f6ef109a49" alt=""><figcaption></figcaption></figure>

### Step 3: Enter card information

<figure><img src="https://2130568151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxe3N3qPZEhbHGWOpdQfl%2Fuploads%2Far4SkV9orUvc6bzvPgzr%2Fopenai-apikey3.jpg?alt=media&#x26;token=0ce3b8a2-bb3f-4420-9490-a0ef12b9d94f" alt=""><figcaption></figcaption></figure>

### Step 4: Add credit balance

<figure><img src="https://2130568151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxe3N3qPZEhbHGWOpdQfl%2Fuploads%2F0GYpy0I6RDTBbpaPZVbx%2Fopenai-apikey4.jpg?alt=media&#x26;token=52480cb1-e3aa-441c-844d-c96046e868b2" alt=""><figcaption></figcaption></figure>

### Step 5: Enter amount

<figure><img src="https://2130568151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxe3N3qPZEhbHGWOpdQfl%2Fuploads%2FYHonWTxIJYI6tBnZKN9q%2Fopenai-apikey5.jpg?alt=media&#x26;token=6f3e9748-ac16-4b0f-b263-97d6062eb3e7" alt=""><figcaption></figcaption></figure>

### Step 6: Go to <https://platform.openai.com/api-keys> and click "Create new secret key"

<figure><img src="https://2130568151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxe3N3qPZEhbHGWOpdQfl%2Fuploads%2FLdM9nSJLcVj5dnjEjCdJ%2Fopenai-apikey66.jpg?alt=media&#x26;token=1de26fdf-a008-4581-bf38-609616e5441d" alt=""><figcaption></figcaption></figure>

### Step 7: Enter key name and click "Create secret key"

<figure><img src="https://2130568151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxe3N3qPZEhbHGWOpdQfl%2Fuploads%2Fgo0EDPYLb1zeiKdWNEja%2Fopenai-apikey7.jpg?alt=media&#x26;token=12ad3634-5387-4aa7-aa2c-f3e93a5f61a6" alt=""><figcaption></figcaption></figure>

### Step 8: Copy the API key. Keep it secret.

Please notice that you won't be able to view the key again through your OpenAI account for security reasons. If you lose this secret key, you'll need to generate a new one.

<figure><img src="https://2130568151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxe3N3qPZEhbHGWOpdQfl%2Fuploads%2FFO6qNbCihAAn15WHGNgj%2Fopenai-apikey8.jpg?alt=media&#x26;token=dc63e339-bc08-47f8-a290-2ae8f64dad04" alt=""><figcaption></figcaption></figure>

Now go to [](https://docs.mindmac.app/how-to.../add-api-key "mention") and use copied API key to create new API endpoint.
