---
title: "SillyTavern Free API Setup in 2026 (and the \"Bad Request\" Fix)"
description: "Connect SillyTavern to a free API in minutes: Chat Completion, Custom (OpenAI-compatible), the base URL, key, and model, plus the one setting that fixes \"Bad Request\"."
url: https://freetheai.org/blog/sillytavern-free-api
language: en
updated: 2026-09-30
---

# SillyTavern Free API Setup in 2026 (and the "Bad Request" Fix)

Connect SillyTavern to a free API in minutes: Chat Completion, Custom (OpenAI-compatible), the base URL, key, and model, plus the one setting that fixes "Bad Request".

Canonical: https://freetheai.org/blog/sillytavern-free-api

Updated 2026-09-30

> This post is about the old free tier. FreeTheAI closed its free tier for most accounts on November 10, 2026, so parts of it no longer apply. Paid models work the same way through the same API: https://freetheai.org/models

**Quick answer:** In SillyTavern open API Connections, choose Chat Completion with the Custom (OpenAI-compatible) source, enter `https://api.freetheai.org/v1` as the endpoint, your FreeTheAI key, and a model like `fta/zai/glm-5.3`, then set Prompt Post-Processing to Semi-strict.

## The settings

| Field | Value |
| --- | --- |
| API | Chat Completion |
| Chat Completion Source | Custom (OpenAI-compatible) |
| Custom Endpoint (Base URL) | `https://api.freetheai.org/v1` |
| Custom API Key | Your full `ftai_...` key |
| Model ID | `fta/zai/glm-5.3` |
| Prompt Post-Processing | Semi-strict (alternating roles) |

## Step by step

1. Click the plug icon in the top bar to open **API Connections**.
2. Set **API** to Chat Completion and **Chat Completion Source** to Custom (OpenAI-compatible).
3. Paste the base URL into **Custom Endpoint**. Do not add /chat/completions; SillyTavern does that.
4. Paste your key into **Custom API Key**, type or pick a model ID, and press **Connect**.
5. Set **Prompt Post-Processing** to **Semi-strict**.
6. Do today's check-in and start chatting.

## Fixing "API returned an error: Bad Request"

With Prompt Post-Processing set to None, SillyTavern can send a chat that has only the system prompt and the character's greeting, with no message from you. Some models refuse that and answer "Bad Request". Setting Prompt Post-Processing to **Semi-strict** makes sure every request carries a message from you, and the error goes away.

## Other common problems

- **No models appear after connecting**: type the model ID by hand, and check that you did today's check-in.
- **Replies cut off**: raise Max Response Length in the sampler panel.
- **Unauthorized**: paste the full 53-character key; the short prefix in your key list does not work.

## FAQ

**What base URL does SillyTavern need?**

https://api.freetheai.org/v1. SillyTavern appends /chat/completions itself.

**How do I fix "Bad Request" in SillyTavern?**

Set Prompt Post-Processing to Semi-strict in API Connections, then try again.

**Which model should I use in SillyTavern?**

fta/zai/glm-5.3 is the best default. See our comparison of the best free roleplay models for alternatives.
