minimax-image-to-video
它能做什么
这项技能通过 Hermes Web UI 调用 MiniMax,把图片转换为短视频。适合想用已有照片制作动态片段,并且已经配置好 MiniMax 的人。
适用场景
- ✓当你想用 MiniMax 为图片添加动态效果,制作成简短的 MP4 视频时。
- ✓当你需要下载完成的视频,并保存到你指定的位置时。
- ✓当你想用 MiniMax 服务为已有图片制作动画的时候。
技能链接
https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/skills/minimax-image-to-video/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请用 MiniMax 把这张产品照片做成动态视频,并保存到我的桌面。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会把图片发送到 Hermes Web UI 的媒体接口。服务器使用所选配置文件中的 MiniMax 密钥,等待视频任务完成,下载 MP4 并保存到你指定的位置。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
MiniMax Image To Video
Use this skill when the user wants to animate an image with MiniMax.
If the Hermes Web UI endpoint returns an authentication, connection, or generation error, stop and report that error to the user.
Workflow
Call the local Hermes Web UI media endpoint. The server resolves the selected profile's MiniMax API key, creates an image-to-video task through the official v1 API, polls it, downloads the finished mp4, and optionally saves it to a requested path.
Endpoint:
POST <Hermes Web UI base URL>/api/studio/media/minimax-image-to-video
Resolve the Hermes Web UI base URL in this order:
HERMES_WEB_UI_URL, if set.http://127.0.0.1:${PORT}, ifPORTis set.http://127.0.0.1:8648.
Use http://127.0.0.1:8647 for the development API backend and http://127.0.0.1:6060 for the default Docker Compose external URL.
Always send the Hermes Web UI server bearer token. Resolve it in this order:
AUTH_TOKEN, if set.${HERMES_WEB_UI_HOME}/.token, ifHERMES_WEB_UI_HOMEis set.${HERMES_WEBUI_STATE_DIR}/.token, ifHERMES_WEBUI_STATE_DIRis set.~/.hermes-web-ui/.token.
If the run instructions include [Current Hermes profile: <name>], send the exact profile in X-Hermes-Profile. If no profile is provided, omit that header.
Required JSON fields:
- One image input:
image_url,image_base64withmime_type, orimage_path.
Optional JSON fields:
prompt: motion and style instructions, up to 2000 characters.model: defaults toMiniMax-Hailuo-2.3. Supported values areMiniMax-Hailuo-2.3,MiniMax-Hailuo-2.3-Fast,MiniMax-Hailuo-02,I2V-01-Director,I2V-01-live, andI2V-01.duration: defaults to 6 seconds. Hailuo models also support 10 seconds at compatible resolutions.resolution: defaults to768Pfor Hailuo models and720Pfor I2V models.1080Pis limited to 6-second videos.prompt_optimizer,fast_pretreatment, andcallback_url: supported request options.aigc_watermark: optional China-region watermark flag.region:global_enorcn_zh. When omitted, the server infers the region from the selected profile provider (minimaxorminimax-cn).output_path: local mp4 destination; the server media directory is used when omitted.timeout_ms: maximum polling time; defaults to 600000.
Example:
TOKEN="${AUTH_TOKEN:-}"
if [ -z "$TOKEN" ] && [ -n "${HERMES_WEB_UI_HOME:-}" ] && [ -f "$HERMES_WEB_UI_HOME/.token" ]; then
TOKEN="$(cat "$HERMES_WEB_UI_HOME/.token")"
fi
if [ -z "$TOKEN" ] && [ -n "${HERMES_WEBUI_STATE_DIR:-}" ] && [ -f "$HERMES_WEBUI_STATE_DIR/.token" ]; then
TOKEN="$(cat "$HERMES_WEBUI_STATE_DIR/.token")"
fi
if [ -z "$TOKEN" ] && [ -f "$HOME/.hermes-web-ui/.token" ]; then
TOKEN="$(cat "$HOME/.hermes-web-ui/.token")"
fi
if [ -z "$TOKEN" ]; then
echo "Missing Hermes Web UI token." >&2
exit 1
fi
BASE_URL="${HERMES_WEB_UI_URL:-http://127.0.0.1:${PORT:-8648}}"
BASE_URL="${BASE_URL%/}"
curl -sS -X POST "$BASE_URL/api/studio/media/minimax-image-to-video" \
-H "Authorization: Bearer $TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"prompt": "Add a gentle camera push while the clouds drift across the sky",
"image_url": "https://example.com/source.png",
"duration": 6,
"output_path": "/absolute/path/to/output.mp4"
}'
If the response has code: "missing_minimax_token", tell the user to configure the MiniMax API-key provider for the selected profile. International profiles use MINIMAX_API_KEY; China profiles use MINIMAX_CN_API_KEY. MiniMax Coding Plan OAuth credentials do not authorize video generation.
Return the generated output_path.
常见问题
MiniMax 密钥从哪里来?
服务器会从所选配置文件中读取密钥,因此你不需要把密钥粘贴到聊天中。
如果生成失败会怎样?
智能体会停止并报告错误,而不会尝试其他服务。
我可以选择视频的保存位置吗?
可以。该技能可以把完成的 MP4 保存到你指定的路径。
详情
作者的原始描述
Animate an image through Hermes Web UI using the MiniMax image-to-video API.
repo: EKKOLearnAI/ekko-studio
热度
- GitHub 星标
- 12k
- 排名
- #11586
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
1password
12k帮你的智能体使用 1Password CLI 为命令和配置文件获取机密信息,同时不在聊天、日志或已保存的文件中显示这些信息。
apple-notes
12k帮你的智能体在 Mac 上使用 memo 命令行工具创建、搜索、阅读、编辑、移动或删除 Apple 备忘录。
apple-reminders
12k帮你的智能体在 Mac 上使用 remindctl 工具列出、创建、编辑、完成或删除 Apple 提醒事项及提醒列表。
document-to-action-items
12k帮你的智能体把文档、会议记录或一组笔记,整理成一张清晰的任务、负责人、截止日期和决定的表格。