Prerequisites
Before you start, make sure you have the following installed:- Python 3.10+ — check with
python --versionorpython3 --version - pip — comes with Python; check with
pip --version - ffmpeg — install via your system package manager (see below)
- git — to clone the repository
- macOS
- Ubuntu / Debian
- Windows
Installation
Create your .env file
Create a Get a Gemini API key from Google AI Studio.For a full list of supported variables, see Environment variables.
.env file at the project root with at minimum your Gemini API key:Start the server
Run the server using the provided This starts Uvicorn with
run.py launcher:--reload enabled on 127.0.0.1:8000. The process reads the PORT environment variable if you need a different port.Alternatively, invoke Uvicorn directly:Production considerations
- Disable reload —
reload=Truewatches the filesystem for code changes. Remove it in production (--no-reloadwith Uvicorn, or editrun.pyto passreload=False). - Set a stable PORT — export
PORTin your environment or process manager config so the port is predictable across restarts. - Use a reverse proxy — run Splyce behind nginx or a cloud load balancer to handle TLS termination, request buffering, and rate limiting.
- Increase upload limits — the default
MAX_VIDEO_UPLOAD_MBis 200. Adjust this to match your infrastructure limits and reverse proxy body-size settings.