Generate videos from images using RunwayML’s Gen-4 Turbo model.
Setup
export RUNWAYML_API_KEY=your-key
Usage
from praisonaiagents import VideoAgent
agent = VideoAgent(llm="runwayml/gen4_turbo")
video = agent.start(
prompt="Make this image come alive",
input_reference="./photo.jpg", # Required!
output="animated.mp4"
)
RunwayML requires an input image. It cannot generate video from text alone.
Models
| Model | Description |
|---|
runwayml/gen4_turbo | Gen-4 Turbo |
Parameters
video = agent.generate(
prompt="Your animation prompt",
input_reference="./image.jpg", # Required
seconds="5" # 5 or 10
)
Duration Options
"5" - 5 seconds
"10" - 10 seconds
Size Options
"1280x720" - Landscape
"720x1280" - Portrait