This skill should be used when the user asks to "generate video", "create video", "make a video", "animate image", "image to video", "video with audio", "talking video", or needs AI-powered video...
This skill enables AI video generation using ByteDance's Seedance 1.5 Pro model through the Replicate API. Generate videos from text prompts, animate still images, and create content with perfectly synchronized audio and lip-syncing.
Generate videos from natural language descriptions.
Example requests:
Process:
scripts/generate_video.py with the promptAnimate still images into dynamic videos.
Example requests:
Process:
scripts/generate_video.py with the image and promptGenerate videos with perfectly synchronized audio and lip movements.
Key features:
Example requests:
Apply cinematic camera movements to generated videos.
Available movements:
Example requests:
To fix the camera in place, specify "fixed camera" or use the camera_fixed parameter.
| Parameter | Type | Default | Description |
|---|---|---|---|
prompt |
string | required | Scene description |
duration |
int | 5 | Video length in seconds (2-12) |
aspect_ratio |
string | 16:9 | Output dimensions |
image |
file/URL | none | Input image for image-to-video |
last_frame_image |
file/URL | none | Target end frame |
camera_fixed |
bool | false | Lock camera position |
generate_audio |
bool | true | Include synchronized audio |
seed |
int | random | For reproducible results |
16:9 - Widescreen (YouTube, presentations)9:16 - Vertical (TikTok, Instagram Reels, Stories)1:1 - Square (Instagram posts)4:3 - Standard (traditional video)3:4 - Portrait21:9 - Ultra-wide (cinematic)9:21 - Ultra-tallThe scripts/generate_video.py script handles all Replicate API interactions.
Basic text-to-video:
python scripts/generate_video.py "a sunset over mountains" --output sunset.mp4
With duration and aspect ratio:
python scripts/generate_video.py "a cat playing" \
--duration 8 \
--aspect-ratio 9:16 \
--output cat_playing.mp4
Image-to-video:
python scripts/generate_video.py "gentle wind blowing through hair" \
--image portrait.jpg \
--output animated_portrait.mp4
Fixed camera:
python scripts/generate_video.py "person talking to camera" \
--camera-fixed \
--output talking_head.mp4
Without audio:
python scripts/generate_video.py "abstract visuals" \
--no-audio \
--output silent_video.mp4
Reproducible output:
python scripts/generate_video.py "a forest scene" \
--seed 42 \
--output forest.mp4
Ensure the REPLICATE_API_KEY environment variable is set:
export REPLICATE_API_KEY="your-api-key-here"
Get an API key from https://replicate.com/account/api-tokens
Detailed prompts: More specific descriptions produce better results
Match aspect ratio to platform: Use 9:16 for TikTok/Reels, 16:9 for YouTube
Duration selection: Start with shorter durations (5s) to iterate quickly, then increase
Camera guidance: Include camera movement in prompt or use camera_fixed for stability
Audio considerations: Disable audio (--no-audio) for videos where you'll add custom music/voiceover
Character consistency: For multi-clip narratives, use similar prompts and seed values
# TikTok/Reels vertical video
python scripts/generate_video.py "trendy dance moves in neon-lit studio" \
--aspect-ratio 9:16 --duration 8 --output tiktok_content.mp4
# Animate product image
python scripts/generate_video.py "elegant rotation revealing product details" \
--image product.jpg --duration 6 --output product_showcase.mp4
# Generate speaking video
python scripts/generate_video.py "professional presenter explaining a concept, direct eye contact" \
--camera-fixed --duration 10 --output presenter.mp4
# Atmospheric footage
python scripts/generate_video.py "aerial view of misty mountains at dawn, slow pan" \
--aspect-ratio 21:9 --duration 12 --output broll.mp4
The script handles common errors:
Video generation stuck:
Poor lip-sync:
camera_fixed for talking head videosUnexpected camera movement:
camera_fixed flag for stable shotsImage-to-video not working: