本 ComfyUI 教學介紹以 GeminiVideoOmni 節點為核心的服裝替換流程。你用 LoadVideo(Your Footage)載入人物影片,LoadImage(Outfit Reference)載入單張服裝照片。GeminiVideoOmni 節點接收這些輸入及一段簡單文字指令(由 PrimitiveNode 提供),將參考服裝映射到影片主體上,同時保留人物、動作、鏡頭構圖與原始背景。結果用 SaveVideo 輸出。

技術上,流程讓具備影片感知能力的生成模型同時參考原始影片與服裝圖。影片主導結構與動作,確保臉部、手部與環境穩定,服裝圖則導引每一幀的服裝外觀以維持時序一致。流程中的 MarkdownNote 節點僅供說明,不影響處理。只需少數節點、無需手動遮罩或去背,適合快速虛擬試穿、時尚概念設計與造型預覽。

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.

4600a60d661b.json
Fetching workflow JSON…

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.

常見問題

常見問題

查看所有工作流
Character
Cinematic
Image to Video
Lip Sync
Multiple Angles
Portrait
Style Reference
Style Transfer
Text to Video
Video Generation
Video
Showing 30 of 30 templates