
The 'Wan 2.1 Fun Camera 14B' workflow in ComfyUI is designed to generate high-quality videos with advanced camera controls using the powerful Wan2.1 model. This workflow leverages a series of sophisticated nodes, including KSampler, CLIPTextEncode, and VAEDecode, to create visually compelling video outputs. The process begins with loading necessary models through nodes like UNETLoader and VAELoader, which prepare the system for video generation. The workflow then uses the WanCameraImageToVideo and WanCameraEmbedding nodes to apply dynamic camera movements and settings, allowing for creative control over the video narrative. Finally, the CreateVideo and SaveVideo nodes compile and store the generated video, ensuring a seamless production process.
Technically, this workflow is valuable because it integrates the Wan2.1 model with advanced diffusion techniques to produce videos that are not only high in quality but also rich in detail and motion. The use of CLIPVisionLoader and CLIPVisionEncode nodes ensures that the visual elements are aligned with the desired style and narrative, guided by the prompts provided. This makes the workflow particularly useful for creators looking to produce cinematic video content with precise control over visual aesthetics and camera dynamics.
API
通过代码使用此工作流
每个 Comfy 工作流都是一个 JSON 图。下面的内容就是此工作流的完整数据,ComfyUI 运行时也是如此——你可以从该 URL 获取、放入版本控制,或在 ComfyUI 中加载并逐节点运行。
使用 Comfy SDK 从 TypeScript 或 Python 运行。相同代码可用于 Comfy Cloud 或你自托管的 ComfyUI——只需更改基础 URL。
// Install (beta)
npm i @comfyorg/sdk
// Run "Wan 2.1 Fun Camera 14B" (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.1_fun_camera_v1.1_14B_api.json");
const asset = client.assets.fromFile("input.png");
wf.setInput("52", "image", asset); // LoadImage
wf.setInput("6", "text", "your prompt here"); // CLIPTextEncode
const job = await client.run(wf);
await job.getOutputs("59")[0].toFile("output.png"); // SaveVideoSDK 需要 API 格式的工作流:在 ComfyUI 中打开此工作流,使用 文件 → 导出工作流(API)。
常见问题













