Wan2.6: Text to Video

The 'Wan2.6: Text to Video' workflow in ComfyUI is designed to transform text prompts into high-quality video content. This workflow leverages the Wan2.6 model, which is renowned for its ability to generate videos with enhanced image quality and smoother motion transitions. The use of the WanTextToVideoApi node is central to this process, as it interprets textual descriptions and converts them into video sequences with 1080P resolution. This workflow is particularly useful for users looking to create natural and professional-looking videos directly from text, thanks to its improved prompt understanding capabilities.

Technically, the workflow operates by taking a text input and processing it through the WanTextToVideoApi node, which is specifically optimized for video generation tasks. The generated video is then saved using the SaveVideo node, allowing for easy access and storage. This setup ensures that users can produce videos that are not only visually appealing but also aligned with the descriptive nuances of the input text. The combination of these nodes and the advanced capabilities of the Wan2.6 model makes this workflow a powerful tool for content creators and developers alike.

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.

api_wan2_6_t2v.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.6: Text to Video" (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("api_wan2_6_t2v_api.json");

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

FAQ

Frequently Asked Questions

View all workflows
Showing 30 of 30 templates