Latent Creation
EmptyLatentImage
Creates a new batch of empty latent images to be denoised. Category:latent
Width of the latent in pixels (will be divided by 8 for actual latent dimensions). Range: 16 to 16384, step 8
Height of the latent in pixels. Range: 16 to 16384, step 8
Number of latent images in the batch. Range: 1 to 4096
LATENT: Empty latent image batch
Encoding & Decoding
VAEEncode
Converts a pixel-space image to latent space. Category:latent
The image to encode
The VAE model for encoding
LATENT: The encoded latent representation
VAEDecode
Converts a latent image back to pixel space. Category:latent
The latent to decode
The VAE model for decoding
IMAGE: The decoded pixel-space image
VAEEncodeTiled
Encodes large images using a tiled approach to save memory. Category:_for_testing
The image to encode
The VAE model
Size of each tile. Range: 64 to 4096, step 64
Overlap between tiles to avoid seams. Range: 0 to 4096, step 32
Frames to encode at once (for video VAEs). Range: 8 to 4096, step 4
Frame overlap (for video VAEs). Range: 4 to 4096, step 4
LATENT: The encoded latent
VAEDecodeTiled
Decodes large latents using tiles to save memory. Category:_for_testing
The latent to decode
The VAE model
Tile size in pixels. Range: 64 to 4096, step 32
Overlap between tiles. Range: 0 to 4096, step 32
Frames per tile (video VAEs)
Frame overlap (video VAEs)
IMAGE: The decoded image
VAEEncodeForInpaint
Encodes an image with a mask for inpainting. Category:latent/inpaint
The image to encode
The VAE model
The inpainting mask
Pixels to expand the mask by for seamless blending. Range: 0 to 64
LATENT: Encoded latent with noise mask
Latent Transformations
LatentUpscale
Upscales a latent image to a specific size. Category:latent
The latent to upscale
Interpolation method. Options:
nearest-exact, bilinear, area, bicubic, bislerpTarget width in pixels. Range: 0 to 16384, step 8
Target height in pixels. Range: 0 to 16384, step 8
Crop method. Options:
disabled, centerLATENT: Upscaled latent
LatentUpscaleBy
Upscales a latent by a scale factor. Category:latent
The latent to upscale
Interpolation method
Scale multiplier. Range: 0.01 to 8.0
LATENT: Upscaled latent
LatentRotate
Rotates a latent image in 90-degree increments. Category:latent/transform
The latent to rotate
Rotation amount. Options:
none, 90 degrees, 180 degrees, 270 degreesLATENT: Rotated latent
LatentFlip
Flips a latent image horizontally or vertically. Category:latent/transform
The latent to flip
Flip direction. Options:
x-axis: vertically, y-axis: horizontallyLATENT: Flipped latent
LatentCrop
Crops a latent image to a specific region. Category:latent/transform
The latent to crop
Crop width. Range: 64 to 16384, step 8
Crop height. Range: 64 to 16384, step 8
X offset. Range: 0 to 16384, step 8
Y offset. Range: 0 to 16384, step 8
LATENT: Cropped latent
Latent Composition
LatentComposite
Composites one latent onto another. Category:latent
The destination latent (background)
The source latent to composite
X position. Range: 0 to 16384, step 8
Y position. Range: 0 to 16384, step 8
Feathering amount for blending. Range: 0 to 16384, step 8
LATENT: Composited latent
LatentBlend
Blends two latents together. Category:_for_testing
First latent
Second latent
Blend amount. 0.0 = only samples1, 1.0 = only samples2. Range: 0.0 to 1.0
LATENT: Blended latent
Latent Batch Operations
LatentFromBatch
Extracts a subset from a latent batch. Category:latent/batch
The batch to extract from
Starting index. Range: 0 to 63
Number of items to extract. Range: 1 to 64
LATENT: Extracted latent subset
RepeatLatentBatch
Duplicates a latent batch. Category:latent/batch
The latent to repeat
Number of times to repeat. Range: 1 to 64
LATENT: Repeated latent batch
Advanced Latent Operations
LatentAdd
Adds two latents together. Category:latent/advanced
First latent
Second latent
LATENT: Sum of the two latents
LatentSubtract
Subtracts one latent from another. Category:latent/advanced
Latent to subtract from
Latent to subtract
LATENT: Difference between latents
LatentMultiply
Multiplies a latent by a scalar value. Category:latent/advanced
The latent to multiply
Scale factor. Range: -10.0 to 10.0
LATENT: Scaled latent
LatentInterpolate
Interpolates between two latents. Category:latent/advanced
First latent
Second latent
Interpolation ratio. Range: 0.0 to 1.0
LATENT: Interpolated latent
Inpainting
SetLatentNoiseMask
Adds a noise mask to a latent for inpainting. Category:latent/inpaint
The latent to add mask to
The noise mask
LATENT: Latent with noise mask
Latent Storage
SaveLatent
Saves a latent to disk. Category:_for_testing
The latent to save
Filename prefix for saved latent
.latent files that can be loaded later.
LoadLatent
Loads a previously saved latent from disk. Category:_for_testing
The latent file to load
LATENT: The loaded latent
Workflow Tips
Latent Upscaling Workflow
- Generate base image at 512×512
- Use
LatentUpscaleorLatentUpscaleByto upscale latent to 1024×1024 - Use
KSamplerwithdenoise=0.4-0.6to add high-frequency details - Decode with
VAEDecode
Latent Space Benefits
- 8x compression: A 512×512 pixel image is 64×64 in latent space
- Faster operations: Transforms are 64x faster than in pixel space
- Lower memory: Operations use significantly less VRAM
- Native space: Diffusion models work directly in latent space