panyanyany / luma-dream-machine-api

This is an unofficial Dream Machine API based on Python and FastAPI. It currently supports generating videos, extend videos, get generations, etc. We also provide SaaS service, see below.
https://lumaapi.org/
37 stars 6 forks source link

Unofficial API

This is an unofficial Dream Machine API based on Python and FastAPI. It currently supports generating videos, extend videos, get generations, etc.

Community

https://discord.gg/rBqQz7EHrs

Installation

poetry install --no-root

Setup

Found your access_token

Add to settings.py

cp settings.demo.py settings.py
vi settings.py
# add access_token

Start the server

fastapi dev main.py

API

Generate Video

http://127.0.0.1:8000/api/v1/generate

Get Generations

http://127.0.0.1:8000/api/v1/generations

Full API documentation can be found at http://127.0.0.1:8000/docs