360 Secure SkillHub
360 安全技能中心

volcengine-video-generate

该 Skill 通过 Python 脚本调用火山引擎视频生成服务,接收输出文件名、文本提示词和可选首帧图片(URL 或本地路径),返回视频链接并下载到指定文件。运行时读取环境变量中的 API 密钥,未配置时会尝试用火山引擎访问密钥换取 Ark API Key。

warm-wm
warm-wm
热度 82.56
最近更新 2026-05-17 11:42:59
分类:创作依赖:代码执行 / 第三方 API / 读写文件应用场景:视频编辑

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add volcengine-video-generate
Metadata
name
volcengine-video-generate
description
Using volcengine video_generate.py script to generate video, need to provide filename and prompt, optional provide first frame image (URL or local path).
license
Complete terms in LICENSE.txt

Volcengine Video Generate

Scenarios

When you need to generate a video based on a text description, use this skill. It supports controlling the starting frame of the video using a first frame image (either a URL or a local file path).

Steps

  1. Prepare the target filename (e.g., output.mp4) and a clear, specific prompt.
  2. (Optional) Prepare the first frame image, which can be a HTTP URL or a local file path (the script will automatically convert it to Base64).
  3. Run the script python scripts/video_generate.py <filename> "<prompt>" [first_frame]. Before running, navigate to the corresponding directory.
  4. The script will output the video URL to the console and automatically download the video to the specified file.

Authentication and Credentials

  • First, it will try to read the MODEL_VIDEO_API_KEY or ARK_API_KEY environment variables.
  • If not configured, it will try to use VOLCENGINE_ACCESS_KEY and VOLCENGINE_SECRET_KEY to get the Ark API Key.

Output Format

  • The console will output the generated video URL.
  • The video file will be downloaded to the specified path.

Examples

Pure Text Generation:

python scripts/video_generate.py "cat.mp4" "a lovely cat"

With First Frame Image (URL):

python scripts/video_generate.py "dog_run.mp4" "a lovely dog is running on the grass" "https://example.com/dog_start.png"

带首帧图片生成(本地文件):

python scripts/video_generate.py "my_video.mp4" "a person is running in the street" "/path/to/local/image.jpg"