π¦ ClawHub
Ai Video Gen
by @rhanbourinajd
End-to-end AI video generation - create videos from text prompts using image generation, video synthesis, voice-over, and editing. Supports OpenAI DALL-E, Replicate models, LumaAI, Runway, and FFmpeg editing.
TERMINAL
clawhub install ai-video-genπ About This Skill
name: ai-video-gen description: End-to-end AI video generation - create videos from text prompts using image generation, video synthesis, voice-over, and editing. Supports OpenAI DALL-E, Replicate models, LumaAI, Runway, and FFmpeg editing.
AI Video Generation Skill
Generate complete videos from text descriptions using AI.
Capabilities
1. Image Generation - DALL-E 3, Stable Diffusion, Flux 2. Video Generation - LumaAI, Runway, Replicate models 3. Voice-over - OpenAI TTS, ElevenLabs 4. Video Editing - FFmpeg assembly, transitions, overlays
Quick Start
# Generate a complete video
python skills/ai-video-gen/generate_video.py --prompt "A sunset over mountains" --output sunset.mp4Just images to video
python skills/ai-video-gen/images_to_video.py --images img1.png img2.png --output result.mp4Add voiceover
python skills/ai-video-gen/add_voiceover.py --video input.mp4 --text "Your narration" --output final.mp4
Setup
Required API Keys
Add to your environment or .env file:
# Image Generation (pick one)
OPENAI_API_KEY=sk-... # DALL-E 3
REPLICATE_API_TOKEN=r8_... # Stable Diffusion, FluxVideo Generation (pick one)
LUMAAI_API_KEY=luma_... # LumaAI Dream Machine
RUNWAY_API_KEY=... # Runway ML
REPLICATE_API_TOKEN=r8_... # Multiple modelsVoice (optional)
OPENAI_API_KEY=sk-... # OpenAI TTS
ELEVENLABS_API_KEY=... # ElevenLabsOr use FREE local options (no API needed)
Install Dependencies
pip install openai requests pillow replicate python-dotenv
FFmpeg
Already installed via winget.
Usage Examples
1. Text to Video (Full Pipeline)
python skills/ai-video-gen/generate_video.py \
--prompt "A futuristic city at night with flying cars" \
--duration 5 \
--voiceover "Welcome to the future" \
--output future_city.mp4
2. Multiple Scenes
python skills/ai-video-gen/multi_scene.py \
--scenes "Morning sunrise" "Busy city street" "Peaceful night" \
--duration 3 \
--output day_in_life.mp4
3. Image Sequence to Video
python skills/ai-video-gen/images_to_video.py \
--images frame1.png frame2.png frame3.png \
--fps 24 \
--output animation.mp4
Workflow Options
Budget Mode (FREE)
Quality Mode (Paid)
Scripts Reference
generate_video.py - Main end-to-end generatorimages_to_video.py - Convert image sequence to videoadd_voiceover.py - Add narration to existing videomulti_scene.py - Create multi-scene videosedit_video.py - Apply effects, transitions, overlaysAPI Cost Estimates
Examples
See examples/ folder for sample outputs and prompts.
π‘ Examples
See examples/ folder for sample outputs and prompts.
βοΈ Configuration
Required API Keys
Add to your environment or .env file:
# Image Generation (pick one)
OPENAI_API_KEY=sk-... # DALL-E 3
REPLICATE_API_TOKEN=r8_... # Stable Diffusion, FluxVideo Generation (pick one)
LUMAAI_API_KEY=luma_... # LumaAI Dream Machine
RUNWAY_API_KEY=... # Runway ML
REPLICATE_API_TOKEN=r8_... # Multiple modelsVoice (optional)
OPENAI_API_KEY=sk-... # OpenAI TTS
ELEVENLABS_API_KEY=... # ElevenLabsOr use FREE local options (no API needed)
Install Dependencies
pip install openai requests pillow replicate python-dotenv
FFmpeg
Already installed via winget.