安裝 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": "serene mountain lake at sunset, snow-capped peaks reflected in still water, golden hour light, landscape photography",
"width": 1248,
"height": 832
}'
# 為圖片添加動畫
belt 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"
}'
模型選擇
| 模型 | App 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 影片模型對於溫和、細膩的動態能產生更好的效果,過度強烈的動作會導致畫面扭曲或出現偽影。
❌ "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"
提示詞結構
[鏡頭運動] + [主體動態] + [大氣效果] + [氛圍/節奏]
各情境範例
# 風景動畫
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 list