image-to-video by inferen-sh/skills
npx skills add https://github.com/inferen-sh/skills --skill image-to-video通过 inference.sh CLI 将静态图像转换为动态视频。
需要 inference.sh CLI (
infsh)。安装说明
infsh login
# 生成静态图像
infsh app run falai/flux-dev-lora --input '{
"prompt": "serene mountain lake at sunset, snow-capped peaks reflected in still water, golden hour light, landscape photography",
"width": 1248,
"height": 832
}'
# 将其动画化
infsh app run falai/wan-2-5-i2v --input '{
"prompt": "gentle ripples on the lake surface, clouds slowly drifting, warm light shifting, birds flying in the distance",
"image": "path/to/lake-image.png"
}'
| 模型 | 应用 ID | 最佳适用场景 | 运动风格 |
|---|---|---|---|
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
falai/wan-2-5-i2v |
| 逼真运动,自然移动 |
| 照片级真实感,细腻 |
| WAN-I2V (Pruna) | pruna/wan-i2v | 经济实惠,快速,480p/720p | 自然,高效 |
| Seedance 1.5 Pro | bytedance/seedance-1-5-pro | 风格化,创意,动画风格 | 艺术感强,表现力丰富 |
| Seedance 1.0 Pro | bytedance/seedance-1-0-pro | 通用,质量良好 | 均衡 |
| Fabric 1.0 | falai/fabric-1-0 | 布料、织物、液体、流动材质 | 基于物理的流动 |
| Grok Imagine Video | xai/grok-imagine-video | 通用动画,文本引导 | 多功能 |
| 场景 | 最佳模型 | 原因 |
|---|---|---|
| 带水/云的风景 | Wan 2.5 i2v | 最擅长自然、逼真的运动 |
| 带细腻表情的人像 | Wan 2.5 i2v | 保持面部保真度 |
| 带布料/织物的产品 | Fabric 1.0 | 专攻材质物理模拟 |
| 旗帜飘扬,窗帘流动 | Fabric 1.0 | 布料模拟 |
| 插画/艺术图像 | Seedance | 匹配风格化内容 |
| 通用"赋予生命"效果 | Seedance 1.5 Pro | 良好的全能型选择 |
| 快速测试/迭代 | Seedance 1.0 Lite | 最快,720p |
| 运动类型 | 提示词关键词 | 效果 |
|---|---|---|
| 推入 / 向前移动 | "slow dolly forward", "camera pushes in" | 增加亲密感/聚焦感 |
| 拉出 / 向后移动 | "camera pulls back", "slow zoom out" | 揭示,展现背景 |
| 左右平移 | "camera pans slowly to the right" | 扫描,跟随 |
| 上下倾斜 | "camera tilts upward" | 揭示高度 |
| 环绕 | "camera orbits around the subject" | 3D 探索 |
| 升降机上升 | "camera rises upward" | 宏大揭示 |
| 静态 | (无摄像机运动提示) | 仅主体运动 |
| 类型 | 提示词示例 |
|---|---|
| 自然元素 | "water rippling", "clouds drifting", "leaves rustling in breeze" |
| 头发/衣物 | "hair blowing gently in wind", "dress fabric flowing" |
| 氛围 | "fog slowly rolling", "dust particles floating in light beams" |
| 人物 | "person slowly turns to camera", "subtle breathing motion" |
| 机械 | "gears turning", "clock hands moving" |
| 液体 | "coffee steam rising", "paint dripping", "water pouring" |
AI 视频模型使用轻柔、细腻的运动比夸张的动作能产生更好的效果。要求过多的运动会导致扭曲和伪影。
❌ "person running and jumping over obstacles while the camera spins"
✅ "person slowly walking forward, gentle breeze, camera follows alongside"
❌ "explosion with debris flying everywhere"
✅ "candle flame flickering gently, warm ambient light shifting"
❌ "fast zoom into the eyes with dramatic camera shake"
✅ "slow dolly forward toward the subject, subtle focus shift"
[摄像机运动] + [主体运动] + [氛围效果] + [情绪/节奏]
# 风景动画
infsh app run falai/wan-2-5-i2v --input '{
"prompt": "gentle camera pan right, water reflecting moving clouds, trees swaying slightly in breeze, warm golden light, peaceful and slow",
"image": "landscape.png"
}'
# 人像动画
infsh app run falai/wan-2-5-i2v --input '{
"prompt": "subtle breathing motion, slight head turn, natural eye blink, hair moving gently, soft ambient lighting shifts",
"image": "portrait.png"
}'
# 产品镜头动画
infsh app run bytedance/seedance-1-5-pro --input '{
"prompt": "slow 360 degree orbit around the product, gentle spotlight movement, subtle reflections shifting, premium product showcase, smooth motion",
"image": "product.png"
}'
# 布料/织物动画
infsh app run falai/fabric-1-0 --input '{
"prompt": "fabric flowing and rippling in gentle wind, natural cloth physics, soft movement",
"image": "fabric-scene.png"
}'
# 建筑可视化
infsh app run falai/wan-2-5-i2v --input '{
"prompt": "slow dolly forward through the entrance, slight camera tilt upward, ambient light filtering through windows, dust particles in light beams",
"image": "building-interior.png"
}'
| 时长 | 质量 | 适用场景 |
|---|---|---|
| 2-3 秒 | 最高质量 | GIF,循环背景,动态照片 |
| 4-5 秒 | 高质量 | 社交媒体帖子,产品展示 |
| 6-8 秒 | 良好质量 | 短视频片段,转场 |
| 10+ 秒 | 质量下降 | 除非拼接较短片段,否则避免 |
对于较长的视频,生成多个短片段并进行拼接:
# 从同一图像生成 3 个具有渐进运动的片段
infsh app run falai/wan-2-5-i2v --input '{
"prompt": "slow pan left, gentle water motion",
"image": "scene.png"
}' --no-wait
infsh app run falai/wan-2-5-i2v --input '{
"prompt": "continuing pan, clouds shifting, light changing",
"image": "scene.png"
}' --no-wait
# 拼接在一起
infsh app run infsh/media-merger --input '{
"media": ["clip1.mp4", "clip2.mp4"]
}'
# 1. 生成源图像(最佳质量)
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "cinematic landscape, misty mountains at dawn, lake in foreground, dramatic clouds, golden hour, 4K quality, professional photography",
"size": "2K"
}'
# 2. 将图像动画化
infsh app run falai/wan-2-5-i2v --input '{
"prompt": "gentle mist rolling through the valley, lake surface rippling, clouds slowly moving, birds in distance, warm light shifting",
"image": "landscape.png"
}'
# 3. 如有需要,对视频进行超分辨率处理
infsh app run falai/topaz-video-upscaler --input '{
"video": "animated-landscape.mp4"
}'
# 4. 添加环境音效
infsh app run infsh/hunyuanvideo-foley --input '{
"video": "animated-landscape.mp4",
"prompt": "gentle nature ambience, distant birds, soft wind, water lapping"
}'
# 5. 将视频与音频合并
infsh app run infsh/video-audio-merger --input '{
"video": "upscaled-landscape.mp4",
"audio": "ambient-audio.mp3"
}'
动态照片是指只有单一元素移动的静态照片(例如,瀑布在冻结的场景中移动)。要实现此效果:
infsh app run falai/wan-2-5-i2v --input '{
"prompt": "only the waterfall is moving, everything else remains perfectly still, water cascading smoothly, rest of scene frozen",
"image": "waterfall-scene.png"
}'
| 错误 | 问题 | 解决方法 |
|---|---|---|
| 要求过多运动 | 扭曲,伪影,变形 | 细腻 > 夸张,始终如此 |
| 内容类型与模型不匹配 | 效果不佳 | 使用上面的选择指南 |
| 片段过长 (10秒+) | 质量显著下降 | 保持 3-5 秒,如有需要则拼接 |
| 未指定摄像机运动 | 随机/不可预测的运动 | 始终指定摄像机行为 |
| 运动方向冲突 | 混乱,不自然 | 一个主要运动方向 |
| 低分辨率源图像 | 低分辨率视频输出 | 从最高质量的源图像开始 |
| 复杂的动作场景 | 模型无法处理 | 保持运动简单自然 |
npx skills add inference-sh/skills@ai-video-generation
npx skills add inference-sh/skills@ai-image-generation
npx skills add inference-sh/skills@p-video
npx skills add inference-sh/skills@video-prompting-guide
npx skills add inference-sh/skills@prompt-engineering
浏览所有应用:infsh app list
每周安装量
7.1K
仓库
GitHub 星标数
184
首次出现
13 天前
安全审计
安装于
claude-code5.7K
gemini-cli5.1K
codex5.1K
amp5.1K
opencode5.1K
kimi-cli5.1K
Convert still images to animated videos via inference.sh CLI.
Requires inference.sh CLI (
infsh). Install instructions
infsh login
# Generate a still image
infsh app run falai/flux-dev-lora --input '{
"prompt": "serene mountain lake at sunset, snow-capped peaks reflected in still water, golden hour light, landscape photography",
"width": 1248,
"height": 832
}'
# Animate it
infsh app run falai/wan-2-5-i2v --input '{
"prompt": "gentle ripples on the lake surface, clouds slowly drifting, warm light shifting, birds flying in the distance",
"image": "path/to/lake-image.png"
}'
| Model | App ID | Best For | Motion Style |
|---|---|---|---|
| Wan 2.5 i2v | falai/wan-2-5-i2v | Realistic motion, natural movement | Photorealistic, subtle |
| WAN-I2V (Pruna) | pruna/wan-i2v | Economical, fast, 480p/720p | Natural, efficient |
| Seedance 1.5 Pro | bytedance/seedance-1-5-pro | Stylized, creative, animation-like | Artistic, expressive |
| Seedance 1.0 Pro | bytedance/seedance-1-0-pro | General purpose, good quality | Balanced |
| Fabric 1.0 | falai/fabric-1-0 | Cloth, fabric, liquid, flowing materials | Physics-based flow |
| Grok Imagine Video | xai/grok-imagine-video | General animation, text-guided | Versatile |
| Scenario | Best Model | Why |
|---|---|---|
| Landscape with water/clouds | Wan 2.5 i2v | Best at natural, realistic motion |
| Portrait with subtle expression | Wan 2.5 i2v | Maintains face fidelity |
| Product with fabric/cloth | Fabric 1.0 | Specialized in material physics |
| Flag waving, curtain flowing | Fabric 1.0 | Cloth simulation |
| Illustrated/artistic image | Seedance | Matches stylized content |
| General "bring to life" | Seedance 1.5 Pro | Good all-rounder |
| Quick test/iteration | Seedance 1.0 Lite | Fastest, 720p |
| Movement | Prompt Keyword | Effect |
|---|---|---|
| Push in / Dolly forward | "slow dolly forward", "camera pushes in" | Increasing intimacy/focus |
| Pull out / Dolly back | "camera pulls back", "slow zoom out" | Reveal, context |
| Pan left/right | "camera pans slowly to the right" | Scanning, following |
| Tilt up/down | "camera tilts upward" | Revealing height |
| Orbit | "camera orbits around the subject" | 3D exploration |
| Crane up | "camera rises upward" | Grand reveal |
| Static | (no camera movement prompt) | Subject motion only |
| Type | Prompt Examples |
|---|---|
| Natural elements | "water rippling", "clouds drifting", "leaves rustling in breeze" |
| Hair/clothing | "hair blowing gently in wind", "dress fabric flowing" |
| Atmospheric | "fog slowly rolling", "dust particles floating in light beams" |
| Character | "person slowly turns to camera", "subtle breathing motion" |
| Mechanical | "gears turning", "clock hands moving" |
| Liquid | "coffee steam rising", "paint dripping", "water pouring" |
AI video models produce better results with gentle, subtle motion than dramatic action. Requesting too much movement causes distortion and artifacts.
❌ "person running and jumping over obstacles while the camera spins"
✅ "person slowly walking forward, gentle breeze, camera follows alongside"
❌ "explosion with debris flying everywhere"
✅ "candle flame flickering gently, warm ambient light shifting"
❌ "fast zoom into the eyes with dramatic camera shake"
✅ "slow dolly forward toward the subject, subtle focus shift"
[Camera movement] + [Subject motion] + [Atmospheric effects] + [Mood/pace]
# Landscape animation
infsh app run falai/wan-2-5-i2v --input '{
"prompt": "gentle camera pan right, water reflecting moving clouds, trees swaying slightly in breeze, warm golden light, peaceful and slow",
"image": "landscape.png"
}'
# Portrait animation
infsh app run falai/wan-2-5-i2v --input '{
"prompt": "subtle breathing motion, slight head turn, natural eye blink, hair moving gently, soft ambient lighting shifts",
"image": "portrait.png"
}'
# Product shot animation
infsh app run bytedance/seedance-1-5-pro --input '{
"prompt": "slow 360 degree orbit around the product, gentle spotlight movement, subtle reflections shifting, premium product showcase, smooth motion",
"image": "product.png"
}'
# Fabric/cloth animation
infsh app run falai/fabric-1-0 --input '{
"prompt": "fabric flowing and rippling in gentle wind, natural cloth physics, soft movement",
"image": "fabric-scene.png"
}'
# Architectural visualization
infsh app run falai/wan-2-5-i2v --input '{
"prompt": "slow dolly forward through the entrance, slight camera tilt upward, ambient light filtering through windows, dust particles in light beams",
"image": "building-interior.png"
}'
| Duration | Quality | Use For |
|---|---|---|
| 2-3 seconds | Highest quality | GIFs, looping backgrounds, cinemagraphs |
| 4-5 seconds | High quality | Social media posts, product reveals |
| 6-8 seconds | Good quality | Short clips, transitions |
| 10+ seconds | Quality degrades | Avoid unless stitching shorter clips |
For longer videos, generate multiple short clips and stitch:
# Generate 3 clips from the same image with progressive motion
infsh app run falai/wan-2-5-i2v --input '{
"prompt": "slow pan left, gentle water motion",
"image": "scene.png"
}' --no-wait
infsh app run falai/wan-2-5-i2v --input '{
"prompt": "continuing pan, clouds shifting, light changing",
"image": "scene.png"
}' --no-wait
# Stitch together
infsh app run infsh/media-merger --input '{
"media": ["clip1.mp4", "clip2.mp4"]
}'
# 1. Generate source image (best quality)
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "cinematic landscape, misty mountains at dawn, lake in foreground, dramatic clouds, golden hour, 4K quality, professional photography",
"size": "2K"
}'
# 2. Animate the image
infsh app run falai/wan-2-5-i2v --input '{
"prompt": "gentle mist rolling through the valley, lake surface rippling, clouds slowly moving, birds in distance, warm light shifting",
"image": "landscape.png"
}'
# 3. Upscale video if needed
infsh app run falai/topaz-video-upscaler --input '{
"video": "animated-landscape.mp4"
}'
# 4. Add ambient audio
infsh app run infsh/hunyuanvideo-foley --input '{
"video": "animated-landscape.mp4",
"prompt": "gentle nature ambience, distant birds, soft wind, water lapping"
}'
# 5. Merge video with audio
infsh app run infsh/video-audio-merger --input '{
"video": "upscaled-landscape.mp4",
"audio": "ambient-audio.mp3"
}'
A cinemagraph is a still photo where only one element moves (e.g., waterfall moving in an otherwise frozen scene). To achieve this:
infsh app run falai/wan-2-5-i2v --input '{
"prompt": "only the waterfall is moving, everything else remains perfectly still, water cascading smoothly, rest of scene frozen",
"image": "waterfall-scene.png"
}'
| Mistake | Problem | Fix |
|---|---|---|
| Too much motion requested | Distortion, artifacts, warping | Subtle > dramatic, always |
| Wrong model for content type | Poor results | Use selection guide above |
| Clips too long (10s+) | Quality degrades significantly | Keep to 3-5 seconds, stitch if needed |
| No camera movement specified | Random/unpredictable motion | Always specify camera behavior |
| Conflicting motion directions | Chaotic, unnatural | One primary motion direction |
| Low-res source image | Low-res video output | Start with highest quality source |
| Complex action scenes | Models can't handle | Keep motion simple and natural |
npx skills add inference-sh/skills@ai-video-generation
npx skills add inference-sh/skills@ai-image-generation
npx skills add inference-sh/skills@p-video
npx skills add inference-sh/skills@video-prompting-guide
npx skills add inference-sh/skills@prompt-engineering
Browse all apps: infsh app list
Weekly Installs
7.1K
Repository
GitHub Stars
184
First Seen
13 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code5.7K
gemini-cli5.1K
codex5.1K
amp5.1K
opencode5.1K
kimi-cli5.1K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
103,800 周安装