{
  "id": "2ee16805-adba-4637-bb51-b5bec59fb813",
  "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 Starting image",
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "",
        "image"
      ]
    },
    {
      "id": 2,
      "type": "SpicyAPI_bytedance_seedream_5_0_pro_edit",
      "pos": [
        430,
        100
      ],
      "size": [
        420,
        560
      ],
      "flags": {},
      "order": 1,
      "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": 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": "output_format",
          "type": "COMBO",
          "link": null,
          "shape": 7,
          "widget": {
            "name": "output_format"
          }
        },
        {
          "name": "background",
          "type": "COMBO",
          "link": null,
          "shape": 7,
          "widget": {
            "name": "background"
          }
        },
        {
          "name": "enable_thinking",
          "type": "BOOLEAN",
          "link": null,
          "shape": 7,
          "widget": {
            "name": "enable_thinking"
          }
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": [
            2
          ]
        },
        {
          "name": "alpha",
          "type": "MASK",
          "links": null
        },
        {
          "name": "task_id",
          "type": "STRING",
          "links": null
        }
      ],
      "title": "Seedream 5 Pro \u00b7 edit",
      "properties": {
        "Node name for S&R": "SpicyAPI_bytedance_seedream_5_0_pro_edit"
      },
      "widgets_values": [
        "",
        "auto",
        "1k",
        "png",
        "opaque",
        true
      ],
      "widgets_values_named": {
        "prompt": "",
        "aspect_ratio": "auto",
        "resolution": "1k",
        "output_format": "png",
        "background": "opaque",
        "enable_thinking": true
      }
    },
    {
      "id": 3,
      "type": "SaveImage",
      "pos": [
        910,
        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 edited image",
      "properties": {
        "Node name for S&R": "SaveImage"
      },
      "widgets_values": [
        "spicyapi/seedream-edit"
      ],
      "widgets_values_named": {
        "filename_prefix": "spicyapi/seedream-edit"
      }
    },
    {
      "id": 4,
      "type": "Note",
      "pos": [
        430,
        720
      ],
      "size": [
        430,
        300
      ],
      "flags": {},
      "order": 3,
      "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,
      2,
      1,
      "IMAGE"
    ],
    [
      2,
      2,
      0,
      3,
      0,
      "IMAGE"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.8,
      "offset": [
        60,
        30
      ]
    },
    "spicyapi": {
      "models": [
        "bytedance/seedream-5.0-pro/edit"
      ],
      "plugin": "comfyui-spicyapi",
      "setup": "https://spicyapi.ai/comfyui",
      "template_version": 1
    }
  },
  "version": 0.4
}
