This workflow turns text prompts into coherent 720p videos using the Hunyuan Video 1.5 model, with optional 1080p upscaling and super-resolution. It’s organized into clear groups: Step 1 - Load models, Step 3 - Prompt, Step 4 - Video Size, Custom Sampler, and an optional Video Upscale 1080P (Ctrl-B to enable). The pipeline loads Hunyuan’s text encoders with DualCLIPLoader and encodes your prompt via CLIPTextEncode. EmptyHunyuanVideo15Latent defines the temporal canvas (resolution, frame count, FPS), while RandomNoise sets the seed. UNETLoader brings in the Hunyuan Video 1.5 UNet, and SamplerCustomAdvanced (driven by KSamplerSelect, BasicScheduler, and CFGGuider) performs diffusion steps to synthesize video latents at 720p. VAELoader plus VAEDecode (or VAEDecodeTiled for memory efficiency) converts latents to frames, which CreateVideo stitches into a final clip, saved with SaveVideo.

For higher fidelity, the workflow includes a latent-space upscaling path. LatentUpscaleModelLoader and HunyuanVideo15LatentUpscaleWithModel can boost resolution before decoding, and HunyuanVideo15SuperResolution refines details after generation. EasyCache is available to accelerate repeated runs by caching encodings, at the cost of some visual quality. The default step count is set to 20 for reasonable render times; increasing steps (e.g., toward the Hunyuan team’s original settings) improves detail but extends inference time. If you encounter VRAM limits, set weight_dtype to fp8_e4n3fn and switch to VAEDecodeTiled.

API

通过代码使用此工作流

每个 Comfy 工作流都是一个 JSON 图。下面的内容就是此工作流的完整数据,ComfyUI 运行时也是如此——你可以从该 URL 获取、放入版本控制,或在 ComfyUI 中加载并逐节点运行。

video_hunyuan_video_1.5_720p_t2v.json
正在获取工作流 JSON…

使用 Comfy SDK 从 TypeScript 或 Python 运行。相同代码可用于 Comfy Cloud 或你自托管的 ComfyUI——只需更改基础 URL。

// Install (beta)
npm i @comfyorg/sdk

// Run "混元视频 1.5 文生视频" (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_hunyuan_video_1.5_720p_t2v_api.json");

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

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

SDK 需要 API 格式的工作流:在 ComfyUI 中打开此工作流,使用 文件 → 导出工作流(API)。

Comfy Cloud API 访问需要包含 API 密钥的套餐。

常见问题

常见问题

查看所有工作流
Showing 30 of 30 templates