Install FastKoko via Docker
masterFastKoko provides pre-built multi-arch images with models included. Choose the image based on your hardware:
- No GPU (CPU-only):
kokoro-fastapi-cpu:latest - Apple Silicon (M1/M2/M3): Use
kokoro-fastapi-cpu:latestin Docker, or run natively via./start-gpu_mac.shfor MPS acceleration. - NVIDIA GPU (x86_64):
- GTX 9xx, 10xx, 20xx, 30xx, 40xx:
kokoro-fastapi-gpu:latest-cu126orkokoro-fastapi-gpu:latest - RTX 50-series / Blackwell:
kokoro-fastapi-gpu:latest-cu128
- GTX 9xx, 10xx, 20xx, 30xx, 40xx:
- NVIDIA on arm64 (Jetson, GH200):
kokoro-fastapi-gpu:latest - AMD GPU (experimental, x86_64 only):
kokoro-fastapi-rocm:latest
Configuration can be managed via environment variables (refer to core/config.py).
# CPU
docker run -p 8880:8880 ghcr.io/remsky/kokoro-fastapi-cpu:latest
# NVIDIA (x86_64 or arm64)
docker run --gpus all -p 8880:8880 ghcr.io/remsky/kokoro-fastapi-gpu:latest
# NVIDIA Blackwell / RTX 50-series
docker run --gpus all -p 8880:8880 ghcr.io/remsky/kokoro-fastapi-gpu:latest-cu128
# AMD
docker run --device=/dev/kfd --device=/dev/dri -p 8880:8880 ghcr.io/remsky/kokoro-fastapi-rocm:latest