搜索

PythonReactSEOPDF
OpenClaw

ai-video-gen

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.

hhhh124hhhh0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install hhhh124hhhh/ai-video-gen-tools

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

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.mp4

# Just images to video
python skills/ai-video-gen/images_to_video.py --images img1.png img2.png --output result.mp4

# Add 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, Flux

# Video Generation (pick one)
LUMAAI_API_KEY=luma_...           # LumaAI Dream Machine
RUNWAY_API_KEY=...                # Runway ML
REPLICATE_API_TOKEN=r8_...        # Multiple models

# Voice (optional)
OPENAI_API_KEY=sk-...             # OpenAI TTS
ELEVENLABS_API_KEY=...            # ElevenLabs

# Or 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 fram...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/hhhh124hhhh/ai-video-gen-tools
Version
—
Commit
aa7696671e292f0b8659270c053122080f994b3c
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

AI Video Generator

Complete end-to-end AI video creation system.

✅ Installation Status

  • FFmpeg installed
  • Python 3.11.9 available
  • Python dependencies (run setup.bat)
  • API keys configured

Quick Start

1. Install Dependencies
cd skills/ai-video-gen
pip install -r requirements.txt

Or run setup.bat

2. Configure API Keys

Copy .env.example to .env and add your keys:

copy .env.example .env
notepad .env

Minimum required:

  • OPENAI_API_KEY - For both image (DALL-E) and voice (TTS)

Optional but recommended:

  • LUMAAI_API_KEY - For video generation (has free tier!)
  • REPLICATE_API_TOKEN - Alternative for images/video
3. Generate Your First Video
python generate_video.py --prompt "A serene mountain landscape at sunset" --output test.mp4

With voiceover:

python generate_video.py \
  --prompt "A futuristic city with flying cars" \
  --voiceover "Welcome to the future" \
  --output future.mp4

What You Need to Sign Up For

Free/Cheap Options (Start Here)
  1. OpenAI - https://platform.openai.com

    • Get API key for DALL-E + TTS
    • Cost: ~$0.05-0.10 per video (image + voice)
  2. LumaAI - https://lumalabs.ai

    • Free tier: 30 generations/month
    • Then $1-2 per video

Total cost to start: $0-0.15 per video

Premium Options (Better Quality)
  1. Runway - https://runwayml.com

    • Higher quality video generation
    • ~$0.50-1.00 per 5-second video
  2. ElevenLabs - https://elevenlabs.io

    • Best voice quality
    • ~$0.30 per 1K characters
  3. Replicate - https://replicate.com

    • Multiple AI models
    • Pay-per-use, very cheap

Examples

Simple Video
python generate_video.py --prompt "Ocean waves crashing" --output waves.mp4
Multi-Image to Video
python images_to_video.py --images img1.png img2.png img3.png --output slideshow.mp4
Add Narration to Existing Video
python add_vo...

来源内容

SKILL.md
# 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

```bash
# Generate a complete video
python skills/ai-video-gen/generate_video.py --prompt "A sunset over mountains" --output sunset.mp4

# Just images to video
python skills/ai-video-gen/images_to_video.py --images img1.png img2.png --output result.mp4

# Add 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:

```bash
# Image Generation (pick one)
OPENAI_API_KEY=sk-...              # DALL-E 3
REPLICATE_API_TOKEN=r8_...         # Stable Diffusion, Flux

# Video Generation (pick one)
LUMAAI_API_KEY=luma_...           # LumaAI Dream Machine
RUNWAY_API_KEY=...                # Runway ML
REPLICATE_API_TOKEN=r8_...        # Multiple models

# Voice (optional)
OPENAI_API_KEY=sk-...             # OpenAI TTS
ELEVENLABS_API_KEY=...            # ElevenLabs

# Or use FREE local options (no API needed)
```

### Install Dependencies

```bash
pip install openai requests pillow replicate python-dotenv
```

### FFmpeg

Already installed via winget.

## Usage Examples

### 1. Text to Video (Full Pipeline)

```bash
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

```bash
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

```bash
python skills/ai-video-gen/images_to_video.py \
  --images frame1.png fram...
README
# AI Video Generator

Complete end-to-end AI video creation system.

## ✅ Installation Status

- [x] FFmpeg installed
- [x] Python 3.11.9 available
- [ ] Python dependencies (run `setup.bat`)
- [ ] API keys configured

## Quick Start

### 1. Install Dependencies

```bash
cd skills/ai-video-gen
pip install -r requirements.txt
```

Or run `setup.bat`

### 2. Configure API Keys

Copy `.env.example` to `.env` and add your keys:

```bash
copy .env.example .env
notepad .env
```

**Minimum required:**
- `OPENAI_API_KEY` - For both image (DALL-E) and voice (TTS)

**Optional but recommended:**
- `LUMAAI_API_KEY` - For video generation (has free tier!)
- `REPLICATE_API_TOKEN` - Alternative for images/video

### 3. Generate Your First Video

```bash
python generate_video.py --prompt "A serene mountain landscape at sunset" --output test.mp4
```

With voiceover:

```bash
python generate_video.py \
  --prompt "A futuristic city with flying cars" \
  --voiceover "Welcome to the future" \
  --output future.mp4
```

## What You Need to Sign Up For

### Free/Cheap Options (Start Here)

1. **OpenAI** - https://platform.openai.com
   - Get API key for DALL-E + TTS
   - Cost: ~$0.05-0.10 per video (image + voice)
   
2. **LumaAI** - https://lumalabs.ai
   - Free tier: 30 generations/month
   - Then $1-2 per video

**Total cost to start: $0-0.15 per video**

### Premium Options (Better Quality)

3. **Runway** - https://runwayml.com
   - Higher quality video generation
   - ~$0.50-1.00 per 5-second video

4. **ElevenLabs** - https://elevenlabs.io
   - Best voice quality
   - ~$0.30 per 1K characters

5. **Replicate** - https://replicate.com
   - Multiple AI models
   - Pay-per-use, very cheap

## Examples

### Simple Video
```bash
python generate_video.py --prompt "Ocean waves crashing" --output waves.mp4
```

### Multi-Image to Video
```bash
python images_to_video.py --images img1.png img2.png img3.png --output slideshow.mp4
```

### Add Narration to Existing Video
```bash
python add_vo...

相关技能

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.