Access video generation models through the Runway integration.
Setup
Add Provider
mixtrain provider add runwayOr 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 ID | Description |
|---|---|
gen-3-alpha | Latest video generation model |
gen-2 | Previous generation model |
Configuration Options
| Parameter | Description |
|---|---|
prompt | Text description of the video |
duration | Video length in seconds |
aspect_ratio | Output aspect ratio |
seed | Random seed for reproducibility |
Getting an API Key
- Sign up at runwayml.com
- Navigate to API settings
- Generate an API key
- Add it to Mixtrain using the setup steps above