Seedance 2.0 - 病毒式動態照片效果可將單一角色圖像轉為短循環動態照片,呈現細緻動作。流程從 LoadImage(或多圖用 BatchImagesNode)載入靜態圖像,經輕量文字處理(PrimitiveStringMultiline → RegexReplace → GeminiNode/GeminiNanoBanana2)將動作描述簡化為模型友善的動作提示。遮罩階段定義動作區域:MaskPreview 可預覽動畫區域,MaskToImage 轉換遮罩供下游使用,確保主體或選定區域動態,其餘畫面靜止。
核心為 ByteDance2ReferenceNode,僅針對遮罩區域套用 Seedance 2.0 的參考式圖像轉影片動作,保留原照的主體與構圖。畫格經 GetVideoComponents 與 CreateVideo 組合,PreviewAny 可檢查結果,SaveVideo 匯出影片(SaveImage 可存關鍵畫格/遮罩快照)。流程內含兩個自訂工具節點(f4cfd806-6db2-425e-9f50-3eb8fe546a77 與 e42b05e2-13fc-4ad5-822d-b89a8a297d35),已預設串接,無需手動調整,一鍵即可執行。最終產出乾淨、無縫循環,適合社群、主視覺、角色揭露等用途—精準控制動作,無需重建整個場景。
API
Use this workflow from code
Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.
Run it from TypeScript or Python with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
// Install (beta)
npm i @comfyorg/sdk
// Run this workflow (TypeScript)
import { Comfy } from "@comfyorg/sdk";
const client = new Comfy({ apiKey: "comfyui-..." });
const wf = await client.workflows.fromFile("workflow_api.json");
const job = await client.run(wf);
await job.getOutputs("<output-node-id>")[0].toFile("output.png");The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).
Comfy Cloud API access requires a plan with an API key.
常見問題














