Loading...
Loading...
Generate videos directly using the Runway API via runnable scripts. Supports text-to-video, image-to-video, and video-to-video with seedance2, gen4.5, veo3, and more.
npx skill4agent add runwayml/skills rw-generate-videouv run scripts/generate_video.py --prompt "your description" --filename "output.mp4" [--model seedance2] [--ratio 1280:720] [--duration 5] [--image-url "..."]command -v uvcurl -LsSf https://astral.sh/uv/install.sh | shRUNWAYML_API_SECRET--image-url--video-urlrunway://| Model | Best For | Input | Cost |
|---|---|---|---|
| Reference image and video, long duration (up to 15s) | Text, Image, and/or Video | 36 credits/sec |
| High quality, general purpose | Text and/or Image | 12 credits/sec |
| Fast, image-driven | Image required | 5 credits/sec |
| Video editing/transformation | Video + Text/Image | 15 credits/sec |
| Premium quality | Text/Image | 40 credits/sec |
| High quality Google model | Text/Image | 20-40 credits/sec |
| Fast Google model | Text/Image | 10-15 credits/sec |
seedance2veo3.1_fastgen4_turbogen4.5veo3gen4_alephseedance2seedance2| Param | Description | Default |
|---|---|---|
| Text description (required) | -- |
| Output filename (required) | -- |
| Video model | |
| Aspect ratio (pixel-based). Common: | |
| Duration in seconds (model-dependent, seedance2 supports up to 15s) | |
| Image URL or local file for image-to-video | -- |
| Video URL or local file for video-to-video (gen4_aleph, seedance2) | -- |
| Output directory | cwd |
API credentials come fromonly — noRUNWAYML_API_SECRETflag, to keep secrets out of shell history and process listings.--api-key
yyyy-mm-dd-hh-mm-ss-name.mp42026-04-14-14-23-05-cyberpunk-city.mp42026-04-14-15-30-12-beach-waves.mp4uv run scripts/generate_video.py --prompt "A serene mountain landscape at sunrise with mist" --filename "2026-04-14-mountain-sunrise.mp4" --model seedance2 --ratio 1280:720uv run scripts/generate_video.py --prompt "Camera slowly zooms out, product sparkles" --image-url "./product.jpg" --filename "2026-04-14-product-reveal.mp4" --model seedance2 --ratio 720:1280uv run scripts/generate_video.py --prompt "Transform into a warm golden sunset scene" --video-url "./input.mp4" --filename "2026-04-14-sunset-transform.mp4" --model seedance2uv run scripts/generate_video.py --prompt "A cat playing piano" --filename "draft.mp4" --model veo3.1_fast --ratio 1280:720 --duration 4uv run scripts/generate_video.py --prompt "Cinematic drone shot over Tokyo at night" --filename "tokyo.mp4" --model veo3 --ratio 1280:720 --duration 8Error: No API keyRUNWAYML_API_SECRETexport RUNWAYML_API_SECRET=....envError: Task failed -- SAFETY.INPUT.*Error: Task failed -- ASSET.INVALIDAPI error 429