Wan2.1 Alpha T2V

This ComfyUI workflow, titled 'Wan2.1 Alpha T2V', is designed to generate text-to-video content with the unique capability of supporting alpha channels. This means it can create videos with transparent backgrounds and semi-transparent objects, making it particularly useful for overlaying video elements onto different backgrounds or for creating complex visual effects. The workflow uses a combination of nodes such as KSampler, CLIPTextEncode, VAEDecode, and UNETLoader, among others, to process text prompts into video content. The Wan2.1 model is at the core of this workflow, providing the necessary computational power and precision to generate high-quality video outputs.

Technically, the workflow begins by loading necessary models and setting up the video size. It then proceeds to encode the text prompt using CLIPTextEncode, which is crucial for understanding and translating the user's input into visual data. The KSampler node plays a critical role in sampling the latent space to produce coherent video frames. The EmptyHunyuanLatentVideo node is used to manage the latent video data, while the JoinImageWithAlpha node ensures that the generated video maintains its transparency features. This workflow is particularly useful for content creators who need to integrate video elements seamlessly into various projects, such as animations, video games, or multimedia presentations.

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_wan2.1_alpha_t2v_14B.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 Alpha T2V" (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_alpha_t2v_14B_api.json");

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

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

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.

FAQ

Frequently Asked Questions

View all workflows
Showing 30 of 30 templates