Skip to main content
MiniMax-H3-Image is MiniMax’s open-weights image model, and one checkpoint covers both text to image and image editing. The diffusion transformer is 33.1B parameters in BF16, distilled to a 6-step sampler with no CFG. Output is native at about 16 MP, so a 4096 x 4096 image is a single pass rather than an upscale chain. Related links

Key features

  • Text to image and editing in one checkpoint: no separate edit model to load
  • 6-step sampling: guidance is fixed at 1, so there is no CFG pass and no negative prompt
  • About 16 MP natively: 4096 x 4096 up to 6272 x 2688 without an upscale pass
  • Multiple references: up to 16 input images, addressed as <Picture 1> upwards in the prompt
  • Optional prompt expander: turns a short request into the detailed caption the model reads best
  • Open weights: full local control in ComfyUI
Make sure your ComfyUI is updated.Workflows in this guide can be found in the Workflow Templates. If you can’t find them in the template, your ComfyUI may be outdated.If nodes are missing when loading a workflow, possible reasons:
  1. You are not using the latest ComfyUI version (Nightly version)
  2. Some nodes failed to import at startup

Templates

Three template Workflows ship with the model. All need ComfyUI 0.45.0+. The text-to-image and image edit templates need template pack 0.11.104+; character swap needs 0.11.115+.

MiniMax-H3-Image Text to Image

Generate an image from a text prompt. The template opens at 16 MP (4096 x 4096 at 1:1), the resolution the model is built for. Lower megapixels in the resolution selector to about 4 MP on a small GPU or for faster runs. MiniMax-H3-Image text to image example output

Download Workflow

Download JSON or search “MiniMax-H3-Image: Text to Image” in Template Library

MiniMax-H3-Image Image Edit

Edit a picture by describing the change. The template loads the source as <Picture 1>, builds a reference-aware caption from your instruction, and finishes with a before/after comparison node. MiniMax-H3-Image image edit example output

Download Workflow

Download JSON or search “MiniMax-H3-Image: Image Edit” in Template Library
Input materials The template ships with one source picture, loaded as <Picture 1> in its Load Image node.

vintage_yellow_taxi.png

Source image the template edits

MiniMax-H3-Image Character Swap

Replace the person in a photo with a character from a reference image. The template reads the photo as <Picture 1> and the character as <Picture 2>, keeps the pose, framing, and lighting of the shot, and carries over the reference character’s face, costume, and materials. It runs on the same checkpoint plus the character-swap adapter at strength 1.0. MiniMax-H3-Image character swap, source photo and swapped result

Download Workflow

Download JSON or search “MiniMax-H3-Image: Character Swap” in Template Library
Two things differ from the other templates. The source photo is scaled to 1 MP, 864 x 1152 with the example images, and that becomes the output size. There is also no prompt expander: the adapter was trained on short editing instructions, so write the instruction yourself and name the references, for example “Swap the person in <Picture 1> with the character in <Picture 2>, keep the scene, framing, and the target’s pose.” Input materials The template ships with a source photo and a reference character.

h3_char_swap_source.png

Photo to edit, read as the first picture

h3_char_swap_reference.png

Character to carry over, read as the second picture

Model downloads

The text-to-image and image edit templates load these four files, all from Comfy-Org mirror repositories. The character-swap template skips the prompt expander and needs one more file, an adapter published by its author.

Diffusion model: minimax_h3_image_pruned_int8_convrot.safetensors

Pruned INT8 DiT, 21 GB. Place in ComfyUI/models/diffusion_models/

Text encoder: qwen3vl_32b_minimax_h3_int8_convrot.safetensors

Qwen3-VL-32B, INT8, 25.28 GB. Place in ComfyUI/models/text_encoders/

Prompt expander: qwen3.5_9b_w4a8_gptq.safetensors

Qwen3.5 9B W4A8, 7.34 GB. Place in ComfyUI/models/text_encoders/. Text-to-image and image edit only

VAE: minimax_h3_image_vae_fp16.safetensors

Image VAE, FP16, 1.17 GB. Place in ComfyUI/models/vae/

Character swap adapter: h3_image_character_swap_v1.safetensors

Rank-16 LoRA, 155 MB, from the adapter’s original repo. Place in ComfyUI/models/loras/
Model Storage Location
The adapter is akatz-ai/MiniMax-H3-Image-Character-Swap-LoRA, trained on 140 paired edits and evaluated on the INT8 checkpoint above. Adapter use follows the MiniMax H3 Image Community License Agreement.

Sampling and canvas size

Every template ships the distilled schedule: With guidance at 1 there is no classifier-free guidance pass, so the templates carry no negative prompt. Write everything you want, including things to avoid, into the positive prompt. Native output is about 16 MP. Every edge is generated on a multiple of 32 px, and any width and height are accepted. These sizes cover the common ratios: Smaller canvases work too and cost less time. In the text-to-image template the resolution selector sets the aspect ratio and the target megapixels separately, so any target from about 4 MP up to the selector’s 16 MP ceiling is one setting away.

Reference images in image editing

The image editing template sends the source image to the model as <Picture 1>. Additional images are labelled in order, <Picture 2>, <Picture 3>, up to 16 references, and the prompt addresses each one by its label. The first picture is the one being edited and the rest supply identity, props, materials, or composition, so a short instruction is enough: replacing the vehicle in <Picture 1> with the one in <Picture 2>. To add a reference, place another Load Image node in the workflow and connect it to both the prompt generation step and the conditioning node. Keep the VAE input on the conditioning node connected: the template already wires it, and with the VAE the reference pictures are also anchored as image latents, so the edit follows the source more closely. Give every reference a short edge of at least 1024 px, and 2048 px when identity matters: the node resizes them for you, upscales anything below 1024 px (those pixels are interpolation), and discards detail beyond 2048 px. Without the resize node, an edit comes back at the source’s size. Enable it to generate at a set target instead: 16 MP in the current template pack, and bypassed at 1 MP on pack 0.11.104, where you select it, press Ctrl-B, then set the target. Lower the target before sampling if the edit runs out of memory. The model reads the picture it edits at a short edge of 2048 px at most, which is roughly 4 MP at 1:1 and 7 MP at 16:9. A target above that adds generated detail rather than source detail, so put the target at that size when detail matters and upscale the result afterwards.

Writing an edit prompt

Leave the expander on and a short instruction is enough: it rewrites your text into the shape the model reads best. Turn it off to write the prompt yourself, and use that same shape.
  1. Name what you refer to, element first. The woman in a red coat in <Picture 1> is <Subject 1>, with enough visible detail to single her out. Every definition names its <Picture N>.
  2. Describe the target image, then give each subject its outcome. <Subject 1> is fully preserved, or <Subject 1> is partially preserved; her face and coat remain, while her pose changes to a lean toward <Subject 2>.
  3. Describe only what changed or is new. The surface a removed object leaves behind goes here, and so does any text the edit adds.
Content with no source in a reference takes no subject number. Name a removed element once with its <Picture N> in the target description, then describe the area it leaves. <Subject N> is wording the text encoder reads, not a binding the sampler enforces, so the description is what holds an edit together. State what changes and what stays instead of assuming the reference carries it. The official editing example shows the full structure: revised_prompt.edit.txt.

Enlarging and restoring a picture

The edit workflow can also do the second pass itself, with no separate upscaler model. Set the target in the Resize Image/Mask node that holds scale total pixels (16 MP in the shipped template) and clear the toggle in the Boolean (Enable PE?) node. If the node is bypassed on your pack, select it and press Ctrl-B first.
Match the lens to the source. With the expander off the instruction reaches the model as written, while the expander writes a description of a new image and adds content you did not ask for. The frame is re-rendered rather than patched, so this is an enlargement with new detail, not a faithful copy. Pose, identity, and colors hold when the target stays near the size the model reads the source at, about 4 MP at 1:1, since everything above the 2048 px short edge is generated. Anything the prompt leaves out can change, and at large targets skin texture can turn glossy and older-looking.

Keeping part of the picture unchanged

The sampler returns the source latent wherever the mask is 0 and regenerates the rest, which is the only way to hold part of the frame.
  1. Paint the area to regenerate white in the MaskEditor (right-click the Load Image node, Open in MaskEditor) and connect its MASK output to Set Latent Noise Mask. A picture with no alpha channel loads as an all-black mask, which keeps the whole frame.
  2. VAE Encode the picture already wired into the conditioning node’s image input. That node’s own LATENT is only an empty canvas sized by width and height; the latent you put on latent_image sets the output size instead.
  3. Leave positive connected and feed the masked latent into the sampler’s latent_image.
The mask resamples to the latent grid, one cell per 16 px, so grow it about 16 px past the object and feather the edge to keep contact shadows inside. The prompt still describes the whole finished picture; the mask only decides which pixels are copied. Kept pixels come back from a VAE round trip, so they are re-encoded rather than untouched. Run this at the size the model reads the source at, about 4 MP at 1:1, so kept and regenerated detail match.

Chaining edits

An edit pass is a full render, not a touch-up: the sampler builds a new image from scratch at denoise 1, with your picture as the reference. Feeding an edited result back in therefore has the whole frame redrawn from it, and stacked passes drift, most visibly as blown-out background highlights. Keep the original picture in <Picture 1> and describe every change in one instruction. Chain only when a later change depends on something the earlier pass had to create, and load that pass’s saved output as <Picture 1>.

Prompt expander

The text-to-image and image editing templates hold a text generation step in front of the sampler. In the text-to-image template it rewrites the prompt into a detailed English caption. In the image editing template it turns a short instruction into a reference-aware description of the finished image. The official expander for MiniMax-H3-Image is a Qwen3.8-27B FP4 model, published as MiniMaxAI/MiniMax-H3-Image-PE. The templates use a lighter Qwen3.5 9B W4A8 build instead, so the expander fits beside the 21 GB diffusion model on one GPU. The text-to-image and image editing templates ship with the expander switched on, so your prompt is rewritten before sampling. Switch it off to send your prompt to the model exactly as typed. For identity work, leave it off. The expander’s caption replaces your instruction at the sampler, so the wording that steers the edit is a 9B model’s description of the reference instead of yours. The picture reaches the conditioning node either way; write the caption yourself when the person has to stay recognizable.