# Onboarding OpenAI account onto Economize

After signing up with [Economize](https://www.economize.cloud/signup) to connect your OpenAI account, select the **Connect OpenAI** option when choosing your provider, and follow these steps:

<figure><img src="https://4121990823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn3X3NsKiruYotJHSzbQX%2Fuploads%2FD3xZT3hVK7biV378n7Z1%2FOpenAI.png?alt=media&#x26;token=be072b68-1a1d-434b-8113-cba4df68c205" alt="" width="563"><figcaption></figcaption></figure>

## **Step 1: Create a Connection**

Economize integrates with your OpenAI account using the OpenAI [Costs API endpoint](https://platform.openai.com/docs/api-reference/usage/costs) and a read-only admin key.

1. Navigate to the [Admin Keys](https://platform.openai.com/settings/organization/admin-keys) page of the OpenAI console, and log in using your company email.
2. At the top, click **+ Create new Admin key**.
3. For **Name**, add a preferred name, like *Economize Integration*.
4. For **Permissions**, select **Read only**.
5. Click **Create admin key** and copy the generated key.

{% hint style="warning" %}
Do save your secret key in a safe place since you won't be able to view it again.
{% endhint %}

<figure><img src="https://4121990823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn3X3NsKiruYotJHSzbQX%2Fuploads%2FVfHq8XR4mrQo6izPuBGE%2FOpenAI%20Steps.gif?alt=media&#x26;token=c63d6a3c-c6d4-4645-9734-98c7167337e6" alt="" width="563"><figcaption></figcaption></figure>

## Step 2: Add configuration information to Economize console <a href="#save-credentials" id="save-credentials"></a>

After you complete all the above steps, add the **API Name,** and **API Key** you previously obtained into the Economize console, then click **Connect**.

<figure><img src="https://4121990823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn3X3NsKiruYotJHSzbQX%2Fuploads%2FGjqwxTdg73d6Y4MrBGtg%2FOpenAI%20Connect.png?alt=media&#x26;token=2b2f62af-5560-4855-a027-949f7d4bb0c1" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="success" %}
**SUCCESS**

It can take upto 15 minutes to ingest OpenAI costs. As soon as they are processed, they will be available within Economize.
{% 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.economize.cloud/ai/openai.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.
