Skip to main content
The BerniniConditioning node prepares video and image conditioning data for the Wan2.2-A14B model. It encodes source videos, reference videos, and reference images using the provided VAE, then attaches them to the conditioning data for in-context generation tasks. The task is automatically inferred from which inputs are connected.

Inputs

ParameterDescriptionData TypeRequiredRange
positivePositive conditioning dataCONDITIONINGYes-
negativeNegative conditioning dataCONDITIONINGYes-
vaeVAE model used to encode video and image inputsVAEYes-
widthWidth of the output latent (default: 832)INTYes16 to 8192 (step: 16)
heightHeight of the output latent (default: 480)INTYes16 to 8192 (step: 16)
lengthNumber of frames in the output latent (default: 81)INTYes1 to 8192 (step: 4)
batch_sizeNumber of videos to generate in a single batch (default: 1)INTYes1 to 4096
source_videoSource video to edit or restyle (v2v, rv2v). Resized to width/height and trimmed to length.IMAGENo-
reference_videoVideo to insert into the source video (ads2v).IMAGENo-
reference_imagesReference images injected as in-context tokens (r2v, rv2v). Up to 8 images can be provided.IMAGENo0 to 8 images
ref_max_sizeMax size for the long edge of reference_video and reference_images. Resized with preserved aspect ratio and snapped to 16px (default: 848).INTNo16 to 8192 (step: 16)
Note: The task is inferred from which inputs are connected:
  • No inputs connected → text-to-video (t2v)
  • source_video only → video-to-video (v2v)
  • source_video + reference_images → reference-guided video editing (rv2v)
  • reference_images only → reference-to-video (r2v)
  • source_video + reference_video → insert image/video into video (ads2v)

Outputs

Output NameDescriptionData Type
positivePositive conditioning with context latents attachedCONDITIONING
negativeNegative conditioning with context latents attachedCONDITIONING
latentEmpty latent tensor with dimensions matching the specified width, height, length, and batch sizeLATENT
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 70b5026f9479249bc5d1fe4695583193216e34e1b092764ac30e0ec3b7eba670