{
  "id": "22c9f785-3432-4849-9e1c-1f69b6799a30",
  "revision": 0,
  "last_node_id": 5,
  "last_link_id": 3,
  "nodes": [
    {
      "id": 1,
      "type": "LoadImage",
      "pos": [
        30,
        100
      ],
      "size": [
        330,
        350
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "title": "1 \u00b7 Character reference A",
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "",
        "image"
      ]
    },
    {
      "id": 2,
      "type": "LoadImage",
      "pos": [
        30,
        450
      ],
      "size": [
        330,
        350
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            2
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "title": "2 \u00b7 Character reference B",
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "",
        "image"
      ]
    },
    {
      "id": 3,
      "type": "SpicyAPI_alibaba_qwen_image_2_1_edit",
      "pos": [
        430,
        100
      ],
      "size": [
        420,
        560
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [
        {
          "name": "prompt",
          "type": "STRING",
          "link": null,
          "widget": {
            "name": "prompt"
          }
        },
        {
          "name": "image_urls.image_0",
          "type": "IMAGE",
          "link": 1
        },
        {
          "name": "image_urls.image_1",
          "type": "IMAGE",
          "link": 2,
          "shape": 7
        },
        {
          "name": "mask_url",
          "type": "IMAGE",
          "link": null,
          "shape": 7
        },
        {
          "name": "aspect_ratio",
          "type": "COMBO",
          "link": null,
          "shape": 7,
          "widget": {
            "name": "aspect_ratio"
          }
        },
        {
          "name": "resolution",
          "type": "COMBO",
          "link": null,
          "shape": 7,
          "widget": {
            "name": "resolution"
          }
        },
        {
          "name": "enable_prompt_expansion",
          "type": "BOOLEAN",
          "link": null,
          "shape": 7,
          "widget": {
            "name": "enable_prompt_expansion"
          }
        },
        {
          "name": "background",
          "type": "COMBO",
          "link": null,
          "shape": 7,
          "widget": {
            "name": "background"
          }
        },
        {
          "name": "output_format",
          "type": "COMBO",
          "link": null,
          "shape": 7,
          "widget": {
            "name": "output_format"
          }
        },
        {
          "name": "seed",
          "type": "INT",
          "link": null,
          "shape": 7,
          "widget": {
            "name": "seed"
          }
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": [
            3
          ]
        },
        {
          "name": "alpha",
          "type": "MASK",
          "links": null
        },
        {
          "name": "task_id",
          "type": "STRING",
          "links": null
        }
      ],
      "title": "Compose two characters",
      "properties": {
        "Node name for S&R": "SpicyAPI_alibaba_qwen_image_2_1_edit"
      },
      "widgets_values": [
        "",
        "3:4",
        "1k",
        false,
        "opaque",
        "png",
        42,
        "fixed"
      ],
      "widgets_values_named": {
        "prompt": "",
        "aspect_ratio": "3:4",
        "resolution": "1k",
        "enable_prompt_expansion": false,
        "background": "opaque",
        "output_format": "png",
        "seed": 42,
        "control_after_generate": "fixed"
      }
    },
    {
      "id": 4,
      "type": "SaveImage",
      "pos": [
        910,
        100
      ],
      "size": [
        330,
        270
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 3
        },
        {
          "name": "filename_prefix",
          "type": "STRING",
          "widget": {
            "name": "filename_prefix"
          },
          "link": null
        }
      ],
      "outputs": [],
      "title": "Save edited image",
      "properties": {
        "Node name for S&R": "SaveImage"
      },
      "widgets_values": [
        "spicyapi/qwen-duo"
      ],
      "widgets_values_named": {
        "filename_prefix": "spicyapi/qwen-duo"
      }
    },
    {
      "id": 5,
      "type": "Note",
      "pos": [
        430,
        720
      ],
      "size": [
        430,
        300
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Setup before running",
      "properties": {
        "Node name for S&R": "Note"
      },
      "widgets_values": [
        "Install the SpicyAPI custom nodes and restart ComfyUI. Set your key in Settings > SpicyAPI; do not put keys in this shared file. Load authorized source images and fill the blank prompt before queuing. One hosted model task per execution. Set Max Cost Per Run in settings. Stopping the local wait does not cancel an accepted task: keep its task ID and check the console before resubmitting. Use clear fictional adult character references and describe what should change and what should stay."
      ]
    }
  ],
  "links": [
    [
      1,
      1,
      0,
      3,
      1,
      "IMAGE"
    ],
    [
      2,
      2,
      0,
      3,
      2,
      "IMAGE"
    ],
    [
      3,
      3,
      0,
      4,
      0,
      "IMAGE"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.8,
      "offset": [
        60,
        30
      ]
    },
    "spicyapi": {
      "models": [
        "alibaba/qwen-image-2.1/edit"
      ],
      "plugin": "comfyui-spicyapi",
      "setup": "https://spicyapi.ai/comfyui",
      "template_version": 1
    }
  },
  "version": 0.4
}
