image-to-video
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseImage to Video
图片转视频
Convert still images to animated videos via inference.sh CLI.
通过inference.sh CLI将静态图片转换为动画视频。
Quick Start
快速开始
bash
curl -fsSL https://cli.inference.sh | sh && infsh loginbash
curl -fsSL https://cli.inference.sh | sh && infsh loginGenerate 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
}'
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"
}'
undefinedinfsh 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"
}'
undefinedModel Selection
模型选择
| Model | App ID | Best For | Motion Style |
|---|---|---|---|
| Wan 2.5 i2v | | Realistic motion, natural movement | Photorealistic, subtle |
| Seedance 1.5 Pro | | Stylized, creative, animation-like | Artistic, expressive |
| Seedance 1.0 Pro | | General purpose, good quality | Balanced |
| Fabric 1.0 | | Cloth, fabric, liquid, flowing materials | Physics-based flow |
| Grok Imagine Video | | General animation, text-guided | Versatile |
| 模型 | App ID | 最佳适用场景 | 运动风格 |
|---|---|---|---|
| Wan 2.5 i2v | | 真实感运动、自然动态 | 照片级写实、细微 |
| Seedance 1.5 Pro | | 风格化、创意、动画感内容 | 艺术化、表现力强 |
| Seedance 1.0 Pro | | 通用场景、画质优秀 | 均衡 |
| Fabric 1.0 | | 布料、织物、液体、流动材质 | 基于物理的流动效果 |
| Grok Imagine Video | | 通用动画、文本引导 | 多功能 |
When to Use Each
各模型适用场景
| 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 |
| 场景 | 最佳模型 | 原因 |
|---|---|---|
| 带水/云的风景 | Wan 2.5 i2v | 最擅长自然、真实的动态效果 |
| 带细微表情的人像 | Wan 2.5 i2v | 能保持面部细节保真度 |
| 含布料的产品 | Fabric 1.0 | 专门针对材质物理效果优化 |
| 旗帜飘动、窗帘摆动 | Fabric 1.0 | 擅长布料模拟 |
| 插画/艺术风格图片 | Seedance | 匹配风格化内容 |
| 通用“赋予生命力”场景 | Seedance 1.5 Pro | 全能型模型 |
| 快速测试/迭代 | Seedance 1.0 Lite | 速度最快,支持720p |
Motion Types
运动类型
Camera Movement
镜头移动
| 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 |
| 移动方式 | 提示词关键词 | 效果 |
|---|---|---|
| 推入/向前推镜 | "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" | 360°探索主体 |
| 升降 | "camera rises upward" | 宏大场景揭示 |
| 静态 | (无镜头移动提示词) | 仅主体运动 |
Subject Motion
主体运动
| 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" |
| 类型 | 提示词示例 |
|---|---|
| 自然元素 | "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" |
Prompting Best Practices
提示词编写最佳实践
The Golden Rule: Subtle > Dramatic
黄金法则:细微 > 夸张
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"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"Prompt Structure
提示词结构
[Camera movement] + [Subject motion] + [Atmospheric effects] + [Mood/pace][镜头移动] + [主体运动] + [氛围效果] + [情绪/节奏]Examples by Scenario
分场景示例
bash
undefinedbash
undefinedLandscape 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"
}'
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"
}'
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"
}'
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"
}'
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"
}'
undefinedinfsh 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"
}'
undefinedDuration Guidelines
时长指南
| 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 |
| 时长 | 画质 | 适用场景 |
|---|---|---|
| 2-3秒 | 最高画质 | GIF、循环背景、活照片(Cinemagraph) |
| 4-5秒 | 高画质 | 社交媒体帖子、产品展示 |
| 6-8秒 | 良好画质 | 短视频、转场 |
| 10秒以上 | 画质显著下降 | 除非拼接短片段,否则避免 |
Extending Duration
延长时长方法
For longer videos, generate multiple short clips and stitch:
bash
undefined如需制作长视频,可生成多个短片段后拼接:
bash
undefinedGenerate 3 clips from the same image with progressive motion
从同一张图片生成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 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"]
}'
undefinedinfsh app run infsh/media-merger --input '{
"media": ["clip1.mp4", "clip2.mp4"]
}'
undefinedThe Full Workflow
完整工作流
Still-to-Final-Video Pipeline
静态图到最终视频流程
bash
undefinedbash
undefined1. Generate source image (best quality)
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"
}'
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
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"
}'
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
3. 如有需要,放大视频
infsh app run falai/topaz-video-upscaler --input '{
"video": "animated-landscape.mp4"
}'
infsh app run falai/topaz-video-upscaler --input '{
"video": "animated-landscape.mp4"
}'
4. Add ambient audio
4. 添加环境音
infsh app run infsh/hunyuanvideo-foley --input '{
"video": "animated-landscape.mp4",
"prompt": "gentle nature ambience, distant birds, soft wind, water lapping"
}'
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
5. 合并视频与音频
infsh app run infsh/video-audio-merger --input '{
"video": "upscaled-landscape.mp4",
"audio": "ambient-audio.mp3"
}'
undefinedinfsh app run infsh/video-audio-merger --input '{
"video": "upscaled-landscape.mp4",
"audio": "ambient-audio.mp3"
}'
undefinedCinemagraph Effect
活照片(Cinemagraph)效果
A cinemagraph is a still photo where only one element moves (e.g., waterfall moving in an otherwise frozen scene). To achieve this:
- Generate the still image with the motion element clearly defined
- Prompt for motion only in that specific element
- Keep to 2-4 seconds for seamless looping
bash
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"
}'活照片是指仅一个元素运动的静态照片(例如:瀑布流动,其余场景保持静止)。实现方法:
- 生成静态图片时,清晰定义需要运动的元素
- 仅为该特定元素编写运动提示词
- 时长控制在2-4秒,以实现无缝循环
bash
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"
}'Common Mistakes
常见错误
| 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 |
| 错误 | 问题 | 解决方法 |
|---|---|---|
| 请求过多运动 | 画面扭曲、伪影、变形 | 始终遵循“细微 > 夸张”原则 |
| 模型与内容类型不匹配 | 效果差 | 参考上方模型选择指南 |
| 片段过长(10秒+) | 画质显著下降 | 控制在3-5秒,如需长视频则拼接短片段 |
| 未指定镜头移动 | 随机/不可预测的运动 | 始终明确镜头行为 |
| 运动方向冲突 | 混乱、不自然 | 仅设置一个主要运动方向 |
| 低分辨率源图片 | 视频输出分辨率低 | 从最高画质的源图片开始 |
| 复杂动作场景 | 模型无法处理 | 保持运动简单自然 |
Related Skills
相关技能
bash
npx skills add inference-sh/skills@ai-video-generation
npx skills add inference-sh/skills@ai-image-generation
npx skills add inference-sh/skills@video-prompting-guide
npx skills add inference-sh/skills@prompt-engineeringBrowse all apps:
infsh app listbash
npx skills add inference-sh/skills@ai-video-generation
npx skills add inference-sh/skills@ai-image-generation
npx skills add inference-sh/skills@video-prompting-guide
npx skills add inference-sh/skills@prompt-engineering浏览所有应用:
infsh app list