Wan 2.2 5Bビデオ生成

This ComfyUI workflow demonstrates fast, high-quality text-to-video and image-to-video generation using the Wan 2.2 5B model. It wires together the essential building blocks: UNETLoader loads the Wan2.2 diffusion backbone, CLIPLoader and CLIPTextEncode turn your positive and negative prompts into conditioning, and ModelSamplingSD3 configures the sampler so KSampler can produce temporally consistent latents. For pure text-to-video, the diffusion model starts from noise; for image-to-video, Wan22ImageToVideoLatent injects structure and motion cues from a source image to initialize or steer the sequence.

Once frames are synthesized in latent space, VAELoader brings in the Wan 2.2 VAE and VAEDecode turns latents into RGB frames. CreateVideo assembles those frames at your chosen FPS and length, and SaveVideo writes the final clip to disk. The workflow is organized into helpful groups: Step1 - Load models to point at wan2.2_ti2v_5B_fp16.safetensors and wan2.2_vae.safetensors, Step3 - Prompt to edit text conditioning, a Video Size & length group to set resolution and frame count, and a For i2v, use Ctrl + B to enable branch that converts a still image into a moving shot. It’s optimized for rapid prototyping—tweak prompts, steps, and sizes, then iterate quickly to explore ideas.

API

このワークフローをコードから利用

すべてのComfyワークフローはJSONグラフです。以下のペイロードは、このワークフローそのものであり、ComfyUIが実行する内容と同じです — このURLから取得し、バージョン管理に保存したり、ComfyUIで読み込んでノードごとに実行できます。

video_wan2_2_5B_ti2v.json
ワークフローJSONを取得中…

Comfy SDKを使ってTypeScriptまたはPythonから実行できます。同じコードでComfy Cloudや自身でホストしたComfyUIのどちらにも対応 — ベースURLだけが異なります。

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

// Run "Wan 2.2 5Bビデオ生成" (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_5B_ti2v_api.json");

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

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

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

SDKはAPI形式のワークフローを受け取ります:このワークフローをComfyUIで開き、「ファイル → ワークフローをエクスポート(API)」を使用してください。

Comfy Cloud APIアクセスにはAPIキー付きプランが必要です。

FAQ

よくある質問

すべてのワークフローを見る
Showing 30 of 30 templates