---
title: "TypingMind API: Add FreeTheAI as a Custom Model"
description: "Add FreeTheAI models to TypingMind as custom models with the chat completions endpoint and an Authorization header."
url: https://freetheai.org/setup/typingmind
language: en
updated: 2026-09-29
---

# TypingMind API: Add FreeTheAI as a Custom Model

TypingMind adds each FreeTheAI model as a custom model with the full chat completions endpoint and your key in an Authorization header.

## Settings

- API Type: `OpenAI Chat Completions API`
- Endpoint URL: `https://api.freetheai.org/v1/chat/completions`
- Model ID: `glm-5.3`
- Header Key: `Authorization`
- Header Value: `Bearer ftai_your_key_here`

## Steps

1. **Add a custom model.** Open Models in the sidebar and choose Add Custom Model, then Create Manually.
2. **Fill in the model.** Enter a name, choose OpenAI Chat Completions API, and enter the endpoint URL and model ID. Set the context length (for example 128000).
3. **Add your key.** Choose API Key via HTTP header. Use Authorization as the key and Bearer followed by a space and your key as the value.
4. **Test and save.** Press Test, then Add Model. Repeat for each model you want.

## Troubleshooting

**TypingMind says authentication failed. Why?**

The header value must be "Bearer " (with a space) followed by your full key.

Checked: Checked against TypingMind's custom model docs on 2026-09-29.
