Spaces:
Running on Zero
Running on Zero
File size: 22,682 Bytes
8a28a8d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 | # Complete Feature & Chain Definitions Configuration for MCP Tools
# Every chain injector in chain_injectors/ corresponds 1-to-1 with an entry here (21 injectors total).
lora:
chains: lora
display_name: "LoRA Fine-tuning Injector"
description: "Injects LoRA weights into UNet/DiT model and CLIP text encoder for custom style, character, or domain adaptation."
supported_tasks:
- txt2img
- img2img
- inpaint
- outpaint
- hires_fix
max_count: 5
usage_guideline: "Specify source ('Civitai' or 'Hugging Face'), then provide the lora_value (Civitai Version ID or HF repo path), and a single scale value (0.0~2.0) that controls both model and clip strength simultaneously."
parameters_schema:
type: object
properties:
source:
type: string
enum: ["Civitai", "Hugging Face"]
description: "Download source for the LoRA model. Use 'Civitai' to download by Version ID, or 'Hugging Face' to download by repo path."
lora_value:
type: string
description: "For Civitai: the Version ID (e.g., '456' from civitai.com/models/123?modelVersionId=456). For Hugging Face: repo_id/filename.extension or repo_id/folder_path/filename.extension (e.g., 'lightx2v/Qwen-Image-Lightning/Qwen-Image-Lightning-4steps-V2.0-bf16.safetensors')."
scale:
type: number
default: 1.0
minimum: 0.0
maximum: 2.0
description: "Unified strength applied to both the UNet/DiT model and CLIP text encoder (0.0 to 2.0)."
required:
- source
- lora_value
ipadapter:
chains: ipadapter
display_name: "IP-Adapter Image Prompt"
description: "Uses reference images to guide generation style, composition, structure, or face appearance without prompt text restrictions (SD1.5 & SDXL)."
supported_tasks:
- txt2img
- img2img
- inpaint
- outpaint
- hires_fix
max_count: 5
usage_guideline: "Supply global settings (preset, embeds_scaling, combine_method, final_weight) and up to 5 reference images with individual weights. Preset must match the target model architecture (SD1.5 or SDXL)."
parameters_schema:
type: object
properties:
image:
type: string
description: "Reference image encoded as Base64 Data URI (e.g., data:image/png;base64,...) or HTTP/HTTPS URL."
weight:
type: number
default: 1.0
minimum: 0.0
maximum: 2.0
description: "Influence weight of the individual image prompt (0.0 to 2.0)."
preset:
type: string
default: "STANDARD (medium strength)"
description: "IPAdapter preset model variant loaded from ipadapter.yaml. Must match model architecture (SD1.5 vs SDXL)."
embeds_scaling:
type: string
default: "V only"
enum:
- "V only"
- "K+V"
- "K+V w/ C penalty"
- "K+mean(V) w/ C penalty"
description: "Embedding scaling method for IPAdapter."
combine_method:
type: string
default: "concat"
enum:
- "concat"
- "add"
- "subtract"
- "average"
- "norm average"
- "max"
- "min"
description: "Combination method for multiple reference images."
final_weight:
type: number
default: 1.0
minimum: 0.0
maximum: 2.0
description: "Global weight multiplier for IPAdapter conditioning (0.0 to 2.0)."
lora_strength:
type: number
default: 0.6
description: "LoRA weight strength for FaceID adapter variants."
required:
- image
controlnet:
chains: controlnet
display_name: "ControlNet Spatial Guidance"
description: "Applies structural and spatial conditioning (depth, pose, lineart, tile, scribble, canny) to guide output composition."
supported_tasks:
- txt2img
- img2img
- inpaint
- outpaint
- hires_fix
max_count: 5
usage_guideline: "Specify ControlNet type and series (must match requested model architecture e.g., SD1.5, SDXL, SD3.5, FLUX.1, Qwen-Image), pre-processed control image (Base64 Data URI or HTTP/HTTPS URL; system does NOT pre-process raw RGB images), and guidance strength."
parameters_schema:
type: object
properties:
type:
type: string
description: "ControlNet conditioning type (must match model architecture)."
series:
type: string
description: "ControlNet model series (must match model architecture)."
image:
type: string
description: "Pre-processed control image (e.g., Depth, Canny, Pose, Lineart map) encoded as Base64 Data URI or HTTP/HTTPS URL. Note: System does NOT automatically pre-process raw RGB images."
strength:
type: number
default: 1.0
minimum: 0.0
maximum: 2.0
description: "Control influence strength (0.0 to 2.0)."
required:
- type
- series
- image
conditioning:
chains: conditioning
display_name: "Regional Conditioning / Area Prompt"
description: "Defines rectangular areas (X, Y, Width, Height) and assigns specific text prompts and conditioning strengths to them."
supported_tasks:
- txt2img
- img2img
- inpaint
- outpaint
- hires_fix
max_count: 10
usage_guideline: "Define rectangular spatial areas (X, Y, width, height) and assign specific prompts and strengths to them. Supports up to 10 area prompts."
parameters_schema:
type: object
properties:
prompt:
type: string
description: "Text prompt for this specific rectangular area."
x:
type: integer
default: 0
description: "Top-left X coordinate of the rectangular area."
y:
type: integer
default: 0
description: "Top-left Y coordinate of the rectangular area."
width:
type: integer
default: 512
description: "Width of the rectangular area."
height:
type: integer
default: 512
description: "Height of the rectangular area."
strength:
type: number
default: 1.0
minimum: 0.1
maximum: 2.0
description: "Conditioning strength for this area (0.1 to 2.0)."
required:
- prompt
vae:
chains: vae
display_name: "Custom VAE Loader"
description: "Overrides default VAE model used for latent space encoding and final image decoding."
supported_tasks:
- txt2img
- img2img
- inpaint
- outpaint
- hires_fix
max_count: 1
usage_guideline: "Specify source ('Civitai' or 'Hugging Face'), then provide the vae_value (Civitai Version ID or HF file path)."
parameters_schema:
type: object
properties:
source:
type: string
enum: ["Civitai", "Hugging Face"]
description: "Download source for the VAE model. Use 'Civitai' to download by Version ID, or 'Hugging Face' to download by repo path."
vae_value:
type: string
description: "For Civitai: the Version ID (e.g., '456' from civitai.com/models/123?modelVersionId=456). For Hugging Face: repo_id/filename.extension or repo_id/folder_path/filename.extension (e.g., 'madebyollin/sdxl-vae-fp16-fix/sdxl_vae.safetensors')."
required:
- source
- vae_value
pid:
chains: pid
display_name: "PiD High-Resolution Refinement"
description: "Progressive Detail (PiD) upscale injector for fine detail enhancement and resolution upscaling."
supported_tasks:
- txt2img
max_count: 1
usage_guideline: "Enables PiD detail refinement pipeline using a boolean switch ('enabled': true/false)."
parameters_schema:
type: object
properties:
enabled:
type: boolean
default: true
description: "Enable or disable PiD High-Resolution Refinement."
required:
- enabled
flux1_style:
chains: style
display_name: "FLUX.1 Style Reference"
description: "Applies artistic style conditioning from reference images onto FLUX.1 model generated outputs."
supported_tasks:
- txt2img
- img2img
- inpaint
- outpaint
- hires_fix
max_count: 5
usage_guideline: "Supply style reference image(s) (up to 5) encoded as Base64 Data URI or HTTP/HTTPS URL and optional strength."
parameters_schema:
type: object
properties:
image:
type: string
description: "Style reference image encoded as Base64 Data URI or HTTP/HTTPS URL."
strength:
type: number
default: 1.0
minimum: 0.0
maximum: 2.0
description: "Style influence strength (0.0 to 2.0)."
required:
- image
reference_edit:
chains: reference_latent
display_name: "Reference Edit"
description: "For multimodal models, this feature enables powerful editing and combining capabilities. In txt2img mode, adding a single reference image performs an Image Edit, while adding multiple images performs an Image Combine."
supported_tasks:
- txt2img
max_count: 10
usage_guideline: "Supply reference image(s) encoded as Base64 Data URI or HTTP/HTTPS URL. Passing a single reference image performs an Image Edit, while passing multiple images (up to 10) performs an Image Combine."
parameters_schema:
type: object
properties:
image:
type: string
description: "Reference image encoded as Base64 Data URI or HTTP/HTTPS URL."
required:
- image
mage_flow_reference_edit:
chains: reference_image
display_name: "Mage-Flow Reference Edit"
description: " (Mage-Flow-Edit-Turbo/Mage-Flow-Edit recommended) For multimodal models, this feature enables powerful editing and combining capabilities. In txt2img mode, adding a single reference image performs an Image Edit, while adding multiple images performs an Image Combine."
supported_tasks:
- txt2img
max_count: 10
usage_guideline: "Supply reference image as Base64 Data URI or HTTP/HTTPS URL."
parameters_schema:
type: object
properties:
image:
type: string
description: "Reference image encoded as Base64 Data URI or HTTP/HTTPS URL."
required:
- image
krea2_identity_edit:
chains: krea2_identity_edit
display_name: "KREA2 Identity Edit"
description: "Processed using the lbouaraba/comfyui-krea2edit node. (Krea-2-Turbo recommended, Krea-2-Raw need set ZeroGPU Duration (s) to 120 ) In txt2img mode, adding a single reference image performs an Image Edit, while adding multiple images performs an Image Combine."
supported_tasks:
- txt2img
max_count: 2
usage_guideline: "Supply reference image as Base64 Data URI or HTTP/HTTPS URL."
parameters_schema:
type: object
properties:
image:
type: string
description: "Reference image encoded as Base64 Data URI or HTTP/HTTPS URL."
required:
- image
krea2_style_reference:
chains: krea2_style_reference
display_name: "KREA2 Style Reference"
description: "(Krea-2-Turbo recommended) Add style reference images to perform style reference editing."
supported_tasks:
- txt2img
max_count: 3
usage_guideline: "Supply style reference image as Base64 Data URI or HTTP/HTTPS URL."
parameters_schema:
type: object
properties:
image:
type: string
description: "Style reference image encoded as Base64 Data URI or HTTP/HTTPS URL."
required:
- image
diffsynth_controlnet:
chains: diffsynth_controlnet
display_name: "DiffSynth ControlNet"
description: "DiffSynth optimized ControlNet injector for Z-Image models."
supported_tasks:
- txt2img
- img2img
- inpaint
- outpaint
- hires_fix
max_count: 5
usage_guideline: "Supply ControlNet type (e.g., 'Canny'), series (e.g., 'alibaba-pai Controlnet Union 2.1 8steps'), pre-processed control image (Base64 Data URI or HTTP/HTTPS URL; system does NOT pre-process raw RGB images), and optional strength."
parameters_schema:
type: object
properties:
type:
type: string
description: "ControlNet conditioning type."
series:
type: string
description: "ControlNet model series name."
image:
type: string
description: "Pre-processed control image (e.g., Depth map) encoded as Base64 Data URI or HTTP/HTTPS URL. Note: System does NOT automatically pre-process raw RGB images."
strength:
type: number
default: 1.0
description: "Control influence strength."
required:
- type
- series
- image
boogu_image_edit:
chains: boogu_image_edit
display_name: "Boogu-Image Edit"
description: " (Boogu-Image-Edit-Turbo/Boogu-Image-Edit recommended, Boogu-Image-Edit need set ZeroGPU Duration (s) to 120 ) In txt2img mode, adding a single reference image performs an Image Edit, while adding multiple images performs an Image Combine."
supported_tasks:
- txt2img
max_count: 10
usage_guideline: "Supply reference image as Base64 Data URI or HTTP/HTTPS URL."
parameters_schema:
type: object
properties:
image:
type: string
description: "Reference image encoded as Base64 Data URI or HTTP/HTTPS URL."
required:
- image
joyai_reference_edit:
chains: joyai_image
display_name: "JoyAI Reference Edit"
description: " (JoyAI-Image-Edit recommended) For multimodal models, this feature enables powerful editing and combining capabilities. In txt2img mode, adding a single reference image performs an Image Edit (JoyAI-Image-Edit recommended), while adding multiple images performs an Image Combine (JoyAI-Image-Edit-Plus recommended with ZeroGPU Duration (s) set to 120)."
supported_tasks:
- txt2img
max_count: 2
usage_guideline: "Supply JoyAI reference image as Base64 Data URI or HTTP/HTTPS URL."
parameters_schema:
type: object
properties:
image:
type: string
description: "Input reference image encoded as Base64 Data URI or HTTP/HTTPS URL."
required:
- image
qwen_image_edit:
chains: qwen_image_edit
display_name: "Qwen-Image Edit"
description: " (lightx2v/Qwen-Image-Edit-2511-Lightning recommended) In txt2img mode, adding a single reference image performs an Image Edit, while adding multiple images performs an Image Combine."
supported_tasks:
- txt2img
max_count: 3
usage_guideline: "Supply reference image(s) (up to 3) encoded as Base64 Data URI or HTTP/HTTPS URL. Passing a single reference image performs an Image Edit, while passing multiple images performs an Image Combine."
parameters_schema:
type: object
properties:
image:
type: string
description: "Reference image encoded as Base64 Data URI or HTTP/HTTPS URL."
required:
- image
hidream_o1_smoothing:
chains: hidream_o1_smoothing
display_name: "HiDream O1 Smoothing Injector"
description: "HiDream O1 detail smoothing and artifact reduction injector."
supported_tasks:
- txt2img
- img2img
- inpaint
- outpaint
- hires_fix
max_count: 1
usage_guideline: "Configures smoothing factor for HiDream models."
parameters_schema:
type: object
properties:
factor:
type: number
default: 0.5
description: "Smoothing intensity (0.0 to 1.0)."
required: []
krea2_controlnet:
chains: krea2_controlnet
display_name: "KREA2 ControlNet"
description: "Processed using the facok/comfyui-krea2-controlnet node."
supported_tasks:
- txt2img
- img2img
- inpaint
- outpaint
- hires_fix
max_count: 5
usage_guideline: "Supply ControlNet type (e.g., 'Depth'), series (e.g., 'Patil'), pre-processed control image (Base64 Data URI or HTTP/HTTPS URL; system does NOT pre-process raw RGB images), and optional strength."
parameters_schema:
type: object
properties:
type:
type: string
enum:
- "Depth"
description: "ControlNet conditioning type."
series:
type: string
enum:
- "Patil"
default: "Patil"
description: "ControlNet model series."
image:
type: string
description: "Pre-processed control image (e.g., Depth map) encoded as Base64 Data URI or HTTP/HTTPS URL. Note: System does NOT automatically pre-process raw RGB images."
strength:
type: number
default: 1.0
minimum: 0.0
maximum: 2.0
description: "Control influence strength (0.0 to 2.0)."
required:
- type
- series
- image
anima_controlnet_lllite:
chains: anima_controlnet_lllite
display_name: "Anima ControlNet LLLite"
description: "Anima model-specific lightweight ControlNet."
supported_tasks:
- txt2img
- img2img
- inpaint
- outpaint
- hires_fix
max_count: 5
usage_guideline: "Supply Anima ControlNet LLLite type (e.g., 'Depth'), series (e.g., 'kohya-ss'), pre-processed control image (Base64 Data URI or HTTP/HTTPS URL; system does NOT pre-process raw RGB images), and optional strength."
parameters_schema:
type: object
properties:
type:
type: string
description: "Anima ControlNet LLLite conditioning type."
series:
type: string
description: "Anima ControlNet LLLite model series."
image:
type: string
description: "Pre-processed control image (e.g., Depth, Lineart map) encoded as Base64 Data URI or HTTP/HTTPS URL. Note: System does NOT automatically pre-process raw RGB images."
strength:
type: number
default: 1.0
minimum: 0.0
maximum: 2.0
description: "Control influence strength (0.0 to 2.0)."
required:
- type
- series
- image
hidream_o1_reference:
chains: hidream_o1_reference
display_name: "HiDream-O1 Reference Edit"
description: " (HiDream-O1-Image-Dev recommended with resolution set to 4.0MP, e.g., 2048x2048) For HiDream-O1 models, this feature enables reference image editing and combining capabilities. In txt2img mode, adding a single reference image performs an Image Edit, while adding multiple images performs an Image Combine."
supported_tasks:
- txt2img
max_count: 10
usage_guideline: "Supply reference image(s) (up to 10) encoded as Base64 Data URI or HTTP/HTTPS URL. Passing a single reference image performs an Image Edit, while passing multiple images performs an Image Combine."
parameters_schema:
type: object
properties:
image:
type: string
description: "Reference image encoded as Base64 Data URI or HTTP/HTTPS URL."
required:
- image
flux1_ipadapter:
chains: flux1_ipadapter
display_name: "Flux1 IP-Adapter"
description: "FLUX.1 model-specific IP-Adapter implementation."
supported_tasks:
- txt2img
- img2img
- inpaint
- outpaint
- hires_fix
max_count: 5
usage_guideline: "Supply reference image (Base64 Data URI or HTTP/HTTPS URL), optional weight (default 1.0), start_at (default 0.0), and end_at (default 1.0). Up to 5 images supported."
parameters_schema:
type: object
properties:
image:
type: string
description: "Reference image encoded as Base64 Data URI or HTTP/HTTPS URL."
weight:
type: number
default: 1.0
description: "Influence weight of the image prompt (0.0 to 2.0)."
start_at:
type: number
default: 0.0
description: "Start step percentage for IP-Adapter application (0.0 to 1.0)."
end_at:
type: number
default: 1.0
description: "End step percentage for IP-Adapter application (0.0 to 1.0)."
start_percent:
type: number
default: 0.0
description: "Alias for start_at."
end_percent:
type: number
default: 1.0
description: "Alias for end_at."
required:
- image
sd3_ipadapter:
chains: sd3_ipadapter
display_name: "SD3 IP-Adapter"
description: "SD3/SD3.5 model-specific IP-Adapter implementation."
supported_tasks:
- txt2img
- img2img
- inpaint
- outpaint
- hires_fix
max_count: 5
usage_guideline: "Supply reference image (Base64 Data URI or HTTP/HTTPS URL), optional weight (default 1.0), start_at (default 0.0), and end_at (default 1.0). Up to 5 images supported."
parameters_schema:
type: object
properties:
image:
type: string
description: "Reference image encoded as Base64 Data URI or HTTP/HTTPS URL."
weight:
type: number
default: 1.0
description: "Influence weight of the image prompt (0.0 to 2.0)."
start_at:
type: number
default: 0.0
description: "Start step percentage for IP-Adapter application (0.0 to 1.0)."
end_at:
type: number
default: 1.0
description: "End step percentage for IP-Adapter application (0.0 to 1.0)."
start_percent:
type: number
default: 0.0
description: "Alias for start_at."
end_percent:
type: number
default: 1.0
description: "Alias for end_at."
required:
- image
embedding:
chains: embedding
display_name: "Textual Inversion Embedding Injector"
description: "Downloads Textual Inversion embedding files from Civitai or Hugging Face to the server. Note: This feature ONLY handles file downloading/preparation. To activate the embedding, manually add 'embedding:<filename>' (e.g. 'embedding:civitai_456' for Civitai ID 456, or 'embedding:filename' for Hugging Face) into your prompt or negative_prompt."
supported_tasks:
- txt2img
- img2img
- inpaint
- outpaint
- hires_fix
max_count: 5
usage_guideline: "Specify source ('Civitai' or 'Hugging Face'), and embedding_value (Civitai Version ID or HF repo file path). The file is downloaded to server; manually enter 'embedding:<filename>' in prompt or negative_prompt to activate."
parameters_schema:
type: object
properties:
source:
type: string
enum:
- "Civitai"
- "Hugging Face"
description: "Download source for the Textual Inversion embedding file. Use 'Civitai' to download by Version ID, or 'Hugging Face' to download by repo file path."
embedding_value:
type: string
description: "For Civitai: the Version ID (e.g., '456' from civitai.com/models/123?modelVersionId=456, saved as 'civitai_456.safetensors'). For Hugging Face: repo_id/filename.extension (e.g., 'ilikebigturtles/lazypos/lazypos.safetensors', saved as 'lazypos.safetensors'). Manually reference embedding:<filename> in prompt or negative_prompt."
required:
- source
- embedding_value
|