產品圖片轉影片:鞋
用手機拍照,上傳產生專業級產品影片。
下載工作流程在 Cloud 中試用 API 文件
關於
這個 ComfyUI 工作流程用來把手機拍的鞋子圖片轉成高品質產品影片,適合行銷或電商使用。流程從「LoadImage」節點開始,讓使用者把手機拍攝的圖片上傳到工作流程中。接著由「MinimaxHailuoVideoNode」處理,利用 MiniMax 模型把靜態圖片產生為影片序列。這個節點特別擅長在加入動態元素的同時,維持產品的視覺一致性,讓影片更有可看性。
接下來,工作流程使用「ByteDanceSeedreamNode」,透過 Seedream 模型強化影片的觀感,進一步細化材質與顏色,讓最終輸出更接近棚拍等級。最後由「SaveVideo」節點把處理後的影格整合成一支完整影片檔案,方便直接發布。這個工作流程適合需要用基本圖片快速製作宣傳內容、但不想投入大量影片製作資源的商家。
您提供的內容
- 正在讀取工作流程
在 ComfyUI 中執行。 此工作流程無法在此頁面上執行。請在已載入所有內容的 Comfy Cloud 中開啟,或下載到您自己的 ComfyUI。
在 Cloud 中試用範例
工作流程內部
節點圖的唯讀預覽。請在 Comfy Cloud 中開啟,或下載後編輯節點。
Loading the graph
Open full-size workflow preview- 作者
- Rob
需要自訂節點
- 正在讀取工作流程
從程式碼使用此工作流程
可行時會根據工作流程圖和輸入內容產生;否則會顯示儲存的範例。執行可能產生費用的程式碼前,請檢查認證資訊和端點。
1 取得 API 金鑰 ↗
What you need
- Runs on
- Comfy Cloud
- 金鑰
- COMFY_API_KEY
需要付費 Cloud 方案與點數。
下載 API JSONAPI 文件 ↗
# Python 3.10+: pip install comfy-sdk==0.4.0
import os
from comfy_sdk import Comfy
api_key = os.environ.get("COMFY_API_KEY", "").strip()
if not api_key: raise RuntimeError("Set COMFY_API_KEY")
os.environ.setdefault("COMFY_BASE_URL", "https://cloud.comfy.org")
client = Comfy(api_key=api_key)
workflow = client.workflows.from_json({
"1": {
"class_type": "LoadImage",
"inputs": {
"image": "product_shoe.jpeg"
},
"_meta": {
"title": "Load Product Image"
}
},
"5": {
"class_type": "MinimaxHailuoVideoNode",
"inputs": {
"duration": 6,
"first_frame_image": [
"10",
0
],
"prompt_optimizer": True,
"prompt_text": "Product video — 360° rotating hero showcase of a white leather sneaker, cinematic soft spotlight, minimal studio background, seamless loop.",
"resolution": "1080P",
"seed": 111
},
"_meta": {
"title": "360 Rotation Vid - MiniMax Hailuo Video"
}
},
"9": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI",
"images": [
"10",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"10": {
"class_type": "ByteDanceSeedreamNode",
"inputs": {
"fail_on_partial": True,
"height": 2048,
"image": [
"1",
0
],
"max_images": 1,
"model": "seedream-4-5-251128",
"prompt": "Professional studio product photography of a pristine white Adidas Samba sneaker from image 1, positioned at a dynamic three-quarter angle. The lighting is dramatic and cool-toned, featuring a hard spotlight that creates a glowing halo effect on the ground while casting soft shadows. The background is a seamless, clean gradient transitioning from a light silver-gray top to a deep anthracite black floor. Minimal composition with generous negative space, shot with shallow depth of field (f/2.8) to emphasize product details while softly blurring the background. ",
"seed": 555,
"sequential_image_generation": "disabled",
"size_preset": "1664x2496 (2:3)",
"watermark": False,
"width": 2048
},
"_meta": {
"title": "ByteDance Seedream 4.5 & 5.0"
}
},
"16": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/ComfyUI-1",
"format": "auto",
"format.codec": "auto",
"video": [
"5",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"17": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/ComfyUI-2",
"format": "auto",
"format.codec": "auto",
"video": [
"18",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"18": {
"class_type": "MinimaxHailuoVideoNode",
"inputs": {
"duration": 6,
"first_frame_image": [
"10",
0
],
"prompt_optimizer": True,
"prompt_text": "Product video — camera slowly zooms toward the sneaker, revealing texture details, light reflecting on the leather surface, cinematic shallow depth of field\n",
"resolution": "1080P",
"seed": 222
},
"_meta": {
"title": "Detailed Texture Vid - MiniMax Hailuo Video"
}
},
"19": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/ComfyUI-2",
"format": "auto",
"format.codec": "auto",
"video": [
"20",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"20": {
"class_type": "MinimaxHailuoVideoNode",
"inputs": {
"duration": 6,
"first_frame_image": [
"10",
0
],
"prompt_optimizer": True,
"prompt_text": "Product video — camera pans across the sneaker from heel to toe, dramatic cinematic light sweeps across, dust motes floating in the air",
"resolution": "1080P",
"seed": 333
},
"_meta": {
"title": "Cinematic Pan Vid - MiniMax Hailuo Video"
}
},
"30": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/ComfyUI",
"format": "auto",
"format.codec": "auto",
"video": [
"27:27",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"27:22": {
"class_type": "GetVideoComponents",
"inputs": {
"video": [
"5",
0
]
},
"_meta": {
"title": "Get Video Components"
}
},
"27:23": {
"class_type": "GetVideoComponents",
"inputs": {
"video": [
"18",
0
]
},
"_meta": {
"title": "Get Video Components"
}
},
"27:24": {
"class_type": "ImageBatch",
"inputs": {
"image1": [
"27:22",
0
],
"image2": [
"27:23",
0
]
},
"_meta": {
"title": "Batch Images (DEPRECATED)"
}
},
"27:25": {
"class_type": "ImageBatch",
"inputs": {
"image1": [
"27:24",
0
],
"image2": [
"27:26",
0
]
},
"_meta": {
"title": "Batch Images (DEPRECATED)"
}
},
"27:26": {
"class_type": "GetVideoComponents",
"inputs": {
"video": [
"20",
0
]
},
"_meta": {
"title": "Get Video Components"
}
},
"27:27": {
"class_type": "CreateVideo",
"inputs": {
"bit_depth": "auto",
"codec": "none",
"color_space": "sRGB",
"fps": [
"27:22",
2
],
"images": [
"27:25",
0
]
},
"_meta": {
"title": "Create Video"
}
}
})
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)問答
高解析度、對焦清楚且光線充足的圖片,通常能在影片輸出中得到最佳結果。
可以。雖然針對鞋子做了最佳化,但也能調整用於其他特性相近的產品。
處理時間會依圖片複雜度以及系統效能而不同,但一般大約需要幾分鐘。
不需要。這個工作流程以好上手與直覺操作為設計目標。