Wan 2.2 14B Fun Camera控制

This ComfyUI workflow turns a single still image into a smooth, camera-driven video using Wan 2.2 14B Fun Camera Control. It loads the Wan 2.2 model with UNETLoader and ModelSamplingSD3, encodes your text prompt with CLIPLoader + CLIPTextEncode, and builds a camera path with WanCameraEmbedding. The WanCameraImageToVideo node fuses your prompt, start image, and camera embeddings to generate temporally consistent frames that follow pan, zoom, and rotation cues. Frames are decoded with VAELoader + VAEDecode, assembled with CreateVideo, and written out via SaveVideo.

Under the hood, the workflow runs a two-pass denoise with KSamplerAdvanced: a High noise phase to establish motion, structure, and parallax, followed by a Low noise phase to refine details and reduce flicker. This separation helps keep subjects stable while letting the virtual camera move dynamically. The template includes an optional LightX2V 4 Steps LoRA (via LoraLoaderModelOnly) to accelerate generation at the cost of motion richness and fine detail; use the Default (Without Lightning LoRA) path for the best dynamics. The provided fp8_scaled Wan 2.2 checkpoint is optimized for 640×640 and, on an RTX 4090D 24GB, typically uses ~84% VRAM and takes about 536s for the first run and ~513s for subsequent runs at that resolution.

API

從程式碼使用此工作流

每個 Comfy 工作流都是一個 JSON 圖。下方的 payload 就是此工作流,與 ComfyUI 執行時完全相同 — 你可以從此 URL 取得、放入版本控制,或在 ComfyUI 載入並逐節點執行。

video_wan2_2_14B_fun_camera.json
正在取得工作流 JSON…

使用 Comfy SDK 以 TypeScript 或 Python 執行。相同程式碼可用於 Comfy Cloud 或你自架的 ComfyUI — 只需更改 base URL。

// Install (beta)
npm i @comfyorg/sdk

// Run "Wan 2.2 14B Fun Camera控制" (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("video_wan2_2_14B_fun_camera_api.json");

const asset = client.assets.fromFile("input.png");
wf.setInput("97", "image", asset); // LoadImage

wf.setInput("107", "text", "your prompt here"); // CLIPTextEncode

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

SDK 需使用 API 格式的工作流:請在 ComfyUI 開啟此工作流,並使用 檔案 → 匯出工作流(API)。

Comfy Cloud API 存取需有 API 金鑰的方案。

常見問題

常見問題

查看所有工作流
Showing 30 of 30 templates