MixtrainDocs

Access Dream Machine video generation models through the Luma Labs integration.

Setup

Add Provider

mixtrain provider add lumalabs

Or 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 IDDescription
dream-machineText-to-video generation

Configuration Options

ParameterDescription
promptText description of the video
aspect_ratioOutput aspect ratio (16:9, 9:16, 1:1)
loopCreate looping video

Getting an API Key

  1. Sign up at lumalabs.ai
  2. Navigate to API settings
  3. Generate an API key
  4. Add it to Mixtrain using the setup steps above

On this page