---
title: "Hunyuan Video Inpainting & Mask Editor in ComfyUI — Node Wiring & Settings"
description: "Complete ComfyUI workflow route for Hunyuan Video paired with Inpainting & Mask Editor (replacing or repairing masked regions seamlessly). Loader: UnetLoaderGGUF / Load Diffusion Model, VRAM target: 12 GB–24 GB."
canonical: https://comfy.ink/routes/hunyuan-video-inpainting-mask
updated: 2026-10-17
---

# Hunyuan Video: Inpainting & Mask Editor in ComfyUI

Blueprint for replacing or repairing masked regions seamlessly with Hunyuan Video (12 GB–24 GB VRAM) using Load Image (MaskEditor) → SetLatentNoiseMask / InpaintModelConditioning → KSampler.

## Facts (2026-10-17)

- **Model Architecture:** Hunyuan Video
- **Workflow Task:** Inpainting & Mask Editor
- **VRAM Requirement:** 12 GB–24 GB
- **Primary Loader:** UnetLoaderGGUF / Load Diffusion Model
- **Model Directory:** models/diffusion_models/

## Node graph blueprint: Hunyuan Video × Inpainting & Mask Editor

This route pairs **Hunyuan Video** with a **Inpainting & Mask Editor** setup designed for replacing or repairing masked regions seamlessly. Place your model weights in `models/diffusion_models/` and start the graph with **UnetLoaderGGUF / Load Diffusion Model**.

Core wiring chain: `Load Image (MaskEditor) → SetLatentNoiseMask / InpaintModelConditioning → KSampler`. Connect your positive and negative conditioning from [CLIP Text Encode](https://comfy.ink/nodes/clip-text-encode) into [KSampler](https://comfy.ink/nodes/ksampler) and decode to RGB pixels.

## VRAM tuning and execution tips on Windows

- **Memory target (12 GB–24 GB):** If your GPU sits at 8 GB or 12 GB, use FP8 or GGUF Q4/Q5 weights and swap in [VAE Decode (Tiled)](https://comfy.ink/nodes/vae-decode-encode) to avoid end-of-pass memory spikes.
- **Workflow persistence:** Every image saved by this route embeds the full JSON graph inside the PNG metadata — drag the output back onto [ComfyUI Studio](https://comfy.ink/studio) anytime to resume.
- **Get the app:** Download the Windows desktop or portable build from [/download](https://comfy.ink/download).

## FAQ

### Which loader node do I use for Hunyuan Video in a Inpainting & Mask Editor?

Use `UnetLoaderGGUF / Load Diffusion Model` with weights stored in `models/diffusion_models/`, then wire the output into `Load Image (MaskEditor) → SetLatentNoiseMask / InpaintModelConditioning → KSampler`.

### How much VRAM does Hunyuan Video need for Inpainting & Mask Editor?

Target VRAM is 12 GB–24 GB. On 8 GB cards, load quantized FP8 or GGUF weights and enable tiled VAE decoding.

## Related

- [ComfyUI Model & Task Routes](https://comfy.ink/routes)
- [ComfyUI Models & Checkpoints](https://comfy.ink/models)
- [KSampler & KSampler (Advanced)](https://comfy.ink/nodes/ksampler)
- [ComfyUI VRAM Requirements for SDXL, Flux & Video (6GB–24GB)](https://comfy.ink/guides/comfyui-vram-requirements-guide)
- [Flux.1: Text-to-Image Graph in ComfyUI](https://comfy.ink/routes/flux-txt2img-workflow)

## Download

Free desktop app: [Download Comfy](https://comfy.ink/download)

Markdown mirror: https://comfy.ink/routes/hunyuan-video-inpainting-mask.md
