WAN2.6: 參考生影片

「WAN2.6:參考影片生成」工作流程專為創建高品質、保留角色身份的影片而設計,具備自然動態與電影感。此流程運用 Wan2.6 與 Wan 模型,這些模型專為需要在影片序列中維持角色身份的生成任務訓練。透過 'WanReferenceVideoApi' 節點,流程可根據角色參考,無縫生成反映角色獨特特徵與動作的影片內容。

技術上,流程首先以 'LoadVideo' 節點載入初始影片,作為角色外觀與動作的參考。接著 'WanReferenceVideoApi' 節點處理此參考,確保生成影片能維持角色身份。最後,'SaveVideo' 節點輸出完成的影片,保留模型預期的電影感與自然動態。此流程特別適合需要以特定角色參考製作一致且高品質影片內容的創作者。

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.

api_wan_r2v.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 "WAN2.6: 參考生影片" (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });

// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("api_wan_r2v_api.json");

const job = await client.run(wf);
await job.getOutputs("37")[0].toFile("output.png"); // SaveVideo

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