The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
{
"1": {
"class_type": "LoadImage",
"inputs": {
"image": "input.png"
},
"_meta": {
"title": "Photo (image)"
}
},
"2": {
"class_type": "LoadImageMask",
"inputs": {
"image": "mask.png",
"channel": "red"
},
"_meta": {
"title": "Load Mask (white = paint here)"
}
},
"3": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"1",
0
]
},
"_meta": {
"title": "Size to black out"
}
},
"4": {
"class_type": "EmptyImage",
"inputs": {
"width": [
"3",
0
],
"height": [
"3",
1
],
"batch_size": 1,
"color": 0
},
"_meta": {
"title": "Black"
}
},
"5": {
"class_type": "ImageCompositeMasked",
"inputs": {
"destination": [
"1",
0
],
"source": [
"4",
0
],
"x": 0,
"y": 0,
"resize_source": false,
"mask": [
"2",
0
]
},
"_meta": {
"title": "Black where the mask is white"
}
},
"6": {
"class_type": "ImageScaleToTotalPixels",
"inputs": {
"image": [
"5",
0
],
"upscale_method": "lanczos",
"megapixels": 1,
"resolution_steps": 16
},
"_meta": {
"title": "About 1 MP (the add-on's reference limit), sides on the 16-pixel grid"
}
},
"7": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"6",
0
]
},
"_meta": {
"title": "Output size = the reference"
}
},
"10": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "krea2_turbo_fp8_scaled.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model (Krea 2 Turbo)"
}
},
"11": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "qwen3vl_4b_fp8_scaled.safetensors",
"type": "krea2",
"device": "default"
},
"_meta": {
"title": "Load CLIP (Qwen3-VL 4B, krea2)"
}
},
"12": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "qwen_image_vae.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"15": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"model": [
"10",
0
],
"lora_name": "krea2_inpaint_edit.safetensors",
"strength_model": 1
},
"_meta": {
"title": "Load LoRA (Krea 2 inpaint edit)"
}
},
"16": {
"class_type": "Krea2OstrisEditModelPatch",
"inputs": {
"model": [
"15",
0
],
"kv_cache": true
},
"_meta": {
"title": "Krea 2 Ostris Edit Model Patch (kv_cache on)"
}
},
"20": {
"class_type": "TextEncodeKrea2OstrisEdit",
"inputs": {
"clip": [
"11",
0
],
"vae": [
"12",
0
],
"image1": [
"6",
0
],
"prompt": "A small wooden boat sailing toward the island."
},
"_meta": {
"title": "What goes in the black area"
}
},
"21": {
"class_type": "ConditioningZeroOut",
"inputs": {
"conditioning": [
"20",
0
]
},
"_meta": {
"title": "Conditioning Zero Out (cfg 1)"
}
},
"22": {
"class_type": "EmptyLatentImage",
"inputs": {
"width": [
"7",
0
],
"height": [
"7",
1
],
"batch_size": 1
},
"_meta": {
"title": "Empty Latent Image"
}
},
"23": {
"class_type": "KSampler",
"inputs": {
"model": [
"16",
0
],
"positive": [
"20",
0
],
"negative": [
"21",
0
],
"latent_image": [
"22",
0
],
"seed": 0,
"steps": 8,
"cfg": 1,
"sampler_name": "euler_ancestral",
"scheduler": "simple",
"denoise": 1
},
"_meta": {
"title": "KSampler"
}
},
"24": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"23",
0
],
"vae": [
"12",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"29": {
"class_type": "SaveImage",
"inputs": {
"images": [
"24",
0
],
"filename_prefix": "fuobe/krea2-inpaint"
},
"_meta": {
"title": "Save Image"
}
}
}