Access Dream Machine video generation models through the Luma Labs integration.
Setup
Add Provider
mixtrain provider add lumalabsOr via SDK:
from mixtrain import MixClient
client = MixClient()
client.create_model_provider(
provider_type="lumalabs",
secrets={"api_key": "..."}
)Once added, Luma Labs models are available via mixtrain model catalog.
Usage
from mixtrain import get_model
model = get_model("dream-machine")
result = model.run({
"prompt": "A cat playing piano in a jazz club",
"aspect_ratio": "16:9"
})Available Models
| Model ID | Description |
|---|---|
dream-machine | Text-to-video generation |
Configuration Options
| Parameter | Description |
|---|---|
prompt | Text description of the video |
aspect_ratio | Output aspect ratio (16:9, 9:16, 1:1) |
loop | Create looping video |
Getting an API Key
- Sign up at lumalabs.ai
- Navigate to API settings
- Generate an API key
- Add it to Mixtrain using the setup steps above