/byted-ind-ecom-prompt-to-video
使用 Seedance 2.0 根据提示词与参考素材生成视频。用户要把文本/参考图/参考视频变成视频时使用。
$ npx -y skills add bytedance/agentkit-samples --skill byted-ind-ecom-prompt-to-video --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
/byted-ind-ecom-prompt-to-video
Context preview
The summary Claude sees to decide when to auto-load this skill.
使用 Seedance 2.0 根据提示词与参考素材生成视频。用户要把文本/参考图/参考视频变成视频时使用。
SKILL.md
byted-ind-ecom-prompt-to-video.SKILL.mdname: "byted-ind-ecom-prompt-to-video"
description: "使用 Seedance 2.0 根据提示词与参考素材生成视频。用户要把文本/参考图/参考视频变成视频时使用。"
Seedance 2.0 文生视频/参考生成视频(byted-ind-ecom-prompt-to-video)
本 skill 用于调用火山方舟上的 Seedance 2.0 视频生成能力,支持:
- 文生视频(仅 prompt)
- 图生视频(首帧/首尾帧)
- 多参考生成(参考图片最多 9 张、参考视频最多 3 个)
使用方式
在 skill 目录下执行 `scripts/generate.py`。
参数
- `--prompt`:视频文本提示词
- `--first_frame`:首帧图片(URL 或本地路径)
- `--last_frame`:尾帧图片(URL 或本地路径)
- `--reference_images`:参考图片(URL 或本地路径,最多 9 张)
- `--reference_videos`:参考视频(URL 或本地路径,最多 3 个)
- `--resolution`:分辨率(如 `720p`、`1080p`)
- `--ratio`:画幅(如 `16:9`、`9:16`、`1:1`、`adaptive`)
- `--duration`:时长(秒)
示例
**文生视频:**
python3 scripts/generate.py --prompt "A cute cat playing with a ball of yarn in a sunny room" --ratio 16:9 --duration 5
**图生视频(首帧):**
python3 scripts/generate.py --prompt "The cat jumps" --first_frame "/path/to/cat.jpg" --ratio 16:9 --duration 5
**多参考图片:**
python3 scripts/generate.py --prompt "A scenic landscape" --reference_images "/path/to/img1.jpg" "/path/to/img2.jpg" --ratio 16:9
本地素材处理逻辑(重要)
- **本地图片**:
- 在“可用 TOS”时会先上传到 TOS,再使用公网 URL 参与生成。
- 若无可用 TOS,则自动转为 `data:<mime>;base64,...` 形式提交。
- **本地参考视频**:建议直接提供公网 URL;如提供本地视频,需要可用 TOS 才能先上传转为公网 URL。
- **视频输出**:
- 若可用 TOS,会尝试将生成视频转存到 TOS 并输出 TOS URL。
- 否则直接返回模型原始视频 URL(通常有时效,建议尽快下载或转存)。
环境变量
最低必需:
- `ARK_API_KEY`
- `SEEDANCE_EP_ID`
- `ARK_BASE_URL`(可选,默认 `https://ark.cn-beijing.volces.com/api/v3`)
如需启用 TOS 上传/转存:
- `VOLC_ACCESS_KEY`
- `VOLC_SECRET_KEY`
- `TOS_ENDPOINT`
- `TOS_REGION`
- `TOS_BUCKET`
- `TOS_UPLOAD_ENABLED`(可选,默认 `true`)
输出
脚本会轮询任务直到结束,并在终端输出:
- `Final Video URL: <url>`
Read more
name: "byted-ind-ecom-prompt-to-video" description: "使用 Seedance 2.0 根据提示词与参考素材生成视频。用户要把文本/参考图/参考视频变成视频时使用。"
Seedance 2.0 文生视频/参考生成视频(byted-ind-ecom-prompt-to-video)
本 skill 用于调用火山方舟上的 Seedance 2.0 视频生成能力,支持:
- 文生视频(仅 prompt)
- 图生视频(首帧/首尾帧)
- 多参考生成(参考图片最多 9 张、参考视频最多 3 个)
使用方式
在 skill 目录下执行 `scripts/generate.py`。
参数
- `--prompt`:视频文本提示词
- `--first_frame`:首帧图片(URL 或本地路径)
- `--last_frame`:尾帧图片(URL 或本地路径)
- `--reference_images`:参考图片(URL 或本地路径,最多 9 张)
- `--reference_videos`:参考视频(URL 或本地路径,最多 3 个)
- `--resolution`:分辨率(如 `720p`、`1080p`)
- `--ratio`:画幅(如 `16:9`、`9:16`、`1:1`、`adaptive`)
- `--duration`:时长(秒)
示例
**文生视频:**
python3 scripts/generate.py --prompt "A cute cat playing with a ball of yarn in a sunny room" --ratio 16:9 --duration 5
**图生视频(首帧):**
python3 scripts/generate.py --prompt "The cat jumps" --first_frame "/path/to/cat.jpg" --ratio 16:9 --duration 5
**多参考图片:**
python3 scripts/generate.py --prompt "A scenic landscape" --reference_images "/path/to/img1.jpg" "/path/to/img2.jpg" --ratio 16:9
本地素材处理逻辑(重要)
- **本地图片**:
- 在“可用 TOS”时会先上传到 TOS,再使用公网 URL 参与生成。
- 若无可用 TOS,则自动转为 `data:<mime>;base64,...` 形式提交。
- **本地参考视频**:建议直接提供公网 URL;如提供本地视频,需要可用 TOS 才能先上传转为公网 URL。
- **视频输出**:
- 若可用 TOS,会尝试将生成视频转存到 TOS 并输出 TOS URL。
- 否则直接返回模型原始视频 URL(通常有时效,建议尽快下载或转存)。
环境变量
最低必需:
- `ARK_API_KEY`
- `SEEDANCE_EP_ID`
- `ARK_BASE_URL`(可选,默认 `https://ark.cn-beijing.volces.com/api/v3`)
如需启用 TOS 上传/转存:
- `VOLC_ACCESS_KEY`
- `VOLC_SECRET_KEY`
- `TOS_ENDPOINT`
- `TOS_REGION`
- `TOS_BUCKET`
- `TOS_UPLOAD_ENABLED`(可选,默认 `true`)
输出
脚本会轮询任务直到结束,并在终端输出:
- `Final Video URL: <url>`
欢迎来到 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

