> For the complete documentation index, see [llms.txt](https://docs.heyamica.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.heyamica.com/connecting-llms-your-core-ai-chatbot-model/using-openai.md).

# Using OpenAI

Navigate to [platform.openai.com](https://platform.openai.com/). On the left hand side, click on the "API Keys" tab. Click on "Create new secret key". Copy the API key and paste it into the settings.

#### ChatGPT Configuration

Set the backend to ChatGPT:

```bash
Settings -> ChatBot -> ChatBot Backend -> ChatGPT
```

Set the API key:

```bash
Settings -> ChatBot -> ChatGPT -> OpenAI API Key
```

#### TTS Configuration

Set the backend to OpenAI:

```bash
Settings -> Text-To-Speech > TTS Backend -> OpenAI TTS
```

Set the API key:

```bash
Settings -> Text-To-Speech > OpenAI -> API Key
```

#### Transcription Configuration

Set the backend to Whisper (OpenAI):

```bash
Settings -> Speech-to-Text > STT Backend -> Whisper (OpenAI)
```

Set the API key:

```bash
Settings -> Speech-to-Text > Whisper (OpenAI) -> API Key
```
