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

# OpenAI

To use the ChatGPT models on TypingMind, you will need to have a paid API key from OpenAI.

Follow the steps below to see how to do this.

> [!NOTE]
>
> The ChatGPT Plus subscription is different from the OpenAI API paid account. They are billed separately.
>
> To use TypingMind with your paid API key, you will need to have an OpenAI API paid account, which can be set up at [https://platform.openai.com/account/billing/overview](https://platform.openai.com/account/billing/overview)

## Step 1: Create an OpenAI account‍

If you don't already have an OpenAI account, first you need to go to [https://platform.openai.com/](https://platform.openai.com/) and click **Sign Up or Log in** if you already had an account.

![Image 5](https://mintcdn.com/typingmind/R1Xvq6ZobRomufvy/images/image-5.png?fit=max\&auto=format\&n=R1Xvq6ZobRomufvy\&q=85\&s=71d6bc9e4322dcb41aba5a7e234bd156)

## Step 2: Add API Credit Balance

After signing up, you will need to top up your credit to use the API key:

1. Go to your [**billing overview**](https://platform.openai.com/settings/organization/billing/overview) in your account settings

![Image 1 2](https://mintcdn.com/typingmind/R1Xvq6ZobRomufvy/images/image-1-2.png?fit=max\&auto=format\&n=R1Xvq6ZobRomufvy\&q=85\&s=41496f3b61d96ce53fb13afe15036bed)

2. Click "Add payment details" and enter your payment details
3. Choose the initial amount of credits you want to purchase. The minimum purchase is \$5.

You can enable the option Automatic recharge so OpenAI can charge you automatically once your credit balance is lower than a specific threshold to keep your workflow going without any interruption.

4. Confirm and purchase your initial amount of credits.

## Step 3: Get your API key

**‍**After successfully setting up your paid account:

* Click on API keys tab to create a new API key

![Image 2 2](https://mintcdn.com/typingmind/R1Xvq6ZobRomufvy/images/image-2-2.png?fit=max\&auto=format\&n=R1Xvq6ZobRomufvy\&q=85\&s=c8ef700704c05a7a4ad061a31edc7d63)

* Click Create a new secret key.

> [!NOTE]
>
> Within the Permissions section, please do not set restrictions for Models and Model Capabilities. Recommend setting the Permissions to All.

* Give the API key a name and click “Create secret key”

![Image 3 2](https://mintcdn.com/typingmind/R1Xvq6ZobRomufvy/images/image-3-2.png?fit=max\&auto=format\&n=R1Xvq6ZobRomufvy\&q=85\&s=e71a8056267188912dae2e5282daa702)

* Copy your API key to a safe place

## Step 4: Enter your API key to TypingMind

* Go to [**typingmind.com**](https://www.typingmind.com/)
* Navigate the Models menu on the left sidebar → Switch to API key tab
* Input the copied API key

![Api Key Tab](https://mintcdn.com/typingmind/f18I_2hiObU32xEr/images/api-key-tab.webp?fit=max\&auto=format\&n=f18I_2hiObU32xEr\&q=85\&s=cd0e293a1514cb9d086e8754ac1106ee)

* Now you can use the available OpenAI models on TypingMind (GPT-5.4, Codex, GPT-5)

![Image 6](https://mintcdn.com/typingmind/R1Xvq6ZobRomufvy/images/image-6.png?fit=max\&auto=format\&n=R1Xvq6ZobRomufvy\&q=85\&s=87c01311805f66756bbaed8245bb0212)

## Advanced settings

* **Org ID:** Specify your OpenAI Organization ID to scope request to your org
* **Custom endpoint:** Use the direct endpoint [**`https://api.openai.com/v1/chat/completions`**](https://api.openai.com/v1/chat/completions) or configure your own custom chat completions endpoint.

> [!NOTE]
>
> If you use a customized endpoint, the endpoint must be 100% compatible with OpenAI's Chat Completion endpoint; otherwise, the app functionalities may not work properly.

![Image 7](https://mintcdn.com/typingmind/R1Xvq6ZobRomufvy/images/image-7.png?fit=max\&auto=format\&n=R1Xvq6ZobRomufvy\&q=85\&s=4ff22676ec2e0747e434876e0e20aacb)


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