> For the complete documentation index, see [llms.txt](https://docs.datasaur.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.datasaur.ai/llm-projects/models/open-ai.md).

# Open AI

OpenAI integration in LLM Labs lets you connect and manage OpenAI chat-completion models, making them available for evaluation and deployment in LLM Labs.

## Setup

1. Click **Manage providers** then select **OpenAI** in the dialog that appears.

   <figure><img src="/files/nOG9tl14VjkPnxbmYUsO" alt=""><figcaption></figcaption></figure>
2. Enter your API key. [Learn more about how to find your OpenAI API key](https://platform.openai.com/api-keys)

   <figure><img src="/files/EFJ3mFIKqBiHAXqSYEDc" alt=""><figcaption></figcaption></figure>
3. Click **Add Credentials**. After the connection is successful, all models available through your API key will be synced to Datasaur.

## Disconnect

1. Click **Manage providers**, then click **View details** on OpenAI provider.

   <figure><img src="/files/4YoeddYFytxouiX7r8vF" alt=""><figcaption></figcaption></figure>
2. In the dialog that opens, click **Disconnect** at the bottom left.

   <figure><img src="/files/4ZLLZ9hbgTbantarLbQw" alt=""><figcaption></figcaption></figure>
3. All OpenAI models linked to that API key will be removed from the workspace.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.datasaur.ai/llm-projects/models/open-ai.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
