# 5. Getting AI API Key

{% embed url="<https://youtu.be/OrzQAheWIfY>" %}

## **Step 1: Access the Chatbot AI Integration Settings**

1. Open [Chatkuai](https://www.chatkuai.com).
2. Navigate to the **Integration** section.
3. Select **OpenAI** from the list of available integrations.
4. You will see a field requiring an **API Key**. To obtain this key, proceed to the next steps.

***

## **Step 2: Sign Up for an OpenAI Account**

1. Click [Sign Up](https://openai.com/) or scroll down until see [OpenAI Portal](https://platform.openai.com/login).
2. Click **Sign Up** (if you don’t have an account) or **Log In** (if you already have one).
3. Follow the registration process.

***

## **Step 3: Generate an OpenAI API Key**

1. After logging in, you will be redirected to the [OpenAI **platform dashboard**](https://platform.openai.com/).
2. Go to **API Keys** (found in the left sidebar).
3. Click **Create API Key**.
4. Enter a name for the key (optional).
5. Click **Generate API Key**.
6. Copy the generated API Key (you will not be able to see it again).

***

## **Step 4: Add the API Key to Your Chatbot**

1. Return to [Chatkuai](https://www.chatkuai.com).
2. Paste the copied **API Key** into the OpenAI **API Key** field.
3. Click **Save** to apply the integration.

***

## **Step 5: Add Credits to Your OpenAI Account**

To use OpenAI's API services, you need to add a minimum balance:

1. Return to the OpenAI **platform dashboard**.
2. Choose **Settings**
3. Select **Billing** at left side bar
4. Click **add payment details**
5. Fill in required details.

{% hint style="success" %}

### **Final Notes**

* **Keep your API Key secure** and do not share it with others.
* You can always manage, regenerate, or delete your API key from OpenAI’s API settings.
* Make sure your OpenAI account has sufficient balance to avoid service interruptions.
  {% endhint %}
