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
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.
GET https://comfy.org/workflows/download/a3e50e79cb89.jsonFetching workflow JSON…
Run it from Python or TypeScript with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
# Install (beta)
pip install comfy-sdk # Python
npm i @comfyorg/sdk # TypeScript
# Run "Hunyuan Video 1.5 Text to Video" (Python)
from comfy_sdk import Comfy
client = Comfy(api_key="comfyui-...")
# This workflow, exported in API format (see note below)
wf = client.workflows.from_file("video_hunyuan_video_1.5_720p_t2v_api.json")
wf.set_input("44", "text", "your prompt here") # CLIPTextEncode
job = client.run(wf)
for output in job.get_outputs("102"): # SaveVideo
output.to_file(output.name)The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API). API access requires a Comfy Cloud plan with an API key. SDK docs · Get an API key
FAQ














