Kokoro-FastAPI
Dockerized Kokoro-82M text-to-speech server with an OpenAI-compatible speech API and a web player.
Quick answer
Kokoro-FastAPI is a dockerized Kokoro-82M text-to-speech server with an OpenAI-compatible speech API and a web player, listed under Speech & translation. A typical small-business use: private voice-over and audiobook generation without sending text to a cloud TTS service. The project publishes no official RAM figure, so we do not estimate a monthly server cost. License: Apache-2.0, which allows internal business use.
Last updated · facts verified against official docs on · sources
Activity data comes from GitHub and was last refreshed Nov 23, 2026.
What is Kokoro-FastAPI?
Kokoro-FastAPI wraps the open-weight Kokoro-82M text-to-speech model in a FastAPI server. It exposes OpenAI-compatible speech and realtime (TTS only) endpoints, ElevenLabs- and Cartesia-compatible websockets, voice mixing, captions with timestamps and a built-in web UI. Images are published for CPU, NVIDIA GPU (CUDA) and, experimentally, AMD GPU (ROCm).
Where it fits in a 10–200 person business
- Private voice-over and audiobook generation without sending text to a cloud TTS service
- Drop-in local voice for apps that already call the OpenAI speech API
- Text-to-speech for voice agents built on LiveKit or Pipecat
These use cases are our editorial suggestions, not claims made by the project.
Can a business use Kokoro-FastAPI? (license)
| License | Apache-2.0 |
|---|---|
| Type | Permissive: MIT / Apache-2.0: use, modify and sell with few obligations. |
| Internal business use | Allowed under the license text |
| What to watch | Permissive. Internal and commercial use allowed; keep the license and NOTICE files. The README states the Kokoro-82M weights are also Apache-2.0 and the StyleTTS2-derived inference code is MIT. |
This is a plain-English summary of the license text, not legal advice. Third-party models you run with it have their own licenses.
Data & compliance: does Kokoro-FastAPI phone home?
| Telemetry (usage data sent to the vendor) | Not documented |
|---|---|
| Other calls home by default (updates, marketplaces, default cloud services) | Yes, by default At startup the server fetches each model's config.json from the Hugging Face Hub to log upstream changes. How to turn it off: Set HF_HUB_OFFLINE or HF_HUB_DISABLE_TELEMETRY to skip the startup check. Source: github.com/remsky/Kokoro-FastAPI/blob/master/docs/configuration.md |
| Single sign-on (OIDC / SAML / LDAP) | Not documented The only documented access control is an optional shared API key list (API_KEYS), described as not a full auth layer. Source: github.com/remsky/Kokoro-FastAPI/blob/master/docs/configuration.md |
| Audit log | Not documented |
| Role-based access control (RBAC) | Not documented |
| Data residency / GDPR notes from the project | Not documented |
Checked against the project's own docs and repository on . "Not documented" means we could not find the answer in official sources; it does not mean the feature is missing or that no data is sent. Third-party services you connect (model APIs, vector databases, search engines) have their own data policies. Compare all apps.
What hardware does Kokoro-FastAPI need?
The project does not publish a minimum CPU/RAM figure, so we leave the official value blank rather than guess.
GPU: Optional. The README lists a CPU image for "No GPU (laptop, CPU-only server)" and a GPU image for NVIDIA CUDA; AMD ROCm is experimental (x86_64 only).
No official CPU, RAM or disk minimum is published. The README's GPU benchmark (NVIDIA 4060 Ti 16 GB) shows about 2.4 to 4 GB of GPU memory in use while loaded; that is a measured example, not a requirement.
How much does it cost to host Kokoro-FastAPI per month?
The project publishes no RAM figure we could verify, so we do not estimate a cost.
How to deploy Kokoro-FastAPI
Method: Docker
# CPU-only server
docker run -p 8880:8880 ghcr.io/remsky/kokoro-fastapi-cpu:latest
# NVIDIA GPU
docker run --gpus all -p 8880:8880 ghcr.io/remsky/kokoro-fastapi-gpu:latest From the official instructions: github.com/remsky/Kokoro-FastAPI#get-started. Always check the source for the current version before you run it.
Known gotchas when self-hosting Kokoro-FastAPI
- API keys are off by default: anyone who can reach port 8880 can use the API. Setting API_KEYS enables a basic shared-key check (no rate limiting), keys travel in plain text over HTTP, and the bundled web player sends no key, so its requests fail with 401 once keys are on. source
- CORS allows every origin by default (CORS_ORIGINS ["*"]). Narrow it if the port is reachable beyond localhost. source
- Text normalization can drop or change some phrases and timestamps. Disable it per request with normalization_options.normalize = false. source
- The project calls itself development-focused. Docker version tags are built from the release branch; master is unreleased work, so pin a release tag rather than building from master. source
Alternatives in Speech & translation
- whisper.cpp Fast C/C++ port of OpenAI Whisper speech recognition with a small HTTP transcription server.
- PDFMathTranslate PDF translator that keeps the original layout, formulas, charts and tables.
- Fish Speech Multilingual text-to-speech and voice cloning server (Fish Audio Drama 3 and S2-Pro) with an HTTP API and web UI.
- Meetily Desktop meeting recorder that transcribes and summarizes meetings locally.
- CosyVoice Multilingual LLM-based text-to-speech with zero-shot voice cloning, Chinese dialects and streaming output.
- FunASR Alibaba's speech recognition toolkit with CPU transcription servers, Chinese-strong models and an OpenAI-compatible API.
- VideoLingo Turns videos into translated, Netflix-style subtitles and optional AI dubbing, from a local Streamlit app.
- LibreTranslate Self-hosted machine translation API with no dependency on Google or DeepL.
- OpenCreator Local AI creator workspace for video translation, dubbing, image and video generation, powered by Codex.
- Anarlog Local-first AI meeting notepad that records device audio without a bot joining the call.
- Piper Fast, local neural text-to-speech engine with a small HTTP server, used by Home Assistant.
- WhisperLive Collabora's near-real-time Whisper transcription server for live microphone, file and stream audio, with an OpenAI-style REST API.
- Speaches OpenAI-compatible speech-to-text and text-to-speech server (faster-whisper, Kokoro, Piper).
- Whisper ASR Webservice Whisper speech-to-text as a REST API in one Docker container.
- Scriberr Self-hosted web app that transcribes audio offline, with speaker labels and AI summaries.
- Vexa Self-hosted meeting bots that transcribe Google Meet, Teams and Zoom in real time, plus optional knowledge agents.
- Whisper-WebUI Gradio web UI for Whisper subtitles, translation and speaker diarization.
- GPT-SoVITS Few-shot voice-cloning text-to-speech you can train on about a minute of audio and run in Docker.
Kokoro-FastAPI FAQ
How much RAM does Kokoro-FastAPI need?
Kokoro-FastAPI does not publish an official RAM figure, so we do not state one. The README's GPU benchmark (NVIDIA 4060 Ti 16 GB) shows about 2.4 to 4 GB of GPU memory in use while loaded; that is a measured example, not a requirement.
Does Kokoro-FastAPI need a GPU?
Optional. The README lists a CPU image for "No GPU (laptop, CPU-only server)" and a GPU image for NVIDIA CUDA; AMD ROCm is experimental (x86_64 only).
How much does it cost to self-host Kokoro-FastAPI?
The software is free to download. The project publishes no official RAM figure, so we do not estimate a monthly server cost.
Is Kokoro-FastAPI free for commercial use?
Kokoro-FastAPI is licensed under Apache-2.0 (Permissive). Internal business use is allowed under the license text. Permissive. Internal and commercial use allowed; keep the license and NOTICE files. The README states the Kokoro-82M weights are also Apache-2.0 and the StyleTTS2-derived inference code is MIT. This is a summary, not legal advice.
What are common problems when self-hosting Kokoro-FastAPI?
API keys are off by default: anyone who can reach port 8880 can use the API. Setting API_KEYS enables a basic shared-key check (no rate limiting), keys travel in plain text over HTTP, and the bundled web player sends no key, so its requests fail with 401 once keys are on. CORS allows every origin by default (CORS_ORIGINS ["*"]). Narrow it if the port is reachable beyond localhost. Text normalization can drop or change some phrases and timestamps. Disable it per request with normalization_options.normalize = false. The project calls itself development-focused. Docker version tags are built from the release branch; master is unreleased work, so pin a release tag rather than building from master.
Is Kokoro-FastAPI still maintained?
Yes, it is actively developed. Last commit: Nov 21, 2026. Latest release: v0.10.0 (Nov 8, 2026). Checked Nov 23, 2026.
How do I install Kokoro-FastAPI?
The official method is Docker. The exact commands are in the "How to deploy" section above and in the official instructions: https://github.com/remsky/Kokoro-FastAPI#get-started
What are self-hosted alternatives to Kokoro-FastAPI?
Other apps in Speech & translation: whisper.cpp, PDFMathTranslate, Fish Speech, Meetily, CosyVoice, FunASR, VideoLingo, LibreTranslate, OpenCreator, Anarlog, Piper, WhisperLive, Speaches, Whisper ASR Webservice, Scriberr, Vexa, Whisper-WebUI, GPT-SoVITS.
Sources
- GitHub repository: github.com/remsky/Kokoro-FastAPI
- Official documentation: github.com/remsky/Kokoro-FastAPI#readme
- License text: github.com/remsky/Kokoro-FastAPI/blob/master/LICENSE
- Hardware requirements, Deploy instructions: github.com/remsky/Kokoro-FastAPI#get-started
- Gotcha 1, Gotcha 2: github.com/remsky/Kokoro-FastAPI/blob/master/docs/configuration.md
- Gotcha 3: github.com/remsky/Kokoro-FastAPI#known-issues--troubleshooting
- Gotcha 4: github.com/remsky/Kokoro-FastAPI#project
- Hetzner Cloud pricing (cost estimate): www.hetzner.com/cloud/regular-performance
- GitHub stars, commits and releases: GitHub REST API, fetched
Facts on this page were checked against the project's own repository and docs on 2026-11-10. Spotted something out of date? Tell us.