Wan 2.2 14B 텍스트 기반 비디오 생성
Wan 2.2를 사용하여 영화적 미학 제어와 동적 모션 생성으로 고품질 비디오를 텍스트 프롬프트에서 생성합니다.
워크플로 내부
소스 템플릿의 읽기 전용 미리보기입니다. Cloud에서 열어 노드를 살펴보고 변경할 수 있습니다.
Loading the graph
Open full-size workflow preview코드에서 이 모델 호출하기
아래 요청은 Playground와 동일하게 준비된 그래프와 설정을 사용합니다. 제출할 때마다 유료 실행이 시작될 수 있으므로 결과를 알 수 없는 제출을 자동으로 재시도하지 마세요.
What you need
- Runs on
- Comfy Cloud
- 키
- COMFY_API_KEY
유료 Cloud 요금제와 크레딧이 필요합니다.
# Python 3.10+: pip install comfy-sdk==0.4.0
import os
from comfy_sdk import Comfy
api_key = os.environ.get("COMFY_API_KEY", "").strip()
if not api_key: raise RuntimeError("Set COMFY_API_KEY")
os.environ.setdefault("COMFY_BASE_URL", "https://cloud.comfy.org")
client = Comfy(api_key=api_key)
workflow = client.workflows.from_json({
"71": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
"device": "default",
"type": "wan"
},
"_meta": {
"title": "Load CLIP"
}
},
"72": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"71",
0
],
"text": "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走,裸露,NSFW"
},
"_meta": {
"title": "CLIP Text Encode (Negative Prompt)"
}
},
"73": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "wan_2.1_vae.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"74": {
"class_type": "EmptyHunyuanLatentVideo",
"inputs": {
"batch_size": 1,
"height": 720,
"length": 81,
"width": 1280
},
"_meta": {
"title": "Empty Hunyuan Video 1.0 Latent"
}
},
"75": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "wan2.2_t2v_high_noise_14B_fp8_scaled.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"76": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "wan2.2_t2v_low_noise_14B_fp8_scaled.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"78": {
"class_type": "KSamplerAdvanced",
"inputs": {
"add_noise": "disable",
"cfg": 1,
"end_at_step": 4,
"latent_image": [
"81",
0
],
"model": [
"86",
0
],
"negative": [
"72",
0
],
"noise_seed": 0,
"positive": [
"89",
0
],
"return_with_leftover_noise": "disable",
"sampler_name": "euler",
"scheduler": "simple",
"start_at_step": 2,
"steps": 4
},
"_meta": {
"title": "KSampler (Advanced)"
}
},
"80": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/ComfyUI",
"format": "auto",
"format.codec": "auto",
"video": [
"88",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"81": {
"class_type": "KSamplerAdvanced",
"inputs": {
"add_noise": "enable",
"cfg": 1,
"end_at_step": 2,
"latent_image": [
"74",
0
],
"model": [
"82",
0
],
"negative": [
"72",
0
],
"noise_seed": 392459563371087,
"positive": [
"89",
0
],
"return_with_leftover_noise": "enable",
"sampler_name": "euler",
"scheduler": "simple",
"start_at_step": 0,
"steps": 4
},
"_meta": {
"title": "KSampler (Advanced)"
}
},
"82": {
"class_type": "ModelSamplingSD3",
"inputs": {
"model": [
"83",
0
],
"shift": 5.000000000000001
},
"_meta": {
"title": "ModelSamplingSD3"
}
},
"83": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "wan2.2_t2v_lightx2v_4steps_lora_v1.1_high_noise.safetensors",
"model": [
"75",
0
],
"strength_model": 1.0000000000000002
},
"_meta": {
"title": "Load LoRA"
}
},
"85": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "wan2.2_t2v_lightx2v_4steps_lora_v1.1_low_noise.safetensors",
"model": [
"76",
0
],
"strength_model": 1.0000000000000002
},
"_meta": {
"title": "Load LoRA"
}
},
"86": {
"class_type": "ModelSamplingSD3",
"inputs": {
"model": [
"85",
0
],
"shift": 5.000000000000001
},
"_meta": {
"title": "ModelSamplingSD3"
}
},
"87": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"78",
0
],
"vae": [
"73",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"88": {
"class_type": "CreateVideo",
"inputs": {
"bit_depth": "auto",
"codec": "none",
"color_space": "sRGB",
"fps": 16,
"images": [
"87",
0
]
},
"_meta": {
"title": "Create Video"
}
},
"89": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"71",
0
],
"text": "A low tracking shot skims just above the churning ocean, slowly pushing in toward the action over five seconds. Across the vast, stormy expanse beneath an overcast sky, two massive black-and-white orcas surge dynamically through the dark blue-gray water. In the center, the dominant orca breaches powerfully, its sleek body and tall dorsal fin arcing skyward before crashing downward, displacing a heavy explosion of white spray. Beside it, the secondary orca smoothly breaks the surface, rolling through the frothy crests as fine ocean mist drifts through the cool air. The rolling swell heaves continuously, sending turbulent ripples outward as both apex predators dive back beneath the foaming waves."
},
"_meta": {
"title": "CLIP Text Encode (Positive Prompt)"
}
}
})
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)
for output in job.get_outputs("80"):
output.to_file(output.name)예시 사용해 보기
이 워크플로 정보
ComfyUI의 'Wan 2.2 14B Text to Video' 워크플로는 텍스트 프롬프트를 시네마틱한 톤의 고품질 비디오로 변환하는 고급 도구입니다. 이 워크플로는 역동적인 모션 생성과 비디오 미학 제어로 알려진 Wan2.2 모델을 활용해 텍스트 설명만으로도 몰입감 있는 콘텐츠를 생성합니다. 워크플로에는 텍스트 처리를 위한 CLIPLoader 및 CLIPTextEncode, 잠재 공간 처리를 위한 VAELoader, 이미지 합성을 위한 UNETLoader 등 여러 핵심 노드가 포함됩니다.
기술적으로 워크플로는 비디오 생성의 각 단계를 처리하는 여러 그룹으로 구성됩니다. 'Step1 - Load models' 그룹이 필요한 모델을 초기화하고, 'Step2 - Video size'가 출력 크기를 구성합니다. 'Wan2.2 T2V fp8_scaled' 그룹은 KSamplerAdvanced 노드를 사용한 고급 샘플링으로 텍스트에서 비디오로 변환을 수행하는 핵심 단계입니다. 이런 구조화된 접근으로 품질과 스타일을 세밀하게 제어하며 비디오를 생성할 수 있어, 간단한 텍스트 프롬프트로 시네마틱 비디오 콘텐츠를 만들려는 크리에이터에게 유용합니다.
질문과 답변
The workflow uses the Wan2.2 model for text-to-video conversion, along with supporting nodes like CLIPLoader, VAELoader, and UNETLoader.
Yes, you can adjust the video quality by modifying the video size in the 'Step2 - Video size' group, depending on your VRAM capacity.
Yes, by setting the video length to 1, you can use the Wan2.2 model as a text-to-image generator.
Using the Wan2.2 Lighting LoRA can reduce generation time but may result in the loss of dynamic motion in the video.