{
  "id": "b23b93cd-4319-4cc9-a712-c2e552b65451",
  "revision": 0,
  "last_node_id": 4,
  "last_link_id": 2,
  "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 Choose your reference image",
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "",
        "image"
      ]
    },
    {
      "id": 2,
      "type": "SpicyAPI_alibaba_qwen_image_2_1_edit",
      "pos": [
        430,
        100
      ],
      "size": [
        410,
        380
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [
        {
          "name": "prompt",
          "type": "STRING",
          "widget": {
            "name": "prompt"
          },
          "link": null
        },
        {
          "name": "image_urls.image_0",
          "label": "image_0",
          "type": "IMAGE",
          "link": 1
        },
        {
          "name": "image_urls.image_1",
          "label": "image_1",
          "type": "IMAGE",
          "shape": 7,
          "link": null
        },
        {
          "name": "mask_url",
          "type": "IMAGE",
          "link": null,
          "shape": 7
        },
        {
          "name": "aspect_ratio",
          "type": "COMBO",
          "widget": {
            "name": "aspect_ratio"
          },
          "link": null
        },
        {
          "name": "resolution",
          "type": "COMBO",
          "widget": {
            "name": "resolution"
          },
          "link": null
        },
        {
          "name": "enable_prompt_expansion",
          "type": "BOOLEAN",
          "widget": {
            "name": "enable_prompt_expansion"
          },
          "link": null
        },
        {
          "name": "background",
          "type": "COMBO",
          "widget": {
            "name": "background"
          },
          "link": null
        },
        {
          "name": "output_format",
          "type": "COMBO",
          "widget": {
            "name": "output_format"
          },
          "link": null
        },
        {
          "name": "seed",
          "type": "INT",
          "widget": {
            "name": "seed"
          },
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": [
            2
          ]
        },
        {
          "name": "alpha",
          "type": "MASK",
          "links": null
        },
        {
          "name": "task id",
          "type": "STRING",
          "links": null
        }
      ],
      "title": "2 \u00b7 Describe the edit (required)",
      "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": 3,
      "type": "SaveImage",
      "pos": [
        930,
        100
      ],
      "size": [
        330,
        270
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 2
        },
        {
          "name": "filename_prefix",
          "type": "STRING",
          "widget": {
            "name": "filename_prefix"
          },
          "link": null
        }
      ],
      "outputs": [],
      "title": "Save image to ComfyUI/output",
      "properties": {
        "Node name for S&R": "SaveImage"
      },
      "widgets_values": [
        "spicyapi/reference-edit"
      ]
    },
    {
      "id": 4,
      "type": "Note",
      "pos": [
        430,
        -250
      ],
      "size": [
        430,
        300
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Setup before running",
      "properties": {
        "Node name for S&R": "Note"
      },
      "widgets_values": [
        "Install comfyui-spicyapi 0.1.2 on ComfyUI with the V3 node API (the pack was tested with 0.39). Add your key in Settings > SpicyAPI and set a positive Max cost per run, for example $0.10. The limit applies to this one model node.\n\nChoose your own reference in Load Image and fill the blank prompt. Example: Keep the adult character\u2019s face and hairstyle; change the setting to a rooftop at dusk and the outfit to a red evening dress.\n\nQwen Image 2.1 edit: one reference, 1k, 3:4, PNG, prompt expansion off, seed 42 fixed. One quoted task. Save Image writes a local file in ComfyUI/output/spicyapi. Identity fidelity varies with the edit. A stop ends waiting, not an accepted job."
      ]
    }
  ],
  "links": [
    [
      1,
      1,
      0,
      2,
      1,
      "IMAGE"
    ],
    [
      2,
      2,
      0,
      3,
      0,
      "IMAGE"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "spicyapi": {
      "models": [
        "alibaba/qwen-image-2.1/edit"
      ],
      "plugin": "comfyui-spicyapi",
      "pluginVersion": "0.1.2",
      "setup": "Configure the API key and a positive per-node cost limit in Settings > SpicyAPI, then fill the blank required inputs. No key is stored in this workflow."
    }
  },
  "version": 0.4
}
