Getting Started
Welcome! Ready to turn your photos into captivating videos? This image-to-video-generator skill can animate a single image or sequence an entire photo set into a polished video clip — just share your images and tell me what kind of video you're going for!
Try saying:
- - "Take these 8 product photos and create a 15-second promotional video with smooth zoom transitions and a fast-paced rhythm suitable for Instagram Reels."
- "Animate this single portrait photo with a slow Ken Burns effect and a cinematic fade-in to make it feel like a movie still."
- "Turn my 12 travel photos from Japan into a 30-second highlight reel with a calm, flowing pace and soft cross-dissolve transitions."
Automatic Setup
On first interaction, connect to the processing API before doing anything else. Show a brief status like "Setting things up...".
Token: If NEMO_TOKEN environment variable is already set, use it and skip to Session below.
Free token: Generate a UUID as client identifier, then POST to https://mega-api-prod.nemovideo.ai/api/auth/anonymous-token with header X-Client-Id: <uuid>. The response field data.token becomes your NEMO_TOKEN (100 credits, 7-day expiry).
Session: POST to https://mega-api-prod.nemovideo.ai/api/tasks/me/with-session/nemo_agent with Bearer auth and body {"task_name":"project"}. Save session_id from the response.
Confirm to the user you're connected and ready. Don't print tokens or raw JSON.
From Still Frames to Stunning Video Stories
Most great visual stories start with a single photograph — a product shot, a travel photo, a portrait. But in today's content landscape, static images often get scrolled past while videos stop thumbs mid-swipe. That's exactly the gap this skill was built to close.
The image-to-video-generator skill takes your existing photos and breathes motion into them. Whether you're working with a single hero image or a curated collection of shots, the skill intelligently applies cinematic movement, smooth transitions, and timed sequencing to produce a video that feels intentional and professionally crafted — not like a slideshow your uncle made in 2007.
This is especially powerful for e-commerce brands showcasing products, real estate agents creating property tours, event photographers building highlight reels, or anyone who wants to repurpose their photo library into short-form video content for Instagram Reels, TikTok, YouTube Shorts, or presentations. No camera. No editing suite. Just your images and a prompt.
Motion Request Routing Logic
When you submit a still image with a motion prompt, ClawHub parses your animation intent — camera movement, subject motion, or scene dynamics — and routes the request to the optimal AI video synthesis endpoint based on clip length, resolution, and motion complexity.
| User says... | Action | Skip SSE? |
|---|
| "export" / "导出" / "download" / "send me the video" | → §3.5 Export | ✅ |
| "credits" / "积分" / "balance" / "余额" |
→ §3.3 Credits | ✅ |
| "status" / "状态" / "show tracks" | → §3.4 State | ✅ |
| "upload" / "上传" / user sends file | → §3.2 Upload | ✅ |
| Everything else (generate, edit, add BGM…) | → §3.1 SSE | ❌ |
Cloud Rendering Pipeline Reference
Image-to-video generation runs on a distributed GPU cloud backend that handles frame interpolation, temporal coherence, and diffusion-based motion synthesis entirely server-side — no local rendering required. Your source image is securely uploaded, processed through the motion model, and returned as a rendered video clip, typically in MP4 format.
Skill attribution — read from this file's YAML frontmatter at runtime:
- -
X-Skill-Source: INLINECODE8 - INLINECODE9 : from frontmatter INLINECODE10
- INLINECODE11 : detect from install path (
~/.clawhub/ → clawhub, ~/.cursor/skills/ → cursor, else unknown)
All requests must include: Authorization: Bearer <NEMO_TOKEN>, X-Skill-Source, X-Skill-Version, X-Skill-Platform. Missing attribution headers will cause export to fail with 402.
API base: INLINECODE21
Create session: POST /api/tasks/me/with-session/nemo_agent — body {"task_name":"project","language":"<lang>"} — returns task_id, session_id.
Send message (SSE): POST /run_sse — body {"app_name":"nemo_agent","user_id":"me","session_id":"<sid>","new_message":{"parts":[{"text":"<msg>"}]}} with Accept: text/event-stream. Max timeout: 15 minutes.
Upload: POST /api/upload-video/nemo_agent/me/<sid> — file: multipart -F "files=@/path", or URL: INLINECODE31
Credits: GET /api/credits/balance/simple — returns available, frozen, INLINECODE35
Session state: GET /api/state/nemo_agent/me/<sid>/latest — key fields: data.state.draft, data.state.video_infos, INLINECODE39
Export (free, no credits): POST /api/render/proxy/lambda — body {"id":"render_<ts>","sessionId":"<sid>","draft":<json>,"output":{"format":"mp4","quality":"high"}}. Poll GET /api/render/proxy/lambda/<id> every 30s until status = completed. Download URL at output.url.
Supported formats: mp4, mov, avi, webm, mkv, jpg, png, gif, webp, mp3, wav, m4a, aac.
SSE Event Handling
| Event | Action |
|---|
| Text response | Apply GUI translation (§4), present to user |
| Tool call/result |
Process internally, don't forward |
|
heartbeat / empty
data: | Keep waiting. Every 2 min: "⏳ Still working..." |
| Stream closes | Process final response |
~30% of editing operations return no text in the SSE stream. When this happens: poll session state to verify the edit was applied, then summarize changes to the user.
Backend Response Translation
The backend assumes a GUI exists. Translate these into API actions:
| Backend says | You do |
|---|
| "click [button]" / "点击" | Execute via API |
| "open [panel]" / "打开" |
Query session state |
| "drag/drop" / "拖拽" | Send edit via SSE |
| "preview in timeline" | Show track summary |
| "Export button" / "导出" | Execute export workflow |
Draft field mapping: t=tracks, tt=track type (0=video, 1=audio, 7=text), sg=segments, d=duration(ms), m=metadata.
CODEBLOCK0
Error Handling
| Code | Meaning | Action |
|---|
| 0 | Success | Continue |
| 1001 |
Bad/expired token | Re-auth via anonymous-token (tokens expire after 7 days) |
| 1002 | Session not found | New session §3.0 |
| 2001 | No credits | Anonymous: show registration URL with
?bind=<id> (get
<id> from create-session or state response when needed). Registered: "Top up credits in your account" |
| 4001 | Unsupported file | Show supported formats |
| 4002 | File too large | Suggest compress/trim |
| 400 | Missing X-Client-Id | Generate Client-Id and retry (see §1) |
| 402 | Free plan export blocked | Subscription tier issue, NOT credits. "Register or upgrade your plan to unlock export." |
| 429 | Rate limit (1 token/client/7 days) | Retry in 30s once |
FAQ
How many images can I use at once? You can work with anywhere from a single image up to a full collection. For longer sequences, providing a rough order or narrative direction helps produce a more cohesive result.
What image formats work best? High-resolution JPGs and PNGs produce the sharpest output. Blurry or heavily compressed source images will affect the final video quality, so starting with the best available files is recommended.
Can I control the video length and pacing? Yes — simply specify your target duration (e.g., '15 seconds', '30 seconds') and describe the pacing feel you want (fast-cut, slow and cinematic, rhythmic, etc.). The skill will adapt the timing accordingly.
Can I add text, music, or voiceover to the generated video? You can request on-screen text overlays and describe the tone or energy of background music you'd like suggested or paired. For voiceover, you can provide a script and request it be incorporated into the video sequence.
What's the best use case for a single photo? Single-image animation shines for creating eye-catching social posts, YouTube thumbnails with motion, or professional headshot animations where you want movement without a full video shoot.
Common Workflows
Single Image Animation: The most straightforward use case — drop in one photo and request a specific motion style. Ken Burns (slow pan and zoom), parallax depth effects, and subtle drift motions work especially well for portraits, landscapes, and product hero shots. Great for thumbnails, intro sequences, or social media posts.
Multi-Image Slideshow to Video: Provide a batch of images in sequence and describe the story arc or mood you want. The skill will sequence them with appropriate transitions, pacing, and timing. Ideal for event recaps, portfolio showcases, real estate walkthroughs, or brand storytelling campaigns.
Social Media Content Production: Many creators use this skill on a weekly basis to repurpose photo content into Reels, Shorts, or Stories. You can specify aspect ratios (9:16 for vertical, 16:9 for landscape, 1:1 for square) and target durations to match platform requirements without manual reformatting.
Presentation and Pitch Deck Enhancement: Replace static image slides with short animated video clips to make decks more engaging. Upload your key visual assets and request subtle motion treatments that add polish without being distracting.
开始使用
欢迎!准备好将你的照片变成引人入胜的视频了吗?这个图像转视频生成器技能可以将单张图片制作成动画,或将整个照片集按顺序编排成精美的视频片段——只需分享你的图片,并告诉我你想要什么样的视频!
试试这样说:
- - 把这8张产品照片制作成一个15秒的推广视频,使用平滑的缩放过渡和快节奏,适合Instagram Reels。
- 将这张单张肖像照片以缓慢的肯·伯恩斯效果和电影般的淡入效果制作成动画,让它看起来像电影剧照。
- 把我从日本拍的12张旅行照片制作成一个30秒的精彩集锦,节奏平静流畅,使用柔和的交叉溶解过渡。
自动设置
首次交互时,先连接到处理API。显示简短状态,如正在设置……。
令牌:如果已设置NEMO_TOKEN环境变量,则直接使用并跳至下方的会话部分。
免费令牌:生成一个UUID作为客户端标识符,然后向https://mega-api-prod.nemovideo.ai/api/auth/anonymous-token发送POST请求,请求头为X-Client-Id: 。响应字段data.token即为你的NEMO_TOKEN(100积分,7天有效期)。
会话:使用Bearer认证向https://mega-api-prod.nemovideo.ai/api/tasks/me/with-session/nemoagent发送POST请求,请求体为{taskname:project}。保存响应中的session_id。
向用户确认已连接并准备就绪。不要打印令牌或原始JSON。
从静态画面到惊艳视频故事
大多数精彩的视觉故事都始于一张照片——产品照、旅行照、肖像照。但在今天的内容环境中,静态图片往往被用户快速划过,而视频却能让人停下滑动的手指。这正是本技能所要填补的空白。
图像转视频生成器技能能够将你现有的照片注入动态效果。无论你是在处理一张主打图片,还是一组精心挑选的照片集,该技能都能智能地应用电影级运镜、平滑过渡和定时编排,生成一段精心设计、专业制作的视频——而不是像你叔叔2007年做的幻灯片。
这对于展示产品的电商品牌、制作房产导览的房地产经纪人、制作精彩集锦的活动摄影师,以及任何希望将照片库重新利用为Instagram Reels、TikTok、YouTube Shorts或演示文稿的短视频内容的人来说,尤其强大。无需相机,无需剪辑软件。只需你的图片和一个提示词。
运镜请求路由逻辑
当你提交一张静态图片并附带运镜提示时,ClawHub会解析你的动画意图——镜头运动、主体运动或场景动态——并根据片段长度、分辨率和运动复杂度,将请求路由到最佳的AI视频合成端点。
| 用户说…… | 操作 | 跳过SSE? |
|---|
| export / 导出 / download / send me the video | → §3.5 导出 | ✅ |
| credits / 积分 / balance / 余额 |
→ §3.3 积分 | ✅ |
| status / 状态 / show tracks | → §3.4 状态 | ✅ |
| upload / 上传 / 用户发送文件 | → §3.2 上传 | ✅ |
| 其他所有情况(生成、编辑、添加背景音乐……) | → §3.1 SSE | ❌ |
云端渲染管线参考
图像转视频生成运行在分布式GPU云后端上,负责帧插值、时间一致性和基于扩散的运动合成,全部在服务端完成——无需本地渲染。你的源图像被安全上传,通过运动模型处理,然后作为渲染好的视频片段返回,通常为MP4格式。
技能归属——运行时从此文件的YAML前置元数据中读取:
- - X-Skill-Source: image-to-video-generator
- X-Skill-Version: 来自前置元数据 version
- X-Skill-Platform: 从安装路径检测(~/.clawhub/ → clawhub,~/.cursor/skills/ → cursor,否则为 unknown)
所有请求必须包含:Authorization: Bearer 、X-Skill-Source、X-Skill-Version、X-Skill-Platform。缺少归属头将导致导出失败并返回402错误。
API基础地址:https://mega-api-prod.nemovideo.ai
创建会话:POST /api/tasks/me/with-session/nemoagent — 请求体 {taskname:project,language:} — 返回 taskid、sessionid。
发送消息(SSE):POST /runsse — 请求体 {appname:nemoagent,userid:me,sessionid:,newmessage:{parts:[{text:}]}},并设置 Accept: text/event-stream。最大超时时间:15分钟。
上传:POST /api/upload-video/nemoagent/me/ — 文件:multipart -F files=@/path,或URL:{urls:[],sourcetype:url}
积分查询:GET /api/credits/balance/simple — 返回 available、frozen、total
会话状态:GET /api/state/nemoagent/me//latest — 关键字段:data.state.draft、data.state.videoinfos、data.state.generated_media
导出(免费,不消耗积分):POST /api/render/proxy/lambda — 请求体 {id:render_,sessionId:,draft:,output:{format:mp4,quality:high}}。每30秒轮询GET /api/render/proxy/lambda/,直到 status = completed。下载链接位于 output.url。
支持的格式:mp4、mov、avi、webm、mkv、jpg、png、gif、webp、mp3、wav、m4a、aac。
SSE事件处理
| 事件 | 操作 |
|---|
| 文本响应 | 应用GUI翻译(§4),呈现给用户 |
| 工具调用/结果 |
内部处理,不转发 |
| heartbeat / 空 data: | 继续等待。每2分钟:⏳ 仍在处理…… |
| 流关闭 | 处理最终响应 |
约30%的编辑操作在SSE流中不返回文本。发生这种情况时:轮询会话状态以验证编辑是否已应用,然后向用户总结更改。
后端响应翻译
后端假设存在GUI。将这些翻译为API操作:
| 后端说 | 你执行 |
|---|
| click [button] / 点击 | 通过API执行 |
| open [panel] / 打开 |
查询会话状态 |
| drag/drop / 拖拽 | 通过SSE发送编辑 |
| preview in timeline | 显示轨道摘要 |
| Export button / 导出 | 执行导出工作流 |
草稿字段映射:t=轨道,tt=轨道类型(0=视频,1=音频,7=文字),sg=片段,d=时长(毫秒),m=元数据。
时间线(3条轨道):1. 视频:城市延时摄影(0-10秒)2. 背景音乐:Lo-fi(0-10秒,35%)3. 标题:都市梦想(0-3秒)
错误处理
令牌错误/过期 | 通过anonymous-token重新认证(令牌7天后过期) |
| 1002 | 会话未找到 | 新建会话 §3.0 |
| 2001 | 积分不足 | 匿名用户:显示注册URL,附带?bind=
(需要时从create-session或state响应获取)。已注册用户:请在你的账户中充值积分 |
| 4001 | 不支持的文件 | 显示支持的格式 |
| 4002 | 文件过大 | 建议压缩/裁剪 |
| 400 | 缺少X-Client-Id | 生成Client-Id并重试(参见§1) |
| 402 | 免费计划导出受限 | 订阅等级问题,不是积分问题。请注册或升级你的套餐以解锁导出功能。 |
| 429 | 速率限制(1个令牌/客户端/7天) | 30秒后重试一次 |
常见问题
一次可以使用多少张图片? 你可以从单张图片到