Ai Video Gen logo

Ai Video Gen

OrganizationPopular
ZJU-REAL
ai-video-gen

AI 视频生成:文生视频 / 图生视频 / 数字人首帧驱动。通过可插拔 provider(通义万相 Wan / 火山 Seedance / 快手可灵 / OpenAI 兼容)异步生成视频,用户自备 API key。当用户说 AI 视频生成、文生视频、图生视频、AI 生成视频、AI 短视频、让图片动起来、数字人视频、生成一段视频 时使用。与 video-strategy(选型/策略)、video-editing(剪辑处理)、clipify(切片)区别:本 SKILL 是从 0 用 AI 生成新视频。

Overview

PublisherZJU-REAL
RepositoryEasel
Skill nameai-video-gen
Stars
1.2K
Forks
175
Bundled files
1
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by ZJU-REAL on GitHub. Read the source before you install it.

Installation

Install the Ai Video Gen AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ZJU-REAL/Easel.git /tmp/Easel
mkdir -p .claude/skills
cp -r /tmp/Easel/skills/openclaw/ai-video-gen .claude/skills/ai-video-gen
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ai Video Gen in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ai Video Gen on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ai Video Gen is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

AI 视频生成

文生视频 / 图生视频 / 数字人首帧驱动。封装 shared/scripts/ai_video.py,多 provider 可插拔、异步提交→轮询→下载。用户自备 API key(在 .env 配置)。

前置:配置 API key

配置检查路径铁律:先 cdAGENTS.md 末尾给出的 Easel 项目根,确认当前目录有 .envskills/shared/scripts/,再运行注册表、check 或生成命令。不得改用 workspace 的 ./shared/scripts/...,也不得以 env / printenv 没显示变量为由判断未配置。

先选 provider 并在 .env 填对应 key,然后 check 离线校验:

bash
python skills/shared/scripts/ai_video.py check --provider dashscope
provider服务需在 .env 配
dashscope阿里通义万相 WanDASHSCOPE_API_KEY(可选 DASHSCOPE_VIDEO_MODEL/DASHSCOPE_BASE_URL;兼容旧名 DASHSCOPE_MODEL
ark火山引擎 SeedanceARK_API_KEY(可选 ARK_MODEL/ARK_BASE_URL
kling快手可灵KLING_ACCESS_KEY + KLING_SECRET_KEY(JWT 鉴权)
openai-compatible通用 /videos 端点VIDEO_API_KEY + VIDEO_BASE_URL(可选 VIDEO_MODEL
xhs-maas小红书内网 MaaS(happyhorse 文/图生视频)XHS_MAAS_API_KEY(可选 XHS_MAAS_VIDEO_BASE/XHS_MAAS_T2V_MODEL/XHS_MAAS_I2V_MODEL)。DashScope 风格异步 + api-key 头,内网直连
agnesAgnes(agnes-video-2.5-flash)AGNES_API_KEY(可选 AGNES_BASE_URL/AGNES_MODEL/AGNES_SIZE)。OpenAI Videos 兼容创建 + 自定义端点轮询;默认带原生音频(prompt 描述声音);外网走代理

也可设 VIDEO_PROVIDER 免去每次 --provider

执行前先跑 model_registry.py configured --group video --env-file .env:只有一个可用就显式选它;多个可用且用户没点名时,列出 provider/模型询问本次使用哪个,不按默认值擅自选择。

输入

画幅确认硬门:用户或上游任务未明确横版/竖版(或 16:9/9:16/具体比例)时,任何生成/付费调用前必须追问并等确认;不得从平台、Profile 或脚本默认值静默推断。已明确则不重复问。

  • 文生视频:画面/镜头/风格描述(prompt)
  • 图生视频:一张输入图(本地路径或 URL)+ 可选运动描述
  • 可选:时长 --duration、画幅 --ratio(16:9 / 9:16 / 1:1)、模型 --model、原生音频 --audio auto|on|off

输出

生成的视频文件;必须用 -o 指定到 outputs/主题名/。异步任务自动轮询到完成再下载。

执行步骤

  1. 确认配置与能力:先运行 check,再运行 capabilities --provider <p> --model <m>。短剧不得根据品牌名猜测模型是否支持原生音频;新模型用 VIDEO_CAPABILITIES_JSON 登记能力和请求字段,无需修改调用流程。
    • probe-dialogue(短剧用):真发 1 次生成 + ASR,测该模型能否逐字忠实说出指定台词,判 dialogue_faithful 并缓存——短剧据此决定用原生对白,还是"无台词生成 + 后期配音"。用法 probe-dialogue --provider <p> --model <m>
  2. 写好 prompt:AI 视频对 prompt 敏感,按 AI 视频提示词规范 写镜头、运镜、风格与时长。竖版短视频用 --ratio 9:16
  3. 文生视频
    bash
    python skills/shared/scripts/ai_video.py text2video --provider dashscope \
      --prompt "海边日落,慢镜头推进,暖色调,电影感" --ratio 9:16 --duration 5 \
      --audio auto \
      -o outputs/主题名/clip.mp4
  4. 图生视频 / 让图动起来 / 数字人首帧
    bash
    python skills/shared/scripts/ai_video.py image2video --provider kling \
      --image outputs/主题名/cover.png --prompt "人物微笑挥手,头发轻微飘动" \
      -o outputs/主题名/clip.mp4
  5. 后续加工:生成的片段可交给 video_ops.py(拼接/加字幕/加 BGM/横竖转)、auto-subtitle(字幕)、tts-voiceover(配音)串成成片,或直接进 auto-short-video 端到端流程。

Profile 感知

  • 有 Profile:从 style.md 取视觉风格倾向注入 prompt;platforms.md 只用于给出画幅建议,不能替代用户确认。
  • 无 Profile:先确认横版/竖版,再按已确认比例生成。

注意

  • 视频生成 API 均为异步且耗时较长(数十秒到数分钟)+ 按量计费,先与用户确认。
  • 各 provider 的 model 名/字段各版本有差异,均可用 --model 或 env 覆盖;如报错对照官方最新文档调整。
  • --audio auto 只按 capability profile 映射已知字段;能力声明不等于质量保证,下载后仍须 ffprobe/ASR/视觉审计。网关默认有声但开关字段未知时,不猜测注入参数。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Ai Video Gen AI skill do?

AI 视频生成:文生视频 / 图生视频 / 数字人首帧驱动。通过可插拔 provider(通义万相 Wan / 火山 Seedance / 快手可灵 / OpenAI 兼容)异步生成视频,用户自备 API key。当用户说 AI 视频生成、文生视频、图生视频、AI 生成视频、AI 短视频、让图片动起来、数字人视频、生成一段视频 时使用。与 video-strategy(选型/策略)、video-editing(剪辑处理)、clipify(切片)区别:本 SKILL 是从 0 用 AI 生成新视频。

Why use Ai Video Gen on TypingMind?

Because you install it once and use it with any model. Ai Video Gen is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ai Video Gen in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ZJU-REAL/Easel/tree/main/skills/openclaw/ai-video-gen. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Ai Video Gen?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ai Video Gen?

As many as you like. As long as a model supports skills, you can use Ai Video Gen with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ai Video Gen AI skill free?

Yes. It is published on GitHub by ZJU-REAL under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇