/video-generate
使用 video_generate.py 脚本生成视频,需要提供文件名和 prompt,可选提供首帧图片(URL或本地路径)。
$ npx -y skills add bytedance/agentkit-samples --skill video-generate --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/video-generate
Context preview
The summary Claude sees to decide when to auto-load this skill.
使用 video_generate.py 脚本生成视频,需要提供文件名和 prompt,可选提供首帧图片(URL或本地路径)。
SKILL.md
video-generate.SKILL.mdname: video-generate description: 使用 video_generate.py 脚本生成视频,需要提供文件名和 prompt,可选提供首帧图片(URL或本地路径)。 license: Complete terms in LICENSE.txt
Video Generate
适用场景
当需要根据文本描述生成视频时,使用该技能。支持通过首帧图片控制视频起始画面,首帧可以是 URL 或本地文件路径。
使用步骤
1. 准备目标文件名(如 `output.mp4`)和清晰具体的 `prompt`。 2. (可选) 准备首帧图片,可以是 HTTP URL,也可以是本地文件路径(脚本会自动转为 Base64)。 3. 运行脚本 `python scripts/video_generate.py <filename> "<prompt>" [first_frame]`。运行之前cd到对应的目录。 4. 脚本将输出视频的 TOS URL 并自动下载到指定文件。
认证与凭据来源
- 优先读取 `MODEL_VIDEO_API_KEY` 或 `ARK_API_KEY` 环境变量。
- 若未配置,将尝试使用 `VOLCENGINE_ACCESS_KEY` 与 `VOLCENGINE_SECRET_KEY` 获取 Ark API Key。
输出格式
- 控制台输出生成的视频 URL。
- 视频文件将被下载到指定路径。
示例
**纯文本生成:**
python scripts/video_generate.py "cat.mp4" "一只可爱的猫"
**带首帧图片生成(URL):**
python scripts/video_generate.py "dog_run.mp4" "一只小狗在草地上奔跑" "https://example.com/dog_start.png"
**带首帧图片生成(本地文件):**
python scripts/video_generate.py "my_video.mp4" "图片中的人物动起来" "/path/to/local/image.jpg"
欢迎来到 AgentKit 代码工坊(Samples)仓库! AgentKit 是火山引擎推出的企业级 AI Agent 开发平台,为开发者提供完整的 Agent 构建、部署和运维解决方案。平台通过标准化的开发工具链和云原生基础设施,显著降低复杂智能体应用的开发部署门槛。 本代码库包含了一系列示例和教程,帮助您理解、实现和集成 AgentKit 的各项功能到您的应用中。
Other skills on agentkit-samples.
- /code-optimization
Optimize code performance through iterative improvements (max 2 rounds). Benchmark execution time and memory usage, compare against baseline implementations, and generate detailed optimization reports. Supports C++, Python, Java, Rust, and other languages.
Open skill - /image-video-gen
根据文字描述生成视频,一个生成图片和视频的工作流技能。依赖 skills: byted-web-search, image-generate, video-generate。注意:此 workflow 没有执行脚本,只是一个描述性的文档。
Open skill - /skills-management
Manage AgentKit skills, SkillHub/skillhub, skill centers, and skill spaces. Use this skill whenever the user has a management intent for AgentKit skills, skill中心, skill 空间, skill space, or skill hub, including listing, inspecting, downloading, fetching, uploading, publishing,
Open skill - /tos-file-access
Upload files or directories to TOS-compatible object storage for Volcano Engine or BytePlus and download files from URLs. Use this skill when (1) Upload Agent-generated files or directories for sharing, (2) Download files from URLs before Agent processing.
Open skill - /veadk-go-skills
根据用户的功能需求,完成与 VeADK-Go 相关的功能; 包括:直接根据需求生成 Agent;将Enio Agent转换为VeADK-Go Agent。
Open skill - /veadk-skills
根据用户的功能需求,完成与 VeADK 相关的功能。
Open skill

