Hunyuan Instruct Multi-Image Fusion
The cat from image 1, the scene from image 2
- model
- image_1
- image_2
- image_3
- image_4
- image_5
- image
- cot_reasoning
- status
"Hunyuan Instruct Multi-Image Fusion" is the pack's flashiest Instruct node: it takes up to five reference images and combines them into one output based on a plain-language instruction. "Put the cat from image 1 in the scene from image 2 with the lighting from image 3" isn't a hypothetical - that's the README's example, and it works. Where Image Edit changes one image, Fusion mixes several, and it's one of those capabilities that makes HunyuanImage-3.0's Instruct variant feel like it's from a different generation than the diffusion stack.
The inputs that matter
- image_1 through image_5 - the references.
image_1is required; the rest are optional. The model officially supports three; slots 4 and 5 are experimental - the tooltip is upfront that they increase VRAM significantly and results vary. - instruction - how to combine them, referencing "image 1", "image 2", etc. English or Chinese both work.
- bot_task -
image(direct fusion),recaption(rewrite the instruction into a detailed fusion plan), orthink_recaption(CoT reasoning about how to combine elements, then rewrite, then generate). The tooltip recommendsthink_recaptionfor complex fusion. Remember the cost: CoT text generation happens before any image generation. - resolution - default 1024x1024. The tooltip's warning is worth quoting: with multiple differently-sized inputs, "Auto lets the model predict aspect ratio (often unpredictable)"; picking a specific preset gives deterministic dimensions.
- system_prompt -
dynamicby default;en_unifiedadds reference-editing guidelines for extracting and combining elements across images. - steps / guidance_scale / flow_shift / max_new_tokens - same auto semantics as the Image Edit node.
max_new_tokensat 3072 is suggested for complex fusion instructions.
Outputs: image, cot_reasoning (the model's combination plan, as a STRING), and status.
Workflow shape
Load Image 1 ─┐
Load Image 2 ─┼→ Hunyuan Instruct Multi-Fusion → Save Image
Load Image 3 ─┘
The model input plugs into a Hunyuan Instruct Loader. The think_recaption mode plus matching input resolutions is the recipe the README uses in its example workflow - mismatched input sizes are exactly when the "unpredictable aspect ratio" warning bites.
Installing
cd ComfyUI/custom_nodes
git clone https://github.com/EricRollei/Comfy_HunyuanImage3
cd Comfy_HunyuanImage3
pip install -r requirements.txt
Restart ComfyUI (or ComfyUI Manager, search "Comfy_HunyuanImage3"). You need an Instruct model - Distil-NF4 for 48GB cards, Distil-INT8 for 96GB:
cd ComfyUI/models
huggingface-cli download EricRollei/HunyuanImage-3.0-Instruct-Distil-NF4-v2 --local-dir HunyuanImage-3.0-Instruct-Distil-NF4-v2
The honest caveats
Fusion with 2–3 images is a headline feature of the Instruct model; 4–5 images is the pack author pushing beyond what the model was trained to do, and the tooltips and README say so explicitly. Expect the results to degrade and the VRAM to spike as you add slots. And this is the same slow territory as the other Instruct nodes: an 80B model reading several images and reasoning about them takes minutes. If your fusion output looks like the model just blended styles randomly, the fix is usually a more specific instruction and think_recaption, not more slots.
Inputs (16)
| Name | Type | Default | Description |
|---|---|---|---|
| model | HUNYUAN_INSTRUCT_MODEL | — | |
| image_1 | IMAGE | — | |
| instruction | STRING | Combine the style of image 1 with elements from image 2 | Instruction describing how to combine the images. Reference images as 'image 1', 'image 2', 'image 3', etc. Examples: 'Based on image 1 logo, create a fridge magnet with image 2 material', 'Let the cat from image 1 take a selfie with the cat from image 2, with image 3 as background'. Works with both English and Chinese prompts. |
| seed | INT | -1-1–2147483647 | -1 for random seed |
| image_2opt | IMAGE | — | |
| image_3opt | IMAGE | — | |
| image_4opt | IMAGE | Experimental — model officially supports up to 3, but the pipeline accepts more. Increases VRAM usage significantly. | |
| image_5opt | IMAGE | Experimental — model officially supports up to 3, but the pipeline accepts more. Increases VRAM usage significantly. | |
| bot_taskopt | COMBO | image | Controls how the model processes your fusion instruction.\n• image: Direct fusion — instruction applied as-is.\n• recaption: Rewrites instruction into detailed fusion description then generates.\n• think_recaption: (BEST) CoT reasoning about how to combine elements, rewrites instruction, then generates. Recommended for complex multi-image fusion. |
| system_promptopt | COMBO | dynamic | System prompt guiding multi-image fusion. dynamic (recommended) auto-selects the best prompt for your bot_task. en_unified includes reference editing guidelines for extracting and combining elements across images. The model understands both English and Chinese instructions. |
| resolutionopt | COMBO | 1024x1024 (1:1 Square) | Output image resolution. Auto lets the model predict aspect ratio (often unpredictable with multiple input images of different sizes). Selecting a specific resolution gives deterministic output dimensions. |
| stepsopt | INT | -1-1–100 | -1 for auto (8 for Distil, 50 for full Instruct). Higher step counts (60–80) reduce flow-matching artifacts at 2K+ resolutions but generation time scales linearly. |
| guidance_scaleopt | FLOAT | -1.0-1–20 | CFG scale. -1 = auto (model's recommended value, typically 2.5) |
| flow_shiftopt | FLOAT | 2.800–10 | Flow shift for the diffusion scheduler. Controls denoising schedule shape. Default 2.8 is balanced. Presets: Portraits / faces: 2.0–2.5 (sharper detail). Landscapes / illustrations: 3.5–5.0 (cleaner gradients). |
| max_new_tokensopt | INT | 2048256–8192 | Maximum tokens for CoT reasoning and instruction rewriting. Only used with recaption or think_recaption modes. Multi-image fusion may benefit from higher values (e.g. 3072) for complex instructions. |
| verboseopt | INT | 00–2 | Verbosity level. 0=silent (recommended), 1=info (shows full system prompt), 2=debug |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| cot_reasoning | STRING | — |
| status | STRING | — |