Altough Docker is not required, it is recommended to make sure you have the necessary tools to render videos or to generate code.
And, depending on the model you want to use, you will need to have an API key for the model provider.
export OPENAI_API_KEY="your_openai_api_key"
export GROQ_API_KEY="your_groq_api_key"- Clone the repository:
git clone https://github.com/yashksaini-coder/manim-server- Install the requirements on the
/apidirectory:
cd api
pip install -r requirements.txtNow you have the option of running the API locally or using Docker.
- Run the
run.pyscript to start the API server.
Build the Docker image:
- Run the following command from the root directory of the repository.
cd generative-manim
docker build -t manim-server-api .- Run the Docker container:
docker run -p 5000:5000 manim-server-api- You have the API running.