這個 ComfyUI 工作流程專為影片中的天空無縫替換而設計,運用 Wan 的先進 AI 模型。流程中包含 WanVideoVAELoader 與 WanVideoModelLoader 等節點,有效載入並處理影片資料。技術核心在於 WanVideoSampler 與 WanVideoDecode 節點,能將新天空合成並融合到原始影片。此流程最大特色是能維持高製作品質,並確保新天空與原始畫面自然融合。流程同時結合 CLIPVisionLoader 與 WanVideoClipVisionEncode 節點,提升對畫面語意的理解,讓天空替換更符合場景內容。非常適合影像創作者、導演等需要動態天空變化的專案使用,且不會犧牲畫質。
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.
常見問題














