> ## 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)
</Note>

## 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.

<Frame>
  <img src="https://mintcdn.com/typingmind/R1Xvq6ZobRomufvy/images/image-5.png?fit=max&auto=format&n=R1Xvq6ZobRomufvy&q=85&s=71d6bc9e4322dcb41aba5a7e234bd156" alt="Image 5" width="2400" height="1614" data-path="images/image-5.png" />
</Frame>

## 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

<img src="https://mintcdn.com/typingmind/R1Xvq6ZobRomufvy/images/image-1-2.png?fit=max&auto=format&n=R1Xvq6ZobRomufvy&q=85&s=41496f3b61d96ce53fb13afe15036bed" alt="Image 1 2" width="2516" height="1430" data-path="images/image-1-2.png" />

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

<img src="https://mintcdn.com/typingmind/R1Xvq6ZobRomufvy/images/image-2-2.png?fit=max&auto=format&n=R1Xvq6ZobRomufvy&q=85&s=c8ef700704c05a7a4ad061a31edc7d63" alt="Image 2 2" width="2560" height="1314" data-path="images/image-2-2.png" />

* 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.
</Note>

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

<img src="https://mintcdn.com/typingmind/R1Xvq6ZobRomufvy/images/image-3-2.png?fit=max&auto=format&n=R1Xvq6ZobRomufvy&q=85&s=e71a8056267188912dae2e5282daa702" alt="Image 3 2" width="1098" height="1016" data-path="images/image-3-2.png" />

* Copy your API key to a safe place

## Step 4: Enter your API key to TypingMind

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

<Frame>
  <img src="https://mintcdn.com/typingmind/f18I_2hiObU32xEr/images/api-key-tab.webp?fit=max&auto=format&n=f18I_2hiObU32xEr&q=85&s=cd0e293a1514cb9d086e8754ac1106ee" alt="Api Key Tab" width="2342" height="1764" data-path="images/api-key-tab.webp" />
</Frame>

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

<img src="https://mintcdn.com/typingmind/R1Xvq6ZobRomufvy/images/image-6.png?fit=max&auto=format&n=R1Xvq6ZobRomufvy&q=85&s=87c01311805f66756bbaed8245bb0212" alt="Image 6" width="2558" height="1676" data-path="images/image-6.png" />

## 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.
</Note>

<img src="https://mintcdn.com/typingmind/R1Xvq6ZobRomufvy/images/image-7.png?fit=max&auto=format&n=R1Xvq6ZobRomufvy&q=85&s=4ff22676ec2e0747e434876e0e20aacb" alt="Image 7" width="2558" height="1676" data-path="images/image-7.png" />
