> For the complete documentation index, see [llms.txt](https://docs.pandium.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pandium.com/connectors/connectors-101/openai-gpt.md).

# OpenAI (GPT)

Set up the OpenAI connector in Pandium using API key and organization credentials so tenants can authenticate securely and sync AI model outputs and chat completions.

## **Connector Overview**

<figure><img src="https://4017407078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfJn-9R_dn6dvcGNcdk%2Fuploads%2FJvc1ihNM0kWivmM68zD9%2Fimage.png?alt=media&amp;token=8781f165-5ce0-4656-a308-a05b76de2a19" alt="" width="375"><figcaption></figcaption></figure>

OpenAI is an artificial intelligence company that creates AI models and tools like ChatGPT and GPT-4, helping businesses and individuals automate tasks, generate content, and solve complex problems through advanced language understanding.

## **Supported Models**

GPT-4, GPT-4 Turbo, GPT-3.5 Turbo

## **Authentication Type**

Basic

## **Webhook Supported**

No

## **Secrets**

* PAN\_SEC\_OPENAI\_GPT\_API\_KEY
* PAN\_SEC\_OPENAI\_GPT\_ORGANIZATION
* PAN\_SEC\_OPENAI\_GPT\_PROJECT
* PAN\_SEC\_OPENAI\_GPT\_BETA

## **API Client Supported**

No

## **Requirements for Provisioning**

No provisioning is required for this connector.

## **How to Connect Your Integration**

Upon successfully creating a tenant, you will use the following OpenAI information to connect:

* API Key
* Organization
* Project
* Beta

To obtain the information required for provisioning the OpenAI Connector, perform the following steps:<br>

1. Log in to your [OpenAI Account](https://platform.openai.com/)
2. Select the Project you want to work with
   1. You can create a new project by selecting **+Create Project**<br>

      <figure><img src="https://4017407078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfJn-9R_dn6dvcGNcdk%2Fuploads%2F3pqyAXLunlyMc1KV6k0F%2Fimage.png?alt=media&amp;token=196f08c9-e5f4-4d3a-a797-37894a83fa11" alt=""><figcaption></figcaption></figure>
3. In the Dashboard, look for API Keys
4. Select **+Create New Secret Key** > Specify the following:
   1. Name
   2. Permission Level
5. When finished with step 4, select "Create Secret Key"

## **API Resources**

For more information on how to utilize the OpenAPI, feel free to reference the following [documentation](https://platform.openai.com/docs/overview).


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.pandium.com/connectors/connectors-101/openai-gpt.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
