Empty Latent Image Presets
KJNodes/latents
EmptyLatentImagePresetsExample
JSON Example
{
"class_type": "EmptyLatentImagePresets",
"inputs": {
"dimensions": "512 x 512 (1:1)",
"invert": false,
"batch_size": 1
}
}This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.
Inputs
| Name | Type | Status | Constraints | Default |
|---|---|---|---|---|
dimensions | ENUM10 options
| required | - | "512 x 512 (1:1)" |
invert | BOOLEAN | required | - | false |
batch_size | INT | required | min: 1, max: 4096 | 1 |
Outputs
| Index | Name | Type | Is List | Connection Reference |
|---|---|---|---|---|
0 | Latent | LATENT | No | ["{node_id}", 0] |
1 | Width | INT | No | ["{node_id}", 1] |
2 | Height | INT | No | ["{node_id}", 2] |
How to connect to these outputs
To connect another node's input to an output from this node, use the connection reference format:
["node_id", output_index]Where node_id is the ID of this EmptyLatentImagePresets node in your workflow, and output_index is the index from the table above.
Example
If this node has ID "5" in your workflow:
Latent (LATENT):["5", 0]Width (INT):["5", 1]Height (INT):["5", 2]
Was this page helpful?