Wan2.5: Text to Video

The Wan2.5: Text to Video workflow in ComfyUI is a sophisticated process designed to transform textual input into high-quality video content, optionally synchronized with audio. This workflow leverages the Wan2.5 and Wan models, which are renowned for their ability to generate smooth motion and superior visual quality in video outputs. At the core of this workflow is the WanTextToVideoApi node, which interprets text prompts and converts them into video sequences. Additionally, the workflow can incorporate audio through the LoadAudio and RecordAudio nodes, allowing for the creation of videos with synchronized soundtracks. This feature is particularly beneficial for content creators who wish to enhance their videos with custom audio tracks.

Technically, the workflow is structured to be user-friendly while providing advanced capabilities. Users can input audio files that are between 3 to 30 seconds long and under 15MB in size, which can be linked directly to the WanTextToVideoApi node for seamless integration. The SaveVideo node ensures that the final output is stored efficiently, while the MarkdownNote node provides a space for users to document their workflow settings and notes. This combination of nodes and models makes the Wan2.5: Text to Video workflow a powerful tool for producing engaging video content with ease.

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_wan_text_to_video.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.5: 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_wan_text_to_video_api.json");

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