Skip to content
Back to workflow

Qwen Image 2.1 reference editing: raw JSON

Keep your AI character consistent with Qwen Image 2.1: add up to 10 reference images and a prompt. Free ComfyUI reference editing workflow.

22 KB · JSON file

{
  "id": "2b3efc74-680f-49c8-9b03-448132505514",
  "revision": 0,
  "last_node_id": 48,
  "last_link_id": 81,
  "nodes": [
    {
      "id": 13,
      "type": "CLIPLoader",
      "pos": [
        -962.4069875587525,
        353.51583431347586
      ],
      "size": [
        270,
        106
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "slot_index": 0,
          "links": [
            70,
            74
          ]
        }
      ],
      "title": "CLIP Loader",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "Node name for S&R": "CLIPLoader",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "7.8",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "qwen3vl_8b_int8_convrot.safetensors",
        "qwen_image",
        "default"
      ],
      "widgets_values_named": {
        "clip_name": "qwen3vl_8b_int8_convrot.safetensors",
        "type": "qwen_image",
        "device": "default"
      },
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 4,
      "type": "VAELoader",
      "pos": [
        -958.5305268595047,
        562.0118898502056
      ],
      "size": [
        270,
        79
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "slot_index": 0,
          "links": [
            66
          ]
        }
      ],
      "title": "VAE Loader",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "Node name for S&R": "VAELoader",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "7.8",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "qwen_image_2.1_vae_bf16.safetensors"
      ],
      "widgets_values_named": {
        "vae_name": "qwen_image_2.1_vae_bf16.safetensors"
      },
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 2,
      "type": "KSampler",
      "pos": [
        1698.4953332192658,
        235.4154997223658
      ],
      "size": [
        270,
        339
      ],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 80
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 76
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 75
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 81
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "slot_index": 0,
          "links": [
            2
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "Node name for S&R": "KSampler",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "7.8",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        265398718852109,
        "randomize",
        25,
        1,
        "euler",
        "simple",
        1
      ],
      "widgets_values_named": {
        "seed": 265398718852109,
        "control_after_generate": "randomize",
        "steps": 25,
        "cfg": 1,
        "sampler_name": "euler",
        "scheduler": "simple",
        "denoise": 1
      }
    },
    {
      "id": 3,
      "type": "VAEDecode",
      "pos": [
        1758.5474820557552,
        188.79437994702997
      ],
      "size": [
        225,
        71
      ],
      "flags": {
        "collapsed": true
      },
      "order": 15,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 2
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 67
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "slot_index": 0,
          "links": [
            39
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "Node name for S&R": "VAEDecode",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "7.8",
          "input_ue_unconnectable": {}
        }
      }
    },
    {
      "id": 15,
      "type": "SaveImage",
      "pos": [
        2037.9782609010501,
        -45.089169403578
      ],
      "size": [
        840.6722656250001,
        861.468359375
      ],
      "flags": {},
      "order": 16,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 39
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.25.0",
        "Node name for S&R": "SaveImage",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": [
        "ComfyUI"
      ],
      "widgets_values_named": {
        "filename_prefix": "ComfyUI"
      }
    },
    {
      "id": 10,
      "type": "EmptyLatentImage",
      "pos": [
        63.261062855111774,
        541.3279957386352
      ],
      "size": [
        258.8139204545454,
        106
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "slot_index": 0,
          "links": [
            81
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "Node name for S&R": "EmptyLatentImage",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "7.8",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        2048,
        2048,
        1
      ],
      "widgets_values_named": {
        "width": 2048,
        "height": 2048,
        "batch_size": 1
      },
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 1,
      "type": "UNETLoader",
      "pos": [
        -965.9537021188913,
        171.93958466085198
      ],
      "size": [
        282.24981964175936,
        82
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "slot_index": 0,
          "links": [
            46
          ]
        }
      ],
      "title": "Diffusion Model Loader",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "Node name for S&R": "UNETLoader",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "7.8",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "qwen_image_2.1_int8_convrot.safetensors",
        "default"
      ],
      "widgets_values_named": {
        "unet_name": "qwen_image_2.1_int8_convrot.safetensors",
        "weight_dtype": "default"
      },
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 34,
      "type": "Power Lora Loader (rgthree)",
      "pos": [
        -588.8688053788611,
        180.48489492387358
      ],
      "size": [
        340.519921875,
        118
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "dir": 3,
          "name": "model",
          "type": "MODEL",
          "link": 46
        },
        {
          "dir": 3,
          "name": "clip",
          "type": "CLIP",
          "link": 74
        }
      ],
      "outputs": [
        {
          "dir": 4,
          "name": "MODEL",
          "shape": 3,
          "type": "MODEL",
          "links": [
            79
          ]
        },
        {
          "dir": 4,
          "name": "CLIP",
          "shape": 3,
          "type": "CLIP",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "rgthree-comfy",
        "ver": "35c9f1e186603ba312d3b15350e89aa50b860ee6",
        "Show Strengths": "Single Strength",
        "Match": ""
      },
      "widgets_values": [
        {},
        {
          "type": "PowerLoraLoaderHeaderWidget"
        },
        {},
        ""
      ],
      "widgets_values_named": {
        "divider": {},
        "PowerLoraLoaderHeaderWidget": {
          "type": "PowerLoraLoaderHeaderWidget"
        },
        "divider#1": {},
        "➕ Add Lora": ""
      }
    },
    {
      "id": 35,
      "type": "MarkdownNote",
      "pos": [
        -195.59507958581838,
        534.7081165275888
      ],
      "size": [
        228.07430753297012,
        124.0504073529487
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Qwen Resolutions",
      "properties": {
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "7.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        ""
      ],
      "widgets_values_named": {
        "text": ""
      },
      "color": "#233",
      "bgcolor": "#355"
    },
    {
      "id": 37,
      "type": "QwenImageReferencePack",
      "pos": [
        388.3560582802076,
        115.47457761444481
      ],
      "size": [
        800,
        581
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "image_1",
          "type": "IMAGE",
          "links": [
            54
          ]
        },
        {
          "name": "image_2",
          "type": "IMAGE",
          "links": [
            55
          ]
        },
        {
          "name": "image_3",
          "type": "IMAGE",
          "links": [
            56
          ]
        },
        {
          "name": "image_4",
          "type": "IMAGE",
          "links": [
            57
          ]
        },
        {
          "name": "image_5",
          "type": "IMAGE",
          "links": [
            58
          ]
        },
        {
          "name": "image_6",
          "type": "IMAGE",
          "links": [
            59
          ]
        },
        {
          "name": "image_7",
          "type": "IMAGE",
          "links": [
            60
          ]
        },
        {
          "name": "image_8",
          "type": "IMAGE",
          "links": [
            61
          ]
        },
        {
          "name": "image_9",
          "type": "IMAGE",
          "links": [
            62
          ]
        },
        {
          "name": "image_10",
          "type": "IMAGE",
          "links": [
            63
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "QwenImageReferencePack"
      },
      "widgets_values": [
        "{\"references\":[]}",
        2048,
        ""
      ],
      "widgets_values_named": {
        "references_json": "{\"references\":[]}",
        "max_reference_edge": 2048,
        "mmrp_block": ""
      }
    },
    {
      "id": 39,
      "type": "TextEncodeQwenImage21",
      "pos": [
        1247.197775157257,
        177.6039184931199
      ],
      "size": [
        400,
        446
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 73
        },
        {
          "name": "images.image_1",
          "shape": 7,
          "type": "IMAGE",
          "link": 54
        },
        {
          "name": "vae",
          "shape": 7,
          "type": "VAE",
          "link": 69
        },
        {
          "name": "prompt",
          "type": "STRING",
          "widget": {
            "name": "prompt"
          },
          "link": 78
        },
        {
          "name": "images.image_6",
          "shape": 7,
          "type": "IMAGE",
          "link": 59
        },
        {
          "name": "images.image_7",
          "shape": 7,
          "type": "IMAGE",
          "link": 60
        },
        {
          "name": "images.image_8",
          "shape": 7,
          "type": "IMAGE",
          "link": 61
        },
        {
          "name": "images.image_9",
          "shape": 7,
          "type": "IMAGE",
          "link": 62
        },
        {
          "name": "images.image_10",
          "shape": 7,
          "type": "IMAGE",
          "link": 63
        },
        {
          "name": "images.image_11",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "images.image_12",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "images.image_2",
          "shape": 7,
          "type": "IMAGE",
          "link": 55
        },
        {
          "name": "images.image_3",
          "shape": 7,
          "type": "IMAGE",
          "link": 56
        },
        {
          "name": "images.image_4",
          "shape": 7,
          "type": "IMAGE",
          "link": 57
        },
        {
          "name": "images.image_5",
          "shape": 7,
          "type": "IMAGE",
          "link": 58
        }
      ],
      "outputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "links": [
            76
          ]
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "links": [
            75
          ]
        },
        {
          "name": "latent",
          "type": "LATENT",
          "links": []
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.36.0",
        "Node name for S&R": "TextEncodeQwenImage21"
      },
      "widgets_values": [
        "prompt",
        "prompt",
        1024
      ],
      "widgets_values_named": {
        "prompt": "prompt",
        "negative_prompt": "prompt",
        "resolution": 1024
      }
    },
    {
      "id": 40,
      "type": "SetNode",
      "pos": [
        -871.8355659220048,
        687.0200148502055
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "link": 66
        }
      ],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": null
        }
      ],
      "title": "Set_VAE",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": "VAE"
      },
      "widgets_values": [
        "VAE"
      ],
      "widgets_values_named": {
        "Constant": "VAE"
      },
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 41,
      "type": "GetNode",
      "pos": [
        1269.578551018383,
        136.99326667390545
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 6,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            67,
            69
          ]
        }
      ],
      "title": "Get_VAE",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "VAE"
      ],
      "widgets_values_named": {
        "Constant": "VAE"
      },
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 43,
      "type": "SetNode",
      "pos": [
        -873.8842602860253,
        506.70475476802125
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "link": 70
        }
      ],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": null
        }
      ],
      "title": "Set_CLIP",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": "CLIP"
      },
      "widgets_values": [
        "CLIP"
      ],
      "widgets_values_named": {
        "Constant": "CLIP"
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 46,
      "type": "GetNode",
      "pos": [
        1416.512405839075,
        136.77295258402896
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 7,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            73
          ]
        }
      ],
      "title": "Get_CLIP",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "CLIP"
      ],
      "widgets_values_named": {
        "Constant": "CLIP"
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 47,
      "type": "PrimitiveStringMultiline",
      "pos": [
        -130.6266990344385,
        190.10047041441442
      ],
      "size": [
        400,
        200
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            78
          ]
        }
      ],
      "title": "Your Prompt Here",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.30.1",
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "prompt"
      ],
      "widgets_values_named": {
        "value": "prompt"
      },
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 48,
      "type": "QwenImage21Cache",
      "pos": [
        1729.243783180823,
        136.60228788750865
      ],
      "size": [
        270,
        90
      ],
      "flags": {
        "collapsed": true
      },
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 79
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            80
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.36.0",
        "Node name for S&R": "QwenImage21Cache"
      },
      "widgets_values": [
        "auto",
        "default"
      ],
      "widgets_values_named": {
        "device": "auto",
        "dtype": "default"
      }
    }
  ],
  "links": [
    [
      2,
      2,
      0,
      3,
      0,
      "LATENT"
    ],
    [
      39,
      3,
      0,
      15,
      0,
      "IMAGE"
    ],
    [
      46,
      1,
      0,
      34,
      0,
      "MODEL"
    ],
    [
      66,
      4,
      0,
      40,
      0,
      "VAE"
    ],
    [
      67,
      41,
      0,
      3,
      1,
      "VAE"
    ],
    [
      70,
      13,
      0,
      43,
      0,
      "CLIP"
    ],
    [
      74,
      13,
      0,
      34,
      1,
      "CLIP"
    ],
    [
      75,
      39,
      1,
      2,
      2,
      "CONDITIONING"
    ],
    [
      76,
      39,
      0,
      2,
      1,
      "CONDITIONING"
    ],
    [
      79,
      34,
      0,
      48,
      0,
      "MODEL"
    ],
    [
      80,
      48,
      0,
      2,
      0,
      "MODEL"
    ],
    [
      73,
      46,
      0,
      39,
      0,
      "CLIP"
    ],
    [
      54,
      37,
      0,
      39,
      1,
      "IMAGE"
    ],
    [
      69,
      41,
      0,
      39,
      2,
      "VAE"
    ],
    [
      78,
      47,
      0,
      39,
      3,
      "STRING"
    ],
    [
      59,
      37,
      5,
      39,
      4,
      "IMAGE"
    ],
    [
      60,
      37,
      6,
      39,
      5,
      "IMAGE"
    ],
    [
      61,
      37,
      7,
      39,
      6,
      "IMAGE"
    ],
    [
      62,
      37,
      8,
      39,
      7,
      "IMAGE"
    ],
    [
      63,
      37,
      9,
      39,
      8,
      "IMAGE"
    ],
    [
      55,
      37,
      1,
      39,
      11,
      "IMAGE"
    ],
    [
      56,
      37,
      2,
      39,
      12,
      "IMAGE"
    ],
    [
      57,
      37,
      3,
      39,
      13,
      "IMAGE"
    ],
    [
      58,
      37,
      4,
      39,
      14,
      "IMAGE"
    ],
    [
      81,
      10,
      0,
      2,
      3,
      "LATENT"
    ]
  ],
  "groups": [
    {
      "id": 2,
      "title": "Model Loaders",
      "bounding": [
        -1012.1326713122367,
        81.02451946395514,
        379.8971523437501,
        636.1604296875003
      ],
      "color": "#3f789e",
      "flags": {}
    },
    {
      "id": 3,
      "title": "LoRA Loaders",
      "bounding": [
        -615.5356052611004,
        79.2076036258871,
        379.8971523437501,
        636.1604296875003
      ],
      "color": "#3f789e",
      "flags": {}
    },
    {
      "id": 4,
      "title": "Settings",
      "bounding": [
        -221.02069048837194,
        82.66676555770516,
        582.8874999999998,
        625.8921875000001
      ],
      "color": "#3f789e",
      "flags": {}
    },
    {
      "id": 5,
      "title": "Sampling",
      "bounding": [
        1213.8549181053763,
        57.10638040145497,
        790.6207812499997,
        635.5562890625004
      ],
      "color": "#3f789e",
      "flags": {}
    }
  ],
  "config": {},
  "extra": {
    "ds": {
      "scale": 1.1,
      "offset": [
        1201.5390444298814,
        64.6178088932664
      ]
    },
    "ue_links": [],
    "links_added_by_ue": [],
    "frontendVersion": "1.53.6",
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4
}