video-generation-minimax

视频生成技能,使用 MiniMax 视频生成 API 创建视频

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "video-generation-minimax" with this command: npx skills add xbos1314/video-generation-minimax

Video Generation MiniMax

使用 MiniMax 视频生成 API 创建视频。支持4种生成模式:

  1. 文生视频:根据文本描述生成视频
  2. 图生视频:基于图片+文本描述生成视频
  3. 首尾帧:首图+尾图+文本生成视频
  4. 主体参考:人脸照片+文本,保持人物特征一致

前置要求

  • 安装 Python 依赖:pip3 install requests
  • 设置环境变量 MINIMAX_API_KEY

使用方法

方式一:Python 脚本(推荐)

python3 {baseDir}/scripts/video_gen.py --mode text --prompt "描述文字"
python3 {baseDir}/scripts/video_gen.py --mode image --prompt "描述文字" --image "图片URL"
python3 {baseDir}/scripts/video_gen.py --mode start_end --prompt "描述文字" --first "首图URL" --last "尾图URL"
python3 {baseDir}/scripts/video_gen.py --mode subject --prompt "描述文字" --subject "人脸图片URL"

参数说明

参数说明必填
--mode模式:text/image/start_end/subject
--prompt视频描述文本
--image图生视频的首帧图片URLimage模式必填
--first首尾帧模式的首帧图片URLstart_end模式必填
--last首尾帧模式的尾帧图片URLstart_end模式必填
--subject主体参考模式的人脸图片URLsubject模式必填
--duration视频时长:6/10否,默认6
--resolution分辨率:720P/1080P否,默认1080P
--output输出文件名否,默认 output.mp4

示例

# 文生视频
python3 {baseDir}/scripts/video_gen.py --mode text --prompt "镜头拍摄一个女性坐在咖啡馆里,女人抬头看着窗外"

# 图生视频
python3 {baseDir}/scripts/video_gen.py --mode image --prompt "Contemporary dance" --image "https://example.com/image.png"

# 首尾帧生成
python3 {baseDir}/scripts/video_gen.py --mode start_end --prompt "A little girl grow up" --first "https://example.com/start.jpg" --last "https://example.com/end.jpg"

# 主体参考
python3 {baseDir}/scripts/video_gen.py --mode subject --prompt "在街头走路的男士" --subject "https://example.com/face.jpg"

数据来源

注意事项

  • 视频生成是异步过程,需要轮询任务状态
  • 推荐轮询间隔为10秒
  • 生成完成后自动下载视频到你的工作空间 {WorkspaceDir}/video-generation/目录下随后发送给用户
  • 模型版本:文生视频用 MiniMax-Hailuo-2.3,主体参考用 S2V-01

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Leads

Leads - command-line tool for everyday use

Registry SourceRecently Updated
General

Bmi Calculator

BMI计算器。BMI计算、理想体重、健康计划、体重追踪、儿童BMI、结果解读。BMI calculator with ideal weight, health plan. BMI、体重、健康。

Registry SourceRecently Updated
General

Blood

Blood — a fast health & wellness tool. Log anything, find it later, export when needed.

Registry SourceRecently Updated
General

Better Genshin Impact

📦BetterGI · 更好的原神 - 自动拾取 | 自动剧情 | 全自动钓鱼(AI) | 全自动七圣召唤 | 自动伐木 | 自动刷本 | 自动采集/挖矿/锄地 | 一条龙 | 全连音游 - UI A better genshin impact, c#, auto-play-game, automatic, g...

Registry SourceRecently Updated