image-to-video

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Image 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 login
bash
curl -fsSL https://cli.inference.sh | sh && 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 }'
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" }'
undefined
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" }'
undefined

Model Selection

模型选择

ModelApp IDBest ForMotion Style
Wan 2.5 i2v
falai/wan-2-5-i2v
Realistic motion, natural movementPhotorealistic, subtle
Seedance 1.5 Pro
bytedance/seedance-1-5-pro
Stylized, creative, animation-likeArtistic, expressive
Seedance 1.0 Pro
bytedance/seedance-1-0-pro
General purpose, good qualityBalanced
Fabric 1.0
falai/fabric-1-0
Cloth, fabric, liquid, flowing materialsPhysics-based flow
Grok Imagine Video
xai/grok-imagine-video
General animation, text-guidedVersatile
模型App ID最佳适用场景运动风格
Wan 2.5 i2v
falai/wan-2-5-i2v
真实感运动、自然动态照片级写实、细微
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
通用动画、文本引导多功能

When to Use Each

各模型适用场景

ScenarioBest ModelWhy
Landscape with water/cloudsWan 2.5 i2vBest at natural, realistic motion
Portrait with subtle expressionWan 2.5 i2vMaintains face fidelity
Product with fabric/clothFabric 1.0Specialized in material physics
Flag waving, curtain flowingFabric 1.0Cloth simulation
Illustrated/artistic imageSeedanceMatches stylized content
General "bring to life"Seedance 1.5 ProGood all-rounder
Quick test/iterationSeedance 1.0 LiteFastest, 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

镜头移动

MovementPrompt KeywordEffect
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

主体运动

TypePrompt 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
undefined
bash
undefined

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" }'
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" }'
undefined
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" }'
undefined

Duration Guidelines

时长指南

DurationQualityUse For
2-3 secondsHighest qualityGIFs, looping backgrounds, cinemagraphs
4-5 secondsHigh qualitySocial media posts, product reveals
6-8 secondsGood qualityShort clips, transitions
10+ secondsQuality degradesAvoid 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
undefined

Generate 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"] }'
undefined
infsh app run infsh/media-merger --input '{ "media": ["clip1.mp4", "clip2.mp4"] }'
undefined

The Full Workflow

完整工作流

Still-to-Final-Video Pipeline

静态图到最终视频流程

bash
undefined
bash
undefined

1. 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" }'
undefined
infsh app run infsh/video-audio-merger --input '{ "video": "upscaled-landscape.mp4", "audio": "ambient-audio.mp3" }'
undefined

Cinemagraph 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:
  1. Generate the still image with the motion element clearly defined
  2. Prompt for motion only in that specific element
  3. 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"
}'
活照片是指仅一个元素运动的静态照片(例如:瀑布流动,其余场景保持静止)。实现方法:
  1. 生成静态图片时,清晰定义需要运动的元素
  2. 仅为该特定元素编写运动提示词
  3. 时长控制在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

常见错误

MistakeProblemFix
Too much motion requestedDistortion, artifacts, warpingSubtle > dramatic, always
Wrong model for content typePoor resultsUse selection guide above
Clips too long (10s+)Quality degrades significantlyKeep to 3-5 seconds, stitch if needed
No camera movement specifiedRandom/unpredictable motionAlways specify camera behavior
Conflicting motion directionsChaotic, unnaturalOne primary motion direction
Low-res source imageLow-res video outputStart with highest quality source
Complex action scenesModels can't handleKeep 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-engineering
Browse all apps:
infsh app list
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-engineering
浏览所有应用:
infsh app list