# Getting new/permanent OpenAI key

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

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

1. Open [Chatkuai](https://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://auth.openai.com/create-account) 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://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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.mampuai.com/mampu-ai/artificial-intelligence/openai-or-chatgpt/getting-new-permanent-openai-key.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
