MiniMax H3 Prompt Weight(MiniMaxH3PromptWeight)
Weighting is written inline in the prompt text: - (word:1. 5) emphasizes a concept, (word:-1) removes it: any weight between roughly -4 and 4 can be used.
Mini Max H3 Prompt Weight
Description
MiniMax H3 Prompt Weight builds MiniMax H3 image/video conditioning with per-token prompt weights, then hands back everything needed to sample: the model with the weighting applied, the encoded conditioning, and an empty latent sized for the current settings. It lives in the KJNodes/experimental category.
Weighting is written inline in the prompt text:
(word:1.5)emphasizes a concept,(word:-1)removes it: any weight between roughly-4and4can be used.[cat|fox]blends one prompt per option, giving each option its own branch of the prompt.[cat|fox:-1]blends the options and sets that option's attention bias with the trailing number.
The strength widget scales the whole weighting effect, so the same prompt can be dialed from subtle to extreme without editing the text.
Inputs
The node swaps its visible inputs based on the selected mode, so not every input below is shown at once.
Core inputs
- model (MODEL, required): the diffusion model that receives the weighting patch.
- clip (CLIP, required): the text encoder used to encode the prompt.
- text (STRING, default
"") — the prompt itself, including the(word:weight)and[option|option]syntax described above. - strength (FLOAT, default
1, min-4, max4, step0.05): multiplier on the weighting effect.0neutralizes the weighting, positive values push emphasis/removal harder, and negative values invert the effect. - mode (DYNAMICCOMBO, required): selects which conditioning variant is active and therefore which extra inputs appear. Text with an empty image adds a black picture's vision tokens, which softens the hard text-to-image rendering.
Resolution inputs
- width (INT, default
0, min0, step32): output width.0usesimage_1's size, or2048when there are no images. The video modes use1344x768when set to0. - height (INT, default
0, min0, step32): output height;0follows the same automatic sizing behavior aswidth.
Sampling range
Each mode exposes its own start_percent / end_percent pair (FLOAT, 0–1, step 0.001). Outside the selected range, the prompt is encoded without that mode's extra conditioning.
- For the vision-token range the defaults are
start_percent = 0andend_percent = 0.25:0.25is the first two of 6 steps. - For images, references, and keyframes the defaults are
start_percent = 0andend_percent = 1.
Vision-token mode inputs
- images (AUTOGROW, optional): images to encode as vision tokens.
- vae (VAE, optional): VAE used to encode the images.
Reference mode inputs
- vae (VAE, optional): video VAE. Without it, reference images/videos only condition the text encoder.
- audio_vae (VAE, optional): audio VAE. Without it, reference audio only conditions the text encoder.
- length (INT, default
124, min5, max3600, step17): frame count at 24 fps, snapped up to the model's 17k+5 grid. - ref_image_size (COMBO, default
match, optionsmatch/max):matchscales each reference image down to the generation's pixel area;maxscales to a 2048 short edge (slower). - ref_images (AUTOGROW, optional): reference images.
- ref_videos (AUTOGROW, optional): reference videos.
- ref_video_audios (AUTOGROW, optional): soundtracks for the reference videos.
- ref_audios (AUTOGROW, optional): reference audio.
Keyframe mode inputs
- vae (VAE, optional): video VAE; needed when a frame is connected.
- length (INT, default
124, min5, max3600, step17): frame count at 24 fps, snapped up to the model's 17k+5 grid. - first_frame (IMAGE, optional): starting frame for the generation.
- last_frame (IMAGE, optional): ending frame for the generation.
Here the start_percent / end_percent range governs the frames: outside it the prompt is encoded without them or their keyframe latents.
Single-socket reference inputs
Some modes expose single sockets instead of the AUTOGROW lists:
- image (IMAGE, required): a single input image.
- ref_image (IMAGE, required): a single reference image.
- ref_video (IMAGE, required): a single reference video.
- ref_video_audio (AUDIO, required): soundtrack of the same-numbered reference video.
- ref_audio (AUDIO, required): a single reference audio clip.
Outputs
- MODEL: the model with the prompt weighting applied, ready to pass to a sampler.
- CONDITIONING: the encoded prompt (plus any active vision tokens, references, or keyframes) with the per-token weights baked in.
- LATENT: an empty latent sized from the configured width/height (and length, in the video modes) for sampling.
Usage Notes
- Weight syntax is the fastest way to iterate: keep the prompt text fixed and lower
strengthto soften the effect rather than rewriting every weight. - Use negative weights to remove concepts:
(word:-1)is enough. Reserve strong positives for the elements that should dominate the composition. - If a text-to-image render looks too hard or poster-like, select the mode that adds a black picture's vision tokens; this softens the result noticeably.
- The
start_percent/end_percentwindow defaults to the first two of six steps for vision tokens, and to the full run for images, references, and keyframes. Narrowing the window limits when the extra conditioning applies, which is useful when references should only shape the early layout. - Connect a video VAE when supplying reference images/videos, and an audio VAE for reference audio; otherwise those inputs only reach the text encoder and have a much weaker effect.
ref_image_size = "max"preserves more detail in reference images at the cost of speed: usematchwhen you only need the reference's overall look.
Comments
Sign in with GitHub to join the discussion.