> ## Documentation Index
> Fetch the complete documentation index at: https://docs.draftt.io/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAI

> Connect OpenAI to Draftt to discover and govern the AI models used across your organization.

Connect OpenAI to Draftt to discover and govern the AI models used across your organization. Draftt monitors model usage, lifecycle risks, and costs alongside the rest of your technology stack.

<Note>
  You need an OpenAI organization Owner to create an Admin API key. Configure the key with **Read only** permissions for this integration.
</Note>

## What you'll need

* Access to the Draftt dashboard with permission to add integrations.
* An OpenAI organization Owner who can create an Admin API key.

## Set up OpenAI

<Steps>
  <Step title="Name your integration">
    In Draftt, go to **Integrations > OpenAI > Add**. Enter a descriptive name to identify the integration in your dashboard.
  </Step>

  <Step title="Generate an Admin API key">
    Open the [OpenAI Admin API keys page](https://platform.openai.com/settings/organization/admin-keys) and select **Create new admin key**.

    * In **Name**, enter `draftt-admin-key`.
    * For **Expiration**, select **Never**.
    * Under **Permissions**, select **Read only**.
    * Select **Create admin key**, then copy the key.

    <Warning>
      OpenAI displays the key only once. Store it securely. If you lose it, create a new key.
    </Warning>
  </Step>

  <Step title="Connect OpenAI">
    Paste the key into the **Admin API Key** field in Draftt, then complete the setup.
  </Step>
</Steps>

## What Draftt scans

Draftt scans your OpenAI organization for:

| Area            | What Draftt discovers                             |
| --------------- | ------------------------------------------------- |
| Model inventory | Models used across your organization.             |
| Lifecycle risks | Models approaching deprecation or end of support. |
| Usage and costs | Model consumption and associated costs.           |

## Verify your connection

After setup, return to **Integrations > OpenAI** in Draftt. A **Healthy** status means Draftt can access your OpenAI organization and is syncing as expected.

If the integration is **Unhealthy**, verify that the Admin API key is valid, has **Read only** permissions, and has not expired or been revoked.
