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

# OpenAI

> Chat with OpenAI models in Enconvo using an OpenAI API key or your ChatGPT plan.

Use OpenAI's GPT models in chats, Agents, and AI Commands. Connect with an OpenAI API key, which OpenAI bills per request, or sign in with your ChatGPT plan and use its allowance.

## Connect

**1. Get an API key**

Create a key on the [OpenAI platform](https://platform.openai.com/api-keys).

**2. Add it to Enconvo**

Open **Settings → AI Model → OpenAI**. Under **Authentication**, choose **API Key**, paste the key, then click **Validate**.

**3. Pick a model**

Choose a model in **Model Name** and send a short message. A reply means the connection works.

> [!TIP]
>
> Have a ChatGPT plan? Choose **ChatGPT Subscription** under **Authentication** instead and click **Connect**. See [ChatGPT Subscription](https://docs.enconvo.ai/providers/openai_subscription.md).

To keep a second OpenAI key, for example one for work, click **Add New Provider** and create another profile.

## Models and options

| Setting | What it does |
| - | - |
| **Model Name** | The model this provider uses. **Refresh** beside it reloads the list; **Manage Models** (the gear) adds or restores models. |
| **API Type** | In the credential. **Responses API** (the default) or **Completions API**. Keep Responses unless a compatible service needs Completions. |
| **API Base Url** | In the credential. The default is `https://api.openai.com/v1`. Change it only to use an OpenAI-compatible service. |

The same OpenAI profile also serves OpenAI embeddings, text-to-speech, image generation, and transcription, so changing its key affects those features too. To use a different model in one chat, pick it from that chat's model picker.

## Troubleshooting

| Problem | What to do |
| - | - |
| **Validate** fails | Paste the whole key again and check that it is active and has billing set up on the OpenAI platform. |
| A model is missing | Click **Refresh** beside **Model Name**. To add a model yourself, use **Manage Models**. |
| A compatible service fails | Check **API Base Url**, then try **Completions API** as the **API Type**. |
| Rate or usage limit errors | Check usage and limits on the OpenAI platform, or switch to another provider for now. |

## Related

> [card] [ChatGPT Subscription](https://docs.enconvo.ai/providers/openai_subscription.md)
>
> Use your ChatGPT plan instead of an API key.

> [card] [Credentials and profiles](https://docs.enconvo.ai/configuration/credentials.md)
>
> Keep several keys, and see what a shared key affects.

> [card] [Choose a model](https://docs.enconvo.ai/ai/model-selection-guide.md)
>
> Pick a model by task, and see where defaults are set.

> [card] [Provider catalog](https://docs.enconvo.ai/providers/catalog.md)
>
> Every provider, grouped by the feature it powers.


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