MixtrainDocs

Access video generation models through the Runway integration.

Setup

Add Provider

mixtrain provider add runway

Or via SDK:

from mixtrain import MixClient

client = MixClient()
client.create_model_provider(
    provider_type="runway",
    secrets={"api_key": "..."}
)

Once added, Runway models are available via mixtrain model catalog.

Usage

from mixtrain import get_model

model = get_model("gen3")
result = model.run({
    "prompt": "A drone shot over mountains at sunrise",
    "duration": 5
})

Available Models

Model IDDescription
gen-3-alphaLatest video generation model
gen-2Previous generation model

Configuration Options

ParameterDescription
promptText description of the video
durationVideo length in seconds
aspect_ratioOutput aspect ratio
seedRandom seed for reproducibility

Getting an API Key

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

On this page