ComfyUI Node
h4 - Latent Selector
A ComfyUI node in h4_ToolKit/Latents with 5 inputs and 3 outputs.
h4 - Latent Selector
- LATENT
- WIDTH
- HEIGHT
◄base_modelSDXL►
◄aspect_ratio1:1 (Square)►
◄batch_size1►
◄custom_width1024►
◄custom_height1024►
Categoryh4_ToolKit/Latents
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| base_model | COMBO | SDXL | Which model architecture are you using? This determines the optimal pixel area. SD1.5 uses 512px base, SDXL uses 1024px, Wan uses 720p. Pick 'Start From Custom' to ignore presets and use your own width/height. |
| aspect_ratio | COMBO | 1:1 (Square) | The shape of your canvas. 1:1 = perfect square (great for avatars). 16:9 = widescreen cinema. 9:16 = phone wallpaper / story format. Pick 'Custom Dimensions' to manually set width and height below. |
| batch_size | INT | 11–64 | How many identical empty latents to generate in one batch. Set to 1 for single images. Crank it up if you have the VRAM and want to generate multiple variations in parallel. |
| custom_widthopt | INT | 102464–16384 | Manual width override (only used when 'Start From Custom' or 'Custom Dimensions' is selected). Values get snapped to the nearest multiple of 16 for hardware compatibility. |
| custom_heightopt | INT | 102464–16384 | Manual height override (only used when 'Start From Custom' or 'Custom Dimensions' is selected). Values get snapped to the nearest multiple of 16 for hardware compatibility. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| LATENT | LATENT | — |
| WIDTH | INT | — |
| HEIGHT | INT | — |