{
  "last_node_id": 12,
  "last_link_id": 12,
  "nodes": [
    {
      "id": 1,
      "type": "GenAssetLoadVersion",
      "pos": [
        -760,
        -120
      ],
      "size": [
        440,
        240
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [
        {
          "name": "base_url",
          "type": "STRING",
          "widget": {
            "name": "base_url"
          },
          "link": null
        },
        {
          "name": "workspace_token",
          "type": "STRING",
          "widget": {
            "name": "workspace_token"
          },
          "link": null
        },
        {
          "name": "asset_query",
          "type": "STRING",
          "widget": {
            "name": "asset_query"
          },
          "link": null
        },
        {
          "name": "version_id",
          "type": "STRING",
          "widget": {
            "name": "version_id"
          },
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "links": [
            1,
            2
          ],
          "slot_index": 0
        },
        {
          "name": "asset_id",
          "type": "STRING",
          "links": null,
          "slot_index": 1
        },
        {
          "name": "version_id",
          "type": "STRING",
          "links": null,
          "slot_index": 2
        },
        {
          "name": "workflow_json",
          "type": "STRING",
          "links": null,
          "slot_index": 3
        },
        {
          "name": "metadata_json",
          "type": "STRING",
          "links": null,
          "slot_index": 4
        },
        {
          "name": "status_json",
          "type": "STRING",
          "links": null,
          "slot_index": 5
        }
      ],
      "properties": {
        "Node name for S&R": "GenAssetLoadVersion"
      },
      "widgets_values": [
        "https://genasset.xyz",
        "PASTE_WORKSPACE_TOKEN",
        "PASTE_ASSET_NAME_OR_ID_HERE",
        ""
      ]
    },
    {
      "id": 2,
      "type": "PreviewImage",
      "pos": [
        -270,
        -180
      ],
      "size": [
        320,
        300
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 2
        }
      ],
      "outputs": [],
      "properties": {
        "Node name for S&R": "PreviewImage"
      },
      "widgets_values": []
    },
    {
      "id": 3,
      "type": "CheckpointLoaderSimple",
      "pos": [
        -760,
        250
      ],
      "size": [
        315,
        98
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [
        {
          "name": "ckpt_name",
          "type": "COMBO",
          "widget": {
            "name": "ckpt_name"
          },
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            3
          ],
          "slot_index": 0
        },
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            4,
            5
          ],
          "slot_index": 1
        },
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            6,
            7
          ],
          "slot_index": 2
        }
      ],
      "properties": {
        "Node name for S&R": "CheckpointLoaderSimple"
      },
      "widgets_values": [
        "juggernaut_reborn.safetensors"
      ]
    },
    {
      "id": 4,
      "type": "CLIPTextEncode",
      "pos": [
        -390,
        210
      ],
      "size": [
        420,
        180
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 4
        },
        {
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          },
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            8
          ],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "same subject reimagined as a cinematic studio portrait, natural face identity preserved, warm window light, realistic skin texture, detailed eyes, elegant wardrobe, soft bokeh, 50mm lens, high quality photorealistic edit"
      ]
    },
    {
      "id": 5,
      "type": "CLIPTextEncode",
      "pos": [
        -390,
        430
      ],
      "size": [
        420,
        140
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 5
        },
        {
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          },
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            9
          ],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "black image, low quality, blurry, distorted face, bad eyes, bad lips, bad teeth, text, watermark, logo, deformed, extra fingers, oversaturated, cartoon, anime"
      ]
    },
    {
      "id": 6,
      "type": "VAEEncode",
      "pos": [
        110,
        -10
      ],
      "size": [
        210,
        60
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 1
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 6
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            10
          ],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "VAEEncode"
      },
      "widgets_values": []
    },
    {
      "id": 7,
      "type": "KSampler",
      "pos": [
        110,
        210
      ],
      "size": [
        315,
        262
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 3
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 8
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 9
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 10
        },
        {
          "name": "seed",
          "type": "INT",
          "widget": {
            "name": "seed"
          },
          "link": null
        },
        {
          "name": "steps",
          "type": "INT",
          "widget": {
            "name": "steps"
          },
          "link": null
        },
        {
          "name": "cfg",
          "type": "FLOAT",
          "widget": {
            "name": "cfg"
          },
          "link": null
        },
        {
          "name": "sampler_name",
          "type": "COMBO",
          "widget": {
            "name": "sampler_name"
          },
          "link": null
        },
        {
          "name": "scheduler",
          "type": "COMBO",
          "widget": {
            "name": "scheduler"
          },
          "link": null
        },
        {
          "name": "denoise",
          "type": "FLOAT",
          "widget": {
            "name": "denoise"
          },
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            11
          ],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "KSampler"
      },
      "widgets_values": [
        760104,
        "fixed",
        18,
        7,
        "euler",
        "normal",
        0.55
      ]
    },
    {
      "id": 8,
      "type": "VAEDecode",
      "pos": [
        500,
        240
      ],
      "size": [
        210,
        60
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 11
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 7
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            12
          ],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "VAEDecode"
      },
      "widgets_values": []
    },
    {
      "id": 9,
      "type": "GenAssetSaveGeneration",
      "pos": [
        780,
        180
      ],
      "size": [
        430,
        260
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 12
        },
        {
          "name": "base_url",
          "type": "STRING",
          "widget": {
            "name": "base_url"
          },
          "link": null
        },
        {
          "name": "workspace_token",
          "type": "STRING",
          "widget": {
            "name": "workspace_token"
          },
          "link": null
        },
        {
          "name": "asset_name",
          "type": "STRING",
          "widget": {
            "name": "asset_name"
          },
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "links": [
            13,
            14
          ],
          "slot_index": 0
        },
        {
          "name": "asset_id",
          "type": "STRING",
          "links": null,
          "slot_index": 1
        },
        {
          "name": "version_id",
          "type": "STRING",
          "links": null,
          "slot_index": 2
        },
        {
          "name": "status_json",
          "type": "STRING",
          "links": null,
          "slot_index": 3
        }
      ],
      "properties": {
        "Node name for S&R": "GenAssetSaveGeneration"
      },
      "widgets_values": [
        "https://genasset.xyz",
        "PASTE_WORKSPACE_TOKEN",
        "PASTE_SAME_ASSET_NAME_FOR_NEW_VERSION"
      ]
    },
    {
      "id": 10,
      "type": "PreviewImage",
      "pos": [
        1280,
        20
      ],
      "size": [
        320,
        300
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 13
        }
      ],
      "outputs": [],
      "properties": {
        "Node name for S&R": "PreviewImage"
      },
      "widgets_values": []
    },
    {
      "id": 11,
      "type": "SaveImage",
      "pos": [
        1280,
        380
      ],
      "size": [
        260,
        270
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 14
        },
        {
          "name": "filename_prefix",
          "type": "STRING",
          "widget": {
            "name": "filename_prefix"
          },
          "link": null
        }
      ],
      "outputs": [],
      "properties": {
        "Node name for S&R": "SaveImage"
      },
      "widgets_values": [
        "GenAsset/woman_modern_cafe_img2img"
      ]
    },
    {
      "id": 12,
      "type": "MarkdownNote",
      "pos": [
        -760,
        650
      ],
      "size": [
        980,
        330
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "GenAsset SD1.5 load-from-asset img2img",
      "properties": {},
      "widgets_values": [
        "# GenAsset SD1.5 img2img example\n\nThis workflow replaces **Empty Latent Image** with **Load From GenAsset**. The loaded GenAsset preview is encoded with **VAE Encode**, edited through **KSampler** at denoise `0.55`, decoded, and saved back through **Save To GenAsset**.\n\nHow loading works:\n\n- Set `version_id` for one exact version.\n- Or leave `version_id` empty and set `asset_query` to load the current/latest version for that asset.\n- Or leave both empty to load the latest updated asset in the workspace.\n\nBefore running:\n\n1. Download `juggernaut_reborn.safetensors` from https://huggingface.co/HyperX-Sentience/Juggernaut-Reborn/tree/main\n2. Put it in `ComfyUI/models/checkpoints/`.\n3. Install ComfyUI-GenAsset and restart ComfyUI.\n4. Paste your GenAsset `workspace_token` into both GenAsset nodes.\n\nUse the same `asset_name` in **Save To GenAsset** when you want the edit to become the next version of the same asset."
      ]
    }
  ],
  "links": [
    [
      1,
      1,
      0,
      6,
      0,
      "IMAGE"
    ],
    [
      2,
      1,
      0,
      2,
      0,
      "IMAGE"
    ],
    [
      3,
      3,
      0,
      7,
      0,
      "MODEL"
    ],
    [
      4,
      3,
      1,
      4,
      0,
      "CLIP"
    ],
    [
      5,
      3,
      1,
      5,
      0,
      "CLIP"
    ],
    [
      6,
      3,
      2,
      6,
      1,
      "VAE"
    ],
    [
      7,
      3,
      2,
      8,
      1,
      "VAE"
    ],
    [
      8,
      4,
      0,
      7,
      1,
      "CONDITIONING"
    ],
    [
      9,
      5,
      0,
      7,
      2,
      "CONDITIONING"
    ],
    [
      10,
      6,
      0,
      7,
      3,
      "LATENT"
    ],
    [
      11,
      7,
      0,
      8,
      0,
      "LATENT"
    ],
    [
      12,
      8,
      0,
      9,
      0,
      "IMAGE"
    ],
    [
      13,
      9,
      0,
      10,
      0,
      "IMAGE"
    ],
    [
      14,
      9,
      0,
      11,
      0,
      "IMAGE"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.88,
      "offset": [
        860,
        120
      ]
    },
    "workflowRendererVersion": "LG"
  },
  "version": 0.4,
  "id": "genasset-sd15-load-from-genasset-img2img"
}
