← 返回 Skills 市场
zhaozewen0519

Ai Video Generator

作者 zhaozewen0519 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
377
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install ai-video-generator
功能描述
AI 视频生成技能,支持 Luma Dream Machine、Runway ML、Kling AI 等多个平台。文生视频、图生视频。
使用说明 (SKILL.md)

AI Video Generator - 文生视频技能

使用 AI 生成视频,支持多个平台:

  • Luma Dream Machine - 高质量,5 秒/10 秒视频
  • Runway ML - 专业级,Gen-2/Gen-3
  • Kling AI(可灵) - 国产,效果优秀

命令

生成视频(Luma)

uv run {baseDir}/scripts/generate_video.py --platform luma --prompt "your video description" --filename "output-video.mp4" [--duration 5|10] [--api-key KEY]

生成视频(Runway)

uv run {baseDir}/scripts/generate_video.py --platform runway --prompt "your video description" --filename "output-video.mp4" [--api-key KEY]

生成视频(Kling)

uv run {baseDir}/scripts/generate_video.py --platform kling --prompt "your video description" --filename "output-video.mp4" [--api-key KEY]

图生视频

uv run {baseDir}/scripts/generate_video.py --platform luma --prompt "describe motion" --filename "output-video.mp4" --input-image "path/to/image.png"

API Key 配置

脚本按以下顺序查找 API Key:

  1. --api-key 参数
  2. 环境变量:LUMA_API_KEY / RUNWAY_API_KEY / KLING_API_KEY

平台对比

平台 时长 特点 API 文档
Luma 5s/10s 质量高,速度快 https://docs.lumalabs.ai
Runway 4s/8s 专业级,控制多 https://docs.runwayml.com
Kling 5s/10s 国产,中文友好 https://klingai.com

文件名生成

格式:yyyy-mm-dd-hh-mm-ss-{platform}-{description}.mp4

示例:

  • 2026-03-17-09-30-00-luma-sunset-beach.mp4
  • 2026-03-17-10-15-00-runway-robot-walk.mp4

工作流

  1. 草稿:先用短 prompt 生成 5 秒视频测试
  2. 迭代:调整 prompt 直到满意
  3. 最终:生成 10 秒高清版本

常见错误

  • Error: No API key provided → 设置环境变量或传递 --api-key
  • Error: Quota exceeded → API 额度用尽,等待重置或换平台
  • Error: Invalid prompt → prompt 太短或包含敏感词

示例

# Luma 生成 5 秒视频
uv run ~/.openclaw/workspace/skills/ai-video-generator/scripts/generate_video.py \
  --platform luma \
  --prompt "A drone flying over a sunset beach, cinematic lighting" \
  --filename "2026-03-17-09-30-00-luma-sunset-beach.mp4" \
  --duration 5

# Kling 图生视频
uv run ~/.openclaw/workspace/skills/ai-video-generator/scripts/generate_video.py \
  --platform kling \
  --prompt "The person waves and smiles" \
  --filename "2026-03-17-10-00-00-kling-person-wave.mp4" \
  --input-image "person.png"
安全使用建议
Before installing: (1) Understand you will need a valid API key for whichever provider you use (Luma/Runway/Kling); the script will send your key to those provider endpoints to create and download videos. (2) The skill metadata unnecessarily lists curl and jq even though the bundled Python script doesn't use them — this mismatch is not by itself malicious but is sloppy and worth asking the publisher to clarify or fixing locally. (3) Review the provider URLs in the script if you need to verify they are official endpoints. (4) Be careful with filenames/paths you pass (the script writes files to disk). (5) If you do not trust the unknown source owner, consider running the script in a sandboxed environment or inspect/modify the code (e.g., remove or correct metadata) before use.
功能分析
Type: OpenClaw Skill Name: ai-video-generator Version: 1.0.0 The skill bundle provides a legitimate tool for generating AI videos using Luma, Runway, and Kling AI platforms. The Python script `scripts/generate_video.py` correctly implements API interactions with official endpoints (e.g., api.lumalabs.ai) and handles file downloads as expected for its stated purpose. No evidence of data exfiltration, malicious code execution, or prompt injection was found.
能力评估
Purpose & Capability
The script implements Luma, Runway, and Kling video generation and only needs an API key per platform. However, the skill metadata and registry list required binaries 'curl' and 'jq' even though the provided Python script uses urllib and base64 and does not call curl/jq. This mismatch is unnecessary for the stated purpose and suggests sloppy metadata or possible leftover requirements from a different implementation.
Instruction Scope
SKILL.md instructs the agent to run the included Python script and to supply an API key either via --api-key or environment variables. The instructions do not request unrelated system files, other credentials, or exfiltration endpoints; network calls are only to the named provider APIs.
Install Mechanism
There is no install spec (instruction-only skill with a bundled script). Nothing is downloaded at install time and no installers or arbitrary remote archives are referenced. Risk from installation is low.
Credentials
The code expects per-platform API keys (LUMA_API_KEY, RUNWAY_API_KEY, KLING_API_KEY), which are proportionate to the skill's function. Registry metadata shows no required env vars but SKILL.md lists these as optional — practically, the script will fail unless an API key is provided for the chosen platform, so you must supply those keys. No other credentials are requested.
Persistence & Privilege
The skill is not always-enabled and does not request elevated persistence. It does write output files (videos) to paths you provide, which is expected behavior.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ai-video-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ai-video-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of AI 视频生成技能 (AI Video Generator): - Supports Luma Dream Machine, Runway ML (Gen-2/3), and Kling AI platforms for video generation. - Provides commands for text-to-video and image-to-video workflows. - Flexible API key configuration via parameter or environment variables. - Includes platform comparison table and guidance on file naming. - Documents common errors and recommended usage workflow.
元数据
Slug ai-video-generator
版本 1.0.0
许可证 MIT-0
累计安装 3
当前安装数 3
历史版本数 1
常见问题

Ai Video Generator 是什么?

AI 视频生成技能,支持 Luma Dream Machine、Runway ML、Kling AI 等多个平台。文生视频、图生视频。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 377 次。

如何安装 Ai Video Generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ai-video-generator」即可一键安装,无需额外配置。

Ai Video Generator 是免费的吗?

是的,Ai Video Generator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Ai Video Generator 支持哪些平台?

Ai Video Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Ai Video Generator?

由 zhaozewen0519(@zhaozewen0519)开发并维护,当前版本 v1.0.0。

💬 留言讨论