# Kokoro-FastAPI-GPU

Kokoro-FastAPI-GPU is a self-hosted ai app. Kokoro-FastAPI is a Dockerized FastAPI server that wraps the Kokoro-82M text-to-speech model for local, OpenAI-compatible speech generation. It is open source and self-hosted, installable on Unraid.

Canonical page: https://ourlocalhost.com/app/2965/kokoro-fastapi-gpu

## Description

Kokoro-FastAPI is a Dockerized FastAPI server that wraps the Kokoro-82M text-to-speech model for local, OpenAI-compatible speech generation. This NVIDIA GPU build uses PyTorch to synthesize multi-language audio with automatic segment stitching, aimed at homelabbers who want high-quality on-device speech.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

62/100 (Good), based on 5 of 5 factors.
- Maintained: 100 (last commit 8 days ago)
- Popular: 75 (5,682 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)
- Light to run: 30 (4 GB minimum RAM)
- Security check: 20 (1 serious finding, 4 minor, CI, tests)

## Security check

1 serious finding: Uses anyio 4.12.1, which has a known critical vulnerability.
Automated checks on commit ebd4ec9, 18 Oct 2026. Not an audit.

## Links

- Unraid: https://ca.unraid.net/apps/kokoro-fastapi-gpu-1n0gzmt0djvu3d?q=Kokoro-FastAPI---GPU

## Common questions

### What port does the Dockerized Kokoro-FastAPI service expose?

The service runs on port 8880.

### What Linux GPU issue should non-root deployments watch for?

Some Linux users may hit GPU permission issues when running as non-root. The troubleshooting docs suggest common fixes and note security tradeoffs.

### Which HTTP endpoint does the wrapper expose for text-to-speech?

It exposes an OpenAI-compatible endpoint at /v1/audio/speech.

### Is there an Unraid-specific support thread for this Dockerized wrapper?

Yes, Unraid has a support thread for FastKoko, the Dockerized Kokoro-FastAPI wrapper.

---
Source: Our Local Host (https://ourlocalhost.com/app/2965/kokoro-fastapi-gpu), the self-hosted and open-source app directory.
