Nodes/ComfyUi-MpiNodes/Mpi FLUX 3 References
ComfyUI Node

Mpi FLUX 3 References

FLUX 3 Image Klein reference conditioning with all 10 reference slots exposed at once. Empty slots are dropped and the rest renumbered, so ONE graph covers every combination instead of growing core's Autogrow input per run. Empty means nothing connected or an Mpi loader with block_if_empty OFF (a 1x1 image) - a real black image passes through. Encodes the prompt with `clip`, then core's own ReferenceMultiLatent builds the conditioning. Write the prompt against SLOT numbers - <ref_image_0> means ref_image_0 - and the node rewrites them to what core presents, dropping any tag whose slot is empty. `empty_latent` is core's: the first reference's latent times 0, or core's square 4-channel SD latent when there are none - wrong for FLUX 3, so a text-to-image run takes its latent from EmptyFlux2LatentImage instead.

By MadPonyInteractive·Created about a year ago·Updated about 21 hours ago· 4
Mpi FLUX 3 References
  • clip
  • vae
  • negative
  • ref_image_0
  • ref_image_1
  • ref_image_2
  • ref_image_3
  • ref_image_4
  • ref_image_5
  • ref_image_6
  • ref_image_7
  • ref_image_8
  • ref_image_9
  • positive
  • negative
  • empty_latent
  • ref_tags
◄prompt—►
◄resolutionresize►
◄megapixels1.00►
CategoryMpiNodes/Utils

Inputs (16)

NameTypeDefaultDescription
clipCLIP—
vaeVAE—
promptSTRINGCite references by SLOT: <ref_image_0> is whatever is wired into ref_image_0. The node rewrites tags to the order core presents once empty slots are dropped (see ref_tags); a tag naming an empty slot is removed.
resolutionCOMBOresizeresize scales each reference to `megapixels`, aspect kept. keep resolution encodes it as it is.
megapixelsFLOAT1.000.01–16Target size of each reference when resolution is resize. 1.0 is about 1024 x 1024.
negativeoptCONDITIONINGOptional. Gets the same reference latents. Unconnected, the positive is returned in its place, as core does.
ref_image_0optIMAGEReference image, cited in the prompt as <ref_image_0>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it.
ref_image_1optIMAGEReference image, cited in the prompt as <ref_image_1>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it.
ref_image_2optIMAGEReference image, cited in the prompt as <ref_image_2>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it.
ref_image_3optIMAGEReference image, cited in the prompt as <ref_image_3>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it.
ref_image_4optIMAGEReference image, cited in the prompt as <ref_image_4>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it.
ref_image_5optIMAGEReference image, cited in the prompt as <ref_image_5>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it.
ref_image_6optIMAGEReference image, cited in the prompt as <ref_image_6>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it.
ref_image_7optIMAGEReference image, cited in the prompt as <ref_image_7>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it.
ref_image_8optIMAGEReference image, cited in the prompt as <ref_image_8>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it.
ref_image_9optIMAGEReference image, cited in the prompt as <ref_image_9>. Leave unconnected, or feed a loader with block_if_empty OFF, to skip it.

Outputs (4)

NameTypeDescription
positiveCONDITIONING—
negativeCONDITIONING—
empty_latentLATENT—
ref_tagsSTRING—