# KittenTTS-FastAPI (/configure/tts-provider-guides/kitten-tts-fastapi)

[KittenTTS-FastAPI](https://github.com/richardr1126/KittenTTS-FastAPI) serves KittenTTS, a small model that runs well on a CPU.

## Run it [#run-it]

```bash
docker run -d --name kittentts-fastapi --restart unless-stopped \
  -e KITTEN_MODEL_REPO_ID="KittenML/kitten-tts-nano-0.8-fp32" \
  -p 8005:8005 \
  ghcr.io/richardr1126/kittentts-fastapi-cpu
```

The server has no authentication, so keep port `8005` off the internet; Docker's published ports bypass host firewalls such as UFW. In the same Compose project, OpenReader uses the service name and the port needn't be published. For OpenReader on the same machine without Docker, publish it as `-p 127.0.0.1:8005:8005`.

## Connect OpenReader [#connect-openreader]

1. In **Settings → Admin → Providers**, choose **Add provider**, then **OpenAI-compatible server**.
2. Set the **Base URL** from the table. Leave **API key** blank.
3. Set **Default model** to **KittenTTS**.
4. Choose **Check**, then save.

| Setup | Base URL |
| --- | --- |
| OpenReader in Docker, server on that Docker host | `http://host.docker.internal:8005/v1` |
| OpenReader in the same Compose project | `http://kittentts-fastapi:8005/v1` |
| Both on the same machine, without Docker | `http://127.0.0.1:8005/v1` |

A remote worker needs an address it can reach; see [Self-hosted provider addresses](/configure/tts-providers#self-hosted-provider-addresses).

<Accordions>
<Accordion title="Add it from the environment instead">
```dotenv
API_BASE=http://host.docker.internal:8005/v1
API_MODEL_NAME=kitten-tts
```

This works while there are no providers; see [Seed a provider from the environment](/configure/tts-providers#seed-a-provider-from-the-environment).
</Accordion>
</Accordions>