---
title: Create an OpenAI connection
description: Create an OpenAI connection in Catalog Explorer that stores authentication details for Lakeflow Connect ingestion.
canonical_url: https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/openai-connection
---

# Create an OpenAI connection

> [!NOTE]
> **Beta**
>
> This feature is in [Beta](https://docs.databricks.com/aws/en/release-notes/release-types.md). To use it, a workspace admin must turn on **Lakeflow Connect for OpenAI** from the **Previews** page. See [Manage Databricks previews](https://docs.databricks.com/aws/en/admin/workspace-settings/manage-previews.md).

Create an OpenAI connection in Catalog Explorer to store authentication credentials for Lakeflow Connect ingestion. Any user with the `USE CONNECTION` privilege on the connection can then create OpenAI ingestion pipelines without needing direct access to the credentials.

Alternatively, admin users can create a connection and a pipeline at the same time in the data ingestion UI. See [Ingest data from OpenAI](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/openai-pipeline.md).

For privilege requirements, see [Connect to managed ingestion sources](https://docs.databricks.com/aws/en/connect/managed-ingestion.md).

## <a id="prerequisites" />Prerequisites

Complete the [source setup](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/openai-source-setup.md). Use the credentials retrieved there to create the connection.

## <a id="create-a-connection" />Create a connection

1. In the Databricks workspace, click **![Data icon.](https://docs.databricks.com/aws/en/images/product-icons/DataIcon.svg) Catalog > Create > Create a connection**.
2. On the **Connection basics** page of the **Set up connection** wizard, specify a **Connection name**.
3. In the **Connection type** drop-down menu, select **OpenAI**.
4. (Optional) Add a comment.
5. Click **Next**.
6. On the **Authentication** page, enter the following credentials from [Configure authentication to OpenAI](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/openai-source-setup.md):
   * **Admin API Key**: Admin API Key to authenticate to your OpenAI organization.
7. Click **Create connection**.

## <a id="next-steps" />Next steps

[Create an ingestion pipeline](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/openai-pipeline.md).
