KJNodes/experimentalgenerated

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

model
clip
mode
vae
images
vae
audio_vae
ref_images
ref_videos
ref_video_audios
ref_audios
vae
first_frame
last_frame
image
ref_image
ref_video
ref_video_audio
ref_audio
model
positive
latent
text
STRING
strength
1.00
width
0
height
0
start_percent
0.000
end_percent
0.250
start_percent
0.000
end_percent
1.000
length
124
ref_image_size
match
start_percent
0.000
end_percent
1.000
length
124
start_percent
0.000
end_percent
1.000
KJNodes

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 -4 and 4 can 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, max 4, step 0.05): multiplier on the weighting effect. 0 neutralizes 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, min 0, step 32): output width. 0 uses image_1's size, or 2048 when there are no images. The video modes use 1344x768 when set to 0.
  • height (INT, default 0, min 0, step 32): output height; 0 follows the same automatic sizing behavior as width.

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 = 0 and end_percent = 0.25: 0.25 is the first two of 6 steps.
  • For images, references, and keyframes the defaults are start_percent = 0 and end_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, min 5, max 3600, step 17): frame count at 24 fps, snapped up to the model's 17k+5 grid.
  • ref_image_size (COMBO, default match, options match / max): match scales each reference image down to the generation's pixel area; max scales 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, min 5, max 3600, step 17): 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 strength to 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_percent window 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: use match when you only need the reference's overall look.

Comments

Sign in with GitHub to join the discussion.

Loading comments…