openreader/docs-site/versioned_docs/version-v2.2.0/configure/tts-provider-guides/kitten-tts-fastapi.md
2026-04-18 17:40:34 +00:00

1.3 KiB

title
KittenTTS-FastAPI

Run KittenTTS-FastAPI locally and connect it to OpenReader using the Custom OpenAI-Like provider. Lightweight and CPU-friendly.

Run KittenTTS

docker run -it --rm \
  --name kittentts-fastapi \
  -e KITTEN_MODEL_REPO_ID="KittenML/kitten-tts-nano-0.8-fp32" \
  -p 8005:8005 \
  ghcr.io/richardr1126/kittentts-fastapi-cpu

Connect to OpenReader

Environment variables (recommended for deployment):

API_BASE=http://kittentts-fastapi:8005/v1

Use kittentts-fastapi if that's the container name, or host.docker.internal if not.

Or in-app via Settings → TTS Provider:

  1. Set provider to Custom OpenAI-Like.
  2. Set API_BASE to your KittenTTS endpoint (e.g. http://kittentts-fastapi:8005/v1).
  3. Leave API_KEY blank unless your deployment requires one.
  4. Choose model kitten-tts (or the model your deployment exposes).

Settings modal values override env vars. See TTS Providers for how the two layers interact.

References