安裝 belt CLI 技能:
npx skills add belt-sh/cli
圖像轉影片
透過 inference.sh CLI 將靜態圖像轉換為動畫影片。
快速開始
需要 inference.sh CLI(
belt)。安裝說明
belt login
# 生成靜態圖像
belt app run falai/flux-dev-lora --input '{
"prompt": "夕陽下的寧靜高山湖泊,雪頂山峰倒映在平靜的水面,黃金時刻光線,風景攝影",
"width": 1248,
"height": 832
}'
# 為其添加動畫
belt app run falai/wan-2-5-i2v --input '{
"prompt": "湖面泛起輕柔漣漪,雲朵緩緩飄動,溫暖光線變化,遠方鳥群飛翔",
"image": "path/to/lake-image.png"
}'
模型選擇
| 模型 | 應用 ID | 最適合 | 動畫風格 |
|---|---|---|---|
| Wan 2.5 i2v | falai/wan-2-5-i2v | 逼真動畫,自然運動 | 照片級寫實,細微 |
| WAN-I2V (Pruna) | pruna/wan-i2v | 經濟、快速、480p/720p | 自然、高效 |
| Seedance 2.0 | bytedance/seedance-2-0 | 最高 1080p、同步音頻、所有輸入類型 | 多用途、高品質 |
| Seedance 2.0 Fast | bytedance/seedance-2-0-fast | 快速變體,功能相同 | 多用途、快速 |
| 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 2.0 | 符合風格化內容 |
| 一般「賦予生命」 | Seedance 2.0 | 優秀的全能型,最高 1080p |
| 快速測試/迭代 | Seedance 2.0 Fast | 生成速度更快 |
動畫類型
鏡頭運動
| 運動 | 提示關鍵詞 | 效果 |
|---|---|---|
| 推鏡 / 向前推軌 | "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 影片模型在柔和、細微的動畫上比劇烈動作效果更好。要求太多動作會導致失真和偽影。
❌ "人跑步並跳過障礙物,同時鏡頭旋轉"
✅ "人緩慢向前走,微風輕拂,鏡頭跟隨在一旁"
❌ "爆炸,碎片四處飛散"
✅ "蠟燭火焰輕輕搖曳,溫暖的環境光線緩緩變化"
❌ "快速拉近到眼睛,劇烈鏡頭晃動"
✅ "緩慢地向前推軌朝向主體,細微的焦點轉移"
提示結構
[鏡頭運動] + [主體動畫] + [大氣效果] + [情緒/節奏]
按情境的範例
# 風景動畫
belt 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"
}'
# 肖像動畫
belt 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"
}'
# 產品展示動畫
belt app run bytedance/seedance-2-0 --input '{
"prompt": "slow 360 degree orbit around the product, gentle spotlight movement, subtle reflections shifting, premium product showcase, smooth motion",
"image": "product.png",
"generate_audio": true
}'
# 布料/織物動畫
belt app run falai/fabric-1-0 --input '{
"prompt": "fabric flowing and rippling in gentle wind, natural cloth physics, soft movement",
"image": "fabric-scene.png"
}'
# 建築可視化
belt 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 個片段,帶有漸進的動畫
belt app run falai/wan-2-5-i2v --input '{
"prompt": "slow pan left, gentle water motion",
"image": "scene.png"
}' --no-wait
belt app run falai/wan-2-5-i2v --input '{
"prompt": "continuing pan, clouds shifting, light changing",
"image": "scene.png"
}' --no-wait
# 拼接到一起
belt app run infsh/media-merger --input '{
"media": ["clip1.mp4", "clip2.mp4"]
}'
完整工作流程
從靜態到最終影片的流程
# 1. 生成原始圖像(最高品質)
belt 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. 為圖像添加動畫
belt 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. 如有需要,放大影片
belt app run falai/topaz-video-upscaler --input '{
"video": "animated-landscape.mp4"
}'
# 4. 添加環境音頻
belt app run infsh/hunyuanvideo-foley --input '{
"video": "animated-landscape.mp4",
"prompt": "gentle nature ambience, distant birds, soft wind, water lapping"
}'
# 5. 合併影片和音頻
belt app run infsh/video-audio-merger --input '{
"video": "upscaled-landscape.mp4",
"audio": "ambient-audio.mp3"
}'
動態照片效果
動態照片是一張靜態照片,其中只有一個元素在移動(例如,瀑布在一個其他部分凍結的場景中流動)。要實現這一點:
- 生成帶有明確運動元素的靜態圖像
- 僅提示該特定元素的動畫
- 保持 2-4 秒以實現無縫循環
belt 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
瀏覽所有應用程式:belt app store