{
  "id": "3553f15e-3722-496c-935d-a62cefd45226",
  "revision": 0,
  "last_node_id": 4,
  "last_link_id": 2,
  "nodes": [
    {
      "id": 1,
      "type": "SpicyAPI_LoRA",
      "pos": [
        30,
        100
      ],
      "size": [
        330,
        180
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [
        {
          "name": "loras",
          "shape": 7,
          "type": "SPICY_LORAS",
          "link": null
        },
        {
          "name": "url",
          "type": "STRING",
          "widget": {
            "name": "url"
          },
          "link": null
        },
        {
          "name": "scale",
          "type": "FLOAT",
          "widget": {
            "name": "scale"
          },
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "loras",
          "type": "SPICY_LORAS",
          "links": [
            1
          ]
        }
      ],
      "title": "1 \u00b7 Add a Z-Image Turbo LoRA URL",
      "properties": {
        "Node name for S&R": "SpicyAPI_LoRA"
      },
      "widgets_values": [
        "REPLACE_WITH_PUBLIC_Z_IMAGE_TURBO_LORA_URL",
        1
      ],
      "widgets_values_named": {
        "url": "REPLACE_WITH_PUBLIC_Z_IMAGE_TURBO_LORA_URL",
        "scale": 1
      }
    },
    {
      "id": 2,
      "type": "SpicyAPI_alibaba_z_image_turbo_lora_text_to_image",
      "pos": [
        430,
        100
      ],
      "size": [
        410,
        380
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [
        {
          "name": "prompt",
          "type": "STRING",
          "widget": {
            "name": "prompt"
          },
          "link": null
        },
        {
          "name": "aspect_ratio",
          "type": "COMBO",
          "widget": {
            "name": "aspect_ratio"
          },
          "link": null
        },
        {
          "name": "loras",
          "type": "SPICY_LORAS",
          "link": 1,
          "shape": 7
        },
        {
          "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": "task id",
          "type": "STRING",
          "links": null
        }
      ],
      "title": "2 \u00b7 Write prompt and LoRA trigger (required)",
      "properties": {
        "Node name for S&R": "SpicyAPI_alibaba_z_image_turbo_lora_text_to_image"
      },
      "widgets_values": [
        "",
        "3:4",
        "png",
        42,
        "fixed"
      ],
      "widgets_values_named": {
        "prompt": "",
        "aspect_ratio": "3:4",
        "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/lora-image"
      ]
    },
    {
      "id": 4,
      "type": "Note",
      "pos": [
        430,
        -260
      ],
      "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, add your key in Settings > SpicyAPI, and set a positive Max cost per run (for example $0.05). This graph has one hosted model node.\n\nPaste a direct, public .safetensors URL made for Z-Image Turbo in SpicyAPI LoRA. Set its strength (start at 1), then write a prompt with the LoRA trigger word. Replace the URL placeholder and fill the blank prompt. The URL placeholder is rejected locally before a model quote, so it cannot run with the default weights configuration.\n\nOne LoRA is connected; chain up to three total for this model. A LoRA for Qwen, FLUX or Z-Image Base is a different base. The host loads the weights; a local ComfyUI file path is not a download URL. The model returns one 3:4 PNG. Save Image writes it locally. Use seed 42 fixed for comparisons; change it for a new variation."
      ]
    }
  ],
  "links": [
    [
      1,
      1,
      0,
      2,
      2,
      "SPICY_LORAS"
    ],
    [
      2,
      2,
      0,
      3,
      0,
      "IMAGE"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "spicyapi": {
      "models": [
        "alibaba/z-image-turbo-lora/text-to-image"
      ],
      "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
}
