Wan2.1 ATI - After
Wan2.1 ATI - Before

This ComfyUI workflow generates short, prompt-driven videos from a single image while precisely following a user-defined camera or subject path. It uses the Wan 2.1 I2V ATI model to blend text guidance, a reference image, and a trajectory JSON so the camera move or object motion is not left to chance. Core nodes include UNETLoader (Wan2_1-I2V-ATI-14B_fp8_e4m3fn.safetensors) and VAELoader (wan_2.1_vae.safetensors) for the diffusion backbone, CLIPLoader and CLIPTextEncode for prompt conditioning, CLIPVisionLoader and CLIPVisionEncode for image conditioning, and WanTrackToVideo to apply trajectory control. KSampler (driven by ModelSamplingSD3) performs the denoising, VAEDecode turns latents into frames, and CreateVideo + SaveVideo packages the result.

Technically, the workflow encodes your positive/negative prompts via CLIPTextEncode and extracts vision features from the input image with CLIPVisionEncode. The PrimitiveStringMultiline node holds the trajectory JSON exported from the Trajectory-Annotation-Tool; WanTrackToVideo consumes that JSON and injects per-frame motion control into the sampling process. ModelSamplingSD3 configures the scheduler so KSampler denoises in a way compatible with Wan 2.1’s training setup. After sampling, VAEDecode reconstructs frames, and CreateVideo assembles them at your chosen resolution and FPS. On a 4090D 24GB at 720x480, expect roughly 500 seconds on a cold first run and around 463 seconds on subsequent runs once weights are cached (actual times vary with settings).

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.

video_wan_ati.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.1 ATI" (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_wan_ati_api.json");

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

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

const job = await client.run(wf);
await job.getOutputs("258")[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