# OpenAI API Key Setup

Supreme AI Writer is powered by OpenAI, so you'll need to enter your OpenAI API Key to be able to use the AI Writer feature in Divi Builder.

{% hint style="info" %}
Verify that the usage and expiration date on <https://platform.openai.com/account/usage> is not expired, and confirm that the billing has been configured accurately. This is because the error message from ChatGPT indicates that your quota has been exceeded, which may be due to expiration or token exhaustion
{% endhint %}

**Is an OpenAI API Key Free?**

You can create an OpenAI API key for free. New free trial users receive $5 (USD) worth of credit. However, this expires after three months. Once your credit has been used up or expires, you can enter billing information to continue using the API of your choice. Remember that if you don’t enter any billing information, you will still have login access but won’t be able to make further API requests.

### 1. Getting the API Key

To get your OpenAI API Key, go to Supreme AI Writer Setting and here click the link below the API Key field, which will take you to the Open AI Website.

{% hint style="info" %}
If you don't have an OpenAI Account already, you can easily create one.
{% endhint %}

<figure><img src="https://681473791-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mkqx-Lch04ohR29IegM%2Fuploads%2FRe4fZHCWKJZwA2PcNG04%2F2023-04-11%20at%2022.14.38.png?alt=media&#x26;token=5805a678-c439-42cc-adf7-871bd9c6ce60" alt=""><figcaption></figcaption></figure>

Now, on the next screen, you can click the "Create New Secret Key" button to create a new API Key.

<figure><img src="https://681473791-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mkqx-Lch04ohR29IegM%2Fuploads%2Fmn6XFVPbEl9cPdO8cScD%2F2023-04-11%20at%2022.15.24.png?alt=media&#x26;token=90abc7cf-7b32-4243-a9ed-7ad45a16f2ec" alt=""><figcaption></figcaption></figure>

You'll see a popup appear with the API Key, that you need to copy.

<figure><img src="https://681473791-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mkqx-Lch04ohR29IegM%2Fuploads%2Fm0db9Sab6v3pTeMHgK0J%2F2023-04-11%20at%2022.15.32.png?alt=media&#x26;token=e75ef94e-19d9-478b-b9f8-13a8b2d3c73a" alt=""><figcaption></figcaption></figure>

Simply copy it and go to Supreme AI Writer Settings and paste it here.

<figure><img src="https://681473791-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mkqx-Lch04ohR29IegM%2Fuploads%2Fg0XjvfmP6mWCZeLkfci5%2F2023-04-11%20at%2022.16.12.png?alt=media&#x26;token=4b35c6d5-0b47-4661-a560-c462684e8a88" alt=""><figcaption></figcaption></figure>

And that's It, now you can start using Supreme AI Writer Inside Divi. Happy Creating 😀


---

# 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://divisupreme.gitbook.io/divi-supreme/supreme-ai-writer/openai-api-key-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.
