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

# OpenAI

> Connect OpenAI to call GPT models from within Adapt

Connect your OpenAI account to Adapt so you can call OpenAI models for text generation and analysis. You will create an API key in the OpenAI platform and, optionally, note your organization and project IDs.

## Set up credentials

**1. Sign in to the OpenAI platform**

Go to [platform.openai.com](https://platform.openai.com) and sign in with an
account that has access to the organization you want to use.

**2. Open the API keys page**

Navigate to [platform.openai.com/api-keys](https://platform.openai.com/api-keys).

**3. Create a new secret key**

Click **Create new secret key**, give it a name, and confirm. Copy the key
immediately and store it somewhere safe.

> [!NOTE]
>
> The secret key is shown only once. If you lose it, create a new key and
> delete the old one.

**4. Find your organization and project IDs (optional)**

In the platform settings, open **Settings > Organization > General** to find
your **Organization ID**, and **Settings > Project > General** (with the
project selected) to find your **Project ID**. These are only needed if you
belong to multiple organizations or want usage scoped to a specific project.

## Connect to Adapt

**1. Open Integrations**

In Adapt, go to **Settings > Integrations**.

**2. Find OpenAI**

Search for **OpenAI** and select it from the catalog.

**3. Start the connection**

Click **Connect** to open the connection form.

**4. Add your credentials**

Enter the values you gathered above, then click **Add connection**:

| Secret Name | Value |
| - | - |
| `OPENAI_API_KEY` | Your OpenAI API key |
| `OPENAI_ORG_ID` | Your organization ID (optional) |
| `OPENAI_PROJECT_ID` | Your project ID (optional) |

You can rename the connection and choose whether it is shared with your
organization or kept personal to you.

**5. Test the connection**

Run a short prompt from Adapt to confirm OpenAI responds.

### Security

* Credentials are encrypted at rest with AES-256
* Treat your API key like a password and rotate it if you suspect exposure
* Scope usage to a dedicated project to track and limit spend
* Never share your API key or commit it to source control

## Capabilities

Call OpenAI models such as GPT directly from Adapt for text generation,
summarization, and classification. Use it to draft content, analyze text, and
power AI workflows without leaving Adapt.

### Examples

```
Summarize this customer feedback thread into three key themes.
```

```
Classify these support tickets by urgency and topic.
```

```
Draft a product announcement email from these release notes.
```

```
Extract the action items from this meeting transcript.
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.