Wan 2.1 FLF2V 720p F16

This ComfyUI tutorial shows you how to generate smooth, guided video clips by explicitly controlling the first and last frames using Wan 2.1 FLF2V. The core of the workflow is the WanFirstLastFrameToVideo node, which fuses three condition sources: your prompt embeddings from CLIPTextEncode, visual guidance from CLIPVisionEncode of the start/end images, and the Wan 2.1 UNet loaded by UNETLoader. The workflow is configured for 720p output and 16 frames (F16), giving you a compact, visually coherent clip that cleanly transitions from the first frame to the last.

Under the hood, the model components are loaded in the "Load Models Here" group: VAELoader and VAEDecode handle latent-to-RGB decoding of frames; CLIPLoader and CLIPTextEncode create text and (optionally) negative prompt embeddings; CLIPVisionLoader with CLIPVisionEncode extract visual features from your start and end images. ModelSamplingSD3 defines the timestep/schedule used by KSampler to drive diffusion steps for the Wan 2.1 UNet. Finally, CreateVideo assembles the decoded frames and SaveVideo writes the MP4 to disk. This setup is ideal when you want precise control over motion and composition—e.g., matching storyboard keyframes—while still benefiting from text-driven styling.

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.

GET https://comfy.org/workflows/download/69a3789c4840.json
Fetching workflow JSON…

Run it from Python or TypeScript with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.

# Install (beta)
pip install comfy-sdk        # Python
npm i @comfyorg/sdk          # TypeScript

# Run "Wan 2.1 FLF2V 720p F16" (Python)
from comfy_sdk import Comfy

client = Comfy(api_key="comfyui-...")

# This workflow, exported in API format (see note below)
wf = client.workflows.from_file("wan2.1_flf2v_720_f16_api.json")

asset = client.assets.from_file("input.png")
wf.set_input("52", "image", asset)  # LoadImage

wf.set_input("6", "text", "glass flower blossom")  # CLIPTextEncode

job = client.run(wf)
for output in job.get_outputs("92"):  # SaveVideo
    output.to_file(output.name)

The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API). API access requires a Comfy Cloud plan with an API key. SDK docs · Get an API key

FAQ

Frequently Asked Questions

View all workflows
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