grok-image-to-video
它能做什么
该技能通过 Ekko Studio 应用及其 Grok Imagine 服务,把一张静态图片制作成一段短视频。适用于希望用自己的图片制作动态短片的人。
适用场景
- ✓当你有一张照片或插图,想用它制作一段短动画视频时。
- ✓当你想为静态图片添加缓慢的镜头推进或细微的动态效果时。
- ✓当你需要获取成片视频文件,以便观看时。
技能链接
https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/grok-image-to-video/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把这张产品照片做成一段短视频,镜头缓慢推近。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会编写动态提示词,通过 Studio 辅助工具发送你的图片,等待结果,并返回 MP4 文件。它会保留你描述的主体和风格。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Grok image to video
Use this Skill when the user wants to animate a local image into a short video with xAI Grok Imagine.
Always use the Studio media endpoint through the bundled helper. Do not call xAI directly, request credentials in chat, or fall back to another image/video generator when Studio reports an error. Studio owns xAI credential resolution, request polling, download, and Profile selection.
Workflow
- Resolve the exact local source image. It must be PNG, JPEG, or WebP and necessary for the user's requested generation.
- Write a motion prompt that preserves the user's intended subject, composition, camera movement, and style. Do not add people, branding, or sensitive traits the user did not request.
- Use the exact
profileshown under Runtime Context in the Ekko system prompt. skill_viewreturns this Skill'sbaseDirectory. Run:
node <baseDirectory>/scripts/grok-image-to-video.mjs --profile <runtime-profile> --image-path /absolute/path/input.png --prompt "Slow cinematic push-in with subtle natural motion" [options]
- The helper calls Studio, waits for completion, verifies the downloaded file, and returns JSON containing
output_path. - Verify the file exists, then return it as an absolute Markdown file link so Studio renders the video player.
Options
--profile <name>: required in Ekko runs; use the current runtime Profile.--duration <seconds>: integer from 1 to 15; defaults to 8.--output-path <absolute-path.mp4>: optional requested destination. When omitted, Studio writes under its media directory.--timeout-ms <milliseconds>: defaults to 600000 and is capped at 1800000.
The local call can legitimately take several minutes. Set the terminal_exec tool timeout slightly above --timeout-ms; do not start duplicate generations while the first request is still pending.
Errors
missing_xai_token: configureXAI_API_KEYor complete xAI OAuth login for the current Profile in Ekko Studio.profile_not_found: the Ekko Profile does not map to an existing Studio/Hermes Profile used by the media endpoint.401,403, connection failure, timeout, expired request, provider failure, or missing output: report the Studio error and stop. Do not bypass Studio or silently retry against another service.
常见问题
哪些图片类型可用?
源图片必须是保存在你电脑上的 PNG、JPEG 或 WebP 图片。
它会在视频中添加人物或品牌标识吗?
不会。该技能说明不添加你没有要求的人物、品牌或敏感特征。
如果 Studio 返回错误怎么办?
智能体会报告错误,而不会切换到另一个视频工具。
详情
作者的原始描述
Animate a local image into a short MP4 through Ekko Studio using xAI Grok Imagine.
repo: EKKOLearnAI/ekko-studio
热度
- GitHub 星标
- 12k
- 排名
- #11567
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
1password
12k帮你的智能体使用 1Password CLI 为命令和配置文件获取机密信息,同时不在聊天、日志或已保存的文件中显示这些信息。
apple-notes
12k帮你的智能体在 Mac 上使用 memo 命令行工具创建、搜索、阅读、编辑、移动或删除 Apple 备忘录。
apple-reminders
12k帮你的智能体在 Mac 上使用 remindctl 工具列出、创建、编辑、完成或删除 Apple 提醒事项及提醒列表。
document-to-action-items
12k帮你的智能体把文档、会议记录或一组笔记,整理成一张清晰的任务、负责人、截止日期和决定的表格。