Wan2.7: Text to Video

This ComfyUI workflow turns a plain text prompt into a short video using the Wan 2.7 model. At its core, the Wan2TextToVideoApi node sends your prompt and generation settings to the Wan 2.7 backend, which synthesizes a sequence of frames that match the described scene, style, and motion. If you supply a reference audio clip, the node uses it to guide mouth shapes and timing, enabling convincing lip-synced results without manual keyframing.

The output from Wan2TextToVideoApi is passed to SaveVideo, which assembles and writes the final clip to disk. You control key parameters in the API node—such as prompt text, seed for reproducibility, and clip characteristics like duration, resolution, and FPS (as exposed by the node)—and then finalize the container and path in SaveVideo. This simple two-node setup is ideal for fast iteration: tweak your prompt, optionally attach an audio file for lip sync, and render clean, shareable videos from within ComfyUI.

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_7_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.7: 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_7_t2v_api.json");

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