What is List?
List is a mechanism for handling multiple data as a "single group".
While Queue executes "the same workflow multiple times", List processes multiple inputs sequentially in a single execution.
- Queue
- Executes the same workflow repeatedly from the outside
- List
- Processes multiple inputs sequentially on the inside
It is easier to understand if you think of it as the difference between "Pressing Run multiple times" and "Pouring multiple inputs in a single Run".
Creating and Retrieving a List
Create List Node
This node lets you assemble a List manually. It combines values of any type, such as images, text, or numbers, into a single List.
{
"id": "21514ac1-a768-45b5-aad7-2f80aa417de2",
"revision": 0,
"last_node_id": 12,
"last_link_id": 18,
"nodes": [
{
"id": 5,
"type": "LoadImage",
"pos": [
-1436.067628024,
617.4692913742188
],
"size": [
222.798828125,
329.1218985681479
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
8
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"Node name for S&R": "LoadImage",
"cnr_id": "comfy-core",
"ver": "0.29.0"
},
"widgets_values": [
"A.png",
"image"
],
"widgets_values_named": {
"image": "A.png",
"upload": "image"
}
},
{
"id": 6,
"type": "LoadImage",
"pos": [
-1172.1442007526066,
717.2786559338588
],
"size": [
222.798828125,
329.1218985681479
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
17
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"Node name for S&R": "LoadImage",
"cnr_id": "comfy-core",
"ver": "0.29.0"
},
"widgets_values": [
"B.png",
"image"
],
"widgets_values_named": {
"image": "B.png",
"upload": "image"
}
},
{
"id": 7,
"type": "LoadImage",
"pos": [
-908.2207734812132,
819.0392260280028
],
"size": [
222.798828125,
329.1218985681479
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
18
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"Node name for S&R": "LoadImage",
"cnr_id": "comfy-core",
"ver": "0.29.0"
},
"widgets_values": [
"C.png",
"image"
],
"widgets_values_named": {
"image": "C.png",
"upload": "image"
}
},
{
"id": 1,
"type": "CreateList",
"pos": [
-619.6097220370318,
617.4692913742188
],
"size": [
140,
86
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"label": "input0",
"name": "inputs.input0",
"type": "*",
"link": 8
},
{
"name": "inputs.input1",
"shape": 7,
"type": "*",
"link": 17
},
{
"name": "inputs.input2",
"shape": 7,
"type": "*",
"link": 18
},
{
"name": "inputs.input3",
"shape": 7,
"type": "*",
"link": null
}
],
"outputs": [
{
"name": "list",
"shape": 6,
"type": "*",
"links": [
16
]
}
],
"properties": {
"Node name for S&R": "CreateList",
"cnr_id": "comfy-core",
"ver": "0.29.0"
},
"color": "#232",
"bgcolor": "#353"
},
{
"id": 12,
"type": "PreviewImage",
"pos": [
-439.6097220370311,
617.4692913742188
],
"size": [
535.9982800174616,
483.16886172800355
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 16
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": null
}
],
"properties": {
"Node name for S&R": "PreviewImage",
"cnr_id": "comfy-core",
"ver": "0.29.0"
},
"widgets_values": [],
"widgets_values_named": {}
}
],
"links": [
[
16,
1,
0,
12,
0,
"IMAGE"
],
[
8,
5,
0,
1,
0,
"IMAGE"
],
[
17,
6,
0,
1,
1,
"IMAGE"
],
[
18,
7,
0,
1,
2,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.7701008374412993,
"offset": [
1966.2948464512817,
-137.95058627774637
]
},
"frontendVersion": "1.53.6",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}
- Connecting a node adds another slot, so you can include as many items as needed.
Get Item From List Node
Retrieves one item at any position from a List.

{
"id": "21514ac1-a768-45b5-aad7-2f80aa417de2",
"revision": 0,
"last_node_id": 13,
"last_link_id": 20,
"nodes": [
{
"id": 5,
"type": "LoadImage",
"pos": [
-1436.067628024,
617.4692913742188
],
"size": [
222.798828125,
329.1218985681479
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
8
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"Node name for S&R": "LoadImage",
"cnr_id": "comfy-core",
"ver": "0.29.0"
},
"widgets_values": [
"A.png",
"image"
],
"widgets_values_named": {
"image": "A.png",
"upload": "image"
}
},
{
"id": 6,
"type": "LoadImage",
"pos": [
-1172.1442007526066,
717.2786559338588
],
"size": [
222.798828125,
329.1218985681479
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
17
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"Node name for S&R": "LoadImage",
"cnr_id": "comfy-core",
"ver": "0.29.0"
},
"widgets_values": [
"B.png",
"image"
],
"widgets_values_named": {
"image": "B.png",
"upload": "image"
}
},
{
"id": 7,
"type": "LoadImage",
"pos": [
-908.2207734812132,
819.0392260280028
],
"size": [
222.798828125,
329.1218985681479
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
18
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"Node name for S&R": "LoadImage",
"cnr_id": "comfy-core",
"ver": "0.29.0"
},
"widgets_values": [
"C.png",
"image"
],
"widgets_values_named": {
"image": "C.png",
"upload": "image"
}
},
{
"id": 1,
"type": "CreateList",
"pos": [
-619.6097220370318,
617.4692913742188
],
"size": [
140,
86
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"label": "input0",
"name": "inputs.input0",
"type": "*",
"link": 8
},
{
"name": "inputs.input1",
"shape": 7,
"type": "*",
"link": 17
},
{
"name": "inputs.input2",
"shape": 7,
"type": "*",
"link": 18
},
{
"name": "inputs.input3",
"shape": 7,
"type": "*",
"link": null
}
],
"outputs": [
{
"name": "list",
"shape": 6,
"type": "*",
"links": [
19
]
}
],
"properties": {
"Node name for S&R": "CreateList",
"cnr_id": "comfy-core",
"ver": "0.29.0"
}
},
{
"id": 12,
"type": "PreviewImage",
"pos": [
-199.61070887419146,
617.4692913742188
],
"size": [
535.9982800174616,
483.16886172800355
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 20
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": null
}
],
"properties": {
"Node name for S&R": "PreviewImage",
"cnr_id": "comfy-core",
"ver": "0.29.0"
},
"widgets_values": [],
"widgets_values_named": {}
},
{
"id": 13,
"type": "GetItemFromList",
"pos": [
-444.61021545561164,
617.4692913742188
],
"size": [
210,
58
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "list",
"type": "*",
"link": 19
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": [
20
]
}
],
"properties": {
"Node name for S&R": "GetItemFromList"
},
"widgets_values": [
1
],
"widgets_values_named": {
"index": 1
},
"color": "#232",
"bgcolor": "#353"
}
],
"links": [
[
8,
5,
0,
1,
0,
"IMAGE"
],
[
17,
6,
0,
1,
1,
"IMAGE"
],
[
18,
7,
0,
1,
2,
"IMAGE"
],
[
19,
1,
0,
13,
0,
"*"
],
[
20,
13,
0,
12,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.7701008374412996,
"offset": [
1749.5385048174653,
-108.03097926000567
]
},
"frontendVersion": "1.53.6",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}
index: Position to retrieve (0, 1, 2...)
Behavior when there are multiple Lists

{
"id": "8b9f7796-0873-4025-be3c-0f997f67f866",
"revision": 0,
"last_node_id": 18,
"last_link_id": 19,
"nodes": [
{
"id": 8,
"type": "VAEDecode",
"pos": [
1209,
188
],
"size": [
210,
46
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 7
},
{
"name": "vae",
"type": "VAE",
"link": 8
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
9
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.33",
"Node name for S&R": "VAEDecode"
},
"widgets_values": []
},
{
"id": 11,
"type": "LoadImage",
"pos": [
-230.63108516464496,
538.579562482285
],
"size": [
214.080078125,
314
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
13
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.73",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"A.png",
"image"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 12,
"type": "ImpactMakeAnyList",
"pos": [
506.077758208855,
538.579562482285
],
"size": [
140,
86
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "value1",
"shape": 7,
"type": "IMAGE",
"link": 13
},
{
"name": "value2",
"type": "IMAGE",
"link": 14
},
{
"name": "value3",
"type": "IMAGE",
"link": 15
},
{
"name": "value4",
"type": "IMAGE",
"link": null
}
],
"outputs": [
{
"label": "IMAGE",
"name": "IMAGE",
"shape": 6,
"type": "IMAGE",
"links": [
16
]
}
],
"properties": {
"cnr_id": "comfyui-impact-pack",
"ver": "61bd8397a18e7e7668e6a24e95168967768c2bed",
"Node name for S&R": "ImpactMakeAnyList"
},
"color": "#232",
"bgcolor": "#353"
},
{
"id": 14,
"type": "LoadImage",
"pos": [
242.6198576484819,
730.1944157431409
],
"size": [
214.080078125,
314
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
15
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.73",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"C.png",
"image"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 13,
"type": "LoadImage",
"pos": [
5.994386241918581,
634.386989112713
],
"size": [
214.080078125,
314
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
14
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.73",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"B.png",
"image"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 10,
"type": "VAEEncode",
"pos": [
675.4805324276258,
538.579562482285
],
"size": [
140,
46
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 16
},
{
"name": "vae",
"type": "VAE",
"link": 12
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
11
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.73",
"Node name for S&R": "VAEEncode"
}
},
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
483.3270416987081,
364.69378007508453
],
"size": [
323.9976236860739,
96.29525482928636
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 5
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
6
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.33",
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"text, watermark"
]
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
477.05706275735116,
200.68082365576754
],
"size": [
328.0087797224596,
103.0937246855816
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 3
},
{
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": 17
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
4
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.33",
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
""
]
},
{
"id": 4,
"type": "CheckpointLoaderSimple",
"pos": [
113.84045251244716,
286.1547875446273
],
"size": [
281.25567310954546,
98
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"slot_index": 0,
"links": [
1
]
},
{
"name": "CLIP",
"type": "CLIP",
"slot_index": 1,
"links": [
3,
5
]
},
{
"name": "VAE",
"type": "VAE",
"slot_index": 2,
"links": [
8,
12
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.33",
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"unrealworldUltra_v30.safetensors"
]
},
{
"id": 17,
"type": "PrimitiveStringMultiline",
"pos": [
-123.2226841888691,
-58.838507336815766
],
"size": [
304.8667065444441,
111.47507281602753
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
18
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.73",
"Node name for S&R": "PrimitiveStringMultiline"
},
"widgets_values": [
"a highly detailed, photorealistic red apple on a clean tabletop, soft studio lighting"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 18,
"type": "PrimitiveStringMultiline",
"pos": [
-125.92993284950396,
105.47817202607048
],
"size": [
307.974466801001,
103.74603730851743
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
19
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.73",
"Node name for S&R": "PrimitiveStringMultiline"
},
"widgets_values": [
"interior room with a large window, bright daylight, realistic blue sky and soft white clouds outside"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 9,
"type": "SaveImage",
"pos": [
1451,
189
],
"size": [
510.5443526170784,
583.2012868810157
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 9
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.33"
},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 3,
"type": "KSampler",
"pos": [
863,
186
],
"size": [
315,
262
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 1
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 4
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 6
},
{
"name": "latent_image",
"type": "LATENT",
"link": 11
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"slot_index": 0,
"links": [
7
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.33",
"Node name for S&R": "KSampler"
},
"widgets_values": [
1234,
"fixed",
20,
8,
"euler",
"normal",
0.7
]
},
{
"id": 15,
"type": "ImpactMakeAnyList",
"pos": [
249.83736766067386,
31.38059110066437
],
"size": [
140,
66
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "value1",
"shape": 7,
"type": "STRING",
"link": 18
},
{
"name": "value2",
"type": "STRING",
"link": 19
},
{
"name": "value3",
"type": "STRING",
"link": null
}
],
"outputs": [
{
"label": "STRING",
"name": "STRING",
"shape": 6,
"type": "STRING",
"links": [
17
]
}
],
"properties": {
"cnr_id": "comfyui-impact-pack",
"ver": "61bd8397a18e7e7668e6a24e95168967768c2bed",
"Node name for S&R": "ImpactMakeAnyList"
},
"color": "#232",
"bgcolor": "#353"
}
],
"links": [
[
1,
4,
0,
3,
0,
"MODEL"
],
[
3,
4,
1,
6,
0,
"CLIP"
],
[
4,
6,
0,
3,
1,
"CONDITIONING"
],
[
5,
4,
1,
7,
0,
"CLIP"
],
[
6,
7,
0,
3,
2,
"CONDITIONING"
],
[
7,
3,
0,
8,
0,
"LATENT"
],
[
8,
4,
2,
8,
1,
"VAE"
],
[
9,
8,
0,
9,
0,
"IMAGE"
],
[
11,
10,
0,
3,
3,
"LATENT"
],
[
12,
4,
2,
10,
1,
"VAE"
],
[
13,
11,
0,
12,
0,
"*"
],
[
14,
13,
0,
12,
1,
"IMAGE"
],
[
15,
14,
0,
12,
2,
"IMAGE"
],
[
16,
12,
0,
10,
0,
"IMAGE"
],
[
17,
15,
0,
6,
1,
"STRING"
],
[
18,
17,
0,
15,
0,
"STRING"
],
[
19,
18,
0,
15,
1,
"STRING"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.6995330953034927,
"offset": [
330.63108516464496,
158.83850733681578
]
},
"frontendVersion": "1.30.6",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}
For example, let's consider the following situation in image2image:
- List of images: 3
- List of prompts: 2
At this time, you might think "3 x 2 = 6 images likely", but the actual behavior is "proceeding in step".
- 1st image x 1st prompt
- 2nd image x 2nd prompt
- 3rd image x 2nd prompt is reused
In other words, only 3 images are generated.