# OpenAI Setup

### Step by Step guide to generate a working API key on OpenAI

{% hint style="info" %}
Kindly follow the below steps in the given order. If any step is skipped, the generated API key will **not** work
{% endhint %}

**Step 1:** Create an account at <https://openai.com>

<div data-full-width="false"><figure><img src="/files/mjUk9fHy1uqK33122TRH" alt="" width="375"><figcaption></figcaption></figure></div>

**Step 2:** Verify your account

You will receive a verification email. Verify that.

**Step 3:** Select API

<figure><img src="/files/TQR330GZzBWgTpXUGfne" alt=""><figcaption></figcaption></figure>

**Step 4:** Click on your profile ---> Manage Account

<div align="left"><figure><img src="/files/qNKfRCzONT0fDPjBwrns" alt=""><figcaption></figcaption></figure></div>

**Step 5**: Click on Billing and associate a payment method

{% hint style="info" %}
This is the most **crucial step.** You need to associate a valid payment method as per the OpenAI guidelines so as to activate your API key. This will not cost you anything. The cost depends on how frequent you use the key and the bill is generated monthly. As per the [pricing models of openAI](https://openai.com/pricing), the cost is significantly cheap for generating the content.&#x20;
{% endhint %}

<figure><img src="/files/mCdbNcNocXx6Ro2wmhTZ" alt=""><figcaption></figcaption></figure>

Click 'Start payment plan' and associate a valid method payment.

<figure><img src="/files/Y6sUo8SMj4Blnxk4CLyS" alt=""><figcaption></figcaption></figure>

**Step 6**: Click on API keys

{% hint style="info" %}
This step should only be performed once a valid payment method has been added to your openAI account
{% endhint %}

Click on API keys in the left sidebar at the bottom. Generate new secret key. This secret key is nothing but your openAI API key.

<figure><img src="/files/xpoZnc12ccT7Gkjh51VJ" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Please be double sure that you have a valid payment method added to your account before generating the key. Else, your key will not produce any results.
{% 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://docs.cloozo.com/fundamentals/openai-setup.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.
