Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
feat(Model Support): add Krea-2-Turbo/Raw model + LoRA support (WIP) (#9304)
Alexander Eichhorn1aeb05bbf044
diff --git a/README.md b/README.mdindex 0fcc86426c..53f01cf756 100644--- a/README.md+++ b/README.md@@ -72,6 +72,7 @@ Invoke features an organized gallery system for easily storing, accessing, and r- Flux.2 Klein 9B- Z-Image Turbo- Z-Image Base+- Krea 2 Turbo- Anima- Qwen Image- Qwen Image Editdiff --git a/docs/src/content/docs/features/krea-2.mdx b/docs/src/content/docs/features/krea-2.mdxnew file mode 100644index 0000000000..755a8581d4--- /dev/null+++ b/docs/src/content/docs/features/krea-2.mdx@@ -0,0 +1,71 @@+---+title: Krea-2+description: Generate images with the Krea-2 text-to-image models (Turbo and Raw), including the GGUF / single-file workflow and the conditioning enhancers.+lastUpdated: 2026-07-13+sidebar:+ order: 5+---++Krea-2 is a ~12B single-stream diffusion-transformer text-to-image family. InvokeAI supports both+published checkpoints:++- **Krea-2-Turbo** — distilled for fast, low-step generation. Runs at **8 steps** with **CFG disabled**+ (CFG Scale `1.0`). This is the recommended checkpoint for everyday use.+- **Krea-2-Raw** — the undistilled base checkpoint. Runs at **more steps (~28)** with **CFG enabled**+ (CFG Scale ~`5.5`, equivalent to the reference pipeline's guidance `4.5`) and supports negative prompts. It is primarily intended as a base for+ finetuning / LoRA training, but full inference is supported.++The variant is detected automatically on install, and selecting a Krea-2 model sets sensible defaults+(steps, CFG, 1024×1024) for that variant.++## Hardware++Krea-2 is a large model. See the [System Requirements](../../start-here/system-requirements) table for+details. In short, on a 24 GB card enable **FP8** in the model's Default Settings to fit 1024² (with a+LoRA). For lower VRAM, use a **GGUF** transformer (Q4_K ≈ 12 GB total).++## Installing++The easiest path is the **Krea-2 launchpad bundle** in the Model Manager, which installs the models and+their dependencies together.++Krea-2 needs three components:++| Component | Diffusers install | GGUF / single-file install |+| ----------------------- | ----------------------- | ------------------------------------ |+| Transformer | bundled in the pipeline | the `.gguf` / single-file checkpoint |+| VAE (Qwen-Image) | bundled | installed separately |+| Text encoder (Qwen3-VL) | bundled | installed separately |++- **Diffusers** (e.g. `krea/Krea-2-Turbo`, `krea/Krea-2-Raw`): a single ~26 GB install that bundles the+ VAE and text encoder. Nothing else is required.+- **GGUF / single-file**: the checkpoint ships **only the transformer**. You must also install a+ standalone **Qwen-Image VAE** and a **Qwen3-VL encoder** (both included in the launchpad bundle).++When you select a GGUF/single-file Krea-2 model, InvokeAI auto-selects an installed VAE and Qwen3-VL+encoder if you have them. If none are installed, you'll be prompted to pick them (in the model dropdowns)+before you can generate. Selecting a Diffusers Krea-2 model clears those standalone selections and uses+the bundled components.++:::note[Qwen3-VL encoder download]+Single-file Qwen3-VL encoders bundle only the weights. The tokenizer/config are fetched once from+HuggingFace (`Qwen/Qwen3-VL-4B-Instruct`) on first use, then cached for offline use. A single-file fp8+encoder is kept resident in fp8 (roughly half the VRAM of the bf16 encoder).+:::++## Conditioning enhancers++Two optional, off-by-default toggles are available under **Advanced Options** (below CFG Scale). They+transform the text conditioning and are especially useful for the distilled Turbo checkpoint:++- **Conditioning Rebalance** — per-layer weighting of the text embedding to improve prompt adherence.+- **Seed Variance Enhancer** — injects controlled noise into the conditioning to restore per-seed+ diversity (the distilled model otherwise produces near-identical images across seeds), trading some+ prompt adherence for variety.++Both are recorded in image metadata and can be recalled.++## LoRA++Krea-2 LoRAs (diffusers PEFT format) are supported and apply to both the transformer and — where the+LoRA includes text-encoder layers — the Qwen3-VL encoder.diff --git a/docs/src/content/docs/start-here/system-requirements.mdx b/docs/src/content/docs/start-here/system-requirements.mdxindex 44b366dbb3..f43c3b84c1 100644--- a/docs/src/content/docs/start-here/system-requirements.mdx+++ b/docs/src/content/docs/start-here/system-requirements.mdx@@ -29,6 +29,7 @@ The requirements below are rough guidelines for best performance. GPUs with less| FLUX.2 Klein 4B | 1024x1024 | Nvidia 30xx+ | 12GB | 16GB | FP8 works with 8GB+; Diffusers + encoder || FLUX.2 Klein 9B | 1024x1024 | Nvidia 40xx | 24GB | 32GB | FP8 works with 12GB+; Diffusers + encoder || Z-Image Turbo | 1024x1024 | Nvidia 20xx+ | 8GB | 16GB | Q4_K 8GB; Q8/BF16 16GB+ |+| Krea-2 (Turbo / Raw) | 1024x1024 | Nvidia 40xx | 24GB | 32GB | FP8 works with 16GB+; GGUF Q4_K ~12GB. Diffusers ~26GB; GGUF needs a standalone VAE + Qwen3-VL encoder || Wan 2.2 A14B (T2V/I2V) | 1280x720 | Nvidia 30xx+ | 12GB | 32GB | Dual-expert MoE; Q4_K_M 12GB; Q8 18GB+; Diffusers requires 32GB+ || Wan 2.2 TI2V-5B | 1280x720 | Nvidia 20xx+ | 8GB | 16GB | Single transformer; Q4_K_M 6GB+; Q8 8GB+; Diffusers 12GB+ |diff --git a/invokeai/app/api/dependencies.py b/invokeai/app/api/dependencies.pyindex 87f4f0d190..e49f2242d7 100644--- a/invokeai/app/api/dependencies.py+++ b/invokeai/app/api/dependencies.py@@ -66,6 +66,7 @@ from invokeai.backend.stable_diffusion.diffusion.conditioning_data import (ConditioningFieldData,FLUXConditioningInfo,Ideogram4ConditioningInfo,+ Krea2ConditioningInfo,QwenImageConditioningInfo,SD3ConditioningInfo,SDXLConditioningInfo,@@ -166,6 +167,7 @@ class ApiDependencies:ZImageConditioningInfo,Ideogram4ConditioningInfo,QwenImageConditioningInfo,+ Krea2ConditioningInfo,AnimaConditioningInfo,WanConditioningInfo,],diff --git a/invokeai/app/invocations/fields.py b/invokeai/app/invocations/fields.pyindex aef95b40b6..f0d567b219 100644--- a/invokeai/app/invocations/fields.py+++ b/invokeai/app/invocations/fields.py@@ -157,6 +157,7 @@ class FieldDescriptions:t5_encoder = "T5 tokenizer and text encoder"glm_encoder = "GLM (THUDM) tokenizer and text encoder"qwen3_encoder = "Qwen3 tokenizer and text encoder"+ qwen3_vl_encoder = "Qwen3-VL tokenizer and text encoder"clip_embed_model = "CLIP Embed loader"clip_g_model = "CLIP-G Embed loader"unet = "UNet (scheduler, LoRAs)"@@ -173,6 +174,7 @@ class FieldDescriptions:sd3_model = "SD3 model (MMDiTX) to load"cogview4_model = "CogView4 model (Transformer) to load"z_image_model = "Z-Image model (Transformer) to load"+ krea2_model = "Krea-2 model (Transformer) to load"qwen_image_model = "Qwen Image Edit model (Transformer) to load"qwen_vl_encoder = "Qwen2.5-VL tokenizer, processor and text/vision encoder"wan_model = "Wan 2.2 model (Transformer) to load"@@ -366,6 +368,12 @@ class QwenImageConditioningField(BaseModel):conditioning_name: str = Field(description="The name of conditioning tensor")+class Krea2ConditioningField(BaseModel):+ """A Krea-2 conditioning tensor primitive value"""++ conditioning_name: str = Field(description="The name of conditioning tensor")++class AnimaConditioningField(BaseModel):"""An Anima conditioning tensor primitive value.diff --git a/invokeai/app/invocations/krea2_conditioning_rebalance.py b/invokeai/app/invocations/krea2_conditioning_rebalance.pynew file mode 100644index 0000000000..ab52a5033a--- /dev/null+++ b/invokeai/app/invocations/krea2_conditioning_rebalance.py@@ -0,0 +1,79 @@+import math++import torch++from invokeai.app.invocations.baseinvocation import BaseInvocation, Classification, invocation+from invokeai.app.invocations.fields import FieldDescriptions, Input, InputField, Krea2ConditioningField+from invokeai.app.invocations.primitives import Krea2ConditioningOutput+from invokeai.app.services.shared.invocation_context import InvocationContext+from invokeai.backend.krea2.sampling_utils import KREA2_SELECT_LAYERS+from invokeai.backend.stable_diffusion.diffusion.conditioning_data import (+ ConditioningFieldData,+ Krea2ConditioningInfo,+)++_NUM_TEXT_LAYERS = len(KREA2_SELECT_LAYERS) # 12+++@invocation(+ "krea2_conditioning_rebalance",+ title="Conditioning Rebalance - Krea-2",+ tags=["conditioning", "krea2", "krea-2"],+ category="conditioning",+ version="1.0.0",+ classification=Classification.Prototype,+)+class Krea2ConditioningRebalanceInvocation(BaseInvocation):+ """Per-layer rebalancing of Krea-2 text conditioning (improves prompt adherence).++ Krea-2 conditioning stacks 12 Qwen3-VL hidden-state layers per token. Weighting those layers+ individually (and applying an overall multiplier) lets you push the model harder toward the prompt,+ counteracting the quality-dilution from distillation. Ported from the ComfyUI+ `ConditioningKrea2Rebalance` node. This is an optional pass between the text encoder and denoise.+ """++ conditioning: Krea2ConditioningField = InputField(+ description=FieldDescriptions.cond, input=Input.Connection, title="Conditioning"+ )+ per_layer_weights: str = InputField(+ default="1.0,1.0,1.0,1.0,1.0,1.0,1.0,2.5,5.0,1.1,4.0,1.0",+ description=f"Comma-separated gains for the {_NUM_TEXT_LAYERS} tapped encoder layers (exactly "+ f"{_NUM_TEXT_LAYERS} values).",+ )+ multiplier: float = InputField(+ default=4.0,+ allow_inf_nan=False,+ description="Overall multiplier applied to the conditioning after per-layer weighting.",+ )++ def _parse_weights(self) -> list[float]:+ try:+ weights = [float(x.strip()) for x in self.per_layer_weights.split(",") if x.strip() != ""]+ except ValueError as e:+ raise ValueError(f"per_layer_weights must be comma-separated numbers: {e}") from e+ if len(weights) != _NUM_TEXT_LAYERS:+ raise ValueError(f"per_layer_weights must have exactly {_NUM_TEXT_LAYERS} values, got {len(weights)}.")+ if not all(math.isfinite(weight) for weight in weights):+ raise ValueError("per_layer_weights must contain only finite values.")+ return weights++ @torch.no_grad()+ def invoke(self, context: InvocationContext) -> Krea2ConditioningOutput:+ weights = self._parse_weights()++ cond_data = context.conditioning.load(self.conditioning.conditioning_name)+ assert len(cond_data.conditionings) == 1+ conditioning = cond_data.conditionings[0]+ assert isinstance(conditioning, Krea2ConditioningInfo)++ embeds = conditioning.prompt_embeds # (B, seq, 12, hidden)+ gains = torch.tensor(weights, dtype=embeds.dtype, device=embeds.device).view(1, 1, _NUM_TEXT_LAYERS, 1)+ embeds = embeds * gains * self.multiplier++ new_data = ConditioningFieldData(+ conditionings=[+ Krea2ConditioningInfo(prompt_embeds=embeds, prompt_embeds_mask=conditioning.prompt_embeds_mask)+ ]+ )+ conditioning_name = context.conditioning.save(new_data)+ return Krea2ConditioningOutput.build(conditioning_name)diff --git a/invokeai/app/invocations/krea2_denoise.py b/invokeai/app/invocations/krea2_denoise.pynew file mode 100644index 0000000000..c15aa60948--- /dev/null+++ b/invokeai/app/invocations/krea2_denoise.py@@ -0,0 +1,495 @@+import json+import math+from contextlib import ExitStack+from pathlib import Path+from typing import Callable, Iterator, Optional, Tuple++import torch+import torchvision.transforms as tv_transforms+from pydantic import field_validator+from torchvision.transforms.functional import resize as tv_resize+from tqdm import tqdm++from invokeai.app.invocations.baseinvocation import BaseInvocation, Classification, invocation+from invokeai.app.invocations.constants import LATENT_SCALE_FACTOR+from invokeai.app.invocations.fields import (+ DenoiseMaskField,+ FieldDescriptions,+ Input,+ InputField,+ Krea2ConditioningField,+ LatentsField,+ WithBoard,+ WithMetadata,+)+from invokeai.app.invocations.model import TransformerField+from invokeai.app.invocations.primitives import LatentsOutput+from invokeai.app.services.shared.invocation_context import InvocationContext+from invokeai.backend.krea2.attention import Krea2MemoryEfficientAttnProcessor+from invokeai.backend.krea2.sampling_utils import (+ KREA2_BASE_IMAGE_SEQ_LEN,+ KREA2_BASE_SHIFT,+ KREA2_DISTILLED_MU,+ KREA2_MAX_IMAGE_SEQ_LEN,+ KREA2_MAX_SHIFT,+ build_sigmas,+ calculate_shift,+ pack_latents,+ prepare_position_ids,+ unpack_latents,+)+from invokeai.backend.model_manager.taxonomy import BaseModelType, ModelFormat+from invokeai.backend.patches.layer_patcher import LayerPatcher+from invokeai.backend.patches.lora_conversions.krea2_lora_constants import KREA2_LORA_TRANSFORMER_PREFIX+from invokeai.backend.patches.model_patch_raw import ModelPatchRaw+from invokeai.backend.rectified_flow.rectified_flow_inpaint_extension import RectifiedFlowInpaintExtension+from invokeai.backend.stable_diffusion.diffusers_pipeline import PipelineIntermediateState+from invokeai.backend.stable_diffusion.diffusion.conditioning_data import Krea2ConditioningInfo+from invokeai.backend.util.devices import TorchDevice++# Krea-2 latent channels (Qwen-Image VAE z_dim). The packed transformer in_channels is 16 * patch_size**2 = 64.+KREA2_LATENT_CHANNELS = 16+++@invocation(+ "krea2_denoise",+ title="Denoise - Krea-2",+ tags=["image", "krea2", "krea-2"],+ category="image",+ version="1.0.0",+ classification=Classification.Prototype,+)+class Krea2DenoiseInvocation(BaseInvocation, WithMetadata, WithBoard):+ """Run the denoising process with a Krea-2 model."""++ # If latents is provided, this means we are doing image-to-image.+ latents: Optional[LatentsField] = InputField(+ default=None, description=FieldDescriptions.latents, input=Input.Connection+ )+ # denoise_mask is used for image-to-image inpainting. Only the masked region is modified.+ denoise_mask: Optional[DenoiseMaskField] = InputField(+ default=None, description=FieldDescriptions.denoise_mask, input=Input.Connection+ )+ denoising_start: float = InputField(default=0.0, ge=0, le=1, description=FieldDescriptions.denoising_start)+ denoising_end: float = InputField(default=1.0, ge=0, le=1, description=FieldDescriptions.denoising_end)+ transformer: TransformerField = InputField(+ description=FieldDescriptions.krea2_model, input=Input.Connection, title="Transformer"+ )+ positive_conditioning: Krea2ConditioningField = InputField(+ description=FieldDescriptions.positive_cond, input=Input.Connection+ )+ negative_conditioning: Optional[Krea2ConditioningField] = InputField(+ default=None, description=FieldDescriptions.negative_cond, input=Input.Connection+ )+ # CFG uses the standard formulation (uncond + cfg_scale*(cond-uncond)); cfg_scale <= 1 disables it.+ # Krea-2-Turbo is distilled and runs with CFG disabled (cfg_scale=1.0).+ cfg_scale: float | list[float] = InputField(default=1.0, description=FieldDescriptions.cfg_scale, title="CFG Scale")+ width: int = InputField(default=1024, gt=0, multiple_of=16, description="Width of the generated image.")+ height: int = InputField(default=1024, gt=0, multiple_of=16, description="Height of the generated image.")+ steps: int = InputField(default=8, gt=0, description=FieldDescriptions.steps)+ seed: int = InputField(default=0, description="Randomness seed for reproducibility.")+ shift: Optional[float] = InputField(+ default=None,+ description="Override the resolution-aware timestep shift (mu). Leave unset to use the model default "+ "(mu=1.15 for the distilled Turbo checkpoint).",+ )++ @field_validator("cfg_scale")+ @classmethod+ def validate_cfg_scale_is_finite(cls, value: float | list[float]) -> float | list[float]:+ values = value if isinstance(value, list) else [value]+ if not all(math.isfinite(item) for item in values):+ raise ValueError("cfg_scale values must be finite.")+ return value++ @field_validator("shift")+ @classmethod+ def validate_shift_is_finite(cls, value: float | None) -> float | None:+ if value is not None and not math.isfinite(value):+ raise ValueError("shift must be finite.")+ return value++ @torch.no_grad()+ def invoke(self, context: InvocationContext) -> LatentsOutput:+ latents = self._run_diffusion(context)+ latents = latents.detach().to("cpu")+ name = context.tensors.save(tensor=latents)+ return LatentsOutput.build(latents_name=name, latents=latents, seed=None)++ def _prep_inpaint_mask(self, context: InvocationContext, latents: torch.Tensor) -> torch.Tensor | None:+ if self.denoise_mask is None:+ return None+ mask = context.tensors.load(self.denoise_mask.mask_name)+ mask = 1.0 - mask+ _, _, latent_height, latent_width = latents.shape+ mask = tv_resize(+ img=mask,+ size=[latent_height, latent_width],+ interpolation=tv_transforms.InterpolationMode.BILINEAR,+ antialias=False,+ )+ mask = mask.to(device=latents.device, dtype=latents.dtype)+ return mask++ def _load_text_conditioning(+ self,+ context: InvocationContext,+ conditioning_name: str,+ dtype: torch.dtype,+ device: torch.device,+ ) -> tuple[torch.Tensor, torch.Tensor | None]:+ cond_data = context.conditioning.load(conditioning_name)+ assert len(cond_data.conditionings) == 1+ conditioning = cond_data.conditionings[0]+ assert isinstance(conditioning, Krea2ConditioningInfo)+ conditioning = conditioning.to(dtype=dtype, device=device)+ return conditioning.prompt_embeds, conditioning.prompt_embeds_mask++ def _get_noise(self, height: int, width: int, dtype: torch.dtype, device: torch.device, seed: int) -> torch.Tensor:+ rand_device = "cpu"+ return torch.randn(+ 1,+ KREA2_LATENT_CHANNELS,+ int(height) // LATENT_SCALE_FACTOR,+ int(width) // LATENT_SCALE_FACTOR,+ device=rand_device,+ dtype=torch.float32,+ generator=torch.Generator(device=rand_device).manual_seed(seed),+ ).to(device=device, dtype=dtype)++ def _prepare_cfg_scale(self, num_timesteps: int) -> list[float]:+ if isinstance(self.cfg_scale, float):+ return [self.cfg_scale] * num_timesteps+ if isinstance(self.cfg_scale, list):+ if len(self.cfg_scale) != num_timesteps:+ raise ValueError(+ f"cfg_scale list has {len(self.cfg_scale)} values but the model is configured for "+ f"{num_timesteps} steps. Provide one CFG value per configured step (or a single float)."+ )+ return self.cfg_scale+ raise ValueError(f"Invalid CFG scale type: {type(self.cfg_scale)}")++ @staticmethod+ def _should_apply_cfg_for_step(cfg_scale: float, *, has_negative_conditioning: bool) -> bool:+ return has_negative_conditioning and cfg_scale > 1.0++ @staticmethod+ def _validate_effective_schedule(*, start_idx: int, end_idx: int) -> None:+ if end_idx <= start_idx:+ raise ValueError(+ "The requested denoising range does not contain any effective denoising steps at the configured "+ "step count. Increase denoising_end, decrease denoising_start, or increase steps."+ )++ def _validate_inputs(self) -> None:+ if self.denoising_start >= self.denoising_end:+ raise ValueError("denoising_start must be less than denoising_end.")+ if self.denoise_mask is not None and self.latents is None:+ raise ValueError("Initial latents are required when a denoise mask is provided.")++ def _is_distilled(self, context: InvocationContext) -> bool:+ """Whether the transformer is the distilled Turbo checkpoint (fixed mu) vs. Raw (dynamic mu).++ Prefer the classified variant (works for diffusers, single-file and GGUF alike); fall back to+ the pipeline-level ``is_distilled`` flag in model_index.json, then default to distilled.++ A failed config lookup is a real error and is allowed to propagate — silently defaulting to the+ Turbo shift would apply the wrong sampling schedule to a Raw model.+ """+ from invokeai.backend.model_manager.taxonomy import Krea2VariantType++ config = context.models.get_config(self.transformer.transformer)+ variant = getattr(config, "variant", None)+ if variant is not None:+ return variant != Krea2VariantType.Base+ # No classified variant (unexpected for Krea-2) — fall back to the pipeline-level flag. Only a+ # missing/malformed model_index.json is tolerated here; it defaults to the distilled behavior.+ try:+ model_index = context.models.get_absolute_path(config) / "model_index.json"+ if model_index.is_file():+ with open(model_index) as f:+ return bool(json.load(f).get("is_distilled", False))+ except (OSError, ValueError):+ pass+ return True++ def _run_diffusion(self, context: InvocationContext):+ from diffusers.schedulers.scheduling_flow_match_euler_discrete import FlowMatchEulerDiscreteScheduler++ self._validate_inputs()++ device = TorchDevice.choose_torch_device()+ inference_dtype = TorchDevice.choose_bfloat16_safe_dtype(device)++ transformer_info = context.models.load(self.transformer.transformer)++ pos_prompt_embeds, pos_prompt_mask = self._load_text_conditioning(+ context, self.positive_conditioning.conditioning_name, inference_dtype, device+ )++ latent_height = self.height // LATENT_SCALE_FACTOR+ latent_width = self.width // LATENT_SCALE_FACTOR+ grid_height = latent_height // 2+ grid_width = latent_width // 2+ image_seq_len = grid_height * grid_width++ # Scheduler: load from the model's scheduler/ dir if present, else construct with Krea-2 defaults.+ model_path = context.models.get_absolute_path(context.models.get_config(self.transformer.transformer))+ scheduler_path = Path(model_path) / "scheduler"+ if scheduler_path.is_dir() and (scheduler_path / "scheduler_config.json").exists():+ scheduler = FlowMatchEulerDiscreteScheduler.from_pretrained(str(scheduler_path), local_files_only=True)+ else:+ scheduler = FlowMatchEulerDiscreteScheduler(+ use_dynamic_shifting=True,+ base_shift=0.5,+ max_shift=1.15,+ base_image_seq_len=256,+ max_image_seq_len=6400,+ num_train_timesteps=1000,+ time_shift_type="exponential",+ )++ if self.shift is not None:+ mu = self.shift+ elif self._is_distilled(context):+ mu = KREA2_DISTILLED_MU+ else:+ # Resolution-aware shift. Honor the loaded scheduler's config so a Raw checkpoint that ships a+ # customized scheduler_config.json is sampled with its own shift params, falling back to the+ # Krea-2 defaults for the stock scheduler (and for any field the config omits).+ mu = calculate_shift(+ image_seq_len,+ base_image_seq_len=getattr(scheduler.config, "base_image_seq_len", KREA2_BASE_IMAGE_SEQ_LEN),+ max_image_seq_len=getattr(scheduler.config, "max_image_seq_len", KREA2_MAX_IMAGE_SEQ_LEN),+ base_shift=getattr(scheduler.config, "base_shift", KREA2_BASE_SHIFT),+ max_shift=getattr(scheduler.config, "max_shift", KREA2_MAX_SHIFT),+ )++ init_sigmas = build_sigmas(self.steps)+ scheduler.set_timesteps(sigmas=init_sigmas, mu=mu, device=device)++ # Clip the schedule based on denoising_start/denoising_end for img2img strength.+ sigmas_sched = scheduler.sigmas # (N+1,) including terminal 0+ total_sigmas = len(sigmas_sched) - 1 # == self.steps+ is_clipped = self.denoising_start > 0 or self.denoising_end < 1+ start_idx = int(round(self.denoising_start * total_sigmas))+ end_idx = int(round(self.denoising_end * total_sigmas))+ self._validate_effective_schedule(start_idx=start_idx, end_idx=end_idx)+ if is_clipped:+ sigmas_sched = sigmas_sched[start_idx : end_idx + 1]+ timesteps_sched = sigmas_sched[:-1] * scheduler.config.num_train_timesteps+ else:+ timesteps_sched = scheduler.timesteps++ total_steps = len(timesteps_sched)++ # Build the CFG schedule against the FULL step count, then clip it to the active window. This way a+ # caller-supplied per-step CFG list (one value per configured step) survives the reduction caused+ # by denoising_start/denoising_end; a scalar is simply broadcast.+ full_cfg_scale = self._prepare_cfg_scale(total_sigmas)+ cfg_scale = full_cfg_scale[start_idx:end_idx] if is_clipped else full_cfg_scale++ # Load negative conditioning only if at least one active step actually uses CFG. CFG is still+ # decided per step below so values at or below 1.0 use the conditional prediction directly.+ has_negative_conditioning = self.negative_conditioning is not None+ do_cfg = has_negative_conditioning and any(value > 1.0 for value in cfg_scale)+ neg_prompt_embeds = None+ neg_prompt_mask = None+ if do_cfg and self.negative_conditioning is not None:+ neg_prompt_embeds, neg_prompt_mask = self._load_text_conditioning(+ context, self.negative_conditioning.conditioning_name, inference_dtype, device+ )++ # Load initial latents (img2img).+ init_latents = context.tensors.load(self.latents.latents_name) if self.latents else None+ if init_latents is not None:+ init_latents = init_latents.to(device=device, dtype=inference_dtype)+ if init_latents.dim() == 5:+ init_latents = init_latents.squeeze(2)++ noise = self._get_noise(self.height, self.width, inference_dtype, device, self.seed)++ if init_latents is not None:+ s_0 = sigmas_sched[0].item()+ latents = s_0 * noise + (1.0 - s_0) * init_latents+ else:+ if self.denoising_start > 1e-5:+ raise ValueError("denoising_start should be 0 when initial latents are not provided.")+ latents = noise++ # Pack latents into 2x2 patches: (B, C, H, W) -> (B, grid_h*grid_w, C*4).+ latents = pack_latents(latents, 1, KREA2_LATENT_CHANNELS, latent_height, latent_width)++ # Position ids: text tokens at origin, image tokens carry their grid coords.+ text_seq_len = pos_prompt_embeds.shape[1]+ position_ids = prepare_position_ids(text_seq_len, grid_height, grid_width, device)+ # The negative prompt can tokenize to a different length than the positive prompt, so it needs its+ # own position ids. Reusing the positive ids would leave the rotary embedding (text + image tokens)+ # a different length than the uncond query sequence and crash in the transformer's apply_rotary_emb.+ neg_position_ids = (+ prepare_position_ids(neg_prompt_embeds.shape[1], grid_height, grid_width, device)+ if neg_prompt_embeds is not None+ else None+ )++ # Inpaint extension operates in 4D, so unpack/repack around each merge.+ inpaint_mask = self._prep_inpaint_mask(context, noise)+ inpaint_extension: RectifiedFlowInpaintExtension | None = None+ if inpaint_mask is not None:+ assert init_latents is not None+ inpaint_extension = RectifiedFlowInpaintExtension(+ init_latents=init_latents, inpaint_mask=inpaint_mask, noise=noise+ )++ step_callback = self._build_step_callback(context)+ step_callback(+ PipelineIntermediateState(+ step=0,+ order=1,+ total_steps=total_steps,+ timestep=int(timesteps_sched[0].item()) if total_steps > 0 else 0,+ latents=unpack_latents(latents, latent_height, latent_width),+ ),+ )++ transformer_config = context.models.get_config(self.transformer.transformer)+ model_is_quantized = transformer_config.format in (ModelFormat.GGUFQuantized,)+ num_train_timesteps = scheduler.config.num_train_timesteps++ # Estimate the peak working memory (activations) the transformer forward needs and ask the model+ # cache to keep that much VRAM free. The cache offloads as much of the (resident) model to RAM as+ # required to honor this — only consequential at higher resolutions, where the activation footprint+ # over text+image tokens grows enough that a fully-resident ~12B model would otherwise leave no+ # headroom. Without this hint the cache reserves only the small default working memory and places+ # the model before LoRA patches are applied, so a model+LoRA combination that just fits the base+ # forward OOMs once the LoRA's extra activations are added.+ estimated_working_memory = self._estimate_working_memory(+ image_seq_len=image_seq_len,+ do_cfg=do_cfg,+ num_loras=len(self.transformer.loras),+ )++ with ExitStack() as exit_stack:+ (cached_weights, transformer) = exit_stack.enter_context(+ transformer_info.model_on_device(working_mem_bytes=estimated_working_memory)+ )++ # Krea-2 uses grouped-query attention (48 query / 12 KV heads). The stock attention processor asks+ # SDPA for enable_gqa=True, which PyTorch only supports on the math backend — that materializes the+ # full O(seq^2) score matrix (~5.7 GB per attention at 1280x720, ~40 GB at 2560x1440) and OOMs. Swap+ # in a memory-efficient processor that expands the KV heads and uses the O(seq) SDPA kernel instead.+ transformer.set_attn_processor(Krea2MemoryEfficientAttnProcessor())++ exit_stack.enter_context(+ LayerPatcher.apply_smart_model_patches(+ model=transformer,+ patches=self._lora_iterator(context),+ prefix=KREA2_LORA_TRANSFORMER_PREFIX,+ dtype=inference_dtype,+ cached_weights=cached_weights,+ force_sidecar_patching=model_is_quantized,+ )+ )++ for step_idx, t in enumerate(tqdm(timesteps_sched)):+ # The pipeline passes timestep / num_train_timesteps to the transformer.+ timestep = (t / num_train_timesteps).expand(latents.shape[0]).to(inference_dtype)++ noise_pred_cond = transformer(+ hidden_states=latents,+ encoder_hidden_states=pos_prompt_embeds,+ encoder_attention_mask=pos_prompt_mask,+ timestep=timestep,+ position_ids=position_ids,+ return_dict=False,+ )[0]++ if self._should_apply_cfg_for_step(+ cfg_scale[step_idx], has_negative_conditioning=neg_prompt_embeds is not None+ ):+ noise_pred_uncond = transformer(+ hidden_states=latents,+ encoder_hidden_states=neg_prompt_embeds,+ encoder_attention_mask=neg_prompt_mask,+ timestep=timestep,+ position_ids=neg_position_ids,+ return_dict=False,+ )[0]+ noise_pred = noise_pred_uncond + cfg_scale[step_idx] * (noise_pred_cond - noise_pred_uncond)+ else:+ noise_pred = noise_pred_cond++ # Euler step using the (possibly clipped) sigma schedule.+ sigma_curr = sigmas_sched[step_idx]+ sigma_next = sigmas_sched[step_idx + 1]+ dt = sigma_next - sigma_curr+ latents = latents.to(torch.float32) + dt * noise_pred.to(torch.float32)+ latents = latents.to(inference_dtype)++ if inpaint_extension is not None:+ sigma_next_f = sigmas_sched[step_idx + 1].item()+ latents_4d = unpack_latents(latents, latent_height, latent_width)+ latents_4d = inpaint_extension.merge_intermediate_latents_with_init_latents(+ latents_4d, sigma_next_f+ )+ latents = pack_latents(latents_4d, 1, KREA2_LATENT_CHANNELS, latent_height, latent_width)++ step_callback(+ PipelineIntermediateState(+ step=step_idx + 1,+ order=1,+ total_steps=total_steps,+ timestep=int(t.item()),+ latents=unpack_latents(latents, latent_height, latent_width),+ ),+ )++ # Unpack to 4D then add a frame dim for the Qwen-Image VAE: (B, C, 1, H, W).+ latents = unpack_latents(latents, latent_height, latent_width)+ latents = latents.unsqueeze(2)+ return latents++ def _estimate_working_memory(self, image_seq_len: int, do_cfg: bool, num_loras: int) -> int:+ """Estimate peak transformer activation memory (bytes) so the model cache reserves enough headroom.++ Krea-2's attention runs through diffusers' ``dispatch_attention_fn`` (SDPA / flash), so attention+ scores are never materialized and the activation footprint scales ~linearly with the image token+ count with a *small* per-token constant. The previous ~2.6 MiB/token figure assumed materialized+ O(seq^2) scores and massively over-estimated: at 2560x1440 (14400 tokens) it demanded ~36 GB, which+ exceeds a 24 GB card, so the cache offloaded the *transformer itself* to RAM and the forward pass ran+ from system memory over PCIe — no OOM, but effectively hung (no step in minutes).++ The per-token constant below is a safe upper bound on the measured SDPA activation footprint of the+ Krea-2-Turbo MMDiT in bf16 (residual stream + one block's attention/SwiGLU intermediates), leaving+ several GB of margin. A fixed base covers the resolution-independent overhead (transient fp8->bf16+ layerwise weight casts, the text-fusion stage, and allocator/reserved-memory slack). LoRA sidecar+ patches add a small extra activation branch per patched layer, so we add a per-LoRA margin.+ """+ GB = 1024**3+ MB = 1024**2+ per_token_bytes = int(0.5 * MB)+ estimated = image_seq_len * per_token_bytes+ estimated += int(1.5 * GB)+ if do_cfg:+ # Conditional/unconditional passes are sequential, but the larger combined sequence and extra+ # transient buffers warrant a modest bump.+ estimated = int(estimated * 1.1)+ if num_loras > 0:+ estimated += int(0.5 * num_loras * GB)+ return estimated++ def _build_step_callback(self, context: InvocationContext) -> Callable[[PipelineIntermediateState], None]:+ def step_callback(state: PipelineIntermediateState) -> None:+ context.util.sd_step_callback(state, BaseModelType.Krea2)++ return step_callback++ def _lora_iterator(self, context: InvocationContext) -> Iterator[Tuple[ModelPatchRaw, float]]:+ for lora in self.transformer.loras:+ lora_info = context.models.load(lora.lora)+ if not isinstance(lora_info.model, ModelPatchRaw):+ raise TypeError(+ f"Expected ModelPatchRaw for LoRA '{lora.lora.key}', got {type(lora_info.model).__name__}."+ )+ yield (lora_info.model, lora.weight)+ del lora_infodiff --git a/invokeai/app/invocations/krea2_lora_loader.py b/invokeai/app/invocations/krea2_lora_loader.pynew file mode 100644index 0000000000..a63dd4b325--- /dev/null+++ b/invokeai/app/invocations/krea2_lora_loader.py@@ -0,0 +1,185 @@+from typing import Optional++from invokeai.app.invocations.baseinvocation import (+ BaseInvocation,+ BaseInvocationOutput,+ invocation,+ invocation_output,+)+from invokeai.app.invocations.fields import FieldDescriptions, Input, InputField, OutputField+from invokeai.app.invocations.model import LoRAField, ModelIdentifierField, Qwen3VLEncoderField, TransformerField+from invokeai.app.services.shared.invocation_context import InvocationContext+from invokeai.backend.model_manager.taxonomy import BaseModelType, ModelType+++@invocation_output("krea2_lora_loader_output")+class Krea2LoRALoaderOutput(BaseInvocationOutput):+ """Krea-2 LoRA Loader Output"""++ transformer: Optional[TransformerField] = OutputField(+ default=None, description=FieldDescriptions.transformer, title="Krea-2 Transformer"+ )+ qwen3_vl_encoder: Optional[Qwen3VLEncoderField] = OutputField(+ default=None, description=FieldDescriptions.qwen3_vl_encoder, title="Qwen3-VL Encoder"+ )+++@invocation(+ "krea2_lora_loader",+ title="Apply LoRA - Krea-2",+ tags=["lora", "model", "krea2", "krea-2"],+ category="model",+ version="1.0.0",+)+class Krea2LoRALoaderInvocation(BaseInvocation):+ """Apply a LoRA model to a Krea-2 transformer and/or Qwen3-VL text encoder."""++ lora: ModelIdentifierField = InputField(+ description=FieldDescriptions.lora_model,+ title="LoRA",+ ui_model_base=BaseModelType.Krea2,+ ui_model_type=ModelType.LoRA,+ )+ weight: float = InputField(default=0.75, description=FieldDescriptions.lora_weight)+ transformer: TransformerField | None = InputField(+ default=None,+ description=FieldDescriptions.transformer,+ input=Input.Connection,+ title="Krea-2 Transformer",+ )+ qwen3_vl_encoder: Qwen3VLEncoderField | None = InputField(+ default=None,+ title="Qwen3-VL Encoder",+ description=FieldDescriptions.qwen3_vl_encoder,+ input=Input.Connection,+ )++ def invoke(self, context: InvocationContext) -> Krea2LoRALoaderOutput:+ lora_key = self.lora.key++ if not context.models.exists(lora_key):+ raise ValueError(f"Unknown lora: {lora_key}!")++ stored_config = context.models.get_config(lora_key)+ if (+ self.lora.base is not BaseModelType.Krea2+ or stored_config.base is not BaseModelType.Krea2+ or stored_config.type is not ModelType.LoRA+ ):+ raise ValueError(+ f"LoRA '{lora_key}' is for {stored_config.base.value if stored_config.base else 'unknown'} models, "+ "not Krea-2 models. Ensure you are using a Krea-2 compatible LoRA."+ )++ output = Krea2LoRALoaderOutput()++ if self.transformer is not None:+ output.transformer = self.transformer.model_copy(deep=True)+ if self.qwen3_vl_encoder is not None:+ output.qwen3_vl_encoder = self.qwen3_vl_encoder.model_copy(deep=True)++ transformer_lora = (+ next((item for item in output.transformer.loras if item.lora.key == lora_key), None)+ if output.transformer is not None+ else None+ )+ encoder_lora = (+ next((item for item in output.qwen3_vl_encoder.loras if item.lora.key == lora_key), None)+ if output.qwen3_vl_encoder is not None+ else None+ )+ if transformer_lora is not None and encoder_lora is not None and transformer_lora.weight != encoder_lora.weight:+ raise ValueError(+ f"LoRA '{lora_key}' has conflicting weights on the transformer ({transformer_lora.weight}) and "+ f"Qwen3-VL encoder ({encoder_lora.weight})."+ )+ effective_lora = transformer_lora or encoder_lora or LoRAField(lora=self.lora, weight=self.weight)++ if output.transformer is not None and transformer_lora is None:+ output.transformer.loras.append(effective_lora.model_copy(deep=True))+ if output.qwen3_vl_encoder is not None and encoder_lora is None:+ output.qwen3_vl_encoder.loras.append(effective_lora.model_copy(deep=True))++ return output+++@invocation(+ "krea2_lora_collection_loader",+ title="Apply LoRA Collection - Krea-2",+ tags=["lora", "model", "krea2", "krea-2"],+ category="model",+ version="1.0.0",+)+class Krea2LoRACollectionLoader(BaseInvocation):+ """Applies a collection of LoRAs to a Krea-2 transformer and/or Qwen3-VL encoder."""++ loras: Optional[LoRAField | list[LoRAField]] = InputField(+ default=None, description="LoRA models and weights. May be a single LoRA or collection.", title="LoRAs"+ )+ transformer: Optional[TransformerField] = InputField(+ default=None,+ description=FieldDescriptions.transformer,+ input=Input.Connection,+ title="Transformer",+ )+ qwen3_vl_encoder: Qwen3VLEncoderField | None = InputField(+ default=None,+ title="Qwen3-VL Encoder",+ description=FieldDescriptions.qwen3_vl_encoder,+ input=Input.Connection,+ )++ def invoke(self, context: InvocationContext) -> Krea2LoRALoaderOutput:+ output = Krea2LoRALoaderOutput()+ loras = self.loras if isinstance(self.loras, list) else [self.loras]+ if self.transformer is not None:+ output.transformer = self.transformer.model_copy(deep=True)+ if self.qwen3_vl_encoder is not None:+ output.qwen3_vl_encoder = self.qwen3_vl_encoder.model_copy(deep=True)++ for lora in loras:+ if lora is None:+ continue+ if not context.models.exists(lora.lora.key):+ raise ValueError(f"Unknown lora: {lora.lora.key}!")+ stored_config = context.models.get_config(lora.lora.key)+ if (+ lora.lora.base is not BaseModelType.Krea2+ or stored_config.base is not BaseModelType.Krea2+ or stored_config.type is not ModelType.LoRA+ ):+ raise ValueError(+ f"LoRA '{lora.lora.key}' is for "+ f"{stored_config.base.value if stored_config.base else 'unknown'} models, "+ "not Krea-2 models. Ensure you are using a Krea-2 compatible LoRA."+ )++ transformer_lora = (+ next((item for item in output.transformer.loras if item.lora.key == lora.lora.key), None)+ if output.transformer is not None+ else None+ )+ encoder_lora = (+ next((item for item in output.qwen3_vl_encoder.loras if item.lora.key == lora.lora.key), None)+ if output.qwen3_vl_encoder is not None+ else None+ )+ if (+ transformer_lora is not None+ and encoder_lora is not None+ and transformer_lora.weight != encoder_lora.weight+ ):+ raise ValueError(+ f"LoRA '{lora.lora.key}' has conflicting weights on the transformer "+ f"({transformer_lora.weight}) and Qwen3-VL encoder ({encoder_lora.weight})."+ )+ effective_lora = transformer_lora or encoder_lora or lora++ if self.transformer is not None and output.transformer is not None:+ if transformer_lora is None:+ output.transformer.loras.append(effective_lora.model_copy(deep=True))+ if self.qwen3_vl_encoder is not None and output.qwen3_vl_encoder is not None:+ if encoder_lora is None:+ output.qwen3_vl_encoder.loras.append(effective_lora.model_copy(deep=True))++ return outputdiff --git a/invokeai/app/invocations/krea2_model_loader.py b/invokeai/app/invocations/krea2_model_loader.pynew file mode 100644index 0000000000..5a010f726c--- /dev/null+++ b/invokeai/app/invocations/krea2_model_loader.py@@ -0,0 +1,128 @@+from typing import Optional++from invokeai.app.invocations.baseinvocation import (+ BaseInvocation,+ BaseInvocationOutput,+ Classification,+ invocation,+ invocation_output,+)+from invokeai.app.invocations.fields import FieldDescriptions, Input, InputField, OutputField+from invokeai.app.invocations.model import (+ ModelIdentifierField,+ Qwen3VLEncoderField,+ TransformerField,+ VAEField,+)+from invokeai.app.services.shared.invocation_context import InvocationContext+from invokeai.backend.model_manager.taxonomy import BaseModelType, ModelFormat, ModelType, SubModelType+++@invocation_output("krea2_model_loader_output")+class Krea2ModelLoaderOutput(BaseInvocationOutput):+ """Krea-2 base model loader output."""++ transformer: TransformerField = OutputField(description=FieldDescriptions.transformer, title="Transformer")+ qwen3_vl_encoder: Qwen3VLEncoderField = OutputField(+ description=FieldDescriptions.qwen3_vl_encoder, title="Qwen3-VL Encoder"+ )+ vae: VAEField = OutputField(description=FieldDescriptions.vae, title="VAE")+++@invocation(+ "krea2_model_loader",+ title="Main Model - Krea-2",+ tags=["model", "krea2", "krea-2"],+ category="model",+ version="1.0.0",+ classification=Classification.Prototype,+)+class Krea2ModelLoaderInvocation(BaseInvocation):+ """Loads a Krea-2 model, outputting its submodels.++ By default the VAE (Qwen-Image VAE) and Qwen3-VL text encoder are extracted from the Krea-2+ diffusers pipeline. Standalone overrides may be supplied (e.g. when the transformer is a+ single-file checkpoint that has no bundled VAE / encoder).+ """++ model: ModelIdentifierField = InputField(+ description=FieldDescriptions.krea2_model,+ input=Input.Direct,+ ui_model_base=BaseModelType.Krea2,+ ui_model_type=ModelType.Main,+ title="Transformer",+ )++ vae_model: Optional[ModelIdentifierField] = InputField(+ default=None,+ description="Standalone VAE model. Krea-2 uses the Qwen-Image VAE (16-channel). "+ "If not provided, the VAE is loaded from the Krea-2 (diffusers) model.",+ input=Input.Direct,+ ui_model_base=[BaseModelType.QwenImage, BaseModelType.Anima],+ ui_model_type=ModelType.VAE,+ title="VAE",+ )++ qwen3_vl_encoder_model: Optional[ModelIdentifierField] = InputField(+ default=None,+ description="Standalone Qwen3-VL Encoder model. "+ "If not provided, the encoder is loaded from the Krea-2 (diffusers) model.",+ input=Input.Direct,+ ui_model_type=ModelType.Qwen3VLEncoder,+ title="Qwen3-VL Encoder",+ )++ def invoke(self, context: InvocationContext) -> Krea2ModelLoaderOutput:+ main_config = context.models.get_config(self.model)+ if main_config.base is not BaseModelType.Krea2 or main_config.type is not ModelType.Main:+ raise ValueError(+ f"Model '{main_config.name}' is not a Krea-2 main model. Select a Krea-2 transformer model."+ )++ # Transformer always comes from the main model.+ transformer = self.model.model_copy(update={"submodel_type": SubModelType.Transformer})++ # Determine VAE source.+ if self.vae_model is not None:+ vae_config = context.models.get_config(self.vae_model)+ if vae_config.type is not ModelType.VAE or vae_config.base not in (+ BaseModelType.QwenImage,+ BaseModelType.Anima,+ ):+ raise ValueError(+ f"VAE '{vae_config.name}' is not compatible with Krea-2. Select a Qwen Image or Anima VAE."+ )+ vae = self.vae_model.model_copy(update={"submodel_type": SubModelType.VAE})+ else:+ self._validate_diffusers_format(context, self.model, "Krea-2")+ vae = self.model.model_copy(update={"submodel_type": SubModelType.VAE})++ # Determine Qwen3-VL Encoder source.+ if self.qwen3_vl_encoder_model is not None:+ encoder_config = context.models.get_config(self.qwen3_vl_encoder_model)+ if encoder_config.type is not ModelType.Qwen3VLEncoder:+ raise ValueError(f"Encoder '{encoder_config.name}' is not a Qwen3-VL encoder compatible with Krea-2.")+ tokenizer = self.qwen3_vl_encoder_model.model_copy(update={"submodel_type": SubModelType.Tokenizer})+ text_encoder = self.qwen3_vl_encoder_model.model_copy(update={"submodel_type": SubModelType.TextEncoder})+ else:+ self._validate_diffusers_format(context, self.model, "Krea-2")+ tokenizer = self.model.model_copy(update={"submodel_type": SubModelType.Tokenizer})+ text_encoder = self.model.model_copy(update={"submodel_type": SubModelType.TextEncoder})++ return Krea2ModelLoaderOutput(+ transformer=TransformerField(transformer=transformer, loras=[]),+ qwen3_vl_encoder=Qwen3VLEncoderField(tokenizer=tokenizer, text_encoder=text_encoder, loras=[]),+ vae=VAEField(vae=vae),+ )++ def _validate_diffusers_format(+ self, context: InvocationContext, model: ModelIdentifierField, model_name: str+ ) -> None:+ """Validate that a model is in Diffusers format (required to extract VAE / encoder submodels)."""+ config = context.models.get_config(model)+ if config.format != ModelFormat.Diffusers:+ raise ValueError(+ f"To extract the VAE and Qwen3-VL encoder, the {model_name} model must be in Diffusers format. "+ f"The selected model '{config.name}' is in {config.format.value} format — provide a standalone "+ "VAE and Qwen3-VL Encoder instead."+ )diff --git a/invokeai/app/invocations/krea2_seed_variance.py b/invokeai/app/invocations/krea2_seed_variance.pynew file mode 100644index 0000000000..e72fc8b4f8--- /dev/null+++ b/invokeai/app/invocations/krea2_seed_variance.py@@ -0,0 +1,86 @@+import torch++from invokeai.app.invocations.baseinvocation import BaseInvocation, Classification, invocation+from invokeai.app.invocations.fields import FieldDescriptions, Input, InputField, Krea2ConditioningField+from invokeai.app.invocations.primitives import Krea2ConditioningOutput+from invokeai.app.services.shared.invocation_context import InvocationContext+from invokeai.backend.stable_diffusion.diffusion.conditioning_data import (+ ConditioningFieldData,+ Krea2ConditioningInfo,+)+++@invocation(+ "krea2_seed_variance",+ title="Seed Variance - Krea-2",+ tags=["conditioning", "krea2", "krea-2", "variance"],+ category="conditioning",+ version="1.0.0",+ classification=Classification.Prototype,+)+class Krea2SeedVarianceInvocation(BaseInvocation):+ """Inject per-seed diversity into Krea-2 text conditioning.++ Distilled few-step models (like Krea-2-Turbo) suffer from low seed variance — different seeds give+ near-identical images. This adds seeded uniform noise to a random subset of the text-embedding+ values, trading some prompt adherence for variety (the same idea as the Z-Image-Turbo+ `SeedVarianceEnhancer`). Optional pass between the text encoder and denoise.++ The noise magnitude is auto-calibrated relative to the embedding's standard deviation, so a given+ `strength` behaves consistently regardless of the embedding scale — in particular it stays sane+ whether or not the upstream Conditioning Rebalance node has scaled the embeddings up.+ """++ conditioning: Krea2ConditioningField = InputField(+ description=FieldDescriptions.cond, input=Input.Connection, title="Conditioning"+ )+ strength: float = InputField(+ default=0.1,+ ge=0.0,+ le=2.0,+ allow_inf_nan=False,+ description="Noise strength as a multiplier of the embedding std (0=off, 0.1=subtle, 0.5=strong).",+ )+ randomize_percent: float = InputField(+ default=50.0,+ ge=0.0,+ le=100.0,+ description="Percentage of embedding values that get perturbed (Bernoulli mask); 0 disables.",+ )+ variance_seed: int = InputField(default=0, description="Seed for the variance noise (vary this to get variety).")++ @torch.no_grad()+ def invoke(self, context: InvocationContext) -> Krea2ConditioningOutput:+ cond_data = context.conditioning.load(self.conditioning.conditioning_name)+ assert len(cond_data.conditionings) == 1+ conditioning = cond_data.conditionings[0]+ assert isinstance(conditioning, Krea2ConditioningInfo)++ embeds = conditioning.prompt_embeds # (B, seq, 12, hidden)++ # No-op when the effect is disabled, so the node can stay wired in the graph without altering output.+ if self.strength == 0.0 or self.randomize_percent == 0.0:+ return Krea2ConditioningOutput.build(self.conditioning.conditioning_name)++ # Auto-calibrate the noise magnitude to the embedding scale (same approach as the Z-Image enhancer).+ # This keeps the perceptual effect of `strength` stable across prompts and, crucially, whether or not+ # the upstream rebalance has multiplied the embeddings up.+ embed_std = torch.std(embeds.to(torch.float32)).item()+ actual_strength = self.strength * embed_std++ generator = torch.Generator(device=embeds.device).manual_seed(self.variance_seed)+ noise = torch.rand(embeds.shape, generator=generator, dtype=torch.float32, device=embeds.device) * 2.0 - 1.0+ noise = noise * actual_strength+ mask = torch.bernoulli(+ torch.full(embeds.shape, self.randomize_percent / 100.0, dtype=torch.float32, device=embeds.device),+ generator=generator,+ )+ embeds = (embeds.to(torch.float32) + noise * mask).to(embeds.dtype)++ new_data = ConditioningFieldData(+ conditionings=[+ Krea2ConditioningInfo(prompt_embeds=embeds, prompt_embeds_mask=conditioning.prompt_embeds_mask)+ ]+ )+ conditioning_name = context.conditioning.save(new_data)+ return Krea2ConditioningOutput.build(conditioning_name)diff --git a/invokeai/app/invocations/krea2_text_encoder.py b/invokeai/app/invocations/krea2_text_encoder.pynew file mode 100644index 0000000000..348de99272--- /dev/null+++ b/invokeai/app/invocations/krea2_text_encoder.py@@ -0,0 +1,164 @@+from contextlib import ExitStack+from typing import Iterator, Tuple++import torch++from invokeai.app.invocations.baseinvocation import BaseInvocation, Classification, invocation+from invokeai.app.invocations.fields import (+ FieldDescriptions,+ Input,+ InputField,+ UIComponent,+)+from invokeai.app.invocations.model import Qwen3VLEncoderField+from invokeai.app.invocations.primitives import Krea2ConditioningOutput+from invokeai.app.services.shared.invocation_context import InvocationContext+from invokeai.backend.krea2.sampling_utils import (+ KREA2_MAX_SEQ_LEN,+ KREA2_NUM_SUFFIX_TOKENS,+ KREA2_SELECT_LAYERS,+ KREA2_START_IDX,+)+from invokeai.backend.model_manager.load.model_cache.utils import get_effective_device+from invokeai.backend.patches.layer_patcher import LayerPatcher+from invokeai.backend.patches.lora_conversions.krea2_lora_constants import KREA2_LORA_QWEN3VL_PREFIX+from invokeai.backend.patches.model_patch_raw import ModelPatchRaw+from invokeai.backend.stable_diffusion.diffusion.conditioning_data import (+ ConditioningFieldData,+ Krea2ConditioningInfo,+)+from invokeai.backend.util.devices import TorchDevice++# Prompt template from diffusers Krea2Pipeline.get_text_hidden_states. The prefix (a system turn that+# instructs the model to describe the image) is the same "generate" template used by Qwen-Image, which+# is why the first KREA2_START_IDX (34) tokens are dropped from the encoder output.+_KREA2_PREFIX = (+ "<|im_start|>system\nDescribe the image by detailing the color, shape, size, texture, quantity, text, "+ "spatial relationships of the objects and background:<|im_end|>\n<|im_start|>user\n"+)+_KREA2_SUFFIX = "<|im_end|>\n<|im_start|>assistant\n"+++@invocation(+ "krea2_text_encoder",+ title="Prompt - Krea-2",+ tags=["prompt", "conditioning", "krea2", "krea-2"],+ category="conditioning",+ version="1.0.0",+ classification=Classification.Prototype,+)+class Krea2TextEncoderInvocation(BaseInvocation):+ """Encodes a text prompt for Krea-2 using the Qwen3-VL text encoder.++ The encoder taps 12 decoder hidden-state layers and stacks them per token, producing a 4D+ conditioning tensor (B, seq, 12, hidden) that the Krea-2 transformer's text-fusion stage consumes.+ """++ prompt: str = InputField(description="Text prompt describing the desired image.", ui_component=UIComponent.Textarea)+ qwen3_vl_encoder: Qwen3VLEncoderField = InputField(+ title="Qwen3-VL Encoder",+ description=FieldDescriptions.qwen3_vl_encoder,+ input=Input.Connection,+ )++ @torch.no_grad()+ def invoke(self, context: InvocationContext) -> Krea2ConditioningOutput:+ prompt_embeds, prompt_mask = self._encode(context)+ prompt_embeds = prompt_embeds.detach().to("cpu")+ prompt_mask = prompt_mask.detach().to("cpu") if prompt_mask is not None else None++ conditioning_data = ConditioningFieldData(+ conditionings=[Krea2ConditioningInfo(prompt_embeds=prompt_embeds, prompt_embeds_mask=prompt_mask)]+ )+ conditioning_name = context.conditioning.save(conditioning_data)+ return Krea2ConditioningOutput.build(conditioning_name)++ def _encode(self, context: InvocationContext) -> tuple[torch.Tensor, torch.Tensor | None]:+ tokenizer_info = context.models.load(self.qwen3_vl_encoder.tokenizer)+ text_encoder_info = context.models.load(self.qwen3_vl_encoder.text_encoder)++ # diffusers tokenizes (prefix + prompt) and the assistant-turn suffix separately, then+ # concatenates - so the suffix always survives truncation. Building one string and truncating it+ # (right-truncation) drops the suffix for long (>~500-token) prompts, corrupting the trained token+ # layout that the fixed prefix-drop (KREA2_START_IDX) and suffix accounting depend on.+ body_text = _KREA2_PREFIX + self.prompt+ # Reserve room for the suffix (diffusers: max_sequence_length + start_idx - num_suffix_tokens).+ body_max_length = KREA2_MAX_SEQ_LEN + KREA2_START_IDX - KREA2_NUM_SUFFIX_TOKENS++ context.util.signal_progress("Running Qwen3-VL text encoder")++ with ExitStack() as exit_stack:+ tokenizer = exit_stack.enter_context(tokenizer_info)+ (cached_weights, text_encoder) = exit_stack.enter_context(text_encoder_info.model_on_device())+ device = get_effective_device(text_encoder)++ # Apply any Qwen3-VL text-encoder LoRA patches (smart/sidecar patching, fp8-aware). Without+ # this, the encoder portion of a Krea-2 LoRA would be silently ignored.+ exit_stack.enter_context(+ LayerPatcher.apply_smart_model_patches(+ model=text_encoder,+ patches=self._lora_iterator(context),+ prefix=KREA2_LORA_QWEN3VL_PREFIX,+ dtype=TorchDevice.choose_bfloat16_safe_dtype(device),+ cached_weights=cached_weights,+ )+ )++ body_inputs = tokenizer(+ body_text,+ max_length=body_max_length,+ truncation=True,+ padding="max_length",+ return_tensors="pt",+ )+ # Append the suffix AFTER truncation so it can never be cut, matching the reference layout.+ suffix_inputs = tokenizer(_KREA2_SUFFIX, return_tensors="pt")+ input_ids = torch.cat([body_inputs.input_ids, suffix_inputs.input_ids], dim=1).to(device=device)+ attention_mask = torch.cat([body_inputs.attention_mask, suffix_inputs.attention_mask], dim=1).to(+ device=device, dtype=torch.bool+ )+ # Padding sits between the prompt body and assistant suffix. Count only valid tokens when+ # assigning positions so the suffix receives the same mRoPE phase as it did during training.+ position_ids = (attention_mask.long().cumsum(dim=-1) - 1).clamp(min=0)+ position_ids = position_ids.unsqueeze(0).expand(3, -1, -1)++ outputs = text_encoder(+ input_ids=input_ids,+ attention_mask=attention_mask,+ position_ids=position_ids,+ output_hidden_states=True,+ use_cache=False,+ return_dict=True,+ )++ # Some VL models nest the language-model output; fall back to that if needed.+ hidden_states_tuple = getattr(outputs, "hidden_states", None)+ if hidden_states_tuple is None:+ lm_output = getattr(outputs, "language_model_outputs", None)+ hidden_states_tuple = getattr(lm_output, "hidden_states", None)+ if hidden_states_tuple is None:+ raise RuntimeError("Qwen3-VL encoder did not return hidden_states; cannot build Krea-2 conditioning.")++ # Stack the selected layers along a new layer axis: (B, seq, 12, hidden).+ stacked = torch.stack([hidden_states_tuple[i] for i in KREA2_SELECT_LAYERS], dim=2)++ # Drop the system-prompt prefix tokens.+ prompt_embeds = stacked[:, KREA2_START_IDX:]+ prompt_mask = attention_mask[:, KREA2_START_IDX:].bool()++ # Match the device-safe compute dtype used by the denoise loop (falls back from bf16 to+ # fp16/fp32 on devices without bf16 support) rather than forcing bfloat16.+ prompt_embeds = prompt_embeds.to(dtype=TorchDevice.choose_bfloat16_safe_dtype(device))++ return prompt_embeds, prompt_mask++ def _lora_iterator(self, context: InvocationContext) -> Iterator[Tuple[ModelPatchRaw, float]]:+ """Iterate over the LoRA models to apply to the Qwen3-VL text encoder."""+ for lora in self.qwen3_vl_encoder.loras:+ lora_info = context.models.load(lora.lora)+ if not isinstance(lora_info.model, ModelPatchRaw):+ raise TypeError(+ f"Expected ModelPatchRaw for LoRA '{lora.lora.key}', got {type(lora_info.model).__name__}."+ )+ yield (lora_info.model, lora.weight)+ del lora_infodiff --git a/invokeai/app/invocations/metadata.py b/invokeai/app/invocations/metadata.pyindex 3c2aea89ca..03db7d713b 100644--- a/invokeai/app/invocations/metadata.py+++ b/invokeai/app/invocations/metadata.py@@ -175,6 +175,10 @@ GENERATION_MODES = Literal["anima_img2img","anima_inpaint","anima_outpaint",+ "krea2_txt2img",+ "krea2_img2img",+ "krea2_inpaint",+ "krea2_outpaint","wan_txt2img","wan_img2img","wan_inpaint",diff --git a/invokeai/app/invocations/model.py b/invokeai/app/invocations/model.pyindex c61835a331..e0131dea37 100644--- a/invokeai/app/invocations/model.py+++ b/invokeai/app/invocations/model.py@@ -87,6 +87,14 @@ class Qwen3EncoderField(BaseModel):loras: List[LoRAField] = Field(default_factory=list, description="LoRAs to apply on model loading")+class Qwen3VLEncoderField(BaseModel):+ """Field for the Qwen3-VL text encoder used by Krea-2 models."""++ tokenizer: ModelIdentifierField = Field(description="Info to load tokenizer submodel")+ text_encoder: ModelIdentifierField = Field(description="Info to load text_encoder submodel")+ loras: List[LoRAField] = Field(default_factory=list, description="LoRAs to apply on model loading")++class WanT5EncoderField(BaseModel):"""Field for the UMT5-XXL text encoder used by Wan 2.2 models."""diff --git a/invokeai/app/invocations/primitives.py b/invokeai/app/invocations/primitives.pyindex fa1b8772a4..7a90f8a1ab 100644--- a/invokeai/app/invocations/primitives.py+++ b/invokeai/app/invocations/primitives.py@@ -24,6 +24,7 @@ from invokeai.app.invocations.fields import (ImageField,Input,InputField,+ Krea2ConditioningField,LatentsField,OutputField,QwenImageConditioningField,@@ -515,6 +516,17 @@ class QwenImageConditioningOutput(BaseInvocationOutput):return cls(conditioning=QwenImageConditioningField(conditioning_name=conditioning_name))+@invocation_output("krea2_conditioning_output")+class Krea2ConditioningOutput(BaseInvocationOutput):+ """Base class for nodes that output a Krea-2 conditioning tensor."""++ conditioning: Krea2ConditioningField = OutputField(description=FieldDescriptions.cond)++ @classmethod+ def build(cls, conditioning_name: str) -> "Krea2ConditioningOutput":+ return cls(conditioning=Krea2ConditioningField(conditioning_name=conditioning_name))++@invocation_output("anima_conditioning_output")class AnimaConditioningOutput(BaseInvocationOutput):"""Base class for nodes that output an Anima text conditioning tensor."""diff --git a/invokeai/app/invocations/qwen_image_image_to_latents.py b/invokeai/app/invocations/qwen_image_image_to_latents.pyindex ffae5470f6..f56b0695dc 100644--- a/invokeai/app/invocations/qwen_image_image_to_latents.py+++ b/invokeai/app/invocations/qwen_image_image_to_latents.py@@ -1,6 +1,5 @@import einopsimport torch-from diffusers.models.autoencoders.autoencoder_kl_qwenimage import AutoencoderKLQwenImagefrom PIL import Image as PILImagefrom invokeai.app.invocations.baseinvocation import BaseInvocation, Classification, invocation@@ -15,6 +14,7 @@ from invokeai.app.invocations.fields import (from invokeai.app.invocations.model import VAEFieldfrom invokeai.app.invocations.primitives import LatentsOutputfrom invokeai.app.services.shared.invocation_context import InvocationContext+from invokeai.backend.krea2.vae_compat import as_qwen_image_vaefrom invokeai.backend.model_manager.load.load_base import LoadedModelfrom invokeai.backend.stable_diffusion.diffusers_pipeline import image_resized_to_grid_as_tensorfrom invokeai.backend.util.devices import TorchDevice@@ -45,14 +45,18 @@ class QwenImageImageToLatentsInvocation(BaseInvocation, WithMetadata, WithBoard)@staticmethoddef vae_encode(vae_info: LoadedModel, image_tensor: torch.Tensor) -> torch.Tensor:- assert isinstance(vae_info.model, AutoencoderKLQwenImage)+ # NOTE: vae_info.model may be an AutoencoderKLWan (a native-layout qwen_image_vae single file is+ # classified with the Anima base); it is reinterpreted as AutoencoderKLQwenImage inside the+ # model_on_device context below. The working-memory estimate only reads tensor shape + element+ # size, so it is safe to run on either class here.estimated_working_memory = estimate_vae_working_memory_qwen_image(operation="encode",image_tensor=image_tensor,vae=vae_info.model,)with vae_info.model_on_device(working_mem_bytes=estimated_working_memory) as (_, vae):- assert isinstance(vae, AutoencoderKLQwenImage)+ # Reinterpret an Anima-classified Wan VAE as AutoencoderKLQwenImage (identical weights).+ vae = as_qwen_image_vae(vae)vae.disable_tiling()diff --git a/invokeai/app/invocations/qwen_image_latents_to_image.py b/invokeai/app/invocations/qwen_image_latents_to_image.pyindex 5ff81eb3ca..5b9e8feae7 100644--- a/invokeai/app/invocations/qwen_image_latents_to_image.py+++ b/invokeai/app/invocations/qwen_image_latents_to_image.py@@ -1,7 +1,6 @@from contextlib import nullcontextimport torch-from diffusers.models.autoencoders.autoencoder_kl_qwenimage import AutoencoderKLQwenImagefrom einops import rearrangefrom PIL import Image@@ -17,6 +16,7 @@ from invokeai.app.invocations.fields import (from invokeai.app.invocations.model import VAEFieldfrom invokeai.app.invocations.primitives import ImageOutputfrom invokeai.app.services.shared.invocation_context import InvocationContext+from invokeai.backend.krea2.vae_compat import as_qwen_image_vaefrom invokeai.backend.stable_diffusion.extensions.seamless import SeamlessExtfrom invokeai.backend.util.devices import TorchDevicefrom invokeai.backend.util.vae_working_memory import estimate_vae_working_memory_qwen_image@@ -41,51 +41,55 @@ class QwenImageLatentsToImageInvocation(BaseInvocation, WithMetadata, WithBoard)latents = context.tensors.load(self.latents.latents_name)vae_info = context.models.load(self.vae.vae)- assert isinstance(vae_info.model, AutoencoderKLQwenImage)+ # NOTE: vae_info.model may be an AutoencoderKLWan (a native-layout qwen_image_vae single file is+ # classified with the Anima base); it is reinterpreted as AutoencoderKLQwenImage inside the+ # model_on_device context below. The working-memory estimate only reads tensor shape + element+ # size, so it is safe to run on either class here.estimated_working_memory = estimate_vae_working_memory_qwen_image(operation="decode",image_tensor=latents,vae=vae_info.model,)- with (- SeamlessExt.static_patch_model(vae_info.model, self.vae.seamless_axes),- vae_info.model_on_device(working_mem_bytes=estimated_working_memory) as (_, vae),- ):+ with vae_info.model_on_device(working_mem_bytes=estimated_working_memory) as (_, vae):context.util.signal_progress("Running VAE")- assert isinstance(vae, AutoencoderKLQwenImage)- # Use the VAE's intended compute device (CUDA/MPS, or CPU if configured cpu_only). Do NOT infer it from- # current param residency: partial loading may have temporarily offloaded all weights to RAM, which would- # wrongly place the latents (and thus the whole decode) on the CPU (see #9373).- latents = latents.to(device=vae_info.compute_device, dtype=vae.dtype)-- vae.disable_tiling()-- tiling_context = nullcontext()-- TorchDevice.empty_cache()-- with torch.inference_mode(), tiling_context:- # The Qwen Image VAE uses per-channel latents_mean / latents_std- # instead of a single scaling_factor.- # Latents are 5D: (B, C, num_frames, H, W) — the unpack from the- # denoise step already produces this shape.- latents_mean = (- torch.tensor(vae.config.latents_mean)- .view(1, vae.config.z_dim, 1, 1, 1)- .to(latents.device, latents.dtype)- )- latents_std = 1.0 / torch.tensor(vae.config.latents_std).view(1, vae.config.z_dim, 1, 1, 1).to(- latents.device, latents.dtype- )- latents = latents / latents_std + latents_mean-- img = vae.decode(latents, return_dict=False)[0]- # Drop the temporal frame dimension: (B, C, 1, H, W) -> (B, C, H, W)- img = img[:, :, 0]-- img = img.clamp(-1, 1)- img = rearrange(img[0], "c h w -> h w c")- img_pil = Image.fromarray((127.5 * (img + 1.0)).byte().cpu().numpy())+ # A native-layout qwen_image_vae single file is classified with the Anima base and loaded+ # as AutoencoderKLWan; reinterpret it as AutoencoderKLQwenImage (identical weights). This is+ # cache-preserving (returns the same module), keeping partial-loading hooks intact.+ vae = as_qwen_image_vae(vae)+ with SeamlessExt.static_patch_model(vae, self.vae.seamless_axes):+ # Use the VAE's intended compute device (CUDA/MPS, or CPU if configured cpu_only). Do NOT infer it+ # from current param residency: partial loading may have temporarily offloaded all weights to RAM,+ # which would wrongly place the latents (and thus the whole decode) on the CPU (see #9373).+ latents = latents.to(device=vae_info.compute_device, dtype=vae.dtype)++ vae.disable_tiling()++ tiling_context = nullcontext()++ TorchDevice.empty_cache()++ with torch.inference_mode(), tiling_context:+ # The Qwen Image VAE uses per-channel latents_mean / latents_std+ # instead of a single scaling_factor.+ # Latents are 5D: (B, C, num_frames, H, W) — the unpack from the+ # denoise step already produces this shape.+ latents_mean = (+ torch.tensor(vae.config.latents_mean)+ .view(1, vae.config.z_dim, 1, 1, 1)+ .to(latents.device, latents.dtype)+ )+ latents_std = 1.0 / torch.tensor(vae.config.latents_std).view(1, vae.config.z_dim, 1, 1, 1).to(+ latents.device, latents.dtype+ )+ latents = latents / latents_std + latents_mean++ img = vae.decode(latents, return_dict=False)[0]+ # Drop the temporal frame dimension: (B, C, 1, H, W) -> (B, C, H, W)+ img = img[:, :, 0]++ img = img.clamp(-1, 1)+ img = rearrange(img[0], "c h w -> h w c")+ img_pil = Image.fromarray((127.5 * (img + 1.0)).byte().cpu().numpy())TorchDevice.empty_cache()diff --git a/invokeai/app/services/model_records/model_records_base.py b/invokeai/app/services/model_records/model_records_base.pyindex 4d5a9d102c..37b29fa195 100644--- a/invokeai/app/services/model_records/model_records_base.py+++ b/invokeai/app/services/model_records/model_records_base.py@@ -26,6 +26,7 @@ from invokeai.backend.model_manager.taxonomy import (ClipVariantType,Flux2VariantType,FluxVariantType,+ Krea2VariantType,ModelFormat,ModelSourceType,ModelType,@@ -139,6 +140,7 @@ class ModelRecordChanges(BaseModelExcludeNull):| WanVariantType| WanLoRAVariantType| Qwen3VariantType+ | Krea2VariantType] = Field(description="The variant of the model.", default=None)prediction_type: Optional[SchedulerPredictionType] = Field(description="The prediction type of the model.", default=Nonediff --git a/invokeai/app/util/step_callback.py b/invokeai/app/util/step_callback.pyindex 9364ec9b8c..3e83ced671 100644--- a/invokeai/app/util/step_callback.py+++ b/invokeai/app/util/step_callback.py@@ -333,7 +333,8 @@ def diffusion_step_callback(latent_rgb_factors = SD3_5_LATENT_RGB_FACTORSelif base_model == BaseModelType.CogView4:latent_rgb_factors = COGVIEW4_LATENT_RGB_FACTORS- elif base_model == BaseModelType.QwenImage:+ elif base_model in [BaseModelType.QwenImage, BaseModelType.Krea2]:+ # Krea-2 decodes with the Qwen-Image VAE (16 latent channels), so it shares the preview factors.latent_rgb_factors = QWEN_IMAGE_LATENT_RGB_FACTORSlatent_rgb_bias = QWEN_IMAGE_LATENT_RGB_BIASelif base_model == BaseModelType.Flux:diff --git a/invokeai/backend/krea2/__init__.py b/invokeai/backend/krea2/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/invokeai/backend/krea2/attention.py b/invokeai/backend/krea2/attention.pynew file mode 100644index 0000000000..a35d1854b1--- /dev/null+++ b/invokeai/backend/krea2/attention.py@@ -0,0 +1,64 @@+"""Memory-efficient attention processor for the Krea-2 transformer.++The stock ``Krea2AttnProcessor`` calls ``scaled_dot_product_attention`` with ``enable_gqa=True`` (Krea-2 uses+grouped-query attention: 48 query heads, 12 key/value heads). PyTorch's fused flash / memory-efficient SDPA+kernels do **not** support ``enable_gqa``, so this forces the *math* backend, which materializes the full+``[heads, seq, seq]`` score matrix. At 1280x720 (3600 image tokens) that is ~5.7 GB **per attention**, and it+grows O(seq^2) — ~40 GB at 2560x1440 — so generation OOMs or the cache offloads the transformer to RAM.++This processor instead expands the K/V heads to match the query heads (``repeat_interleave``) so ``enable_gqa``+is not needed, and runs under the memory-efficient SDPA backend (which supports the additive padding mask and+is O(seq) in memory). Measured: the same 3600-token attention drops from ~5.7 GB to ~0.19 GB.++The math is otherwise identical to ``Krea2AttnProcessor`` (q/k RMSNorm, rotary embeddings, sigmoid output gate).+"""++import torch+import torch.nn.functional as F+from diffusers.models.embeddings import apply_rotary_emb+from torch.nn.attention import SDPBackend, sdpa_kernel++# Prefer the memory-efficient kernel; fall back to flash (if the build has it) then math so we never hard-fail.+_KREA2_SDPA_BACKENDS = [SDPBackend.EFFICIENT_ATTENTION, SDPBackend.FLASH_ATTENTION, SDPBackend.MATH]+++class Krea2MemoryEfficientAttnProcessor:+ """Drop-in replacement for ``Krea2AttnProcessor`` that avoids the ``enable_gqa`` math fallback."""++ def __call__(+ self,+ attn,+ hidden_states: torch.Tensor,+ attention_mask: torch.Tensor | None = None,+ image_rotary_emb: tuple[torch.Tensor, torch.Tensor] | None = None,+ ) -> torch.Tensor:+ query = attn.to_q(hidden_states).unflatten(-1, (attn.num_heads, attn.head_dim))+ key = attn.to_k(hidden_states).unflatten(-1, (attn.num_kv_heads, attn.head_dim))+ value = attn.to_v(hidden_states).unflatten(-1, (attn.num_kv_heads, attn.head_dim))+ gate = attn.to_gate(hidden_states)++ query = attn.norm_q(query)+ key = attn.norm_k(key)++ if image_rotary_emb is not None:+ query = apply_rotary_emb(query, image_rotary_emb, sequence_dim=1)+ key = apply_rotary_emb(key, image_rotary_emb, sequence_dim=1)++ # [B, S, H, D] -> [B, H, S, D] for scaled_dot_product_attention.+ query = query.transpose(1, 2)+ key = key.transpose(1, 2)+ value = value.transpose(1, 2)++ # Expand K/V heads to the query head count so we can drop enable_gqa (which forces the math backend).+ if attn.num_heads != attn.num_kv_heads:+ repeats = attn.num_heads // attn.num_kv_heads+ key = key.repeat_interleave(repeats, dim=1)+ value = value.repeat_interleave(repeats, dim=1)++ with sdpa_kernel(_KREA2_SDPA_BACKENDS):+ hidden_states = F.scaled_dot_product_attention(query, key, value, attn_mask=attention_mask)++ # [B, H, S, D] -> [B, S, H, D] -> [B, S, H*D], matching Krea2AttnProcessor's output layout.+ hidden_states = hidden_states.transpose(1, 2).flatten(2, 3)+ hidden_states = hidden_states * torch.sigmoid(gate)+ return attn.to_out[0](hidden_states)diff --git a/invokeai/backend/krea2/sampling_utils.py b/invokeai/backend/krea2/sampling_utils.pynew file mode 100644index 0000000000..875c7cefd4--- /dev/null+++ b/invokeai/backend/krea2/sampling_utils.py@@ -0,0 +1,97 @@+"""Sampling/packing utilities for Krea-2 (Krea2Pipeline) inference.++InvokeAI hand-writes its own denoise loop for Qwen-family models rather than calling the+diffusers pipeline ``__call__``. These helpers replicate the Krea-2 sampling math so the+``Krea2Transformer2DModel`` (loaded from diffusers) can be driven directly.++Reference: ``diffusers/pipelines/krea2/pipeline_krea2.py`` (diffusers main / 0.39.0.dev0).+"""++from typing import List++import numpy as np+import torch++# Krea-2 packs latents into 2x2 patches; the VAE (AutoencoderKLQwenImage) is f8.+PATCH_SIZE = 2+VAE_SCALE_FACTOR = 8++# Hidden-state layers tapped from the Qwen3-VL text encoder (model_index.json+# text_encoder_select_layers). Stacked per token into prompt_embeds (B, seq, 12, hidden).+KREA2_SELECT_LAYERS = (2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35)++# Text template constants (diffusers Krea2Pipeline.get_text_hidden_states).+KREA2_MAX_SEQ_LEN = 512+KREA2_START_IDX = 34 # drop the system-prompt prefix tokens+KREA2_NUM_SUFFIX_TOKENS = 5++# Resolution-aware time-shift parameters (scheduler_config.json).+KREA2_BASE_SHIFT = 0.5+KREA2_MAX_SHIFT = 1.15+KREA2_BASE_IMAGE_SEQ_LEN = 256+KREA2_MAX_IMAGE_SEQ_LEN = 6400+# Fixed timestep shift for the distilled (Turbo) checkpoint.+KREA2_DISTILLED_MU = 1.15+++def pack_latents(latents: torch.Tensor, batch_size: int, num_channels: int, height: int, width: int) -> torch.Tensor:+ """Pack 4D latents (B, C, H, W) into 2x2-patched 3D (B, H/2*W/2, C*4).++ Identical to the Qwen-Image / Krea-2 ``_pack_latents`` (patch_size=2).+ """+ p = PATCH_SIZE+ latents = latents.view(batch_size, num_channels, height // p, p, width // p, p)+ latents = latents.permute(0, 2, 4, 1, 3, 5)+ latents = latents.reshape(batch_size, (height // p) * (width // p), num_channels * p * p)+ return latents+++def unpack_latents(latents: torch.Tensor, height: int, width: int) -> torch.Tensor:+ """Unpack 3D patched latents (B, seq, C*4) back to 4D (B, C, H, W).++ ``height``/``width`` are in latent space (i.e. pixels // vae_scale_factor).+ """+ p = PATCH_SIZE+ batch_size, _num_patches, channels = latents.shape+ h = p * (height // p)+ w = p * (width // p)+ latents = latents.view(batch_size, h // p, w // p, channels // (p * p), p, p)+ latents = latents.permute(0, 3, 1, 4, 2, 5)+ latents = latents.reshape(batch_size, channels // (p * p), h, w)+ return latents+++def prepare_position_ids(text_seq_len: int, grid_height: int, grid_width: int, device: torch.device) -> torch.Tensor:+ """Build the (text_seq_len + grid_h*grid_w, 3) rotary coordinates.++ Text tokens sit at the origin (0, 0, 0); image tokens carry their (0, h, w) latent-grid+ coordinates. Matches diffusers ``Krea2Pipeline.prepare_position_ids``.+ """+ text_ids = torch.zeros(text_seq_len, 3, device=device)+ image_ids = torch.zeros(grid_height, grid_width, 3, device=device)+ image_ids[..., 1] = torch.arange(grid_height, device=device)[:, None]+ image_ids[..., 2] = torch.arange(grid_width, device=device)[None, :]+ image_ids = image_ids.reshape(grid_height * grid_width, 3)+ return torch.cat([text_ids, image_ids], dim=0)+++def calculate_shift(+ image_seq_len: int,+ base_image_seq_len: int = KREA2_BASE_IMAGE_SEQ_LEN,+ max_image_seq_len: int = KREA2_MAX_IMAGE_SEQ_LEN,+ base_shift: float = KREA2_BASE_SHIFT,+ max_shift: float = KREA2_MAX_SHIFT,+) -> float:+ """Resolution-aware mu (linear interpolation by sequence length).++ NOTE: mu is fed straight into ``FlowMatchEulerDiscreteScheduler.set_timesteps(..., mu=mu)``;+ the exponential time-shift happens inside the scheduler. Do NOT ``exp()`` this value.+ """+ m = (max_shift - base_shift) / (max_image_seq_len - base_image_seq_len)+ b = base_shift - m * base_image_seq_len+ return image_seq_len * m + b+++def build_sigmas(steps: int) -> List[float]:+ """Krea-2 sigma schedule: linspace(1.0, 1/steps, steps)."""+ return np.linspace(1.0, 1.0 / steps, steps).tolist()diff --git a/invokeai/backend/krea2/vae_compat.py b/invokeai/backend/krea2/vae_compat.pynew file mode 100644index 0000000000..00d5a81ef2--- /dev/null+++ b/invokeai/backend/krea2/vae_compat.py@@ -0,0 +1,57 @@+"""Compatibility helpers for the Qwen-Image VAE used by Krea-2.++Krea-2 (and Qwen-Image) decode/encode with ``AutoencoderKLQwenImage``. A standalone single-file+``qwen_image_vae.safetensors`` in the native (ComfyUI/Wan) layout is byte-identical to the Anima VAE+and therefore classified with the Anima base, which loads it as ``AutoencoderKLWan``. The two classes+share the exact same diffusers state-dict (identical keys and shapes), so a Wan-loaded VAE can be+used through the same encode/decode path without rebuilding it. Both default configs carry the same+Qwen-Image ``latents_mean`` / ``latents_std`` / ``z_dim`` values read by the Qwen encode/decode nodes.+"""++from typing import Any++from diffusers.models.autoencoders import AutoencoderKLWan+from diffusers.models.autoencoders.autoencoder_kl_qwenimage import AutoencoderKLQwenImage++QwenImageCompatibleVAE = AutoencoderKLQwenImage | AutoencoderKLWan+++# The Qwen-Image VAE is a 16-channel, 8x-spatial, non-patchified autoencoder. A Wan VAE can only share the+# Qwen-Image encode/decode path if it has that exact geometry. Wan 2.2's VAE is a *different* architecture+# (48 latent channels, patchified) that happens to load as AutoencoderKLWan too, but would fail on the+# 16-vs-48 per-channel normalization (or silently produce incompatible latents), so it must be rejected.+_QWEN_IMAGE_VAE_Z_DIM = 16+_QWEN_IMAGE_VAE_SPATIAL_SCALE = 8+++def as_qwen_image_vae(model: Any) -> QwenImageCompatibleVAE:+ """Return a cache-preserving VAE compatible with the Qwen-Image encode/decode path.++ The only expected non-matching input is ``AutoencoderKLWan`` (the same weights loaded via the+ Anima single-file path). A Wan VAE with the Qwen-Image geometry (16 latent channels, 8x spatial, no+ patchification) has identical encode/decode behavior, state-dict layout, and default latent statistics,+ so the cached module can be used directly. A Wan VAE with any other geometry (e.g. Wan 2.2's 48-channel,+ patchified VAE) is rejected here rather than failing deeper in normalization/decode.++ Returning the original object is important: the model cache injects custom modules for partial+ loading before this helper is called, and rebuilding the module from its state dict would discard+ those modules along with any hooks or layerwise-casting configuration.+ """+ if isinstance(model, AutoencoderKLQwenImage):+ return model+ if not isinstance(model, AutoencoderKLWan):+ raise TypeError(f"Expected AutoencoderKLQwenImage or AutoencoderKLWan, got {type(model).__name__}.")++ config = model.config+ z_dim = getattr(config, "z_dim", None)+ patch_size = getattr(config, "patch_size", None)+ spatial_scale = getattr(config, "scale_factor_spatial", _QWEN_IMAGE_VAE_SPATIAL_SCALE)+ if z_dim != _QWEN_IMAGE_VAE_Z_DIM or patch_size is not None or spatial_scale != _QWEN_IMAGE_VAE_SPATIAL_SCALE:+ raise ValueError(+ "AutoencoderKLWan is not Qwen-Image-compatible "+ f"(z_dim={z_dim}, patch_size={patch_size}, scale_factor_spatial={spatial_scale}); "+ f"expected {_QWEN_IMAGE_VAE_Z_DIM} latent channels, {_QWEN_IMAGE_VAE_SPATIAL_SCALE}x spatial, "+ "and no patchification."+ )++ return modeldiff --git a/invokeai/backend/model_manager/configs/factory.py b/invokeai/backend/model_manager/configs/factory.pyindex 28a2f802cc..a300d1eb40 100644--- a/invokeai/backend/model_manager/configs/factory.py+++ b/invokeai/backend/model_manager/configs/factory.py@@ -1,3 +1,4 @@+import jsonimport loggingfrom dataclasses import dataclassfrom pathlib import Path@@ -51,6 +52,7 @@ from invokeai.backend.model_manager.configs.lora import (LoRA_LyCORIS_Anima_Config,LoRA_LyCORIS_Flux2_Config,LoRA_LyCORIS_FLUX_Config,+ LoRA_LyCORIS_Krea2_Config,LoRA_LyCORIS_QwenImage_Config,LoRA_LyCORIS_SD1_Config,LoRA_LyCORIS_SD2_Config,@@ -66,6 +68,7 @@ from invokeai.backend.model_manager.configs.main import (Main_Checkpoint_Anima_Config,Main_Checkpoint_Flux2_Config,Main_Checkpoint_FLUX_Config,+ Main_Checkpoint_Krea2_Config,Main_Checkpoint_QwenImage_Config,Main_Checkpoint_SD1_Config,Main_Checkpoint_SD2_Config,@@ -76,6 +79,7 @@ from invokeai.backend.model_manager.configs.main import (Main_Diffusers_Flux2_Config,Main_Diffusers_FLUX_Config,Main_Diffusers_Ideogram4_Config,+ Main_Diffusers_Krea2_Config,Main_Diffusers_QwenImage_Config,Main_Diffusers_SD1_Config,Main_Diffusers_SD2_Config,@@ -86,6 +90,7 @@ from invokeai.backend.model_manager.configs.main import (Main_Diffusers_ZImage_Config,Main_GGUF_Flux2_Config,Main_GGUF_FLUX_Config,+ Main_GGUF_Krea2_Config,Main_GGUF_QwenImage_Config,Main_GGUF_Wan_Config,Main_GGUF_ZImage_Config,@@ -96,6 +101,10 @@ from invokeai.backend.model_manager.configs.qwen3_encoder import (Qwen3Encoder_GGUF_Config,Qwen3Encoder_Qwen3Encoder_Config,)+from invokeai.backend.model_manager.configs.qwen3_vl_encoder import (+ Qwen3VLEncoder_Checkpoint_Config,+ Qwen3VLEncoder_Qwen3VLEncoder_Config,+)from invokeai.backend.model_manager.configs.qwen_vl_encoder import (QwenVLEncoder_Checkpoint_Config,QwenVLEncoder_Diffusers_Config,@@ -171,6 +180,56 @@ _MAX_FILES_IN_MODEL_DIR = 50# Maximum depth to search for model files in directories_MAX_SEARCH_DEPTH = 2+# Classes introduced by the versions pinned by this checkout may not exist in the interpreter used by+# lightweight config tests. Keep explicit markers only for those newly supported classes; established+# classes are resolved from the installed Diffusers/Transformers exports below.+_PINNED_MODEL_CLASS_MARKERS = {"Krea2Pipeline"}+++def _is_known_model_marker(config_name: str, config: Any) -> bool:+ """Return whether a root config names a class/model type provided by our model libraries."""+ import diffusers+ import transformers+ from diffusers.models.modeling_utils import ModelMixin+ from diffusers.pipelines.pipeline_utils import DiffusionPipeline+ from transformers import PretrainedConfig, PreTrainedModel+ from transformers.models.auto.configuration_auto import CONFIG_MAPPING_NAMES++ if not isinstance(config, dict):+ return False++ def has_model_export(module: Any, name: Any, expected_bases: tuple[type, ...]) -> bool:+ if not isinstance(name, str) or not name:+ return False+ try:+ exported = getattr(module, name, None)+ return (+ isinstance(exported, type) and exported not in expected_bases and issubclass(exported, expected_bases)+ )+ except Exception:+ return False++ if config_name == "model_index.json":+ class_name = config.get("_class_name")+ return class_name in _PINNED_MODEL_CLASS_MARKERS or has_model_export(+ diffusers, class_name, (DiffusionPipeline,)+ )++ class_name = config.get("_class_name")+ if (+ class_name in _PINNED_MODEL_CLASS_MARKERS+ or has_model_export(diffusers, class_name, (ModelMixin, DiffusionPipeline))+ or has_model_export(transformers, class_name, (PreTrainedModel, PretrainedConfig))+ ):+ return True+ model_type = config.get("model_type")+ if isinstance(model_type, str) and model_type in CONFIG_MAPPING_NAMES:+ return True+ architectures = config.get("architectures")+ return isinstance(architectures, list) and any(+ has_model_export(transformers, name, (PreTrainedModel,)) for name in architectures+ )+# The types are listed explicitly because IDEs/LSPs can't identify the correct types# when AnyModelConfig is constructed dynamically using ModelConfigBase.all_config_classes@@ -189,6 +248,7 @@ AnyModelConfig = Annotated[Annotated[Main_Diffusers_Wan_Config, Main_Diffusers_Wan_Config.get_tag()],Annotated[Main_Diffusers_ZImage_Config, Main_Diffusers_ZImage_Config.get_tag()],Annotated[Main_Diffusers_Ideogram4_Config, Main_Diffusers_Ideogram4_Config.get_tag()],+ Annotated[Main_Diffusers_Krea2_Config, Main_Diffusers_Krea2_Config.get_tag()],# Main (Pipeline) - checkpoint format# IMPORTANT: FLUX.2 must be checked BEFORE FLUX.1 because FLUX.2 has specific validation# that will reject FLUX.1 models, but FLUX.1 validation may incorrectly match FLUX.2 models@@ -200,6 +260,7 @@ AnyModelConfig = Annotated[Annotated[Main_Checkpoint_FLUX_Config, Main_Checkpoint_FLUX_Config.get_tag()],Annotated[Main_Checkpoint_QwenImage_Config, Main_Checkpoint_QwenImage_Config.get_tag()],Annotated[Main_Checkpoint_ZImage_Config, Main_Checkpoint_ZImage_Config.get_tag()],+ Annotated[Main_Checkpoint_Krea2_Config, Main_Checkpoint_Krea2_Config.get_tag()],Annotated[Main_Checkpoint_Anima_Config, Main_Checkpoint_Anima_Config.get_tag()],# Main (Pipeline) - quantized formats# IMPORTANT: FLUX.2 must be checked BEFORE FLUX.1 because FLUX.2 has specific validation@@ -210,6 +271,7 @@ AnyModelConfig = Annotated[Annotated[Main_GGUF_QwenImage_Config, Main_GGUF_QwenImage_Config.get_tag()],Annotated[Main_GGUF_Wan_Config, Main_GGUF_Wan_Config.get_tag()],Annotated[Main_GGUF_ZImage_Config, Main_GGUF_ZImage_Config.get_tag()],+ Annotated[Main_GGUF_Krea2_Config, Main_GGUF_Krea2_Config.get_tag()],# VAE - checkpoint formatAnnotated[VAE_Checkpoint_SD1_Config, VAE_Checkpoint_SD1_Config.get_tag()],Annotated[VAE_Checkpoint_SD2_Config, VAE_Checkpoint_SD2_Config.get_tag()],@@ -249,6 +311,7 @@ AnyModelConfig = Annotated[Annotated[LoRA_LyCORIS_Flux2_Config, LoRA_LyCORIS_Flux2_Config.get_tag()],Annotated[LoRA_LyCORIS_FLUX_Config, LoRA_LyCORIS_FLUX_Config.get_tag()],Annotated[LoRA_LyCORIS_ZImage_Config, LoRA_LyCORIS_ZImage_Config.get_tag()],+ Annotated[LoRA_LyCORIS_Krea2_Config, LoRA_LyCORIS_Krea2_Config.get_tag()],Annotated[LoRA_LyCORIS_QwenImage_Config, LoRA_LyCORIS_QwenImage_Config.get_tag()],# Wan and Anima both target ``blocks.X`` shapes; their LoRA probes are# mutually exclusive — Wan rejects Anima's ``_proj``/``mlp``/@@ -276,6 +339,11 @@ AnyModelConfig = Annotated[Annotated[T5Encoder_T5Encoder_Config, T5Encoder_T5Encoder_Config.get_tag()],Annotated[T5Encoder_BnBLLMint8_Config, T5Encoder_BnBLLMint8_Config.get_tag()],Annotated[T5Encoder_GGUF_Config, T5Encoder_GGUF_Config.get_tag()],+ # Qwen3-VL Encoder (Qwen3-VL multimodal encoder for Krea-2) - checked BEFORE the text-only Qwen3+ # encoder so single-file VL checkpoints (which also carry generic model.layers.* keys) are not+ # misclassified as the Z-Image Qwen3 encoder. The VL probe requires the visual tower.+ Annotated[Qwen3VLEncoder_Checkpoint_Config, Qwen3VLEncoder_Checkpoint_Config.get_tag()],+ Annotated[Qwen3VLEncoder_Qwen3VLEncoder_Config, Qwen3VLEncoder_Qwen3VLEncoder_Config.get_tag()],# Qwen3 EncoderAnnotated[Qwen3Encoder_Qwen3Encoder_Config, Qwen3Encoder_Qwen3Encoder_Config.get_tag()],Annotated[Qwen3Encoder_Checkpoint_Config, Qwen3Encoder_Checkpoint_Config.get_tag()],@@ -434,6 +502,26 @@ class ModelConfigFactory:f"Expected one of: {', '.join(sorted(_MODEL_EXTENSIONS))}")else:+ # Recognized Diffusers/Transformers configs are safe model markers. A generic config.json+ # is not sufficient because many large application directories contain one.+ recognized_root_config = False+ for config_name in _CONFIG_FILES:+ config_path = path / config_name+ if not config_path.exists():+ continue+ try:+ # Model config.json files are UTF-8; read explicitly so a non-ASCII value does not+ # raise UnicodeDecodeError under a cp1252 (Windows) locale and get mis-treated as+ # "unrecognized", which would wrongly reject a valid model directory.+ config = json.loads(config_path.read_text(encoding="utf-8"))+ except (OSError, ValueError):+ continue+ recognized_root_config = _is_known_model_marker(config_name, config)+ if recognized_root_config:+ break+ if recognized_root_config:+ return+# For directories, do a quick file count check with early exittotal_files = 0# Ignore hidden files and directories@@ -452,13 +540,6 @@ class ModelConfigFactory:"Please provide a path to a specific model file or model directory.")- # Check if it has config files at root (diffusers/transformers marker)- has_root_config = any((path / config).exists() for config in _CONFIG_FILES)-- if has_root_config:- # Has a config file, looks like a valid model directory- return-# Otherwise, search for model files within depth limitdef find_model_files(current_path: Path, depth: int) -> bool:if depth > _MAX_SEARCH_DEPTH:diff --git a/invokeai/backend/model_manager/configs/lora.py b/invokeai/backend/model_manager/configs/lora.pyindex 9479dea8cd..2ead22fb2a 100644--- a/invokeai/backend/model_manager/configs/lora.py+++ b/invokeai/backend/model_manager/configs/lora.py@@ -862,6 +862,9 @@ class LoRA_LyCORIS_QwenImage_Config(LoRA_LyCORIS_Config_Base, Config_Base):# (with the "transformer." prefix and "single_" variant) which would falsely match our check.# Flux Kohya LoRAs use lora_unet_double_blocks or lora_unet_single_blocks.has_z_image_keys = state_dict_has_any_keys_starting_with(state_dict, {"diffusion_model.layers."})+ # Krea-2 LoRAs also carry transformer.transformer_blocks. keys, but uniquely include the+ # text-fusion stage. Exclude them here so they route to LoRA_LyCORIS_Krea2_Config.+ has_krea2_keys = _has_krea2_lora_keys(state_dict)has_flux_keys = state_dict_has_any_keys_starting_with(state_dict,{@@ -875,7 +878,7 @@ class LoRA_LyCORIS_QwenImage_Config(LoRA_LyCORIS_Config_Base, Config_Base):},)- if has_qwen_ie_keys and has_lora_suffix and not has_z_image_keys and not has_flux_keys:+ if has_qwen_ie_keys and has_lora_suffix and not has_z_image_keys and not has_krea2_keys and not has_flux_keys:returnraise NotAMatchError("model does not match Qwen Image LoRA heuristics")@@ -888,6 +891,7 @@ class LoRA_LyCORIS_QwenImage_Config(LoRA_LyCORIS_Config_Base, Config_Base):{"transformer_blocks.", "transformer.transformer_blocks.", "lora_unet_transformer_blocks_"},)has_z_image_keys = state_dict_has_any_keys_starting_with(state_dict, {"diffusion_model.layers."})+ has_krea2_keys = _has_krea2_lora_keys(state_dict)has_flux_keys = state_dict_has_any_keys_starting_with(state_dict,{@@ -901,11 +905,133 @@ class LoRA_LyCORIS_QwenImage_Config(LoRA_LyCORIS_Config_Base, Config_Base):},)- if has_qwen_ie_keys and not has_z_image_keys and not has_flux_keys:+ if has_qwen_ie_keys and not has_z_image_keys and not has_krea2_keys and not has_flux_keys:return BaseModelType.QwenImageraise NotAMatchError("model does not look like a Qwen Image Edit LoRA")+def _has_krea2_lora_keys(state_dict: dict[str | int, Any]) -> bool:+ """True if the state dict targets Krea-2's distinctive modules.++ Covers both the diffusers naming (``text_fusion`` / ``time_mod_proj``) and the native/ComfyUI naming+ (``txtfusion``, or the gated attention ``attn.wq`` + ``attn.gate`` unique to Krea-2's single-stream+ blocks) so native-format LoRAs are recognized as Krea-2 rather than falling through to another base.+ """+ str_keys = [k for k in state_dict.keys() if isinstance(k, str)]+ if any(("text_fusion" in k or "txtfusion" in k or "time_mod_proj" in k) for k in str_keys):+ return True+ # Native gated attention identifies a transformer-only Krea-2 LoRA that lacks the text-fusion stage.+ return any(".attn.wq." in k for k in str_keys) and any(".attn.gate." in k for k in str_keys)+++# Each LoRA weight half must be accompanied by its partner half. An orphaned half installs successfully+# but crashes later during LoRA conversion, so we reject it at identification time.+_LORA_PAIR_PARTNERS = {+ "lora_A.weight": "lora_B.weight",+ "lora_B.weight": "lora_A.weight",+ "lora_down.weight": "lora_up.weight",+ "lora_up.weight": "lora_down.weight",+}+++def _lora_weight_keys_are_all_paired(state_dict: dict[str | int, Any], prefixes: tuple[str, ...] | None = None) -> bool:+ """True if *every* lora_A/lora_B/lora_down/lora_up weight (optionally restricted to `prefixes`) has its+ partner half present. Returns True when there are no such weights at all (nothing to invalidate)."""+ string_keys = {key for key in state_dict if isinstance(key, str)}+ for key in string_keys:+ if prefixes is not None and not key.startswith(prefixes):+ continue+ for suffix, partner_suffix in _LORA_PAIR_PARTNERS.items():+ if key.endswith(suffix):+ if f"{key[: -len(suffix)]}{partner_suffix}" not in string_keys:+ return False+ break+ return True+++def _has_complete_lora_pair(state_dict: dict[str | int, Any], prefixes: tuple[str, ...] | None = None) -> bool:+ """True if at least one complete lora_A/B (or lora_down/up) pair exists, optionally under `prefixes`.++ Note this only requires a *complete* pair to exist; it does not by itself reject dangling halves+ elsewhere — callers pair it with :func:`_lora_weight_keys_are_all_paired` (over the whole state dict)+ to also reject orphaned halves anywhere.+ """+ string_keys = {key for key in state_dict if isinstance(key, str)}+ for key in string_keys:+ if prefixes is not None and not key.startswith(prefixes):+ continue+ for suffix, partner_suffix in _LORA_PAIR_PARTNERS.items():+ if key.endswith(suffix) and f"{key[: -len(suffix)]}{partner_suffix}" in string_keys:+ return True+ return False+++# Layouts the converter understands for an explicit Krea-2 override (a transformer-only or text-encoder-only+# LoRA that lacks the auto-detection text_fusion/time_mod_proj keys still installs under an explicit base).+_KREA2_SUPPORTED_LORA_PREFIXES = (+ "transformer.transformer_blocks.",+ "transformer_blocks.",+ # The converter also supports the `diffusion_model.` transformer layout+ # (see krea2_lora_conversion_utils.lora_model_from_krea2_state_dict).+ "diffusion_model.transformer_blocks.",+ "diffusion_model.blocks.",+ "diffusion_model.txtfusion.",+ "diffusion_model.first.",+ "diffusion_model.tmlp.",+ "diffusion_model.tproj.",+ "diffusion_model.txtmlp.",+ "diffusion_model.last.linear.",+ "base_model.model.transformer.transformer_blocks.",+ "text_encoder.",+ "base_model.model.text_encoder.",+)+++class LoRA_LyCORIS_Krea2_Config(LoRA_LyCORIS_Config_Base, Config_Base):+ """Model config for Krea-2 LoRA models in LyCORIS (single-file diffusers PEFT) format."""++ base: Literal[BaseModelType.Krea2] = Field(default=BaseModelType.Krea2)++ @classmethod+ def from_model_on_disk(cls, mod: ModelOnDisk, override_fields: dict[str, Any]) -> Self:+ raise_if_not_file(mod)+ raise_for_override_fields(cls, override_fields)++ state_dict = mod.load_state_dict()+ explicit_krea2_override = override_fields.get("base") is BaseModelType.Krea2+ has_supported_explicit_pair = _has_complete_lora_pair(state_dict, _KREA2_SUPPORTED_LORA_PREFIXES)+ # Reject an orphaned half *anywhere* in the state dict (e.g. a dangling text_fusion half not under+ # the approved prefixes) — it would install here but fail during LoRA conversion at generation time.+ if explicit_krea2_override and has_supported_explicit_pair and _lora_weight_keys_are_all_paired(state_dict):+ return cls(**override_fields)++ cls._validate_looks_like_lora(mod)+ cls._validate_base(mod)+ return cls(**override_fields)++ @classmethod+ def _validate_looks_like_lora(cls, mod: ModelOnDisk) -> None:+ """Krea-2 LoRAs have keys like transformer.text_fusion.* / transformer.transformer_blocks.* with+ a lora_A/lora_B (or lora_down/lora_up) suffix. The text-fusion stage is unique to Krea-2."""+ state_dict = mod.load_state_dict()+ # Require a *complete* lora_A/B (or lora_down/up) pair, not merely any lora/dora suffix: a file with+ # only ``dora_scale`` and no A/B weights would pass a suffix check but fail later on missing weights.+ if not (_has_krea2_lora_keys(state_dict) and _has_complete_lora_pair(state_dict)):+ raise NotAMatchError(+ "model does not match Krea-2 LoRA heuristics (no complete lora_A/B or lora_down/up pair)"+ )+ # Reject a file with an orphaned LoRA half (a valid layer plus a dangling lora_A/B/down/up); it+ # would install here but fail later during LoRA conversion.+ if not _lora_weight_keys_are_all_paired(state_dict):+ raise NotAMatchError("Krea-2 LoRA has an incomplete lora_A/B (or lora_down/up) weight pair")++ @classmethod+ def _get_base_or_raise(cls, mod: ModelOnDisk) -> BaseModelType:+ if _has_krea2_lora_keys(mod.load_state_dict()):+ return BaseModelType.Krea2+ raise NotAMatchError("model does not look like a Krea-2 LoRA")++class LoRA_LyCORIS_Anima_Config(LoRA_LyCORIS_Config_Base, Config_Base):"""Model config for Anima LoRA models in LyCORIS format."""diff --git a/invokeai/backend/model_manager/configs/main.py b/invokeai/backend/model_manager/configs/main.pyindex 5b72ac2549..0c6ab4fa56 100644--- a/invokeai/backend/model_manager/configs/main.py+++ b/invokeai/backend/model_manager/configs/main.py@@ -27,6 +27,7 @@ from invokeai.backend.model_manager.taxonomy import (BaseModelType,Flux2VariantType,FluxVariantType,+ Krea2VariantType,ModelFormat,ModelType,ModelVariantType,@@ -71,6 +72,7 @@ class MainModelDefaultSettings(BaseModel):| ModelVariantType| WanVariantType| ZImageVariantType+ | Krea2VariantType| None = None,) -> Self | None:match base:@@ -105,6 +107,14 @@ class MainModelDefaultSettings(BaseModel):return cls(steps=4, cfg_scale=1.0, width=1024, height=1024)case BaseModelType.QwenImage:return cls(steps=40, cfg_scale=4.0, width=1024, height=1024)+ case BaseModelType.Krea2:+ # Krea-2-Raw (Base, undistilled) needs more steps and CFG; Turbo (distilled) uses 8+ # steps with CFG disabled. cfg_scale has a floor of 1 (ge=1); 1.0 means "no guidance".+ if variant == Krea2VariantType.Base:+ # Diffusers' Krea-2 guidance 4.5 uses cond + 4.5 * (cond - uncond), which is+ # equivalent to InvokeAI's standard CFG convention at scale 5.5.+ return cls(steps=28, cfg_scale=5.5, width=1024, height=1024)+ return cls(steps=8, cfg_scale=1.0, width=1024, height=1024)case BaseModelType.Wan:# Wan 2.2 recommended defaults differ by variant.if variant == WanVariantType.TI2V_5B:@@ -206,6 +216,77 @@ def _has_z_image_keys(state_dict: dict[str | int, Any]) -> bool:return False+def _get_krea2_variant_from_name(name: str) -> Krea2VariantType:+ """Guess the Krea-2 variant from a single-file/GGUF filename.++ Turbo and Raw (Base) share the identical transformer architecture, so a single-file checkpoint+ cannot be distinguished from its weights. Filenames with a "raw"/"base" token (e.g. "Krea-2-Raw",+ "krea2_base_q4") indicate the undistilled Base model; everything else defaults to the distilled+ Turbo. The user can override the variant in the model manager.+ """+ lowered = name.lower()+ # "turbo" is a strong positive signal for the distilled checkpoint and wins outright, so a Turbo file+ # whose name merely *contains* "base"/"raw" as a substring (e.g. "baseline", "database", "raw_export")+ # is not misread as Base.+ if "turbo" in lowered:+ return Krea2VariantType.Turbo+ # Otherwise match "raw"/"base" only as a whole token delimited by non-alphanumeric separators+ # ("-", "_", ".") - not as an arbitrary substring.+ tokens = re.split(r"[^a-z0-9]+", lowered)+ if "raw" in tokens or "base" in tokens:+ return Krea2VariantType.Base+ return Krea2VariantType.Turbo+++def _has_krea2_keys(state_dict: dict[str | int, Any]) -> bool:+ """Check if state dict contains Krea-2 (Krea2Transformer2DModel) transformer keys.++ Krea-2's single-stream MMDiT has a distinctive text-fusion stage; the ``text_fusion.``+ prefix (with ``layerwise_blocks`` / ``refiner_blocks`` / ``projector``) is unique to it.+ Returns True only for Krea-2 main models, not LoRAs.+ """+ # The text-fusion stage is unique to Krea-2. Diffusers naming uses `text_fusion`/`time_mod_proj`;+ # the native/ComfyUI GGUF conversion uses the compact `txtfusion`/`tproj` names instead.+ krea2_specific_keys = {+ "text_fusion", # text-fusion stage (diffusers naming) - unique to Krea-2+ "txtfusion", # text-fusion stage (native/ComfyUI GGUF naming)+ "time_mod_proj", # timestep modulation projection (diffusers)+ }+ # Corroborating image-input signals: `img_in` (diffusers) / `first` (native), or the timestep+ # modulation projection (`tproj` native).+ krea2_corroborating_keys = {"img_in", "first", "tproj"}++ lora_suffixes = (+ ".lora_down.weight",+ ".lora_up.weight",+ ".lora_A.weight",+ ".lora_B.weight",+ ".dora_scale",+ ".alpha",+ )++ # If any key has a LoRA suffix, this is a LoRA, not a main model.+ for key in state_dict.keys():+ if isinstance(key, int):+ continue+ if key.endswith(lora_suffixes):+ return False++ has_text_fusion = False+ has_corroborator = False+ for key in state_dict.keys():+ if isinstance(key, int):+ continue+ # Handle both direct keys and ComfyUI-style (model.diffusion_model.*) keys.+ key_parts = key.split(".")+ if any(part in krea2_specific_keys for part in key_parts):+ has_text_fusion = True+ if any(part in krea2_corroborating_keys for part in key_parts):+ has_corroborator = True+ # Require the distinctive text-fusion stage; the image-input key is a corroborating signal.+ return has_text_fusion and has_corroborator++class Main_SD_Checkpoint_Config_Base(Checkpoint_Config_Base, Main_Config_Base):"""Model config for main checkpoint models."""@@ -1332,6 +1413,120 @@ class Main_Diffusers_Ideogram4_Config(Diffusers_Config_Base, Main_Config_Base, C)+class Main_Diffusers_Krea2_Config(Diffusers_Config_Base, Main_Config_Base, Config_Base):+ """Model config for Krea-2 diffusers models (Krea-2-Turbo)."""++ base: Literal[BaseModelType.Krea2] = Field(BaseModelType.Krea2)+ variant: Krea2VariantType = Field()++ @classmethod+ def from_model_on_disk(cls, mod: ModelOnDisk, override_fields: dict[str, Any]) -> Self:+ raise_if_not_dir(mod)++ raise_for_override_fields(cls, override_fields)++ # This check implies the base type - no further validation needed.+ raise_for_class_name(+ common_config_paths(mod.path),+ {+ "Krea2Pipeline",+ },+ )++ variant = override_fields.pop("variant", None) or cls._get_variant(mod)++ repo_variant = override_fields.pop("repo_variant", None) or cls._get_repo_variant_or_raise(mod)++ return cls(+ **override_fields,+ variant=variant,+ repo_variant=repo_variant,+ )++ @classmethod+ def _get_variant(cls, mod: ModelOnDisk) -> Krea2VariantType:+ """Determine the Krea-2 variant from the pipeline-level ``is_distilled`` flag.++ Krea-2-Turbo sets ``is_distilled=true`` in model_index.json (distilled, 8 steps, CFG off);+ Krea-2-Raw sets ``is_distilled=false`` (undistilled Base, more steps, CFG on). The transformer+ architectures are identical, so this flag is the only reliable discriminator.+ """+ # model_index.json was already validated by the class-name check in from_model_on_disk, so a+ # read/parse failure here is a genuine identification error and is allowed to propagate rather+ # than being silently registered as Turbo (which would give a Raw model the wrong defaults).+ config = get_config_dict_or_raise(mod.path / "model_index.json")+ if config.get("is_distilled", False) is False:+ return Krea2VariantType.Base+ return Krea2VariantType.Turbo+++class Main_Checkpoint_Krea2_Config(Checkpoint_Config_Base, Main_Config_Base, Config_Base):+ """Model config for Krea-2 single-file checkpoint models (safetensors, etc)."""++ base: Literal[BaseModelType.Krea2] = Field(default=BaseModelType.Krea2)+ format: Literal[ModelFormat.Checkpoint] = Field(default=ModelFormat.Checkpoint)+ variant: Krea2VariantType = Field()++ @classmethod+ def from_model_on_disk(cls, mod: ModelOnDisk, override_fields: dict[str, Any]) -> Self:+ raise_if_not_file(mod)++ raise_for_override_fields(cls, override_fields)++ if mod.path.suffix.lower() != ".safetensors":+ raise NotAMatchError(f"expected a .safetensors file, got {mod.path.suffix or '(no suffix)'}")++ cls._validate_looks_like_krea2_model(mod)++ cls._validate_does_not_look_like_gguf_quantized(mod)++ variant = override_fields.pop("variant", None) or _get_krea2_variant_from_name(mod.path.name)++ return cls(**override_fields, variant=variant)++ @classmethod+ def _validate_looks_like_krea2_model(cls, mod: ModelOnDisk) -> None:+ if not _has_krea2_keys(mod.load_state_dict()):+ raise NotAMatchError("state dict does not look like a Krea-2 model")++ @classmethod+ def _validate_does_not_look_like_gguf_quantized(cls, mod: ModelOnDisk) -> None:+ if _has_ggml_tensors(mod.load_state_dict()):+ raise NotAMatchError("state dict looks like GGUF quantized")+++class Main_GGUF_Krea2_Config(Checkpoint_Config_Base, Main_Config_Base, Config_Base):+ """Model config for GGUF-quantized Krea-2 transformer models (single-file)."""++ base: Literal[BaseModelType.Krea2] = Field(default=BaseModelType.Krea2)+ format: Literal[ModelFormat.GGUFQuantized] = Field(default=ModelFormat.GGUFQuantized)+ variant: Krea2VariantType = Field()++ @classmethod+ def from_model_on_disk(cls, mod: ModelOnDisk, override_fields: dict[str, Any]) -> Self:+ raise_if_not_file(mod)++ raise_for_override_fields(cls, override_fields)++ cls._validate_looks_like_krea2_model(mod)++ cls._validate_looks_like_gguf_quantized(mod)++ variant = override_fields.pop("variant", None) or _get_krea2_variant_from_name(mod.path.name)++ return cls(**override_fields, variant=variant)++ @classmethod+ def _validate_looks_like_krea2_model(cls, mod: ModelOnDisk) -> None:+ if not _has_krea2_keys(mod.load_state_dict()):+ raise NotAMatchError("state dict does not look like a Krea-2 model")++ @classmethod+ def _validate_looks_like_gguf_quantized(cls, mod: ModelOnDisk) -> None:+ if not _has_ggml_tensors(mod.load_state_dict()):+ raise NotAMatchError("state dict does not look like GGUF quantized")++class Main_Diffusers_QwenImage_Config(Diffusers_Config_Base, Main_Config_Base, Config_Base):"""Model config for Qwen Image diffusers models (both txt2img and edit)."""diff --git a/invokeai/backend/model_manager/configs/qwen3_encoder.py b/invokeai/backend/model_manager/configs/qwen3_encoder.pyindex 3c234793ce..f92229a774 100644--- a/invokeai/backend/model_manager/configs/qwen3_encoder.py+++ b/invokeai/backend/model_manager/configs/qwen3_encoder.py@@ -61,17 +61,21 @@ def _has_t5_encoder_keys(state_dict: dict[str | int, Any]) -> bool:def _has_qwen_vl_visual_tower(state_dict: dict[str | int, Any]) -> bool:- """Check if state dict bundles a Qwen2.5-VL / Qwen2-VL vision tower.-- Qwen-VL encoders ship the visual tower (`visual.blocks.*`, `visual.patch_embed.*`)- alongside the language model, whereas a text-only Qwen3 encoder never does. A Qwen-VL- file otherwise satisfies the Qwen3 key heuristic (it has `model.layers.*` /- `model.embed_tokens.weight` too), so without this check it matches *both* the Qwen3 and- the QwenVLEncoder configs and the tiebreak can misroute it to Qwen3. We use it to keep- the two mutually exclusive.+ """Check if state dict bundles a Qwen-VL vision tower (Qwen2-VL / Qwen2.5-VL / Qwen3-VL).++ VL encoders ship a visual tower alongside the language model, whereas a text-only Qwen3 encoder+ never does. A VL file otherwise satisfies the Qwen3 key heuristic (it has ``model.layers.*`` /+ ``model.embed_tokens.weight`` too), so without this check it matches *both* the text-only Qwen3+ config and the VL config and the tiebreak can misroute it. We use it to keep them mutually exclusive.++ The predicate deliberately mirrors ``_is_qwen3_vl_encoder_state_dict`` (qwen3_vl_encoder.py) so both+ sides agree on what counts as a visual tower - crucially including the nested ``model.visual.*``+ layout that ComfyUI single-file Qwen3-VL checkpoints use. Matching only bare ``visual.blocks.*``+ missed that layout, letting a single-file Qwen3-VL 4B encoder match both configs and get misrouted to+ the text-only Qwen3 type - silently breaking the single-file/GGUF Krea-2 encoder install path."""for key in state_dict.keys():- if isinstance(key, str) and (key.startswith("visual.blocks.") or key.startswith("visual.patch_embed.")):+ if isinstance(key, str) and (key.startswith(("visual.", "model.visual.")) or ".visual." in key):return Truereturn Falsediff --git a/invokeai/backend/model_manager/configs/qwen3_vl_encoder.py b/invokeai/backend/model_manager/configs/qwen3_vl_encoder.pynew file mode 100644index 0000000000..b4af3d4385--- /dev/null+++ b/invokeai/backend/model_manager/configs/qwen3_vl_encoder.py@@ -0,0 +1,195 @@+from pathlib import Path+from typing import Any, Literal, Self++from pydantic import Field++from invokeai.backend.model_manager.configs.base import Checkpoint_Config_Base, Config_Base+from invokeai.backend.model_manager.configs.identification_utils import (+ NotAMatchError,+ get_config_dict_or_raise,+ raise_for_class_name,+ raise_for_override_fields,+ raise_if_not_dir,+ raise_if_not_file,+)+from invokeai.backend.model_manager.model_on_disk import ModelOnDisk+from invokeai.backend.model_manager.taxonomy import BaseModelType, ModelFormat, ModelType++_KREA2_QWEN3_VL_HIDDEN_SIZE = 2560+_KREA2_QWEN3_VL_NUM_HIDDEN_LAYERS = 36+++def _validate_krea2_qwen3_vl_config(config_path: Path) -> None:+ config = get_config_dict_or_raise(config_path)+ text_config = config.get("text_config", config)+ if not isinstance(text_config, dict):+ raise NotAMatchError("Qwen3-VL text_config must be an object")+ hidden_size = text_config.get("hidden_size")+ num_hidden_layers = text_config.get("num_hidden_layers")+ if hidden_size != _KREA2_QWEN3_VL_HIDDEN_SIZE:+ raise NotAMatchError(+ f"Krea-2 requires the Qwen3-VL 4B hidden size {_KREA2_QWEN3_VL_HIDDEN_SIZE}, got {hidden_size}"+ )+ if num_hidden_layers != _KREA2_QWEN3_VL_NUM_HIDDEN_LAYERS:+ raise NotAMatchError(+ f"Krea-2 requires {_KREA2_QWEN3_VL_NUM_HIDDEN_LAYERS} Qwen3-VL layers, got {num_hidden_layers}"+ )+++def _has_complete_pretrained_weights(weights_path: Path) -> bool:+ if (weights_path / "model.safetensors").is_file() or (weights_path / "pytorch_model.bin").is_file():+ return True++ for index_name in ("model.safetensors.index.json", "pytorch_model.bin.index.json"):+ index_path = weights_path / index_name+ if not index_path.is_file():+ continue+ index = get_config_dict_or_raise(index_path)+ weight_map = index.get("weight_map")+ if not isinstance(weight_map, dict) or not weight_map:+ return False+ filenames = list(weight_map.values())+ if not all(isinstance(filename, str) and filename for filename in filenames):+ return False+ root = weights_path.resolve()+ referenced_files: set[Path] = set()+ for filename in filenames:+ filename_path = Path(filename)+ if filename_path.is_absolute():+ return False+ candidate = (weights_path / filename_path).resolve()+ if not candidate.is_relative_to(root):+ return False+ referenced_files.add(candidate)+ return bool(referenced_files) and all(path.is_file() for path in referenced_files)+ return False+++def _validate_krea2_qwen3_vl_checkpoint_shape(state_dict: dict[str | int, Any]) -> None:+ embed_keys = (+ "model.embed_tokens.weight",+ "model.language_model.embed_tokens.weight",+ "language_model.embed_tokens.weight",+ "embed_tokens.weight",+ )+ embed = next((state_dict[key] for key in embed_keys if key in state_dict), None)+ shape = getattr(embed, "shape", ())+ if len(shape) < 2 or shape[1] != _KREA2_QWEN3_VL_HIDDEN_SIZE:+ hidden_size = shape[1] if len(shape) >= 2 else None+ raise NotAMatchError(+ f"Krea-2 requires a Qwen3-VL 4B checkpoint with hidden size "+ f"{_KREA2_QWEN3_VL_HIDDEN_SIZE}, got {hidden_size}"+ )+ if not any(isinstance(key, str) and ".layers.35." in key for key in state_dict):+ raise NotAMatchError("Krea-2 requires a Qwen3-VL 4B checkpoint containing language-model layer 35")+++class Qwen3VLEncoder_Qwen3VLEncoder_Config(Config_Base):+ """Configuration for standalone Qwen3-VL text encoder models (diffusers-like directory format).++ Used by Krea-2, whose text conditioning comes from a Qwen3-VL model (``Qwen3VLModel``). The model+ weights are expected either in a ``text_encoder`` subfolder of the model directory or directly at the+ root (standalone download). This is distinct from the text-only ``Qwen3Encoder`` (Z-Image / FLUX.2+ Klein) and the Qwen2.5-VL ``QwenVLEncoder`` (Qwen Image).+ """++ base: Literal[BaseModelType.Any] = Field(default=BaseModelType.Any)+ type: Literal[ModelType.Qwen3VLEncoder] = Field(default=ModelType.Qwen3VLEncoder)+ format: Literal[ModelFormat.Qwen3VLEncoder] = Field(default=ModelFormat.Qwen3VLEncoder)+ cpu_only: bool | None = Field(default=None, description="Whether this model should run on CPU only")++ @classmethod+ def from_model_on_disk(cls, mod: ModelOnDisk, override_fields: dict[str, Any]) -> Self:+ raise_if_not_dir(mod)++ raise_for_override_fields(cls, override_fields)++ # Exclude full pipeline models - these should be matched as main models, not just encoders.+ model_index_path = mod.path / "model_index.json"+ transformer_path = mod.path / "transformer"+ if model_index_path.exists() or transformer_path.exists():+ raise NotAMatchError(+ "directory looks like a full diffusers pipeline (has model_index.json or transformer folder), "+ "not a standalone Qwen3-VL encoder"+ )++ # Support both a nested text_encoder/config.json and a standalone config.json at the root.+ config_path_nested = mod.path / "text_encoder" / "config.json"+ config_path_direct = mod.path / "config.json"++ if config_path_nested.exists():+ expected_config_path = config_path_nested+ elif config_path_direct.exists():+ expected_config_path = config_path_direct+ else:+ raise NotAMatchError(f"unable to load config file: {config_path_nested} does not exist")++ # Qwen3-VL uses the Qwen3VLModel / Qwen3VLForConditionalGeneration architecture.+ raise_for_class_name(+ expected_config_path,+ {+ "Qwen3VLModel",+ "Qwen3VLForConditionalGeneration",+ },+ )+ _validate_krea2_qwen3_vl_config(expected_config_path)++ if config_path_nested.exists():+ weights_path = mod.path / "text_encoder"+ tokenizer_path = mod.path / "tokenizer"+ else:+ weights_path = mod.path+ tokenizer_path = mod.path++ has_weights = _has_complete_pretrained_weights(weights_path)+ has_tokenizer = (tokenizer_path / "tokenizer.json").exists() or (+ (tokenizer_path / "vocab.json").exists() and (tokenizer_path / "merges.txt").exists()+ )+ if not has_weights:+ raise NotAMatchError("standalone Qwen3-VL encoder directory does not contain model weights")+ if not has_tokenizer:+ raise NotAMatchError("standalone Qwen3-VL encoder directory does not contain tokenizer files")++ return cls(**override_fields)+++def _is_qwen3_vl_encoder_state_dict(state_dict: dict[str | int, Any]) -> bool:+ """True for a single-file Qwen3-VL encoder: a Qwen3 text decoder PLUS a visual tower.++ The visual tower (``visual.*`` / ``model.visual.*``) distinguishes Qwen3-VL from the text-only+ ``Qwen3Encoder`` (Z-Image / FLUX.2 Klein), which has ``model.layers.*`` but no visual tower.+ """+ str_keys = [k for k in state_dict if isinstance(k, str)]+ has_text_decoder = any(".layers." in k and ("model." in k or k.startswith("layers.")) for k in str_keys)+ has_visual_tower = any(k.startswith(("visual.", "model.visual.")) or ".visual." in k for k in str_keys)+ return has_text_decoder and has_visual_tower+++class Qwen3VLEncoder_Checkpoint_Config(Checkpoint_Config_Base, Config_Base):+ """Configuration for a single-file Qwen3-VL text encoder checkpoint (e.g. ComfyUI ``qwen3vl_4b_*``).++ Distinguished from the text-only ``Qwen3Encoder`` checkpoint (Z-Image) by the presence of the+ Qwen3-VL visual tower. The tokenizer is not bundled in single-file checkpoints and is pulled from+ HuggingFace (``Qwen/Qwen3-VL-4B-Instruct``) by the loader.+ """++ base: Literal[BaseModelType.Any] = Field(default=BaseModelType.Any)+ type: Literal[ModelType.Qwen3VLEncoder] = Field(default=ModelType.Qwen3VLEncoder)+ format: Literal[ModelFormat.Checkpoint] = Field(default=ModelFormat.Checkpoint)+ cpu_only: bool | None = Field(default=None, description="Whether this model should run on CPU only")++ @classmethod+ def from_model_on_disk(cls, mod: ModelOnDisk, override_fields: dict[str, Any]) -> Self:+ raise_if_not_file(mod)++ raise_for_override_fields(cls, override_fields)++ if mod.path.suffix.lower() != ".safetensors":+ raise NotAMatchError(f"expected a .safetensors file, got {mod.path.suffix or '(no suffix)'}")++ state_dict = mod.load_state_dict()+ if not _is_qwen3_vl_encoder_state_dict(state_dict):+ raise NotAMatchError("state dict does not look like a single-file Qwen3-VL encoder")+ _validate_krea2_qwen3_vl_checkpoint_shape(state_dict)++ return cls(**override_fields)diff --git a/invokeai/backend/model_manager/load/model_loaders/krea2.py b/invokeai/backend/model_manager/load/model_loaders/krea2.pynew file mode 100644index 0000000000..98cd4a2dec--- /dev/null+++ b/invokeai/backend/model_manager/load/model_loaders/krea2.py@@ -0,0 +1,601 @@+# Copyright (c) 2024, Lincoln D. Stein and the InvokeAI Development Team+"""Class for Krea-2 model loading in InvokeAI."""++from pathlib import Path+from typing import Any, Optional++import accelerate+from transformers import AutoConfig, AutoTokenizer++from invokeai.backend.model_manager.configs.base import Checkpoint_Config_Base, Diffusers_Config_Base+from invokeai.backend.model_manager.configs.factory import AnyModelConfig+from invokeai.backend.model_manager.configs.main import Main_Checkpoint_Krea2_Config, Main_GGUF_Krea2_Config+from invokeai.backend.model_manager.configs.qwen3_vl_encoder import (+ Qwen3VLEncoder_Checkpoint_Config,+ Qwen3VLEncoder_Qwen3VLEncoder_Config,+)+from invokeai.backend.model_manager.load.load_default import ModelLoader+from invokeai.backend.model_manager.load.model_loader_registry import ModelLoaderRegistry+from invokeai.backend.model_manager.load.model_loaders.generic_diffusers import GenericDiffusersLoader+from invokeai.backend.model_manager.taxonomy import (+ AnyModel,+ BaseModelType,+ ModelFormat,+ ModelType,+ SubModelType,+)+from invokeai.backend.quantization.gguf.loaders import gguf_sd_loader+from invokeai.backend.util.devices import TorchDevice+++def _normalize_qwen3vl_rope_config(config: Any) -> Any:+ """Mirror Qwen3-VL rope_parameters into rope_scaling for Transformers compatibility."""+ text_config = getattr(config, "text_config", None)+ if text_config is not None:+ rope_params = getattr(text_config, "rope_parameters", None)+ if getattr(text_config, "rope_scaling", None) is None and rope_params is not None:+ text_config.rope_scaling = rope_params+ return config+++def _strip_comfyui_prefix(sd: dict[str, Any]) -> dict[str, Any]:+ """Strip ComfyUI-style ``model.diffusion_model.`` / ``diffusion_model.`` key prefixes if present."""+ prefix_to_strip = None+ for prefix in ("model.diffusion_model.", "diffusion_model."):+ if any(isinstance(k, str) and k.startswith(prefix) for k in sd.keys()):+ prefix_to_strip = prefix+ break+ if not prefix_to_strip:+ return sd+ return {+ (k[len(prefix_to_strip) :] if isinstance(k, str) and k.startswith(prefix_to_strip) else k): v+ for k, v in sd.items()+ }+++def _to_plain_tensor(value: Any) -> Any:+ """Dequantize a GGMLTensor to a plain tensor (needed before reshape); pass others through."""+ if hasattr(value, "get_dequantized_tensor"):+ return value.get_dequantized_tensor()+ return value+++def _put_unique_key(+ dest: dict[Any, Any], key: Any, value: Any, *, source: Any, source_of: dict[Any, Any], what: str+) -> None:+ """Assign ``dest[key] = value``, rejecting a collision produced by a different source key.++ These key normalizers map each source key to exactly one target key. A well-formed checkpoint is+ either fully native or already in the target layout, so two distinct source keys never collapse to+ the same target. A malformed *mixed-layout* checkpoint can, though — e.g. it carries both a native+ ``blocks.0.attn.wq.weight`` and an already-diffusers ``transformer_blocks.0.attn.to_q.weight`` that+ normalize to the same key. Silently overwriting would make the surviving tensor depend on dict+ iteration order, so reject with an actionable message instead of dropping one tensor.+ """+ if key in dest:+ raise RuntimeError(+ f"{what}: source keys {source_of.get(key)!r} and {source!r} both normalize to {key!r}. "+ "The checkpoint appears to mix native and target key layouts; refusing to silently drop "+ "one of the tensors."+ )+ dest[key] = value+ source_of[key] = source+++def _is_native_krea2_format(sd: dict[str, Any]) -> bool:+ """Detect the native/ComfyUI Krea-2 key naming (e.g. GGUF) vs. the diffusers naming."""+ return any(+ isinstance(k, str) and (k.startswith(("blocks.", "txtfusion.", "first.")) or ".mod.lin" in k) for k in sd+ )+++def _dequantize_scaled_fp8(sd: dict[str, Any]) -> dict[str, Any]:+ """Dequantize ComfyUI 'scaled fp8' weights: ``dequant = weight.float() * weight_scale``.++ Each quantized layer stores an fp8 ``<name>.weight`` plus a (usually scalar) ``<name>.weight_scale``.+ Returns a new dict with the weights dequantized to float and the ``.weight_scale`` keys removed.+ No-op if there are no scale keys.+ """+ import torch++ scale_keys = [k for k in sd if isinstance(k, str) and k.endswith(".weight_scale")]+ if not scale_keys:+ return sd+ out = dict(sd)+ for scale_key in scale_keys:+ weight_key = scale_key.replace(".weight_scale", ".weight")+ if weight_key in out:+ weight = torch.as_tensor(_to_plain_tensor(out[weight_key])).float()+ scale = torch.as_tensor(_to_plain_tensor(out[scale_key])).float()+ out[weight_key] = weight * scale+ del out[scale_key]+ return out+++def _convert_krea2_native_to_diffusers(sd: dict[str, Any]) -> dict[str, Any]:+ """Convert a native/ComfyUI-format Krea-2 state dict (e.g. GGUF) to diffusers Krea2Transformer2DModel keys.++ Top-level module renames::++ blocks.N.* -> transformer_blocks.N.*+ txtfusion.* -> text_fusion.*+ first.* -> img_in.*+ tmlp.0/2.* -> time_embed.linear_1/2.*+ tproj.1.* -> time_mod_proj.*+ txtmlp.0/1/3.* -> txt_in.norm / linear_1 / linear_2.*+ last.linear/norm/modulation -> final_layer.linear / norm.weight / scale_shift_table++ Within every transformer / text-fusion block::++ attn.wq/wk/wv/wo -> attn.to_q/to_k/to_v/to_out.0+ attn.gate -> attn.to_gate+ attn.qknorm.qnorm/knorm.scale -> attn.norm_q/norm_k.weight+ mlp.gate/up/down -> ff.gate/up/down+ prenorm/postnorm.scale -> norm1/norm2.weight+ mod.lin (6*H,) -> scale_shift_table (6, H)++ The original final-block ``last.down``/``last.up`` projections have no counterpart in the diffusers+ ``Krea2FinalLayer`` (a clean AdaLN + linear) and are dropped.+ """+ import torch++ new_sd: dict[str, Any] = {}+ source_of: dict[Any, Any] = {}+ for key, value in sd.items():+ if not isinstance(key, str):+ _put_unique_key(new_sd, key, value, source=key, source_of=source_of, what="Krea-2 checkpoint")+ continue+ # Drop original-only final-block projections (no diffusers equivalent).+ if key in ("last.down.weight", "last.up.weight"):+ continue++ k = key+ # Top-level module prefixes.+ if k.startswith("blocks."):+ k = "transformer_blocks." + k[len("blocks.") :]+ elif k.startswith("txtfusion."):+ k = "text_fusion." + k[len("txtfusion.") :]+ elif k.startswith("first."):+ k = "img_in." + k[len("first.") :]+ elif k.startswith("tmlp.0."):+ k = "time_embed.linear_1." + k[len("tmlp.0.") :]+ elif k.startswith("tmlp.2."):+ k = "time_embed.linear_2." + k[len("tmlp.2.") :]+ elif k.startswith("tproj.1."):+ k = "time_mod_proj." + k[len("tproj.1.") :]+ elif k == "txtmlp.0.scale":+ k = "txt_in.norm.weight"+ elif k.startswith("txtmlp.1."):+ k = "txt_in.linear_1." + k[len("txtmlp.1.") :]+ elif k.startswith("txtmlp.3."):+ k = "txt_in.linear_2." + k[len("txtmlp.3.") :]+ elif k == "last.linear.weight":+ k = "final_layer.linear.weight"+ elif k == "last.linear.bias":+ k = "final_layer.linear.bias"+ elif k == "last.norm.scale":+ k = "final_layer.norm.weight"+ elif k == "last.modulation.lin":+ k = "final_layer.scale_shift_table"+ # Krea2FinalLayer.scale_shift_table is (2, hidden) (scale, shift). Reshape the flat native+ # table just like the per-block (6, hidden) tables below - otherwise load_state_dict(assign=True)+ # installs a wrong-shaped 1-D parameter (which the meta-only completeness guard cannot catch)+ # and the final layer fails at inference.+ value = torch.as_tensor(_to_plain_tensor(value)).reshape(2, -1)++ # Within-block sub-module renames (apply to transformer_blocks.* and text_fusion.*).+ k = k.replace(".attn.wq.weight", ".attn.to_q.weight")+ k = k.replace(".attn.wk.weight", ".attn.to_k.weight")+ k = k.replace(".attn.wv.weight", ".attn.to_v.weight")+ k = k.replace(".attn.wo.weight", ".attn.to_out.0.weight")+ k = k.replace(".attn.gate.weight", ".attn.to_gate.weight")+ k = k.replace(".attn.qknorm.qnorm.scale", ".attn.norm_q.weight")+ k = k.replace(".attn.qknorm.knorm.scale", ".attn.norm_k.weight")+ k = k.replace(".mlp.gate.weight", ".ff.gate.weight")+ k = k.replace(".mlp.up.weight", ".ff.up.weight")+ k = k.replace(".mlp.down.weight", ".ff.down.weight")+ k = k.replace(".prenorm.scale", ".norm1.weight")+ k = k.replace(".postnorm.scale", ".norm2.weight")++ # Per-image-block modulation table: flat (6*H,) -> (6, H).+ if k.endswith(".mod.lin"):+ k = k[: -len(".mod.lin")] + ".scale_shift_table"+ value = torch.as_tensor(_to_plain_tensor(value)).reshape(6, -1)++ _put_unique_key(new_sd, k, value, source=key, source_of=source_of, what="Krea-2 checkpoint")+ return new_sd+++# Default Krea2Transformer2DModel config (from the Krea-2-Turbo transformer/config.json). Used when+# loading a bare single-file checkpoint that has no accompanying config.json.+KREA2_TRANSFORMER_CONFIG = {+ "attention_head_dim": 128,+ "axes_dims_rope": [32, 48, 48],+ "in_channels": 64,+ "intermediate_size": 16384,+ "norm_eps": 1e-05,+ "num_attention_heads": 48,+ "num_key_value_heads": 12,+ "num_layers": 28,+ "num_layerwise_text_blocks": 2,+ "num_refiner_text_blocks": 2,+ "num_text_layers": 12,+ "rope_theta": 1000.0,+ "text_hidden_dim": 2560,+ "text_intermediate_size": 6912,+ "text_num_attention_heads": 20,+ "text_num_key_value_heads": 20,+ "timestep_embed_dim": 256,+}++[email protected](base=BaseModelType.Krea2, type=ModelType.Main, format=ModelFormat.Diffusers)+class Krea2DiffusersModel(GenericDiffusersLoader):+ """Class to load Krea-2 main models (Krea-2-Turbo) in diffusers format.++ Loads every submodel (transformer, vae, text_encoder, tokenizer, scheduler) from the diffusers+ pipeline folder via the class names declared in model_index.json. The transformer resolves to+ diffusers' ``Krea2Transformer2DModel`` (only available in diffusers main / >=0.39); the VAE to+ ``AutoencoderKLQwenImage`` and the text encoder to ``Qwen3VLModel``.+ """++ def _load_model(+ self,+ config: AnyModelConfig,+ submodel_type: Optional[SubModelType] = None,+ ) -> AnyModel:+ if isinstance(config, Checkpoint_Config_Base):+ raise NotImplementedError("CheckpointConfigBase is not implemented for the Krea-2 diffusers loader.")++ if submodel_type is None:+ raise Exception("A submodel type must be provided when loading main pipelines.")++ model_path = Path(config.path)++ # model_index.json declares the tokenizer as the slow `Qwen2Tokenizer`, which requires+ # vocab.json/merges.txt. Krea-2 ships only a fast tokenizer.json, so load via AutoTokenizer+ # (which resolves to Qwen2TokenizerFast from tokenizer.json).+ #+ # Krea-2's tokenizer_config.json stores `extra_special_tokens` as a list (the special tokens+ # are already baked into tokenizer.json as added tokens). Newer transformers expects a dict and+ # crashes on the list, so override it with an empty dict — the special tokens are still+ # recognized from tokenizer.json.+ if submodel_type is SubModelType.Tokenizer:+ return AutoTokenizer.from_pretrained(+ model_path / submodel_type.value, local_files_only=True, extra_special_tokens={}+ )++ load_class = self.get_hf_load_class(model_path, submodel_type)+ repo_variant = config.repo_variant if isinstance(config, Diffusers_Config_Base) else None+ variant = repo_variant.value if repo_variant else None+ model_path = model_path / submodel_type.value++ # Krea-2 prefers bfloat16; use a safe dtype based on target device capabilities.+ target_device = TorchDevice.choose_torch_device()+ dtype = TorchDevice.choose_bfloat16_safe_dtype(target_device)++ extra_kwargs: dict[str, Any] = {}+ if submodel_type is SubModelType.TextEncoder:+ # Krea-2's Qwen3-VL text_encoder config stores rope settings under `rope_parameters`, but the+ # installed transformers' Qwen3VL rotary embedding reads `rope_scaling` (None here) → crash.+ # Patch the config so rope_scaling mirrors rope_parameters before instantiating the model.+ te_config = _normalize_qwen3vl_rope_config(AutoConfig.from_pretrained(model_path, local_files_only=True))+ extra_kwargs["config"] = te_config++ try:+ result: AnyModel = load_class.from_pretrained(+ model_path,+ torch_dtype=dtype,+ variant=variant,+ **extra_kwargs,+ )+ except OSError as e:+ if variant and "no file named" in str(e):+ # try without the variant, just in case the user's preferences changed+ result = load_class.from_pretrained(model_path, torch_dtype=dtype, **extra_kwargs)+ else:+ raise e++ result = self._apply_fp8_layerwise_casting(result, config, submodel_type)+ return result++[email protected](base=BaseModelType.Krea2, type=ModelType.Main, format=ModelFormat.Checkpoint)+class Krea2CheckpointModel(ModelLoader):+ """Class to load Krea-2 transformer models from single-file checkpoints (safetensors).++ Handles plain bf16/fp16 checkpoints as well as ComfyUI 'scaled fp8' checkpoints (fp8 weight ++ ``.weight_scale``), and both the diffusers and native/ComfyUI key naming. Apply the fp8-storage+ setting to keep the (large) transformer fp8-resident; otherwise it loads in full precision.+ """++ def _load_model(+ self,+ config: AnyModelConfig,+ submodel_type: Optional[SubModelType] = None,+ ) -> AnyModel:+ if not isinstance(config, Checkpoint_Config_Base):+ raise ValueError("Only CheckpointConfigBase models are supported here.")++ if submodel_type is not SubModelType.Transformer:+ raise ValueError(+ f"Only Transformer submodels are supported. Received: {submodel_type.value if submodel_type else 'None'}"+ )+ return self._load_from_singlefile(config)++ def _load_from_singlefile(self, config: AnyModelConfig) -> AnyModel:+ from diffusers import Krea2Transformer2DModel+ from safetensors.torch import load_file++ if not isinstance(config, Main_Checkpoint_Krea2_Config):+ raise TypeError(f"Expected Main_Checkpoint_Krea2_Config, got {type(config).__name__}.")+ model_path = Path(config.path)++ sd = load_file(model_path)+ sd = _strip_comfyui_prefix(sd)+ # ComfyUI 'scaled fp8' checkpoints: fold the per-tensor weight_scale into the weights (→ float).+ sd = _dequantize_scaled_fp8(sd)+ # Native/ComfyUI key naming → diffusers Krea2Transformer2DModel keys.+ if _is_native_krea2_format(sd):+ sd = _convert_krea2_native_to_diffusers(sd)++ target_device = TorchDevice.choose_torch_device()+ model_dtype = TorchDevice.choose_bfloat16_safe_dtype(target_device)++ with accelerate.init_empty_weights():+ model = Krea2Transformer2DModel(**KREA2_TRANSFORMER_CONFIG)++ new_sd_size = sum(ten.nelement() * model_dtype.itemsize for ten in sd.values())+ self._ram_cache.make_room(new_sd_size)+ for k in sd.keys():+ sd[k] = sd[k].to(model_dtype)++ model.load_state_dict(sd, assign=True, strict=False)+ _reject_incomplete_load(model, what="Krea-2 single-file checkpoint")+ # Honor the fp8-storage setting (re-quantizes the dequantized weights to fp8-resident on CUDA).+ model = self._apply_fp8_layerwise_casting(model, config, SubModelType.Transformer)+ return model++[email protected](base=BaseModelType.Krea2, type=ModelType.Main, format=ModelFormat.GGUFQuantized)+class Krea2GGUFCheckpointModel(ModelLoader):+ """Class to load GGUF-quantized Krea-2 transformer models (single-file).++ GGUF ships only the transformer; the VAE (Qwen-Image), Qwen3-VL encoder, tokenizer and scheduler+ are sourced separately by the Krea-2 model-loader invocation (mix-and-match, like Z-Image/FLUX).+ The GGML tensors stay quantized and are dequantized on-the-fly during inference.+ """++ def _load_model(+ self,+ config: AnyModelConfig,+ submodel_type: Optional[SubModelType] = None,+ ) -> AnyModel:+ if not isinstance(config, Checkpoint_Config_Base):+ raise ValueError("Only CheckpointConfigBase models are supported here.")+ if submodel_type is not SubModelType.Transformer:+ raise ValueError(+ f"Only Transformer submodels are supported. Received: {submodel_type.value if submodel_type else 'None'}"+ )+ return self._load_from_gguf(config)++ def _load_from_gguf(self, config: AnyModelConfig) -> AnyModel:+ from diffusers import Krea2Transformer2DModel++ if not isinstance(config, Main_GGUF_Krea2_Config):+ raise TypeError(f"Expected Main_GGUF_Krea2_Config, got {type(config).__name__}.")++ model_path = Path(config.path)+ target_device = TorchDevice.choose_torch_device()+ compute_dtype = TorchDevice.choose_bfloat16_safe_dtype(target_device)++ # GGMLTensor wrappers (kept on CPU; dequantized on-the-fly by the cache during inference).+ sd = gguf_sd_loader(model_path, compute_dtype=compute_dtype)+ sd = _strip_comfyui_prefix(sd)+ # GGUF conversions use the native/ComfyUI compact key naming; remap to diffusers keys.+ if _is_native_krea2_format(sd):+ sd = _convert_krea2_native_to_diffusers(sd)++ with accelerate.init_empty_weights():+ model = Krea2Transformer2DModel(**KREA2_TRANSFORMER_CONFIG)++ model.load_state_dict(sd, assign=True, strict=False)+ # Reject GGUF layouts that don't fully populate the diffusers Krea2Transformer2DModel (city96/+ # ComfyUI GGUFs may use key names needing conversion). Failing here beats a confusing meta-tensor+ # crash mid-inference.+ _reject_incomplete_load(model, what="Krea-2 GGUF checkpoint")+ return model++[email protected](base=BaseModelType.Any, type=ModelType.Qwen3VLEncoder, format=ModelFormat.Qwen3VLEncoder)+class Qwen3VLEncoderLoader(ModelLoader):+ """Class to load standalone Qwen3-VL text encoder models for Krea-2 (directory format)."""++ def _load_model(+ self,+ config: AnyModelConfig,+ submodel_type: Optional[SubModelType] = None,+ ) -> AnyModel:+ from transformers import Qwen3VLModel++ if not isinstance(config, Qwen3VLEncoder_Qwen3VLEncoder_Config):+ raise ValueError("Only Qwen3VLEncoder_Qwen3VLEncoder_Config models are supported here.")++ model_path = Path(config.path)++ # Support both a full pipeline-style layout (text_encoder/ + tokenizer/) and a standalone+ # download where the encoder files live directly at the root.+ text_encoder_path = model_path / "text_encoder"+ tokenizer_path = model_path / "tokenizer"+ is_standalone = not text_encoder_path.exists() and (model_path / "config.json").exists()+ if is_standalone:+ text_encoder_path = model_path+ tokenizer_path = model_path++ match submodel_type:+ case SubModelType.Tokenizer:+ # extra_special_tokens={} works around Krea-2's list-format tokenizer_config (see+ # Krea2DiffusersModel); harmless for well-formed configs.+ return AutoTokenizer.from_pretrained(tokenizer_path, local_files_only=True, extra_special_tokens={})+ case SubModelType.TextEncoder:+ target_device = TorchDevice.choose_torch_device()+ model_dtype = TorchDevice.choose_bfloat16_safe_dtype(target_device)+ te_config = _normalize_qwen3vl_rope_config(+ AutoConfig.from_pretrained(text_encoder_path, local_files_only=True)+ )+ return Qwen3VLModel.from_pretrained(+ text_encoder_path,+ config=te_config,+ torch_dtype=model_dtype,+ low_cpu_mem_usage=True,+ local_files_only=True,+ )++ raise ValueError(+ f"Only Tokenizer and TextEncoder submodels are supported. "+ f"Received: {submodel_type.value if submodel_type else 'None'}"+ )+++def _remap_qwen3vl_singlefile_keys(sd: dict[str, Any]) -> dict[str, Any]:+ """Remap ComfyUI single-file Qwen3-VL keys to the transformers ``Qwen3VLModel`` layout.++ ComfyUI/native layout uses a single ``model.`` prefix for both towers; transformers splits them:+ ``model.visual.*`` -> ``visual.*`` and ``model.<rest>`` (layers/embed_tokens/norm) -> ``language_model.<rest>``.+ """+ out: dict[str, Any] = {}+ source_of: dict[Any, Any] = {}+ what = "Qwen3-VL encoder checkpoint"+ for k, v in sd.items():+ if not isinstance(k, str):+ _put_unique_key(out, k, v, source=k, source_of=source_of, what=what)+ continue+ # Strip a leading "model." (some checkpoints prefix everything with it), then route by tower.+ key = k[len("model.") :] if k.startswith("model.") else k+ if key.startswith("visual.") or key.startswith("language_model."):+ # Already the transformers layout (e.g. "model.language_model.*" / "model.visual.*").+ _put_unique_key(out, key, v, source=k, source_of=source_of, what=what)+ else:+ # Bare language-model keys (layers.* / embed_tokens / norm) belong under language_model.+ _put_unique_key(out, "language_model." + key, v, source=k, source_of=source_of, what=what)+ return out+++def _reject_incomplete_load(model: Any, *, what: str) -> None:+ """Raise if a ``load_state_dict(strict=False)`` left required tensors on the meta device.++ ``strict=False`` is used to tolerate benign extra/renamed keys, but it also silently accepts a+ checkpoint that omits required weights — those tensors stay on the meta device and only fail much+ later during inference. Reject such loads here, naming the offending tensors, so an incomplete,+ misidentified, or differently-converted checkpoint fails at load time with an actionable message.++ Both parameters *and persistent buffers* are checked: ``accelerate.init_empty_weights()`` places+ buffers on the meta device too, so a native/GGUF checkpoint that omits a persistent buffer would+ slip past a parameters-only guard and fail mid-inference instead of at load time.+ """+ still_meta = [+ name+ for name, tensor in (*model.named_parameters(), *model.named_buffers())+ if getattr(tensor, "is_meta", False)+ ]+ if still_meta:+ raise RuntimeError(+ f"{what} is incomplete: {len(still_meta)} tensor(s) were not provided by the checkpoint "+ f"and remain uninitialized (meta device). First few: {still_meta[:8]}. The file is likely "+ "incomplete, misidentified, or uses a key layout that needs conversion."+ )++[email protected](base=BaseModelType.Any, type=ModelType.Qwen3VLEncoder, format=ModelFormat.Checkpoint)+class Qwen3VLEncoderCheckpointLoader(ModelLoader):+ """Loads a single-file Qwen3-VL encoder checkpoint (e.g. ComfyUI ``qwen3vl_4b_bf16`` / ``_fp8_scaled``).++ The checkpoint bundles the language model + visual tower but no config/tokenizer; those are pulled+ from HuggingFace (``Qwen/Qwen3-VL-4B-Instruct``) with offline-cache fallback. ComfyUI 'scaled fp8'+ weights are dequantized to the compute dtype on load.+ """++ DEFAULT_HF_REPO = "Qwen/Qwen3-VL-4B-Instruct"++ def _load_model(+ self,+ config: AnyModelConfig,+ submodel_type: Optional[SubModelType] = None,+ ) -> AnyModel:+ if not isinstance(config, Qwen3VLEncoder_Checkpoint_Config):+ raise ValueError("Only Qwen3VLEncoder_Checkpoint_Config models are supported here.")++ match submodel_type:+ case SubModelType.Tokenizer:+ return self._load_tokenizer()+ case SubModelType.TextEncoder:+ return self._load_text_encoder(config)++ raise ValueError(+ f"Only Tokenizer and TextEncoder submodels are supported. "+ f"Received: {submodel_type.value if submodel_type else 'None'}"+ )++ def _load_tokenizer(self) -> AnyModel:+ # A partial offline cache (e.g. config present but vocab/merges missing) raises something other+ # than OSError (e.g. TypeError) deep in the slow-tokenizer path, so catch broadly and re-fetch.+ try:+ return AutoTokenizer.from_pretrained(self.DEFAULT_HF_REPO, local_files_only=True, extra_special_tokens={})+ except Exception:+ return AutoTokenizer.from_pretrained(self.DEFAULT_HF_REPO, extra_special_tokens={})++ def _load_hf_config(self) -> Any:+ try:+ te_config = AutoConfig.from_pretrained(self.DEFAULT_HF_REPO, local_files_only=True)+ except Exception:+ te_config = AutoConfig.from_pretrained(self.DEFAULT_HF_REPO)+ return _normalize_qwen3vl_rope_config(te_config)++ def _load_text_encoder(self, config: Qwen3VLEncoder_Checkpoint_Config) -> AnyModel:+ import torch+ from safetensors.torch import load_file+ from transformers import Qwen3VLModel++ model_path = Path(config.path)+ target_device = TorchDevice.choose_torch_device()+ model_dtype = TorchDevice.choose_bfloat16_safe_dtype(target_device)++ sd = load_file(str(model_path))+ # Detect an fp8 source (ComfyUI 'scaled fp8' weight_scale keys, or raw float8 weights) BEFORE+ # dequantizing. An fp8-on-disk encoder is kept fp8-resident with layerwise upcasting below, so+ # it occupies ~half the VRAM of the dequantized bf16 model (the whole point of shipping fp8).+ source_is_fp8 = any(isinstance(k, str) and k.endswith(".weight_scale") for k in sd) or any(+ getattr(t, "dtype", None) in (torch.float8_e4m3fn, torch.float8_e5m2) for t in sd.values()+ )+ # ComfyUI 'scaled fp8': fold weight_scale into the weights, then drop quantization metadata.+ sd = _dequantize_scaled_fp8(sd)+ for k in list(sd.keys()):+ if isinstance(k, str) and (k.endswith(".comfy_quant") or "scale_input" in k):+ del sd[k]+ sd = _remap_qwen3vl_singlefile_keys(sd)++ te_config = self._load_hf_config()+ with accelerate.init_empty_weights():+ model = Qwen3VLModel._from_config(te_config)++ new_sd_size = sum(ten.nelement() * model_dtype.itemsize for ten in sd.values())+ self._ram_cache.make_room(new_sd_size)+ for k in sd.keys():+ sd[k] = sd[k].to(model_dtype)++ model.load_state_dict(sd, assign=True, strict=False)+ _reject_incomplete_load(model, what="Qwen3-VL encoder checkpoint")++ # Keep an fp8 encoder running in fp8 (storage=float8_e4m3fn, per-layer upcast to the compute+ # dtype during forward) on CUDA. `_should_use_fp8` deliberately excludes text encoders (and the+ # config has no fp8_storage toggle), so apply the hook-based casting directly here. This roughly+ # halves the encoder's resident VRAM (~8.9GB bf16 -> ~4.4GB), which avoids partial-load thrashing+ # when it shares the GPU with a large transformer.+ if source_is_fp8 and self._torch_device.type == "cuda":+ self._apply_fp8_to_nn_module(model, storage_dtype=torch.float8_e4m3fn, compute_dtype=model_dtype)+ self._logger.info(+ f"FP8 layerwise casting enabled for Qwen3-VL encoder '{config.name}' "+ f"(storage=float8_e4m3fn, compute={model_dtype})."+ )++ return modeldiff --git a/invokeai/backend/model_manager/load/model_loaders/lora.py b/invokeai/backend/model_manager/load/model_loaders/lora.pyindex 1b4f0cdebd..ef649e5008 100644--- a/invokeai/backend/model_manager/load/model_loaders/lora.py+++ b/invokeai/backend/model_manager/load/model_loaders/lora.py@@ -57,6 +57,9 @@ from invokeai.backend.patches.lora_conversions.flux_xlabs_lora_conversion_utilsis_state_dict_likely_in_flux_xlabs_format,lora_model_from_flux_xlabs_state_dict,)+from invokeai.backend.patches.lora_conversions.krea2_lora_conversion_utils import (+ lora_model_from_krea2_state_dict,+)from invokeai.backend.patches.lora_conversions.peft_adapter_utils import normalize_peft_adapter_namesfrom invokeai.backend.patches.lora_conversions.qwen_image_lora_conversion_utils import (lora_model_from_qwen_image_state_dict,@@ -173,6 +176,10 @@ class LoRALoader(ModelLoader):model = lora_model_from_z_image_state_dict(state_dict=state_dict, alpha=None)elif self._model_base == BaseModelType.QwenImage:model = lora_model_from_qwen_image_state_dict(state_dict=state_dict, alpha=None)+ elif self._model_base == BaseModelType.Krea2:+ # Krea-2 LoRAs use diffusers PEFT format targeting the Krea2 transformer (and optionally+ # the Qwen3-VL text encoder). alpha=None → alpha=rank (common diffusers default).+ model = lora_model_from_krea2_state_dict(state_dict=state_dict, alpha=None)elif self._model_base == BaseModelType.Anima:# Anima LoRAs use Kohya-style or diffusers PEFT format targeting Cosmos DiT blocks.model = lora_model_from_anima_state_dict(state_dict=state_dict, alpha=None)diff --git a/invokeai/backend/model_manager/starter_models.py b/invokeai/backend/model_manager/starter_models.pyindex 88ed0eab45..b3934c1545 100644--- a/invokeai/backend/model_manager/starter_models.py+++ b/invokeai/backend/model_manager/starter_models.py@@ -12,6 +12,7 @@ from invokeai.backend.model_manager.configs.external_api import (from invokeai.backend.model_manager.taxonomy import (AnyVariant,BaseModelType,+ Krea2VariantType,ModelFormat,ModelType,QwenImageVariantType,@@ -1104,6 +1105,68 @@ z_image_controlnet_tile = StarterModel()# endregion+# region Krea-2+# Standalone Qwen3-VL text encoder used by Krea-2 (distinct from the Qwen2.5-VL encoder above). Pair+# with single-file / GGUF Krea-2 transformers, which ship only the transformer. The Qwen-Image VAE+# dependency reuses the `qwen_image_vae` starter defined in the Qwen Image region.+qwen3_vl_encoder_4b = StarterModel(+ name="Qwen3-VL 4B Encoder (Diffusers)",+ base=BaseModelType.Any,+ source="Qwen/Qwen3-VL-4B-Instruct",+ description="Qwen3-VL 4B text encoder (Qwen3VLModel) used by Krea-2, in HuggingFace folder layout "+ "(includes tokenizer). Use with single-file / GGUF Krea-2 transformers. (~8GB)",+ type=ModelType.Qwen3VLEncoder,+ format=ModelFormat.Qwen3VLEncoder,+)++krea2_turbo = StarterModel(+ name="Krea-2 Turbo",+ base=BaseModelType.Krea2,+ source="krea/Krea-2-Turbo",+ description="Krea-2 Turbo - distilled 12B parameter text-to-image model (8 steps, CFG disabled). "+ "Full diffusers pipeline including the Qwen-Image VAE and Qwen3-VL text encoder. ~26GB",+ type=ModelType.Main,+ variant=Krea2VariantType.Turbo,+)++krea2_raw = StarterModel(+ name="Krea-2 Raw",+ base=BaseModelType.Krea2,+ source="krea/Krea-2-Raw",+ description="Krea-2 Raw - undistilled 12B base model (28 steps, CFG enabled). Full diffusers pipeline "+ "including the Qwen-Image VAE and Qwen3-VL text encoder. Primarily a base for finetuning / LoRA "+ "training; Turbo is recommended for standard inference. ~26GB",+ type=ModelType.Main,+ variant=Krea2VariantType.Base,+)++krea2_turbo_gguf_q4_k_m = StarterModel(+ name="Krea-2 Turbo (Q4_K_M GGUF)",+ base=BaseModelType.Krea2,+ source="https://huggingface.co/vantagewithai/Krea-2-Turbo-GGUF/resolve/main/krea2_turbo-Q4_K_M.gguf",+ description="Krea-2 Turbo transformer quantized to GGUF Q4_K_M for lower VRAM (~7GB transformer). "+ "GGUF ships only the transformer, so the Qwen-Image VAE and Qwen3-VL encoder are installed as "+ "dependencies.",+ type=ModelType.Main,+ format=ModelFormat.GGUFQuantized,+ variant=Krea2VariantType.Turbo,+ dependencies=[qwen_image_vae, qwen3_vl_encoder_4b],+)++krea2_turbo_gguf_q8_0 = StarterModel(+ name="Krea-2 Turbo (Q8_0 GGUF)",+ base=BaseModelType.Krea2,+ source="https://huggingface.co/vantagewithai/Krea-2-Turbo-GGUF/resolve/main/krea2_turbo-Q8_0.gguf",+ description="Krea-2 Turbo transformer quantized to GGUF Q8_0 (near-full quality, ~13GB transformer). "+ "GGUF ships only the transformer, so the Qwen-Image VAE and Qwen3-VL encoder are installed as "+ "dependencies.",+ type=ModelType.Main,+ format=ModelFormat.GGUFQuantized,+ variant=Krea2VariantType.Turbo,+ dependencies=[qwen_image_vae, qwen3_vl_encoder_4b],+)+# endregion+# region External APIGEMINI_3_IMAGE_ALLOWED_ASPECT_RATIOS = ["1:1",@@ -2014,6 +2077,11 @@ STARTER_MODELS: list[StarterModel] = [z_image_qwen3_encoder_quantized,z_image_controlnet_union,z_image_controlnet_tile,+ krea2_turbo,+ krea2_raw,+ krea2_turbo_gguf_q4_k_m,+ krea2_turbo_gguf_q8_0,+ qwen3_vl_encoder_4b,wan_22_t5_encoder,wan_22_a14b_vae,wan_22_5b_vae,@@ -2151,6 +2219,15 @@ anima_bundle: list[StarterModel] = [anima_lllite_sketch,]+krea2_bundle: list[StarterModel] = [+ qwen_image_vae,+ qwen3_vl_encoder_4b,+ krea2_turbo,+ krea2_raw,+ krea2_turbo_gguf_q4_k_m,+ krea2_turbo_gguf_q8_0,+]+# Wan 2.2 starter bundles. Split into T2V and I2V so users only pay for the# capability they need: a 12 GB card can install just the T2V bundle and have# both text-to-video (T2V-A14B) and a low-VRAM image-to-video option (via@@ -2189,6 +2266,7 @@ STARTER_BUNDLES: dict[str, StarterModelBundle] = {BaseModelType.ZImage: StarterModelBundle(name="Z-Image Turbo", models=zimage_bundle),BaseModelType.QwenImage: StarterModelBundle(name="Qwen Image", models=qwen_image_bundle),BaseModelType.Anima: StarterModelBundle(name="Anima", models=anima_bundle),+ BaseModelType.Krea2: StarterModelBundle(name="Krea-2", models=krea2_bundle),"wan_t2v": StarterModelBundle(name="Wan 2.2 Text-to-Video", models=wan_t2v_bundle),"wan_i2v": StarterModelBundle(name="Wan 2.2 Image-to-Video", models=wan_i2v_bundle),BaseModelType.Ideogram4: StarterModelBundle(name="Ideogram 4", models=ideogram_bundle),diff --git a/invokeai/backend/model_manager/taxonomy.py b/invokeai/backend/model_manager/taxonomy.pyindex 50aae9165d..fb672b3363 100644--- a/invokeai/backend/model_manager/taxonomy.py+++ b/invokeai/backend/model_manager/taxonomy.py@@ -60,6 +60,8 @@ class BaseModelType(str, Enum):"""Indicates the model is associated with Qwen Image Edit 2511 model architecture."""Anima = "anima""""Indicates the model is associated with Anima model architecture (Cosmos Predict2 DiT + LLM Adapter)."""+ Krea2 = "krea-2"+ """Indicates the model is associated with the Krea 2 model architecture, including Krea-2-Turbo."""Wan = "wan""""Indicates the model is associated with the Wan 2.2 model architecture (T2V-A14B / TI2V-5B), used for image generation at num_frames=1."""Unknown = "unknown"@@ -83,6 +85,7 @@ class ModelType(str, Enum):T5Encoder = "t5_encoder"Qwen3Encoder = "qwen3_encoder"QwenVLEncoder = "qwen_vl_encoder"+ Qwen3VLEncoder = "qwen3_vl_encoder"WanT5Encoder = "wan_t5_encoder"SpandrelImageToImage = "spandrel_image_to_image"SigLIP = "siglip"@@ -161,6 +164,22 @@ class ZImageVariantType(str, Enum):"""Z-Image Base - undistilled foundation model with full CFG and negative prompt support."""+class Krea2VariantType(str, Enum):+ """Krea 2 model variants."""++ Turbo = "krea2_turbo"+ """Krea-2-Turbo - distilled model optimized for 8 steps with CFG disabled (guidance_scale=0).++ NOTE: the value is ``krea2_turbo`` (not ``turbo``) to avoid colliding with+ ``ZImageVariantType.Turbo`` in the variant-string adapter and frontend label maps."""++ Base = "krea2_base"+ """Krea-2-Raw - undistilled base model. Runs with more steps (~28) and CFG enabled (~4.5),+ using resolution-aware timestep shifting (``is_distilled=false`` in model_index.json).++ NOTE: the value is ``krea2_base`` (not ``base``) for the same disambiguation reason as ``Turbo``."""++class QwenImageVariantType(str, Enum):"""Qwen Image model variants."""@@ -237,6 +256,7 @@ class ModelFormat(str, Enum):T5Encoder = "t5_encoder"Qwen3Encoder = "qwen3_encoder"QwenVLEncoder = "qwen_vl_encoder"+ Qwen3VLEncoder = "qwen3_vl_encoder"WanT5Encoder = "wan_t5_encoder"BnbQuantizedLlmInt8b = "bnb_quantized_int8b"BnbQuantizednf4b = "bnb_quantized_nf4b"@@ -296,6 +316,7 @@ AnyVariant: TypeAlias = Union[WanVariantType,WanLoRAVariantType,Qwen3VariantType,+ Krea2VariantType,]variant_type_adapter = TypeAdapter[ModelVariantType@@ -307,6 +328,7 @@ variant_type_adapter = TypeAdapter[| WanVariantType| WanLoRAVariantType| Qwen3VariantType+ | Krea2VariantType](ModelVariantType| ClipVariantType@@ -317,4 +339,5 @@ variant_type_adapter = TypeAdapter[| WanVariantType| WanLoRAVariantType| Qwen3VariantType+ | Krea2VariantType)diff --git a/invokeai/backend/patches/lora_conversions/anima_lora_constants.py b/invokeai/backend/patches/lora_conversions/anima_lora_constants.pyindex 5a54de82e8..c1c786181d 100644--- a/invokeai/backend/patches/lora_conversions/anima_lora_constants.py+++ b/invokeai/backend/patches/lora_conversions/anima_lora_constants.py@@ -32,17 +32,20 @@ _PEFT_ANIMA_RE = re.compile()-# Subcomponents *uniquely* identifying Anima/Cosmos DiT: ``mlp`` and-# ``adaln_modulation`` (Wan calls those ``ffn`` and ``modulation`` respectively),-# plus the Cosmos attention naming with a ``_proj`` suffix on the projection-# letter (Wan native uses bare ``.q``/``.k``/``.v``/``.o`` — no ``_proj``).+# Subcomponents *uniquely* identifying Anima/Cosmos DiT: the DiT block MLP (``mlp.layer_0`` / ``mlp_layer1``)+# and ``adaln_modulation`` (Wan calls those ``ffn`` and ``modulation`` respectively), plus the Cosmos+# attention naming with a ``_proj`` suffix on the projection letter (Wan native uses bare+# ``.q``/``.k``/``.v``/``.o`` — no ``_proj``).#-# Used by the probe in ``configs/lora.py`` to make Anima-LoRA detection-# *mutually exclusive* with Wan-LoRA detection: a state dict carrying only-# ``cross_attn.q`` / ``ffn.0`` (Wan native) will NOT match here, regardless of-# the order configs are tried.+# The MLP matcher requires the Anima-specific ``mlp.layer_N`` (PEFT) / ``mlp_layerN`` (Kohya) naming rather+# than a bare ``mlp`` — Krea-2's native single-stream blocks also carry ``blocks.N.mlp.{down,gate,up}``, and+# matching a bare ``mlp`` there would misidentify a native Krea-2 LoRA as Anima.+#+# Used by the probe in ``configs/lora.py`` to make Anima-LoRA detection *mutually exclusive* with Wan-LoRA+# detection: a state dict carrying only ``cross_attn.q`` / ``ffn.0`` (Wan native) will NOT match here,+# regardless of the order configs are tried._COSMOS_DIT_EXCLUSIVE_SUBCOMPONENTS_RE = (- r"(mlp|adaln_modulation|"+ r"(mlp[._]layer|adaln_modulation|"r"(?:cross|self)_attn[._](?:[qkv]_proj|output_proj))")diff --git a/invokeai/backend/patches/lora_conversions/krea2_lora_constants.py b/invokeai/backend/patches/lora_conversions/krea2_lora_constants.pynew file mode 100644index 0000000000..07dfa12e36--- /dev/null+++ b/invokeai/backend/patches/lora_conversions/krea2_lora_constants.py@@ -0,0 +1,8 @@+# Krea-2 LoRA prefix constants.+# These prefixes namespace LoRA patch keys when applying them to Krea-2 models.++# Prefix for Krea-2 transformer (Krea2Transformer2DModel) LoRA layers.+KREA2_LORA_TRANSFORMER_PREFIX = "lora_transformer-"++# Prefix for Krea-2 Qwen3-VL text encoder LoRA layers.+KREA2_LORA_QWEN3VL_PREFIX = "lora_qwen3vl-"diff --git a/invokeai/backend/patches/lora_conversions/krea2_lora_conversion_utils.py b/invokeai/backend/patches/lora_conversions/krea2_lora_conversion_utils.pynew file mode 100644index 0000000000..458640c906--- /dev/null+++ b/invokeai/backend/patches/lora_conversions/krea2_lora_conversion_utils.py@@ -0,0 +1,234 @@+"""Krea-2 LoRA conversion utilities.++Krea-2 uses a single-stream MMDiT (``Krea2Transformer2DModel``) with a Qwen3-VL text encoder.+Published LoRAs (e.g. krea/Krea-2-LoRA-*) are diffusers PEFT format: keys like+``transformer.<module>.lora_A.weight`` / ``lora_B.weight``. The distinctive Krea-2 module is the+``text_fusion`` stage, which we use to disambiguate from Qwen-Image / Z-Image LoRAs (which otherwise+share the ``transformer.transformer_blocks.`` prefix).+"""++import re+from typing import Dict++import torch++from invokeai.backend.patches.layers.base_layer_patch import BaseLayerPatch+from invokeai.backend.patches.layers.utils import any_lora_layer_from_state_dict+from invokeai.backend.patches.lora_conversions.krea2_lora_constants import (+ KREA2_LORA_QWEN3VL_PREFIX,+ KREA2_LORA_TRANSFORMER_PREFIX,+)+from invokeai.backend.patches.model_patch_raw import ModelPatchRaw++# Module-name fragments unique to the Krea-2 transformer (text-fusion stage + timestep modulation proj).+# ``text_fusion`` is the diffusers name; ``txtfusion`` is the native (ComfyUI) name for the same stage.+KREA2_TRANSFORMER_SIGNATURE_KEYS = ("text_fusion", "time_mod_proj", "txtfusion")++# --- Native (ComfyUI) -> diffusers key mapping ---------------------------------------------------------------+# Native Krea-2 LoRAs (e.g. sliders) name the modules differently from InvokeAI's diffusers+# ``Krea2Transformer2DModel``. The two are a verified 1:1 correspondence (every native module maps onto a real+# Linear in the diffusers model), so we rewrite native keys to the diffusers layout before conversion:+# diffusion_model.blocks.N. -> transformer_blocks.N. (top-level blocks only)+# diffusion_model.txtfusion. -> text_fusion. (layerwise_blocks / refiner_blocks kept)+# attn.wq/wk/wv -> attn.to_q/to_k/to_v+# attn.wo -> attn.to_out.0+# attn.gate -> attn.to_gate+# mlp.gate/up/down -> ff.gate/up/down (SwiGLU)+_NATIVE_KREA2_LEAF_RENAMES = {+ ".attn.wq.": ".attn.to_q.",+ ".attn.wk.": ".attn.to_k.",+ ".attn.wv.": ".attn.to_v.",+ ".attn.wo.": ".attn.to_out.0.",+ ".attn.gate.": ".attn.to_gate.",+ ".mlp.gate.": ".ff.gate.",+ ".mlp.up.": ".ff.up.",+ ".mlp.down.": ".ff.down.",+}+_NATIVE_KREA2_TOP_LEVEL_RENAMES = {+ "first": "img_in",+ "tmlp.0": "time_embed.linear_1",+ "tmlp.2": "time_embed.linear_2",+ "tproj.1": "time_mod_proj",+ "txtmlp.1": "txt_in.linear_1",+ "txtmlp.3": "txt_in.linear_2",+ "last.linear": "final_layer.linear",+}+# The main transformer's top-level `blocks.` (preceded by start-of-string or a dot) becomes+# `transformer_blocks.`. The text-fusion sub-blocks (`layerwise_blocks`/`refiner_blocks`) are NOT touched+# because their `blocks` is preceded by `_`, not by a dot.+_NATIVE_KREA2_BLOCKS_RE = re.compile(r"(^|\.)blocks\.")+++def _replace_module_path(key: str, native: str, diffusers: str) -> str:+ return re.sub(rf"(^|\.){re.escape(native)}\.", rf"\1{diffusers}.", key)+++def _looks_like_native_krea2_key(key: str) -> bool:+ if "txtfusion" in key:+ return True+ native_module_names = (*_NATIVE_KREA2_LEAF_RENAMES, *_NATIVE_KREA2_TOP_LEVEL_RENAMES)+ return any(_replace_module_path(key, native.strip("."), "__native__") != key for native in native_module_names)+++def _looks_like_native_krea2_lora(str_keys: list[str]) -> bool:+ """True if the keys use the native (ComfyUI) Krea-2 naming rather than the diffusers PEFT naming."""+ return any(_looks_like_native_krea2_key(key) for key in str_keys)+++def _native_krea2_key_to_diffusers(key: str) -> str:+ key = key.replace("txtfusion.", "text_fusion.")+ key = _NATIVE_KREA2_BLOCKS_RE.sub(r"\1transformer_blocks.", key)+ for native, diffusers in _NATIVE_KREA2_TOP_LEVEL_RENAMES.items():+ key = _replace_module_path(key, native, diffusers)+ for native, diffusers in _NATIVE_KREA2_LEAF_RENAMES.items():+ key = key.replace(native, diffusers)+ return key+++def _maybe_convert_native_krea2_state_dict(+ state_dict: Dict[str, torch.Tensor],+) -> Dict[str, torch.Tensor]:+ """Rewrite native (ComfyUI) Krea-2 LoRA keys to the diffusers layout, leaving diffusers keys untouched."""+ str_keys = [k for k in state_dict.keys() if isinstance(k, str)]+ if not _looks_like_native_krea2_lora(str_keys):+ return state_dict+ converted_state_dict: Dict[str, torch.Tensor] = {}+ for key, value in state_dict.items():+ converted_key = _native_krea2_key_to_diffusers(key) if _looks_like_native_krea2_key(key) else key+ if converted_key in converted_state_dict:+ raise ValueError(+ f"Krea-2 LoRA has conflicting layers that normalize to the same target '{converted_key}'. "+ "This mixed layout is unsupported - refusing to silently drop one of the layers."+ )+ converted_state_dict[converted_key] = value+ return converted_state_dict+++def is_state_dict_likely_krea2_lora(state_dict: dict[str | int, torch.Tensor]) -> bool:+ """Checks if the provided state dict is likely a Krea-2 LoRA.++ Requires the distinctive Krea-2 ``text_fusion`` / ``txtfusion`` / ``time_mod_proj`` modules so it does not+ false-match Qwen-Image or Z-Image LoRAs that also carry ``transformer.transformer_blocks.`` keys.+ """+ str_keys = [k for k in state_dict.keys() if isinstance(k, str)]+ has_krea2_module = any(any(sig in k for sig in KREA2_TRANSFORMER_SIGNATURE_KEYS) for k in str_keys)+ has_lora_suffix = any(+ k.endswith((".lora_A.weight", ".lora_B.weight", ".lora_down.weight", ".lora_up.weight")) for k in str_keys+ )+ return has_krea2_module and has_lora_suffix+++def lora_model_from_krea2_state_dict(state_dict: Dict[str, torch.Tensor], alpha: float | None = None) -> ModelPatchRaw:+ """Convert a Krea-2 LoRA state dict (diffusers PEFT) to a ModelPatchRaw.++ Handles transformer layers and (if present) Qwen3-VL text encoder layers. ``alpha=None`` is treated+ as ``alpha=rank`` internally (the common diffusers default).+ """+ layers: dict[str, BaseLayerPatch] = {}+ # Normalize native (ComfyUI) naming to the diffusers layout so the rest of the converter is layout-agnostic.+ state_dict = _maybe_convert_native_krea2_state_dict(state_dict)+ grouped_state_dict = _group_by_layer(state_dict)++ transformer_prefixes = (+ "base_model.model.transformer.",+ "transformer.",+ "diffusion_model.",+ )+ text_encoder_prefixes = (+ "base_model.model.text_encoder.",+ "text_encoder.",+ )++ for layer_key, layer_dict in grouped_state_dict.items():+ values = _get_lora_layer_values(layer_key, layer_dict, alpha)++ is_text_encoder = False+ clean_key = layer_key+ for prefix in text_encoder_prefixes:+ if layer_key.startswith(prefix):+ clean_key = layer_key[len(prefix) :]+ is_text_encoder = True+ break+ if not is_text_encoder:+ for prefix in transformer_prefixes:+ if layer_key.startswith(prefix):+ clean_key = layer_key[len(prefix) :]+ break++ if is_text_encoder:+ final_key = f"{KREA2_LORA_QWEN3VL_PREFIX}{clean_key}"+ else:+ final_key = f"{KREA2_LORA_TRANSFORMER_PREFIX}{clean_key}"++ # The `transformer.` and `diffusion_model.` aliases normalize to the same target key. If two source+ # layers collide here, silently overwriting one would drop weights based on dict ordering, so reject+ # the mixed-layout adapter explicitly instead.+ if final_key in layers:+ raise ValueError(+ f"Krea-2 LoRA has conflicting layers that normalize to the same target '{final_key}' "+ "(e.g. both a 'transformer.' and a 'diffusion_model.' alias for one logical layer). "+ "This mixed layout is unsupported - refusing to silently drop one of the layers."+ )+ layers[final_key] = any_lora_layer_from_state_dict(values)++ return ModelPatchRaw(layers=layers)+++def _get_lora_layer_values(+ layer_key: str, layer_dict: dict[str, torch.Tensor], alpha: float | None+) -> dict[str, torch.Tensor]:+ """Convert PEFT (lora_A/lora_B) layer values to internal (lora_down/lora_up) format."""+ if "lora_A.weight" in layer_dict:+ if "lora_B.weight" not in layer_dict:+ raise ValueError(+ f"Malformed Krea-2 LoRA: layer '{layer_key}' has lora_A.weight but no matching lora_B.weight. "+ "The LoRA file is incomplete or corrupt."+ )+ values = {+ "lora_down.weight": layer_dict["lora_A.weight"],+ "lora_up.weight": layer_dict["lora_B.weight"],+ }+ if "dora_scale" in layer_dict:+ values["dora_scale"] = layer_dict["dora_scale"]+ if "alpha" in layer_dict:+ values["alpha"] = layer_dict["alpha"]+ if alpha is not None:+ values["alpha"] = torch.tensor(alpha)+ return values+ return layer_dict+++# Maps each recognized weight-key suffix to the canonical value-key used downstream. The PEFT/diffusers DoRA+# magnitude is published as ``<layer>.lora_magnitude_vector.weight``; it is the same thing InvokeAI stores as+# ``dora_scale``, so mapping it here lets a standard Diffusers DoRA adapter (A/B + magnitude) load as a+# DoRALayer instead of being split into a bogus, unrecognized layer.+_SUFFIX_TO_VALUE_KEY = {+ ".lora_A.weight": "lora_A.weight",+ ".lora_B.weight": "lora_B.weight",+ ".lora_down.weight": "lora_down.weight",+ ".lora_up.weight": "lora_up.weight",+ ".dora_scale": "dora_scale",+ ".lora_magnitude_vector.weight": "dora_scale",+ ".alpha": "alpha",+}+++def _group_by_layer(state_dict: Dict[str, torch.Tensor]) -> dict[str, dict[str, torch.Tensor]]:+ """Groups state dict keys by layer path, splitting off the LoRA weight suffix."""+ layer_dict: dict[str, dict[str, torch.Tensor]] = {}+ for key in state_dict:+ if not isinstance(key, str):+ continue+ layer_name = None+ key_name = None+ for suffix, value_key in _SUFFIX_TO_VALUE_KEY.items():+ if key.endswith(suffix):+ layer_name = key[: -len(suffix)]+ key_name = value_key+ break+ if layer_name is None:+ parts = key.rsplit(".", maxsplit=2)+ layer_name = parts[0]+ key_name = ".".join(parts[1:])+ layer_dict.setdefault(layer_name, {})[key_name] = state_dict[key]+ return layer_dictdiff --git a/invokeai/backend/stable_diffusion/diffusion/conditioning_data.py b/invokeai/backend/stable_diffusion/diffusion/conditioning_data.pyindex 4979c2f40f..f5b4f55536 100644--- a/invokeai/backend/stable_diffusion/diffusion/conditioning_data.py+++ b/invokeai/backend/stable_diffusion/diffusion/conditioning_data.py@@ -120,6 +120,28 @@ class QwenImageConditioningInfo:return self+@dataclass+class Krea2ConditioningInfo:+ """Krea-2 text conditioning from the Qwen3-VL encoder.++ Krea-2 taps 12 decoder hidden-state layers and stacks them per token, so prompt_embeds keeps a+ layer axis (the transformer's text-fusion stage consumes it). This is unique vs Z-Image (2D) and+ Qwen-Image (3D).+ """++ prompt_embeds: torch.Tensor+ """Stacked Qwen3-VL hidden states. Shape: (batch_size, seq_len, num_text_layers=12, hidden=2560)."""++ prompt_embeds_mask: torch.Tensor | None = None+ """Attention mask for prompt_embeds. Shape: (batch_size, seq_len). 1/True for valid, 0/False for padding."""++ def to(self, device: torch.device | None = None, dtype: torch.dtype | None = None):+ self.prompt_embeds = self.prompt_embeds.to(device=device, dtype=dtype)+ if self.prompt_embeds_mask is not None:+ self.prompt_embeds_mask = self.prompt_embeds_mask.to(device=device)+ return self++@dataclassclass AnimaConditioningInfo:"""Anima text conditioning information from Qwen3 0.6B encoder + T5-XXL tokenizer.@@ -180,6 +202,7 @@ class ConditioningFieldData:| List[ZImageConditioningInfo]| List[Ideogram4ConditioningInfo]| List[QwenImageConditioningInfo]+ | List[Krea2ConditioningInfo]| List[AnimaConditioningInfo]| List[WanConditioningInfo])diff --git a/invokeai/frontend/web/openapi.json b/invokeai/frontend/web/openapi.jsonindex 6eb08766f1..e4c7058797 100644--- a/invokeai/frontend/web/openapi.json+++ b/invokeai/frontend/web/openapi.json@@ -850,6 +850,9 @@{"$ref": "#/components/schemas/Main_Diffusers_Ideogram4_Config"},+ {+ "$ref": "#/components/schemas/Main_Diffusers_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_SD1_Config"},@@ -874,6 +877,9 @@{"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_Anima_Config"},@@ -895,6 +901,9 @@{"$ref": "#/components/schemas/Main_GGUF_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_GGUF_Krea2_Config"+ },{"$ref": "#/components/schemas/VAE_Checkpoint_SD1_Config"},@@ -979,6 +988,9 @@{"$ref": "#/components/schemas/LoRA_LyCORIS_ZImage_Config"},+ {+ "$ref": "#/components/schemas/LoRA_LyCORIS_Krea2_Config"+ },{"$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage_Config"},@@ -1024,6 +1036,12 @@{"$ref": "#/components/schemas/T5Encoder_GGUF_Config"},+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_Config"+ },+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Qwen3VLEncoder_Config"+ },{"$ref": "#/components/schemas/Qwen3Encoder_Qwen3Encoder_Config"},@@ -1203,6 +1221,9 @@{"$ref": "#/components/schemas/Main_Diffusers_Ideogram4_Config"},+ {+ "$ref": "#/components/schemas/Main_Diffusers_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_SD1_Config"},@@ -1227,6 +1248,9 @@{"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_Anima_Config"},@@ -1248,6 +1272,9 @@{"$ref": "#/components/schemas/Main_GGUF_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_GGUF_Krea2_Config"+ },{"$ref": "#/components/schemas/VAE_Checkpoint_SD1_Config"},@@ -1332,6 +1359,9 @@{"$ref": "#/components/schemas/LoRA_LyCORIS_ZImage_Config"},+ {+ "$ref": "#/components/schemas/LoRA_LyCORIS_Krea2_Config"+ },{"$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage_Config"},@@ -1377,6 +1407,12 @@{"$ref": "#/components/schemas/T5Encoder_GGUF_Config"},+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_Config"+ },+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Qwen3VLEncoder_Config"+ },{"$ref": "#/components/schemas/Qwen3Encoder_Qwen3Encoder_Config"},@@ -1556,6 +1592,9 @@{"$ref": "#/components/schemas/Main_Diffusers_Ideogram4_Config"},+ {+ "$ref": "#/components/schemas/Main_Diffusers_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_SD1_Config"},@@ -1580,6 +1619,9 @@{"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_Anima_Config"},@@ -1601,6 +1643,9 @@{"$ref": "#/components/schemas/Main_GGUF_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_GGUF_Krea2_Config"+ },{"$ref": "#/components/schemas/VAE_Checkpoint_SD1_Config"},@@ -1685,6 +1730,9 @@{"$ref": "#/components/schemas/LoRA_LyCORIS_ZImage_Config"},+ {+ "$ref": "#/components/schemas/LoRA_LyCORIS_Krea2_Config"+ },{"$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage_Config"},@@ -1730,6 +1778,12 @@{"$ref": "#/components/schemas/T5Encoder_GGUF_Config"},+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_Config"+ },+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Qwen3VLEncoder_Config"+ },{"$ref": "#/components/schemas/Qwen3Encoder_Qwen3Encoder_Config"},@@ -1954,6 +2008,9 @@{"$ref": "#/components/schemas/Main_Diffusers_Ideogram4_Config"},+ {+ "$ref": "#/components/schemas/Main_Diffusers_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_SD1_Config"},@@ -1978,6 +2035,9 @@{"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_Anima_Config"},@@ -1999,6 +2059,9 @@{"$ref": "#/components/schemas/Main_GGUF_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_GGUF_Krea2_Config"+ },{"$ref": "#/components/schemas/VAE_Checkpoint_SD1_Config"},@@ -2083,6 +2146,9 @@{"$ref": "#/components/schemas/LoRA_LyCORIS_ZImage_Config"},+ {+ "$ref": "#/components/schemas/LoRA_LyCORIS_Krea2_Config"+ },{"$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage_Config"},@@ -2128,6 +2194,12 @@{"$ref": "#/components/schemas/T5Encoder_GGUF_Config"},+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_Config"+ },+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Qwen3VLEncoder_Config"+ },{"$ref": "#/components/schemas/Qwen3Encoder_Qwen3Encoder_Config"},@@ -2376,6 +2448,9 @@{"$ref": "#/components/schemas/Main_Diffusers_Ideogram4_Config"},+ {+ "$ref": "#/components/schemas/Main_Diffusers_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_SD1_Config"},@@ -2400,6 +2475,9 @@{"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_Anima_Config"},@@ -2421,6 +2499,9 @@{"$ref": "#/components/schemas/Main_GGUF_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_GGUF_Krea2_Config"+ },{"$ref": "#/components/schemas/VAE_Checkpoint_SD1_Config"},@@ -2505,6 +2586,9 @@{"$ref": "#/components/schemas/LoRA_LyCORIS_ZImage_Config"},+ {+ "$ref": "#/components/schemas/LoRA_LyCORIS_Krea2_Config"+ },{"$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage_Config"},@@ -2550,6 +2634,12 @@{"$ref": "#/components/schemas/T5Encoder_GGUF_Config"},+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_Config"+ },+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Qwen3VLEncoder_Config"+ },{"$ref": "#/components/schemas/Qwen3Encoder_Qwen3Encoder_Config"},@@ -3628,6 +3718,9 @@{"$ref": "#/components/schemas/Main_Diffusers_Ideogram4_Config"},+ {+ "$ref": "#/components/schemas/Main_Diffusers_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_SD1_Config"},@@ -3652,6 +3745,9 @@{"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_Anima_Config"},@@ -3673,6 +3769,9 @@{"$ref": "#/components/schemas/Main_GGUF_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_GGUF_Krea2_Config"+ },{"$ref": "#/components/schemas/VAE_Checkpoint_SD1_Config"},@@ -3757,6 +3856,9 @@{"$ref": "#/components/schemas/LoRA_LyCORIS_ZImage_Config"},+ {+ "$ref": "#/components/schemas/LoRA_LyCORIS_Krea2_Config"+ },{"$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage_Config"},@@ -3802,6 +3904,12 @@{"$ref": "#/components/schemas/T5Encoder_GGUF_Config"},+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_Config"+ },+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Qwen3VLEncoder_Config"+ },{"$ref": "#/components/schemas/Qwen3Encoder_Qwen3Encoder_Config"},@@ -13728,6 +13836,9 @@{"$ref": "#/components/schemas/Main_Diffusers_Ideogram4_Config"},+ {+ "$ref": "#/components/schemas/Main_Diffusers_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_SD1_Config"},@@ -13752,6 +13863,9 @@{"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_Anima_Config"},@@ -13773,6 +13887,9 @@{"$ref": "#/components/schemas/Main_GGUF_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_GGUF_Krea2_Config"+ },{"$ref": "#/components/schemas/VAE_Checkpoint_SD1_Config"},@@ -13857,6 +13974,9 @@{"$ref": "#/components/schemas/LoRA_LyCORIS_ZImage_Config"},+ {+ "$ref": "#/components/schemas/LoRA_LyCORIS_Krea2_Config"+ },{"$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage_Config"},@@ -13902,6 +14022,12 @@{"$ref": "#/components/schemas/T5Encoder_GGUF_Config"},+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_Config"+ },+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Qwen3VLEncoder_Config"+ },{"$ref": "#/components/schemas/Qwen3Encoder_Qwen3Encoder_Config"},@@ -14286,6 +14412,7 @@"external","qwen-image","anima",+ "krea-2","wan","unknown"],@@ -21517,6 +21644,10 @@"anima_img2img","anima_inpaint","anima_outpaint",+ "krea2_txt2img",+ "krea2_img2img",+ "krea2_inpaint",+ "krea2_outpaint","wan_txt2img","wan_img2img","wan_inpaint",@@ -32189,6 +32320,27 @@{"$ref": "#/components/schemas/IterateInvocation"},+ {+ "$ref": "#/components/schemas/Krea2ConditioningRebalanceInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2DenoiseInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2LoRACollectionLoader"+ },+ {+ "$ref": "#/components/schemas/Krea2LoRALoaderInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2ModelLoaderInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2SeedVarianceInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2TextEncoderInvocation"+ },{"$ref": "#/components/schemas/LaMaInfillInvocation"},@@ -32804,6 +32956,15 @@{"$ref": "#/components/schemas/IterateInvocationOutput"},+ {+ "$ref": "#/components/schemas/Krea2ConditioningOutput"+ },+ {+ "$ref": "#/components/schemas/Krea2LoRALoaderOutput"+ },+ {+ "$ref": "#/components/schemas/Krea2ModelLoaderOutput"+ },{"$ref": "#/components/schemas/LatentsCollectionOutput"},@@ -40596,6 +40757,27 @@{"$ref": "#/components/schemas/IterateInvocation"},+ {+ "$ref": "#/components/schemas/Krea2ConditioningRebalanceInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2DenoiseInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2LoRACollectionLoader"+ },+ {+ "$ref": "#/components/schemas/Krea2LoRALoaderInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2ModelLoaderInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2SeedVarianceInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2TextEncoderInvocation"+ },{"$ref": "#/components/schemas/LaMaInfillInvocation"},@@ -41168,6 +41350,15 @@{"$ref": "#/components/schemas/IterateInvocationOutput"},+ {+ "$ref": "#/components/schemas/Krea2ConditioningOutput"+ },+ {+ "$ref": "#/components/schemas/Krea2LoRALoaderOutput"+ },+ {+ "$ref": "#/components/schemas/Krea2ModelLoaderOutput"+ },{"$ref": "#/components/schemas/LatentsCollectionOutput"},@@ -41839,6 +42030,27 @@{"$ref": "#/components/schemas/IterateInvocation"},+ {+ "$ref": "#/components/schemas/Krea2ConditioningRebalanceInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2DenoiseInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2LoRACollectionLoader"+ },+ {+ "$ref": "#/components/schemas/Krea2LoRALoaderInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2ModelLoaderInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2SeedVarianceInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2TextEncoderInvocation"+ },{"$ref": "#/components/schemas/LaMaInfillInvocation"},@@ -42730,6 +42942,27 @@"iterate": {"$ref": "#/components/schemas/IterateInvocationOutput"},+ "krea2_conditioning_rebalance": {+ "$ref": "#/components/schemas/Krea2ConditioningOutput"+ },+ "krea2_denoise": {+ "$ref": "#/components/schemas/LatentsOutput"+ },+ "krea2_lora_collection_loader": {+ "$ref": "#/components/schemas/Krea2LoRALoaderOutput"+ },+ "krea2_lora_loader": {+ "$ref": "#/components/schemas/Krea2LoRALoaderOutput"+ },+ "krea2_model_loader": {+ "$ref": "#/components/schemas/Krea2ModelLoaderOutput"+ },+ "krea2_seed_variance": {+ "$ref": "#/components/schemas/Krea2ConditioningOutput"+ },+ "krea2_text_encoder": {+ "$ref": "#/components/schemas/Krea2ConditioningOutput"+ },"l2i": {"$ref": "#/components/schemas/ImageOutput"},@@ -43283,6 +43516,13 @@"invokeai_img_val_thresholds","ip_adapter","iterate",+ "krea2_conditioning_rebalance",+ "krea2_denoise",+ "krea2_lora_collection_loader",+ "krea2_lora_loader",+ "krea2_model_loader",+ "krea2_seed_variance",+ "krea2_text_encoder","l2i","latents","latents_collection",@@ -43918,6 +44158,27 @@{"$ref": "#/components/schemas/IterateInvocation"},+ {+ "$ref": "#/components/schemas/Krea2ConditioningRebalanceInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2DenoiseInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2LoRACollectionLoader"+ },+ {+ "$ref": "#/components/schemas/Krea2LoRALoaderInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2ModelLoaderInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2SeedVarianceInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2TextEncoderInvocation"+ },{"$ref": "#/components/schemas/LaMaInfillInvocation"},@@ -44883,6 +45144,27 @@{"$ref": "#/components/schemas/IterateInvocation"},+ {+ "$ref": "#/components/schemas/Krea2ConditioningRebalanceInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2DenoiseInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2LoRACollectionLoader"+ },+ {+ "$ref": "#/components/schemas/Krea2LoRALoaderInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2ModelLoaderInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2SeedVarianceInvocation"+ },+ {+ "$ref": "#/components/schemas/Krea2TextEncoderInvocation"+ },{"$ref": "#/components/schemas/LaMaInfillInvocation"},@@ -47186,11 +47468,973 @@"type": "object"},"JsonValue": {},- "LaMaInfillInvocation": {- "category": "inpaint",+ "Krea2ConditioningField": {+ "description": "A Krea-2 conditioning tensor primitive value",+ "properties": {+ "conditioning_name": {+ "description": "The name of conditioning tensor",+ "title": "Conditioning Name",+ "type": "string"+ }+ },+ "required": ["conditioning_name"],+ "title": "Krea2ConditioningField",+ "type": "object"+ },+ "Krea2ConditioningOutput": {+ "class": "output",+ "description": "Base class for nodes that output a Krea-2 conditioning tensor.",+ "properties": {+ "conditioning": {+ "$ref": "#/components/schemas/Krea2ConditioningField",+ "description": "Conditioning tensor",+ "field_kind": "output",+ "ui_hidden": false+ },+ "type": {+ "const": "krea2_conditioning_output",+ "default": "krea2_conditioning_output",+ "field_kind": "node_attribute",+ "title": "type",+ "type": "string"+ }+ },+ "required": ["output_meta", "conditioning", "type", "type"],+ "title": "Krea2ConditioningOutput",+ "type": "object"+ },+ "Krea2ConditioningRebalanceInvocation": {+ "category": "conditioning","class": "invocation",- "classification": "stable",- "description": "Infills transparent areas of an image using the LaMa model",+ "classification": "prototype",+ "description": "Per-layer rebalancing of Krea-2 text conditioning (improves prompt adherence).\n\nKrea-2 conditioning stacks 12 Qwen3-VL hidden-state layers per token. Weighting those layers\nindividually (and applying an overall multiplier) lets you push the model harder toward the prompt,\ncounteracting the quality-dilution from distillation. Ported from the ComfyUI\n`ConditioningKrea2Rebalance` node. This is an optional pass between the text encoder and denoise.",+ "node_pack": "invokeai",+ "properties": {+ "id": {+ "description": "The id of this instance of an invocation. Must be unique among all instances of invocations.",+ "field_kind": "node_attribute",+ "title": "Id",+ "type": "string"+ },+ "is_intermediate": {+ "default": false,+ "description": "Whether or not this is an intermediate invocation.",+ "field_kind": "node_attribute",+ "input": "direct",+ "orig_required": true,+ "title": "Is Intermediate",+ "type": "boolean",+ "ui_hidden": false,+ "ui_type": "IsIntermediate"+ },+ "use_cache": {+ "default": true,+ "description": "Whether or not to use the cache",+ "field_kind": "node_attribute",+ "title": "Use Cache",+ "type": "boolean"+ },+ "conditioning": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/Krea2ConditioningField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Conditioning tensor",+ "field_kind": "input",+ "input": "connection",+ "orig_required": true,+ "title": "Conditioning"+ },+ "per_layer_weights": {+ "default": "1.0,1.0,1.0,1.0,1.0,1.0,1.0,2.5,5.0,1.1,4.0,1.0",+ "description": "Comma-separated gains for the 12 tapped encoder layers (exactly 12 values).",+ "field_kind": "input",+ "input": "any",+ "orig_default": "1.0,1.0,1.0,1.0,1.0,1.0,1.0,2.5,5.0,1.1,4.0,1.0",+ "orig_required": false,+ "title": "Per Layer Weights",+ "type": "string"+ },+ "multiplier": {+ "default": 4.0,+ "description": "Overall multiplier applied to the conditioning after per-layer weighting.",+ "field_kind": "input",+ "input": "any",+ "orig_default": 4.0,+ "orig_required": false,+ "title": "Multiplier",+ "type": "number"+ },+ "type": {+ "const": "krea2_conditioning_rebalance",+ "default": "krea2_conditioning_rebalance",+ "field_kind": "node_attribute",+ "title": "type",+ "type": "string"+ }+ },+ "required": ["type", "id"],+ "tags": ["conditioning", "krea2", "krea-2"],+ "title": "Conditioning Rebalance - Krea-2",+ "type": "object",+ "version": "1.0.0",+ "output": {+ "$ref": "#/components/schemas/Krea2ConditioningOutput"+ }+ },+ "Krea2DenoiseInvocation": {+ "category": "image",+ "class": "invocation",+ "classification": "prototype",+ "description": "Run the denoising process with a Krea-2 model.",+ "node_pack": "invokeai",+ "properties": {+ "board": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/BoardField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "The board to save the image to",+ "field_kind": "internal",+ "input": "direct",+ "orig_required": false,+ "ui_hidden": false+ },+ "metadata": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/MetadataField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Optional metadata to be saved with the image",+ "field_kind": "internal",+ "input": "connection",+ "orig_required": false,+ "ui_hidden": false+ },+ "id": {+ "description": "The id of this instance of an invocation. Must be unique among all instances of invocations.",+ "field_kind": "node_attribute",+ "title": "Id",+ "type": "string"+ },+ "is_intermediate": {+ "default": false,+ "description": "Whether or not this is an intermediate invocation.",+ "field_kind": "node_attribute",+ "input": "direct",+ "orig_required": true,+ "title": "Is Intermediate",+ "type": "boolean",+ "ui_hidden": false,+ "ui_type": "IsIntermediate"+ },+ "use_cache": {+ "default": true,+ "description": "Whether or not to use the cache",+ "field_kind": "node_attribute",+ "title": "Use Cache",+ "type": "boolean"+ },+ "latents": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/LatentsField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Latents tensor",+ "field_kind": "input",+ "input": "connection",+ "orig_default": null,+ "orig_required": false+ },+ "denoise_mask": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/DenoiseMaskField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "A mask of the region to apply the denoising process to. Values of 0.0 represent the regions to be fully denoised, and 1.0 represent the regions to be preserved.",+ "field_kind": "input",+ "input": "connection",+ "orig_default": null,+ "orig_required": false+ },+ "denoising_start": {+ "default": 0.0,+ "description": "When to start denoising, expressed a percentage of total steps",+ "field_kind": "input",+ "input": "any",+ "maximum": 1,+ "minimum": 0,+ "orig_default": 0.0,+ "orig_required": false,+ "title": "Denoising Start",+ "type": "number"+ },+ "denoising_end": {+ "default": 1.0,+ "description": "When to stop denoising, expressed a percentage of total steps",+ "field_kind": "input",+ "input": "any",+ "maximum": 1,+ "minimum": 0,+ "orig_default": 1.0,+ "orig_required": false,+ "title": "Denoising End",+ "type": "number"+ },+ "transformer": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/TransformerField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Krea-2 model (Transformer) to load",+ "field_kind": "input",+ "input": "connection",+ "orig_required": true,+ "title": "Transformer"+ },+ "positive_conditioning": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/Krea2ConditioningField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Positive conditioning tensor",+ "field_kind": "input",+ "input": "connection",+ "orig_required": true+ },+ "negative_conditioning": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/Krea2ConditioningField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Negative conditioning tensor",+ "field_kind": "input",+ "input": "connection",+ "orig_default": null,+ "orig_required": false+ },+ "cfg_scale": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "items": {+ "type": "number"+ },+ "type": "array"+ }+ ],+ "default": 1.0,+ "description": "Classifier-Free Guidance scale",+ "field_kind": "input",+ "input": "any",+ "orig_default": 1.0,+ "orig_required": false,+ "title": "CFG Scale"+ },+ "width": {+ "default": 1024,+ "description": "Width of the generated image.",+ "exclusiveMinimum": 0,+ "field_kind": "input",+ "input": "any",+ "multipleOf": 16,+ "orig_default": 1024,+ "orig_required": false,+ "title": "Width",+ "type": "integer"+ },+ "height": {+ "default": 1024,+ "description": "Height of the generated image.",+ "exclusiveMinimum": 0,+ "field_kind": "input",+ "input": "any",+ "multipleOf": 16,+ "orig_default": 1024,+ "orig_required": false,+ "title": "Height",+ "type": "integer"+ },+ "steps": {+ "default": 8,+ "description": "Number of steps to run",+ "exclusiveMinimum": 0,+ "field_kind": "input",+ "input": "any",+ "orig_default": 8,+ "orig_required": false,+ "title": "Steps",+ "type": "integer"+ },+ "seed": {+ "default": 0,+ "description": "Randomness seed for reproducibility.",+ "field_kind": "input",+ "input": "any",+ "orig_default": 0,+ "orig_required": false,+ "title": "Seed",+ "type": "integer"+ },+ "shift": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Override the resolution-aware timestep shift (mu). Leave unset to use the model default (mu=1.15 for the distilled Turbo checkpoint).",+ "field_kind": "input",+ "input": "any",+ "orig_default": null,+ "orig_required": false,+ "title": "Shift"+ },+ "type": {+ "const": "krea2_denoise",+ "default": "krea2_denoise",+ "field_kind": "node_attribute",+ "title": "type",+ "type": "string"+ }+ },+ "required": ["type", "id"],+ "tags": ["image", "krea2", "krea-2"],+ "title": "Denoise - Krea-2",+ "type": "object",+ "version": "1.0.0",+ "output": {+ "$ref": "#/components/schemas/LatentsOutput"+ }+ },+ "Krea2LoRACollectionLoader": {+ "category": "model",+ "class": "invocation",+ "classification": "stable",+ "description": "Applies a collection of LoRAs to a Krea-2 transformer and/or Qwen3-VL encoder.",+ "node_pack": "invokeai",+ "properties": {+ "id": {+ "description": "The id of this instance of an invocation. Must be unique among all instances of invocations.",+ "field_kind": "node_attribute",+ "title": "Id",+ "type": "string"+ },+ "is_intermediate": {+ "default": false,+ "description": "Whether or not this is an intermediate invocation.",+ "field_kind": "node_attribute",+ "input": "direct",+ "orig_required": true,+ "title": "Is Intermediate",+ "type": "boolean",+ "ui_hidden": false,+ "ui_type": "IsIntermediate"+ },+ "use_cache": {+ "default": true,+ "description": "Whether or not to use the cache",+ "field_kind": "node_attribute",+ "title": "Use Cache",+ "type": "boolean"+ },+ "loras": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/LoRAField"+ },+ {+ "items": {+ "$ref": "#/components/schemas/LoRAField"+ },+ "type": "array"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "LoRA models and weights. May be a single LoRA or collection.",+ "field_kind": "input",+ "input": "any",+ "orig_default": null,+ "orig_required": false,+ "title": "LoRAs"+ },+ "transformer": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/TransformerField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Transformer",+ "field_kind": "input",+ "input": "connection",+ "orig_default": null,+ "orig_required": false,+ "title": "Transformer"+ },+ "qwen3_vl_encoder": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/Qwen3VLEncoderField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Qwen3-VL tokenizer and text encoder",+ "field_kind": "input",+ "input": "connection",+ "orig_default": null,+ "orig_required": false,+ "title": "Qwen3-VL Encoder"+ },+ "type": {+ "const": "krea2_lora_collection_loader",+ "default": "krea2_lora_collection_loader",+ "field_kind": "node_attribute",+ "title": "type",+ "type": "string"+ }+ },+ "required": ["type", "id"],+ "tags": ["lora", "model", "krea2", "krea-2"],+ "title": "Apply LoRA Collection - Krea-2",+ "type": "object",+ "version": "1.0.0",+ "output": {+ "$ref": "#/components/schemas/Krea2LoRALoaderOutput"+ }+ },+ "Krea2LoRALoaderInvocation": {+ "category": "model",+ "class": "invocation",+ "classification": "stable",+ "description": "Apply a LoRA model to a Krea-2 transformer and/or Qwen3-VL text encoder.",+ "node_pack": "invokeai",+ "properties": {+ "id": {+ "description": "The id of this instance of an invocation. Must be unique among all instances of invocations.",+ "field_kind": "node_attribute",+ "title": "Id",+ "type": "string"+ },+ "is_intermediate": {+ "default": false,+ "description": "Whether or not this is an intermediate invocation.",+ "field_kind": "node_attribute",+ "input": "direct",+ "orig_required": true,+ "title": "Is Intermediate",+ "type": "boolean",+ "ui_hidden": false,+ "ui_type": "IsIntermediate"+ },+ "use_cache": {+ "default": true,+ "description": "Whether or not to use the cache",+ "field_kind": "node_attribute",+ "title": "Use Cache",+ "type": "boolean"+ },+ "lora": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/ModelIdentifierField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "LoRA model to load",+ "field_kind": "input",+ "input": "any",+ "orig_required": true,+ "title": "LoRA",+ "ui_model_base": ["krea-2"],+ "ui_model_type": ["lora"]+ },+ "weight": {+ "default": 0.75,+ "description": "The weight at which the LoRA is applied to each model",+ "field_kind": "input",+ "input": "any",+ "orig_default": 0.75,+ "orig_required": false,+ "title": "Weight",+ "type": "number"+ },+ "transformer": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/TransformerField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Transformer",+ "field_kind": "input",+ "input": "connection",+ "orig_default": null,+ "orig_required": false,+ "title": "Krea-2 Transformer"+ },+ "qwen3_vl_encoder": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/Qwen3VLEncoderField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Qwen3-VL tokenizer and text encoder",+ "field_kind": "input",+ "input": "connection",+ "orig_default": null,+ "orig_required": false,+ "title": "Qwen3-VL Encoder"+ },+ "type": {+ "const": "krea2_lora_loader",+ "default": "krea2_lora_loader",+ "field_kind": "node_attribute",+ "title": "type",+ "type": "string"+ }+ },+ "required": ["type", "id"],+ "tags": ["lora", "model", "krea2", "krea-2"],+ "title": "Apply LoRA - Krea-2",+ "type": "object",+ "version": "1.0.0",+ "output": {+ "$ref": "#/components/schemas/Krea2LoRALoaderOutput"+ }+ },+ "Krea2LoRALoaderOutput": {+ "class": "output",+ "description": "Krea-2 LoRA Loader Output",+ "properties": {+ "transformer": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/TransformerField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Transformer",+ "field_kind": "output",+ "title": "Krea-2 Transformer",+ "ui_hidden": false+ },+ "qwen3_vl_encoder": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/Qwen3VLEncoderField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Qwen3-VL tokenizer and text encoder",+ "field_kind": "output",+ "title": "Qwen3-VL Encoder",+ "ui_hidden": false+ },+ "type": {+ "const": "krea2_lora_loader_output",+ "default": "krea2_lora_loader_output",+ "field_kind": "node_attribute",+ "title": "type",+ "type": "string"+ }+ },+ "required": ["output_meta", "transformer", "qwen3_vl_encoder", "type", "type"],+ "title": "Krea2LoRALoaderOutput",+ "type": "object"+ },+ "Krea2ModelLoaderInvocation": {+ "category": "model",+ "class": "invocation",+ "classification": "prototype",+ "description": "Loads a Krea-2 model, outputting its submodels.\n\nBy default the VAE (Qwen-Image VAE) and Qwen3-VL text encoder are extracted from the Krea-2\ndiffusers pipeline. Standalone overrides may be supplied (e.g. when the transformer is a\nsingle-file checkpoint that has no bundled VAE / encoder).",+ "node_pack": "invokeai",+ "properties": {+ "id": {+ "description": "The id of this instance of an invocation. Must be unique among all instances of invocations.",+ "field_kind": "node_attribute",+ "title": "Id",+ "type": "string"+ },+ "is_intermediate": {+ "default": false,+ "description": "Whether or not this is an intermediate invocation.",+ "field_kind": "node_attribute",+ "input": "direct",+ "orig_required": true,+ "title": "Is Intermediate",+ "type": "boolean",+ "ui_hidden": false,+ "ui_type": "IsIntermediate"+ },+ "use_cache": {+ "default": true,+ "description": "Whether or not to use the cache",+ "field_kind": "node_attribute",+ "title": "Use Cache",+ "type": "boolean"+ },+ "model": {+ "$ref": "#/components/schemas/ModelIdentifierField",+ "description": "Krea-2 model (Transformer) to load",+ "field_kind": "input",+ "input": "direct",+ "orig_required": true,+ "title": "Transformer",+ "ui_model_base": ["krea-2"],+ "ui_model_type": ["main"]+ },+ "vae_model": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/ModelIdentifierField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Standalone VAE model. Krea-2 uses the Qwen-Image VAE (16-channel). If not provided, the VAE is loaded from the Krea-2 (diffusers) model.",+ "field_kind": "input",+ "input": "direct",+ "orig_default": null,+ "orig_required": false,+ "title": "VAE",+ "ui_model_base": ["qwen-image", "anima"],+ "ui_model_type": ["vae"]+ },+ "qwen3_vl_encoder_model": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/ModelIdentifierField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Standalone Qwen3-VL Encoder model. If not provided, the encoder is loaded from the Krea-2 (diffusers) model.",+ "field_kind": "input",+ "input": "direct",+ "orig_default": null,+ "orig_required": false,+ "title": "Qwen3-VL Encoder",+ "ui_model_type": ["qwen3_vl_encoder"]+ },+ "type": {+ "const": "krea2_model_loader",+ "default": "krea2_model_loader",+ "field_kind": "node_attribute",+ "title": "type",+ "type": "string"+ }+ },+ "required": ["model", "type", "id"],+ "tags": ["model", "krea2", "krea-2"],+ "title": "Main Model - Krea-2",+ "type": "object",+ "version": "1.0.0",+ "output": {+ "$ref": "#/components/schemas/Krea2ModelLoaderOutput"+ }+ },+ "Krea2ModelLoaderOutput": {+ "class": "output",+ "description": "Krea-2 base model loader output.",+ "properties": {+ "transformer": {+ "$ref": "#/components/schemas/TransformerField",+ "description": "Transformer",+ "field_kind": "output",+ "title": "Transformer",+ "ui_hidden": false+ },+ "qwen3_vl_encoder": {+ "$ref": "#/components/schemas/Qwen3VLEncoderField",+ "description": "Qwen3-VL tokenizer and text encoder",+ "field_kind": "output",+ "title": "Qwen3-VL Encoder",+ "ui_hidden": false+ },+ "vae": {+ "$ref": "#/components/schemas/VAEField",+ "description": "VAE",+ "field_kind": "output",+ "title": "VAE",+ "ui_hidden": false+ },+ "type": {+ "const": "krea2_model_loader_output",+ "default": "krea2_model_loader_output",+ "field_kind": "node_attribute",+ "title": "type",+ "type": "string"+ }+ },+ "required": ["output_meta", "transformer", "qwen3_vl_encoder", "vae", "type", "type"],+ "title": "Krea2ModelLoaderOutput",+ "type": "object"+ },+ "Krea2SeedVarianceInvocation": {+ "category": "conditioning",+ "class": "invocation",+ "classification": "prototype",+ "description": "Inject per-seed diversity into Krea-2 text conditioning.\n\nDistilled few-step models (like Krea-2-Turbo) suffer from low seed variance \u2014 different seeds give\nnear-identical images. This adds seeded uniform noise to a random subset of the text-embedding\nvalues, trading some prompt adherence for variety (the same idea as the Z-Image-Turbo\n`SeedVarianceEnhancer`). Optional pass between the text encoder and denoise.\n\nThe noise magnitude is auto-calibrated relative to the embedding's standard deviation, so a given\n`strength` behaves consistently regardless of the embedding scale \u2014 in particular it stays sane\nwhether or not the upstream Conditioning Rebalance node has scaled the embeddings up.",+ "node_pack": "invokeai",+ "properties": {+ "id": {+ "description": "The id of this instance of an invocation. Must be unique among all instances of invocations.",+ "field_kind": "node_attribute",+ "title": "Id",+ "type": "string"+ },+ "is_intermediate": {+ "default": false,+ "description": "Whether or not this is an intermediate invocation.",+ "field_kind": "node_attribute",+ "input": "direct",+ "orig_required": true,+ "title": "Is Intermediate",+ "type": "boolean",+ "ui_hidden": false,+ "ui_type": "IsIntermediate"+ },+ "use_cache": {+ "default": true,+ "description": "Whether or not to use the cache",+ "field_kind": "node_attribute",+ "title": "Use Cache",+ "type": "boolean"+ },+ "conditioning": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/Krea2ConditioningField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Conditioning tensor",+ "field_kind": "input",+ "input": "connection",+ "orig_required": true,+ "title": "Conditioning"+ },+ "strength": {+ "default": 0.1,+ "description": "Noise strength as a multiplier of the embedding std (0=off, 0.1=subtle, 0.5=strong).",+ "field_kind": "input",+ "input": "any",+ "maximum": 2.0,+ "minimum": 0.0,+ "orig_default": 0.1,+ "orig_required": false,+ "title": "Strength",+ "type": "number"+ },+ "randomize_percent": {+ "default": 50.0,+ "description": "Percentage of embedding values that get perturbed (Bernoulli mask); 0 disables.",+ "field_kind": "input",+ "input": "any",+ "maximum": 100.0,+ "minimum": 0.0,+ "orig_default": 50.0,+ "orig_required": false,+ "title": "Randomize Percent",+ "type": "number"+ },+ "variance_seed": {+ "default": 0,+ "description": "Seed for the variance noise (vary this to get variety).",+ "field_kind": "input",+ "input": "any",+ "orig_default": 0,+ "orig_required": false,+ "title": "Variance Seed",+ "type": "integer"+ },+ "type": {+ "const": "krea2_seed_variance",+ "default": "krea2_seed_variance",+ "field_kind": "node_attribute",+ "title": "type",+ "type": "string"+ }+ },+ "required": ["type", "id"],+ "tags": ["conditioning", "krea2", "krea-2", "variance"],+ "title": "Seed Variance - Krea-2",+ "type": "object",+ "version": "1.0.0",+ "output": {+ "$ref": "#/components/schemas/Krea2ConditioningOutput"+ }+ },+ "Krea2TextEncoderInvocation": {+ "category": "conditioning",+ "class": "invocation",+ "classification": "prototype",+ "description": "Encodes a text prompt for Krea-2 using the Qwen3-VL text encoder.\n\nThe encoder taps 12 decoder hidden-state layers and stacks them per token, producing a 4D\nconditioning tensor (B, seq, 12, hidden) that the Krea-2 transformer's text-fusion stage consumes.",+ "node_pack": "invokeai",+ "properties": {+ "id": {+ "description": "The id of this instance of an invocation. Must be unique among all instances of invocations.",+ "field_kind": "node_attribute",+ "title": "Id",+ "type": "string"+ },+ "is_intermediate": {+ "default": false,+ "description": "Whether or not this is an intermediate invocation.",+ "field_kind": "node_attribute",+ "input": "direct",+ "orig_required": true,+ "title": "Is Intermediate",+ "type": "boolean",+ "ui_hidden": false,+ "ui_type": "IsIntermediate"+ },+ "use_cache": {+ "default": true,+ "description": "Whether or not to use the cache",+ "field_kind": "node_attribute",+ "title": "Use Cache",+ "type": "boolean"+ },+ "prompt": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Text prompt describing the desired image.",+ "field_kind": "input",+ "input": "any",+ "orig_required": true,+ "title": "Prompt",+ "ui_component": "textarea"+ },+ "qwen3_vl_encoder": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/Qwen3VLEncoderField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Qwen3-VL tokenizer and text encoder",+ "field_kind": "input",+ "input": "connection",+ "orig_required": true,+ "title": "Qwen3-VL Encoder"+ },+ "type": {+ "const": "krea2_text_encoder",+ "default": "krea2_text_encoder",+ "field_kind": "node_attribute",+ "title": "type",+ "type": "string"+ }+ },+ "required": ["type", "id"],+ "tags": ["prompt", "conditioning", "krea2", "krea-2"],+ "title": "Prompt - Krea-2",+ "type": "object",+ "version": "1.0.0",+ "output": {+ "$ref": "#/components/schemas/Krea2ConditioningOutput"+ }+ },+ "Krea2VariantType": {+ "type": "string",+ "enum": ["krea2_turbo", "krea2_base"],+ "title": "Krea2VariantType",+ "description": "Krea 2 model variants."+ },+ "LaMaInfillInvocation": {+ "category": "inpaint",+ "class": "invocation",+ "classification": "stable",+ "description": "Infills transparent areas of an image using the LaMa model","node_pack": "invokeai","properties": {"board": {@@ -48824,19 +50068,323 @@},"base": {"type": "string",- "const": "flux2",+ "const": "flux2",+ "title": "Base",+ "default": "flux2"+ },+ "variant": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/Flux2VariantType"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "type": "object",+ "required": [+ "key",+ "hash",+ "path",+ "file_size",+ "name",+ "description",+ "source",+ "source_type",+ "source_api_response",+ "source_url",+ "cover_image",+ "type",+ "trigger_phrases",+ "default_settings",+ "format",+ "base",+ "variant"+ ],+ "title": "LoRA_Diffusers_Flux2_Config",+ "description": "Model config for FLUX.2 (Klein) LoRA models in Diffusers format."+ },+ "LoRA_Diffusers_SD1_Config": {+ "properties": {+ "key": {+ "type": "string",+ "title": "Key",+ "description": "A unique key for this model."+ },+ "hash": {+ "type": "string",+ "title": "Hash",+ "description": "The hash of the model file(s)."+ },+ "path": {+ "type": "string",+ "title": "Path",+ "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."+ },+ "file_size": {+ "type": "integer",+ "title": "File Size",+ "description": "The size of the model in bytes."+ },+ "name": {+ "type": "string",+ "title": "Name",+ "description": "Name of the model."+ },+ "description": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Description",+ "description": "Model description"+ },+ "source": {+ "type": "string",+ "title": "Source",+ "description": "The original source of the model (path, URL or repo_id)."+ },+ "source_type": {+ "$ref": "#/components/schemas/ModelSourceType",+ "description": "The type of source"+ },+ "source_api_response": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Source Api Response",+ "description": "The original API response from the source, as stringified JSON."+ },+ "source_url": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Source Url",+ "description": "Optional URL for the model (e.g. download page or model page)."+ },+ "cover_image": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Cover Image",+ "description": "Url for image to preview model"+ },+ "type": {+ "type": "string",+ "const": "lora",+ "title": "Type",+ "default": "lora"+ },+ "trigger_phrases": {+ "anyOf": [+ {+ "items": {+ "type": "string"+ },+ "type": "array",+ "uniqueItems": true+ },+ {+ "type": "null"+ }+ ],+ "title": "Trigger Phrases",+ "description": "Set of trigger phrases for this model"+ },+ "default_settings": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/LoraModelDefaultSettings"+ },+ {+ "type": "null"+ }+ ],+ "description": "Default settings for this model"+ },+ "format": {+ "type": "string",+ "const": "diffusers",+ "title": "Format",+ "default": "diffusers"+ },+ "base": {+ "type": "string",+ "const": "sd-1",+ "title": "Base",+ "default": "sd-1"+ }+ },+ "type": "object",+ "required": [+ "key",+ "hash",+ "path",+ "file_size",+ "name",+ "description",+ "source",+ "source_type",+ "source_api_response",+ "source_url",+ "cover_image",+ "type",+ "trigger_phrases",+ "default_settings",+ "format",+ "base"+ ],+ "title": "LoRA_Diffusers_SD1_Config"+ },+ "LoRA_Diffusers_SD2_Config": {+ "properties": {+ "key": {+ "type": "string",+ "title": "Key",+ "description": "A unique key for this model."+ },+ "hash": {+ "type": "string",+ "title": "Hash",+ "description": "The hash of the model file(s)."+ },+ "path": {+ "type": "string",+ "title": "Path",+ "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."+ },+ "file_size": {+ "type": "integer",+ "title": "File Size",+ "description": "The size of the model in bytes."+ },+ "name": {+ "type": "string",+ "title": "Name",+ "description": "Name of the model."+ },+ "description": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Description",+ "description": "Model description"+ },+ "source": {+ "type": "string",+ "title": "Source",+ "description": "The original source of the model (path, URL or repo_id)."+ },+ "source_type": {+ "$ref": "#/components/schemas/ModelSourceType",+ "description": "The type of source"+ },+ "source_api_response": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Source Api Response",+ "description": "The original API response from the source, as stringified JSON."+ },+ "source_url": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Source Url",+ "description": "Optional URL for the model (e.g. download page or model page)."+ },+ "cover_image": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Cover Image",+ "description": "Url for image to preview model"+ },+ "type": {+ "type": "string",+ "const": "lora",+ "title": "Type",+ "default": "lora"+ },+ "trigger_phrases": {+ "anyOf": [+ {+ "items": {+ "type": "string"+ },+ "type": "array",+ "uniqueItems": true+ },+ {+ "type": "null"+ }+ ],+ "title": "Trigger Phrases",+ "description": "Set of trigger phrases for this model"+ },+ "default_settings": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/LoraModelDefaultSettings"+ },+ {+ "type": "null"+ }+ ],+ "description": "Default settings for this model"+ },+ "format": {+ "type": "string",+ "const": "diffusers",+ "title": "Format",+ "default": "diffusers"+ },+ "base": {+ "type": "string",+ "const": "sd-2","title": "Base",- "default": "flux2"- },- "variant": {- "anyOf": [- {- "$ref": "#/components/schemas/Flux2VariantType"- },- {- "type": "null"- }- ]+ "default": "sd-2"}},"type": "object",@@ -48856,13 +50404,11 @@"trigger_phrases","default_settings","format",- "base",- "variant"+ "base"],- "title": "LoRA_Diffusers_Flux2_Config",- "description": "Model config for FLUX.2 (Klein) LoRA models in Diffusers format."+ "title": "LoRA_Diffusers_SD2_Config"},- "LoRA_Diffusers_SD1_Config": {+ "LoRA_Diffusers_SDXL_Config": {"properties": {"key": {"type": "string",@@ -48987,9 +50533,9 @@},"base": {"type": "string",- "const": "sd-1",+ "const": "sdxl","title": "Base",- "default": "sd-1"+ "default": "sdxl"}},"type": "object",@@ -49011,9 +50557,9 @@"format","base"],- "title": "LoRA_Diffusers_SD1_Config"+ "title": "LoRA_Diffusers_SDXL_Config"},- "LoRA_Diffusers_SD2_Config": {+ "LoRA_Diffusers_ZImage_Config": {"properties": {"key": {"type": "string",@@ -49138,160 +50684,19 @@},"base": {"type": "string",- "const": "sd-2",+ "const": "z-image","title": "Base",- "default": "sd-2"- }- },- "type": "object",- "required": [- "key",- "hash",- "path",- "file_size",- "name",- "description",- "source",- "source_type",- "source_api_response",- "source_url",- "cover_image",- "type",- "trigger_phrases",- "default_settings",- "format",- "base"- ],- "title": "LoRA_Diffusers_SD2_Config"- },- "LoRA_Diffusers_SDXL_Config": {- "properties": {- "key": {- "type": "string",- "title": "Key",- "description": "A unique key for this model."- },- "hash": {- "type": "string",- "title": "Hash",- "description": "The hash of the model file(s)."- },- "path": {- "type": "string",- "title": "Path",- "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."- },- "file_size": {- "type": "integer",- "title": "File Size",- "description": "The size of the model in bytes."- },- "name": {- "type": "string",- "title": "Name",- "description": "Name of the model."- },- "description": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Description",- "description": "Model description"- },- "source": {- "type": "string",- "title": "Source",- "description": "The original source of the model (path, URL or repo_id)."- },- "source_type": {- "$ref": "#/components/schemas/ModelSourceType",- "description": "The type of source"- },- "source_api_response": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Source Api Response",- "description": "The original API response from the source, as stringified JSON."- },- "source_url": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Source Url",- "description": "Optional URL for the model (e.g. download page or model page)."- },- "cover_image": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Cover Image",- "description": "Url for image to preview model"- },- "type": {- "type": "string",- "const": "lora",- "title": "Type",- "default": "lora"- },- "trigger_phrases": {- "anyOf": [- {- "items": {- "type": "string"- },- "type": "array",- "uniqueItems": true- },- {- "type": "null"- }- ],- "title": "Trigger Phrases",- "description": "Set of trigger phrases for this model"+ "default": "z-image"},- "default_settings": {+ "variant": {"anyOf": [{- "$ref": "#/components/schemas/LoraModelDefaultSettings"+ "$ref": "#/components/schemas/ZImageVariantType"},{"type": "null"}- ],- "description": "Default settings for this model"- },- "format": {- "type": "string",- "const": "diffusers",- "title": "Format",- "default": "diffusers"- },- "base": {- "type": "string",- "const": "sdxl",- "title": "Base",- "default": "sdxl"+ ]}},"type": "object",@@ -49311,11 +50716,13 @@"trigger_phrases","default_settings","format",- "base"+ "base",+ "variant"],- "title": "LoRA_Diffusers_SDXL_Config"+ "title": "LoRA_Diffusers_ZImage_Config",+ "description": "Model config for Z-Image LoRA models in Diffusers format."},- "LoRA_Diffusers_ZImage_Config": {+ "LoRA_LyCORIS_Anima_Config": {"properties": {"key": {"type": "string",@@ -49434,25 +50841,15 @@},"format": {"type": "string",- "const": "diffusers",+ "const": "lycoris","title": "Format",- "default": "diffusers"+ "default": "lycoris"},"base": {"type": "string",- "const": "z-image",+ "const": "anima","title": "Base",- "default": "z-image"- },- "variant": {- "anyOf": [- {- "$ref": "#/components/schemas/ZImageVariantType"- },- {- "type": "null"- }- ]+ "default": "anima"}},"type": "object",@@ -49472,13 +50869,12 @@"trigger_phrases","default_settings","format",- "base",- "variant"+ "base"],- "title": "LoRA_Diffusers_ZImage_Config",- "description": "Model config for Z-Image LoRA models in Diffusers format."+ "title": "LoRA_LyCORIS_Anima_Config",+ "description": "Model config for Anima LoRA models in LyCORIS format."},- "LoRA_LyCORIS_Anima_Config": {+ "LoRA_LyCORIS_FLUX_Config": {"properties": {"key": {"type": "string",@@ -49603,9 +50999,9 @@},"base": {"type": "string",- "const": "anima",+ "const": "flux","title": "Base",- "default": "anima"+ "default": "flux"}},"type": "object",@@ -49627,10 +51023,9 @@"format","base"],- "title": "LoRA_LyCORIS_Anima_Config",- "description": "Model config for Anima LoRA models in LyCORIS format."+ "title": "LoRA_LyCORIS_FLUX_Config"},- "LoRA_LyCORIS_FLUX_Config": {+ "LoRA_LyCORIS_Flux2_Config": {"properties": {"key": {"type": "string",@@ -49755,9 +51150,19 @@},"base": {"type": "string",- "const": "flux",+ "const": "flux2","title": "Base",- "default": "flux"+ "default": "flux2"+ },+ "variant": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/Flux2VariantType"+ },+ {+ "type": "null"+ }+ ]}},"type": "object",@@ -49777,11 +51182,13 @@"trigger_phrases","default_settings","format",- "base"+ "base",+ "variant"],- "title": "LoRA_LyCORIS_FLUX_Config"+ "title": "LoRA_LyCORIS_Flux2_Config",+ "description": "Model config for FLUX.2 (Klein) LoRA models in LyCORIS format."},- "LoRA_LyCORIS_Flux2_Config": {+ "LoRA_LyCORIS_Krea2_Config": {"properties": {"key": {"type": "string",@@ -49906,19 +51313,9 @@},"base": {"type": "string",- "const": "flux2",+ "const": "krea-2","title": "Base",- "default": "flux2"- },- "variant": {- "anyOf": [- {- "$ref": "#/components/schemas/Flux2VariantType"- },- {- "type": "null"- }- ]+ "default": "krea-2"}},"type": "object",@@ -49938,11 +51335,10 @@"trigger_phrases","default_settings","format",- "base",- "variant"+ "base"],- "title": "LoRA_LyCORIS_Flux2_Config",- "description": "Model config for FLUX.2 (Klein) LoRA models in LyCORIS format."+ "title": "LoRA_LyCORIS_Krea2_Config",+ "description": "Model config for Krea-2 LoRA models in LyCORIS (single-file diffusers PEFT) format."},"LoRA_LyCORIS_QwenImage_Config": {"properties": {@@ -52104,17 +53500,354 @@"title": "Config Path","description": "Path to the config for this model, if any."},- "base": {- "type": "string",- "const": "anima",- "title": "Base",- "default": "anima"- },+ "base": {+ "type": "string",+ "const": "anima",+ "title": "Base",+ "default": "anima"+ },+ "format": {+ "type": "string",+ "const": "checkpoint",+ "title": "Format",+ "default": "checkpoint"+ }+ },+ "type": "object",+ "required": [+ "key",+ "hash",+ "path",+ "file_size",+ "name",+ "description",+ "source",+ "source_type",+ "source_api_response",+ "source_url",+ "cover_image",+ "type",+ "trigger_phrases",+ "default_settings",+ "config_path",+ "base",+ "format"+ ],+ "title": "Main_Checkpoint_Anima_Config",+ "description": "Model config for Anima single-file checkpoint models (safetensors).\n\nAnima is built on NVIDIA Cosmos Predict2 DiT with a custom LLM Adapter\nthat bridges Qwen3 0.6B text encoder outputs to the DiT."+ },+ "Main_Checkpoint_FLUX_Config": {+ "properties": {+ "key": {+ "type": "string",+ "title": "Key",+ "description": "A unique key for this model."+ },+ "hash": {+ "type": "string",+ "title": "Hash",+ "description": "The hash of the model file(s)."+ },+ "path": {+ "type": "string",+ "title": "Path",+ "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."+ },+ "file_size": {+ "type": "integer",+ "title": "File Size",+ "description": "The size of the model in bytes."+ },+ "name": {+ "type": "string",+ "title": "Name",+ "description": "Name of the model."+ },+ "description": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Description",+ "description": "Model description"+ },+ "source": {+ "type": "string",+ "title": "Source",+ "description": "The original source of the model (path, URL or repo_id)."+ },+ "source_type": {+ "$ref": "#/components/schemas/ModelSourceType",+ "description": "The type of source"+ },+ "source_api_response": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Source Api Response",+ "description": "The original API response from the source, as stringified JSON."+ },+ "source_url": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Source Url",+ "description": "Optional URL for the model (e.g. download page or model page)."+ },+ "cover_image": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Cover Image",+ "description": "Url for image to preview model"+ },+ "type": {+ "type": "string",+ "const": "main",+ "title": "Type",+ "default": "main"+ },+ "trigger_phrases": {+ "anyOf": [+ {+ "items": {+ "type": "string"+ },+ "type": "array",+ "uniqueItems": true+ },+ {+ "type": "null"+ }+ ],+ "title": "Trigger Phrases",+ "description": "Set of trigger phrases for this model"+ },+ "default_settings": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/MainModelDefaultSettings"+ },+ {+ "type": "null"+ }+ ],+ "description": "Default settings for this model"+ },+ "config_path": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Config Path",+ "description": "Path to the config for this model, if any."+ },+ "format": {+ "type": "string",+ "const": "checkpoint",+ "title": "Format",+ "default": "checkpoint"+ },+ "base": {+ "type": "string",+ "const": "flux",+ "title": "Base",+ "default": "flux"+ },+ "variant": {+ "$ref": "#/components/schemas/FluxVariantType"+ }+ },+ "type": "object",+ "required": [+ "key",+ "hash",+ "path",+ "file_size",+ "name",+ "description",+ "source",+ "source_type",+ "source_api_response",+ "source_url",+ "cover_image",+ "type",+ "trigger_phrases",+ "default_settings",+ "config_path",+ "format",+ "base",+ "variant"+ ],+ "title": "Main_Checkpoint_FLUX_Config",+ "description": "Model config for main checkpoint models."+ },+ "Main_Checkpoint_Flux2_Config": {+ "properties": {+ "key": {+ "type": "string",+ "title": "Key",+ "description": "A unique key for this model."+ },+ "hash": {+ "type": "string",+ "title": "Hash",+ "description": "The hash of the model file(s)."+ },+ "path": {+ "type": "string",+ "title": "Path",+ "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."+ },+ "file_size": {+ "type": "integer",+ "title": "File Size",+ "description": "The size of the model in bytes."+ },+ "name": {+ "type": "string",+ "title": "Name",+ "description": "Name of the model."+ },+ "description": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Description",+ "description": "Model description"+ },+ "source": {+ "type": "string",+ "title": "Source",+ "description": "The original source of the model (path, URL or repo_id)."+ },+ "source_type": {+ "$ref": "#/components/schemas/ModelSourceType",+ "description": "The type of source"+ },+ "source_api_response": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Source Api Response",+ "description": "The original API response from the source, as stringified JSON."+ },+ "source_url": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Source Url",+ "description": "Optional URL for the model (e.g. download page or model page)."+ },+ "cover_image": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Cover Image",+ "description": "Url for image to preview model"+ },+ "type": {+ "type": "string",+ "const": "main",+ "title": "Type",+ "default": "main"+ },+ "trigger_phrases": {+ "anyOf": [+ {+ "items": {+ "type": "string"+ },+ "type": "array",+ "uniqueItems": true+ },+ {+ "type": "null"+ }+ ],+ "title": "Trigger Phrases",+ "description": "Set of trigger phrases for this model"+ },+ "default_settings": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/MainModelDefaultSettings"+ },+ {+ "type": "null"+ }+ ],+ "description": "Default settings for this model"+ },+ "config_path": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Config Path",+ "description": "Path to the config for this model, if any."+ },"format": {"type": "string","const": "checkpoint","title": "Format","default": "checkpoint"+ },+ "base": {+ "type": "string",+ "const": "flux2",+ "title": "Base",+ "default": "flux2"+ },+ "variant": {+ "$ref": "#/components/schemas/Flux2VariantType"}},"type": "object",@@ -52134,13 +53867,14 @@"trigger_phrases","default_settings","config_path",+ "format","base",- "format"+ "variant"],- "title": "Main_Checkpoint_Anima_Config",- "description": "Model config for Anima single-file checkpoint models (safetensors).\n\nAnima is built on NVIDIA Cosmos Predict2 DiT with a custom LLM Adapter\nthat bridges Qwen3 0.6B text encoder outputs to the DiT."+ "title": "Main_Checkpoint_Flux2_Config",+ "description": "Model config for FLUX.2 checkpoint models (e.g. Klein)."},- "Main_Checkpoint_FLUX_Config": {+ "Main_Checkpoint_Krea2_Config": {"properties": {"key": {"type": "string",@@ -52269,20 +54003,20 @@"title": "Config Path","description": "Path to the config for this model, if any."},+ "base": {+ "type": "string",+ "const": "krea-2",+ "title": "Base",+ "default": "krea-2"+ },"format": {"type": "string","const": "checkpoint","title": "Format","default": "checkpoint"},- "base": {- "type": "string",- "const": "flux",- "title": "Base",- "default": "flux"- },"variant": {- "$ref": "#/components/schemas/FluxVariantType"+ "$ref": "#/components/schemas/Krea2VariantType"}},"type": "object",@@ -52302,14 +54036,14 @@"trigger_phrases","default_settings","config_path",- "format","base",+ "format","variant"],- "title": "Main_Checkpoint_FLUX_Config",- "description": "Model config for main checkpoint models."+ "title": "Main_Checkpoint_Krea2_Config",+ "description": "Model config for Krea-2 single-file checkpoint models (safetensors, etc)."},- "Main_Checkpoint_Flux2_Config": {+ "Main_Checkpoint_QwenImage_Config": {"properties": {"key": {"type": "string",@@ -52438,20 +54172,27 @@"title": "Config Path","description": "Path to the config for this model, if any."},+ "base": {+ "type": "string",+ "const": "qwen-image",+ "title": "Base",+ "default": "qwen-image"+ },"format": {"type": "string","const": "checkpoint","title": "Format","default": "checkpoint"},- "base": {- "type": "string",- "const": "flux2",- "title": "Base",- "default": "flux2"- },"variant": {- "$ref": "#/components/schemas/Flux2VariantType"+ "anyOf": [+ {+ "$ref": "#/components/schemas/QwenImageVariantType"+ },+ {+ "type": "null"+ }+ ]}},"type": "object",@@ -52471,14 +54212,14 @@"trigger_phrases","default_settings","config_path",- "format","base",+ "format","variant"],- "title": "Main_Checkpoint_Flux2_Config",- "description": "Model config for FLUX.2 checkpoint models (e.g. Klein)."+ "title": "Main_Checkpoint_QwenImage_Config",+ "description": "Model config for Qwen Image single-file checkpoint models (safetensors, etc).\n\nCovers both raw bf16/fp16 checkpoints and ComfyUI-style fp8_scaled checkpoints.\nThe loader dequantizes fp8 weights back to bf16 at load time; the\n`default_settings.fp8_storage` toggle can then optionally re-cast to fp8 for\nVRAM savings."},- "Main_Checkpoint_QwenImage_Config": {+ "Main_Checkpoint_SD1_Config": {"properties": {"key": {"type": "string",@@ -52607,27 +54348,195 @@"title": "Config Path","description": "Path to the config for this model, if any."},- "base": {- "type": "string",- "const": "qwen-image",- "title": "Base",- "default": "qwen-image"- },"format": {"type": "string","const": "checkpoint","title": "Format","default": "checkpoint"},+ "prediction_type": {+ "$ref": "#/components/schemas/SchedulerPredictionType"+ },"variant": {+ "$ref": "#/components/schemas/ModelVariantType"+ },+ "base": {+ "type": "string",+ "const": "sd-1",+ "title": "Base",+ "default": "sd-1"+ }+ },+ "type": "object",+ "required": [+ "key",+ "hash",+ "path",+ "file_size",+ "name",+ "description",+ "source",+ "source_type",+ "source_api_response",+ "source_url",+ "cover_image",+ "type",+ "trigger_phrases",+ "default_settings",+ "config_path",+ "format",+ "prediction_type",+ "variant",+ "base"+ ],+ "title": "Main_Checkpoint_SD1_Config"+ },+ "Main_Checkpoint_SD2_Config": {+ "properties": {+ "key": {+ "type": "string",+ "title": "Key",+ "description": "A unique key for this model."+ },+ "hash": {+ "type": "string",+ "title": "Hash",+ "description": "The hash of the model file(s)."+ },+ "path": {+ "type": "string",+ "title": "Path",+ "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."+ },+ "file_size": {+ "type": "integer",+ "title": "File Size",+ "description": "The size of the model in bytes."+ },+ "name": {+ "type": "string",+ "title": "Name",+ "description": "Name of the model."+ },+ "description": {"anyOf": [{- "$ref": "#/components/schemas/QwenImageVariantType"+ "type": "string"},{"type": "null"}- ]+ ],+ "title": "Description",+ "description": "Model description"+ },+ "source": {+ "type": "string",+ "title": "Source",+ "description": "The original source of the model (path, URL or repo_id)."+ },+ "source_type": {+ "$ref": "#/components/schemas/ModelSourceType",+ "description": "The type of source"+ },+ "source_api_response": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Source Api Response",+ "description": "The original API response from the source, as stringified JSON."+ },+ "source_url": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Source Url",+ "description": "Optional URL for the model (e.g. download page or model page)."+ },+ "cover_image": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Cover Image",+ "description": "Url for image to preview model"+ },+ "type": {+ "type": "string",+ "const": "main",+ "title": "Type",+ "default": "main"+ },+ "trigger_phrases": {+ "anyOf": [+ {+ "items": {+ "type": "string"+ },+ "type": "array",+ "uniqueItems": true+ },+ {+ "type": "null"+ }+ ],+ "title": "Trigger Phrases",+ "description": "Set of trigger phrases for this model"+ },+ "default_settings": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/MainModelDefaultSettings"+ },+ {+ "type": "null"+ }+ ],+ "description": "Default settings for this model"+ },+ "config_path": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Config Path",+ "description": "Path to the config for this model, if any."+ },+ "format": {+ "type": "string",+ "const": "checkpoint",+ "title": "Format",+ "default": "checkpoint"+ },+ "prediction_type": {+ "$ref": "#/components/schemas/SchedulerPredictionType"+ },+ "variant": {+ "$ref": "#/components/schemas/ModelVariantType"+ },+ "base": {+ "type": "string",+ "const": "sd-2",+ "title": "Base",+ "default": "sd-2"}},"type": "object",@@ -52647,14 +54556,14 @@"trigger_phrases","default_settings","config_path",- "base","format",- "variant"+ "prediction_type",+ "variant",+ "base"],- "title": "Main_Checkpoint_QwenImage_Config",- "description": "Model config for Qwen Image single-file checkpoint models (safetensors, etc).\n\nCovers both raw bf16/fp16 checkpoints and ComfyUI-style fp8_scaled checkpoints.\nThe loader dequantizes fp8 weights back to bf16 at load time; the\n`default_settings.fp8_storage` toggle can then optionally re-cast to fp8 for\nVRAM savings."+ "title": "Main_Checkpoint_SD2_Config"},- "Main_Checkpoint_SD1_Config": {+ "Main_Checkpoint_SDXLRefiner_Config": {"properties": {"key": {"type": "string",@@ -52797,9 +54706,9 @@},"base": {"type": "string",- "const": "sd-1",+ "const": "sdxl-refiner","title": "Base",- "default": "sd-1"+ "default": "sdxl-refiner"}},"type": "object",@@ -52824,9 +54733,9 @@"variant","base"],- "title": "Main_Checkpoint_SD1_Config"+ "title": "Main_Checkpoint_SDXLRefiner_Config"},- "Main_Checkpoint_SD2_Config": {+ "Main_Checkpoint_SDXL_Config": {"properties": {"key": {"type": "string",@@ -52969,9 +54878,9 @@},"base": {"type": "string",- "const": "sd-2",+ "const": "sdxl","title": "Base",- "default": "sd-2"+ "default": "sdxl"}},"type": "object",@@ -52996,9 +54905,9 @@"variant","base"],- "title": "Main_Checkpoint_SD2_Config"+ "title": "Main_Checkpoint_SDXL_Config"},- "Main_Checkpoint_SDXLRefiner_Config": {+ "Main_Checkpoint_ZImage_Config": {"properties": {"key": {"type": "string",@@ -53127,23 +55036,20 @@"title": "Config Path","description": "Path to the config for this model, if any."},+ "base": {+ "type": "string",+ "const": "z-image",+ "title": "Base",+ "default": "z-image"+ },"format": {"type": "string","const": "checkpoint","title": "Format","default": "checkpoint"},- "prediction_type": {- "$ref": "#/components/schemas/SchedulerPredictionType"- },"variant": {- "$ref": "#/components/schemas/ModelVariantType"- },- "base": {- "type": "string",- "const": "sdxl-refiner",- "title": "Base",- "default": "sdxl-refiner"+ "$ref": "#/components/schemas/ZImageVariantType"}},"type": "object",@@ -53163,14 +55069,14 @@"trigger_phrases","default_settings","config_path",+ "base","format",- "prediction_type",- "variant",- "base"+ "variant"],- "title": "Main_Checkpoint_SDXLRefiner_Config"+ "title": "Main_Checkpoint_ZImage_Config",+ "description": "Model config for Z-Image single-file checkpoint models (safetensors, etc)."},- "Main_Checkpoint_SDXL_Config": {+ "Main_Diffusers_CogView4_Config": {"properties": {"key": {"type": "string",@@ -53287,35 +55193,21 @@],"description": "Default settings for this model"},- "config_path": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Config Path",- "description": "Path to the config for this model, if any."- },"format": {"type": "string",- "const": "checkpoint",+ "const": "diffusers","title": "Format",- "default": "checkpoint"- },- "prediction_type": {- "$ref": "#/components/schemas/SchedulerPredictionType"+ "default": "diffusers"},- "variant": {- "$ref": "#/components/schemas/ModelVariantType"+ "repo_variant": {+ "$ref": "#/components/schemas/ModelRepoVariant",+ "default": ""},"base": {"type": "string",- "const": "sdxl",+ "const": "cogview4","title": "Base",- "default": "sdxl"+ "default": "cogview4"}},"type": "object",@@ -53334,184 +55226,13 @@"type","trigger_phrases","default_settings",- "config_path","format",- "prediction_type",- "variant",+ "repo_variant","base"],- "title": "Main_Checkpoint_SDXL_Config"- },- "Main_Checkpoint_ZImage_Config": {- "properties": {- "key": {- "type": "string",- "title": "Key",- "description": "A unique key for this model."- },- "hash": {- "type": "string",- "title": "Hash",- "description": "The hash of the model file(s)."- },- "path": {- "type": "string",- "title": "Path",- "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."- },- "file_size": {- "type": "integer",- "title": "File Size",- "description": "The size of the model in bytes."- },- "name": {- "type": "string",- "title": "Name",- "description": "Name of the model."- },- "description": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Description",- "description": "Model description"- },- "source": {- "type": "string",- "title": "Source",- "description": "The original source of the model (path, URL or repo_id)."- },- "source_type": {- "$ref": "#/components/schemas/ModelSourceType",- "description": "The type of source"- },- "source_api_response": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Source Api Response",- "description": "The original API response from the source, as stringified JSON."- },- "source_url": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Source Url",- "description": "Optional URL for the model (e.g. download page or model page)."- },- "cover_image": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Cover Image",- "description": "Url for image to preview model"- },- "type": {- "type": "string",- "const": "main",- "title": "Type",- "default": "main"- },- "trigger_phrases": {- "anyOf": [- {- "items": {- "type": "string"- },- "type": "array",- "uniqueItems": true- },- {- "type": "null"- }- ],- "title": "Trigger Phrases",- "description": "Set of trigger phrases for this model"- },- "default_settings": {- "anyOf": [- {- "$ref": "#/components/schemas/MainModelDefaultSettings"- },- {- "type": "null"- }- ],- "description": "Default settings for this model"- },- "config_path": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Config Path",- "description": "Path to the config for this model, if any."- },- "base": {- "type": "string",- "const": "z-image",- "title": "Base",- "default": "z-image"- },- "format": {- "type": "string",- "const": "checkpoint",- "title": "Format",- "default": "checkpoint"- },- "variant": {- "$ref": "#/components/schemas/ZImageVariantType"- }- },- "type": "object",- "required": [- "key",- "hash",- "path",- "file_size",- "name",- "description",- "source",- "source_type",- "source_api_response",- "source_url",- "cover_image",- "type",- "trigger_phrases",- "default_settings",- "config_path",- "base",- "format",- "variant"- ],- "title": "Main_Checkpoint_ZImage_Config",- "description": "Model config for Z-Image single-file checkpoint models (safetensors, etc)."+ "title": "Main_Diffusers_CogView4_Config"},- "Main_Diffusers_CogView4_Config": {+ "Main_Diffusers_FLUX_Config": {"properties": {"key": {"type": "string",@@ -53640,9 +55361,12 @@},"base": {"type": "string",- "const": "cogview4",+ "const": "flux","title": "Base",- "default": "cogview4"+ "default": "flux"+ },+ "variant": {+ "$ref": "#/components/schemas/FluxVariantType"}},"type": "object",@@ -53663,11 +55387,13 @@"default_settings","format","repo_variant",- "base"+ "base",+ "variant"],- "title": "Main_Diffusers_CogView4_Config"+ "title": "Main_Diffusers_FLUX_Config",+ "description": "Model config for FLUX.1 models in diffusers format."},- "Main_Diffusers_FLUX_Config": {+ "Main_Diffusers_Flux2_Config": {"properties": {"key": {"type": "string",@@ -53796,12 +55522,12 @@},"base": {"type": "string",- "const": "flux",+ "const": "flux2","title": "Base",- "default": "flux"+ "default": "flux2"},"variant": {- "$ref": "#/components/schemas/FluxVariantType"+ "$ref": "#/components/schemas/Flux2VariantType"}},"type": "object",@@ -53825,10 +55551,10 @@"base","variant"],- "title": "Main_Diffusers_FLUX_Config",- "description": "Model config for FLUX.1 models in diffusers format."+ "title": "Main_Diffusers_Flux2_Config",+ "description": "Model config for FLUX.2 models in diffusers format (e.g. FLUX.2 Klein)."},- "Main_Diffusers_Flux2_Config": {+ "Main_Diffusers_Ideogram4_Config": {"properties": {"key": {"type": "string",@@ -53957,12 +55683,9 @@},"base": {"type": "string",- "const": "flux2",+ "const": "ideogram-4","title": "Base",- "default": "flux2"- },- "variant": {- "$ref": "#/components/schemas/Flux2VariantType"+ "default": "ideogram-4"}},"type": "object",@@ -53983,13 +55706,12 @@"default_settings","format","repo_variant",- "base",- "variant"+ "base"],- "title": "Main_Diffusers_Flux2_Config",- "description": "Model config for FLUX.2 models in diffusers format (e.g. FLUX.2 Klein)."+ "title": "Main_Diffusers_Ideogram4_Config",+ "description": "Model config for Ideogram 4 diffusers models (nf4 / fp8 quantized).\n\nThe on-disk layout is a diffusers pipeline folder bundling two transformers\n(transformer/ + unconditional_transformer/), a Qwen3-VL text_encoder/ + tokenizer/,\nand a FLUX.2-style vae/. Quantization (nf4 vs fp8) lives inside the component folders\nand is detected by the loader, not here."},- "Main_Diffusers_Ideogram4_Config": {+ "Main_Diffusers_Krea2_Config": {"properties": {"key": {"type": "string",@@ -54118,9 +55840,12 @@},"base": {"type": "string",- "const": "ideogram-4",+ "const": "krea-2","title": "Base",- "default": "ideogram-4"+ "default": "krea-2"+ },+ "variant": {+ "$ref": "#/components/schemas/Krea2VariantType"}},"type": "object",@@ -54141,10 +55866,11 @@"default_settings","format","repo_variant",- "base"+ "base",+ "variant"],- "title": "Main_Diffusers_Ideogram4_Config",- "description": "Model config for Ideogram 4 diffusers models (nf4 / fp8 quantized).\n\nThe on-disk layout is a diffusers pipeline folder bundling two transformers\n(transformer/ + unconditional_transformer/), a Qwen3-VL text_encoder/ + tokenizer/,\nand a FLUX.2-style vae/. Quantization (nf4 vs fp8) lives inside the component folders\nand is detected by the loader, not here."+ "title": "Main_Diffusers_Krea2_Config",+ "description": "Model config for Krea-2 diffusers models (Krea-2-Turbo)."},"Main_Diffusers_QwenImage_Config": {"properties": {@@ -55825,6 +57551,175 @@"title": "Main_GGUF_Flux2_Config","description": "Model config for GGUF-quantized FLUX.2 checkpoint models (e.g. Klein)."},+ "Main_GGUF_Krea2_Config": {+ "properties": {+ "key": {+ "type": "string",+ "title": "Key",+ "description": "A unique key for this model."+ },+ "hash": {+ "type": "string",+ "title": "Hash",+ "description": "The hash of the model file(s)."+ },+ "path": {+ "type": "string",+ "title": "Path",+ "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."+ },+ "file_size": {+ "type": "integer",+ "title": "File Size",+ "description": "The size of the model in bytes."+ },+ "name": {+ "type": "string",+ "title": "Name",+ "description": "Name of the model."+ },+ "description": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Description",+ "description": "Model description"+ },+ "source": {+ "type": "string",+ "title": "Source",+ "description": "The original source of the model (path, URL or repo_id)."+ },+ "source_type": {+ "$ref": "#/components/schemas/ModelSourceType",+ "description": "The type of source"+ },+ "source_api_response": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Source Api Response",+ "description": "The original API response from the source, as stringified JSON."+ },+ "source_url": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Source Url",+ "description": "Optional URL for the model (e.g. download page or model page)."+ },+ "cover_image": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Cover Image",+ "description": "Url for image to preview model"+ },+ "type": {+ "type": "string",+ "const": "main",+ "title": "Type",+ "default": "main"+ },+ "trigger_phrases": {+ "anyOf": [+ {+ "items": {+ "type": "string"+ },+ "type": "array",+ "uniqueItems": true+ },+ {+ "type": "null"+ }+ ],+ "title": "Trigger Phrases",+ "description": "Set of trigger phrases for this model"+ },+ "default_settings": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/MainModelDefaultSettings"+ },+ {+ "type": "null"+ }+ ],+ "description": "Default settings for this model"+ },+ "config_path": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Config Path",+ "description": "Path to the config for this model, if any."+ },+ "base": {+ "type": "string",+ "const": "krea-2",+ "title": "Base",+ "default": "krea-2"+ },+ "format": {+ "type": "string",+ "const": "gguf_quantized",+ "title": "Format",+ "default": "gguf_quantized"+ },+ "variant": {+ "$ref": "#/components/schemas/Krea2VariantType"+ }+ },+ "type": "object",+ "required": [+ "key",+ "hash",+ "path",+ "file_size",+ "name",+ "description",+ "source",+ "source_type",+ "source_api_response",+ "source_url",+ "cover_image",+ "type",+ "trigger_phrases",+ "default_settings",+ "config_path",+ "base",+ "format",+ "variant"+ ],+ "title": "Main_GGUF_Krea2_Config",+ "description": "Model config for GGUF-quantized Krea-2 transformer models (single-file)."+ },"Main_GGUF_QwenImage_Config": {"properties": {"key": {@@ -59871,6 +61766,7 @@"t5_encoder","qwen3_encoder","qwen_vl_encoder",+ "qwen3_vl_encoder","wan_t5_encoder","bnb_quantized_int8b","bnb_quantized_nf4b",@@ -60151,6 +62047,9 @@{"$ref": "#/components/schemas/Main_Diffusers_Ideogram4_Config"},+ {+ "$ref": "#/components/schemas/Main_Diffusers_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_SD1_Config"},@@ -60175,6 +62074,9 @@{"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_Anima_Config"},@@ -60196,6 +62098,9 @@{"$ref": "#/components/schemas/Main_GGUF_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_GGUF_Krea2_Config"+ },{"$ref": "#/components/schemas/VAE_Checkpoint_SD1_Config"},@@ -60280,6 +62185,9 @@{"$ref": "#/components/schemas/LoRA_LyCORIS_ZImage_Config"},+ {+ "$ref": "#/components/schemas/LoRA_LyCORIS_Krea2_Config"+ },{"$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage_Config"},@@ -60325,6 +62233,12 @@{"$ref": "#/components/schemas/T5Encoder_GGUF_Config"},+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_Config"+ },+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Qwen3VLEncoder_Config"+ },{"$ref": "#/components/schemas/Qwen3Encoder_Qwen3Encoder_Config"},@@ -60750,6 +62664,9 @@{"$ref": "#/components/schemas/Main_Diffusers_Ideogram4_Config"},+ {+ "$ref": "#/components/schemas/Main_Diffusers_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_SD1_Config"},@@ -60774,6 +62691,9 @@{"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_Anima_Config"},@@ -60795,6 +62715,9 @@{"$ref": "#/components/schemas/Main_GGUF_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_GGUF_Krea2_Config"+ },{"$ref": "#/components/schemas/VAE_Checkpoint_SD1_Config"},@@ -60879,6 +62802,9 @@{"$ref": "#/components/schemas/LoRA_LyCORIS_ZImage_Config"},+ {+ "$ref": "#/components/schemas/LoRA_LyCORIS_Krea2_Config"+ },{"$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage_Config"},@@ -60924,6 +62850,12 @@{"$ref": "#/components/schemas/T5Encoder_GGUF_Config"},+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_Config"+ },+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Qwen3VLEncoder_Config"+ },{"$ref": "#/components/schemas/Qwen3Encoder_Qwen3Encoder_Config"},@@ -61234,6 +63166,9 @@{"$ref": "#/components/schemas/Main_Diffusers_Ideogram4_Config"},+ {+ "$ref": "#/components/schemas/Main_Diffusers_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_SD1_Config"},@@ -61258,6 +63193,9 @@{"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_Anima_Config"},@@ -61279,6 +63217,9 @@{"$ref": "#/components/schemas/Main_GGUF_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_GGUF_Krea2_Config"+ },{"$ref": "#/components/schemas/VAE_Checkpoint_SD1_Config"},@@ -61363,6 +63304,9 @@{"$ref": "#/components/schemas/LoRA_LyCORIS_ZImage_Config"},+ {+ "$ref": "#/components/schemas/LoRA_LyCORIS_Krea2_Config"+ },{"$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage_Config"},@@ -61408,6 +63352,12 @@{"$ref": "#/components/schemas/T5Encoder_GGUF_Config"},+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_Config"+ },+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Qwen3VLEncoder_Config"+ },{"$ref": "#/components/schemas/Qwen3Encoder_Qwen3Encoder_Config"},@@ -61574,6 +63524,9 @@{"$ref": "#/components/schemas/Main_Diffusers_Ideogram4_Config"},+ {+ "$ref": "#/components/schemas/Main_Diffusers_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_SD1_Config"},@@ -61598,6 +63551,9 @@{"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_Anima_Config"},@@ -61619,6 +63575,9 @@{"$ref": "#/components/schemas/Main_GGUF_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_GGUF_Krea2_Config"+ },{"$ref": "#/components/schemas/VAE_Checkpoint_SD1_Config"},@@ -61703,6 +63662,9 @@{"$ref": "#/components/schemas/LoRA_LyCORIS_ZImage_Config"},+ {+ "$ref": "#/components/schemas/LoRA_LyCORIS_Krea2_Config"+ },{"$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage_Config"},@@ -61748,6 +63710,12 @@{"$ref": "#/components/schemas/T5Encoder_GGUF_Config"},+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_Config"+ },+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Qwen3VLEncoder_Config"+ },{"$ref": "#/components/schemas/Qwen3Encoder_Qwen3Encoder_Config"},@@ -62172,6 +64140,9 @@{"$ref": "#/components/schemas/Qwen3VariantType"},+ {+ "$ref": "#/components/schemas/Krea2VariantType"+ },{"type": "null"}@@ -62311,6 +64282,7 @@"t5_encoder","qwen3_encoder","qwen_vl_encoder",+ "qwen3_vl_encoder","wan_t5_encoder","spandrel_image_to_image","siglip",@@ -62370,6 +64342,9 @@{"$ref": "#/components/schemas/Main_Diffusers_Ideogram4_Config"},+ {+ "$ref": "#/components/schemas/Main_Diffusers_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_SD1_Config"},@@ -62394,6 +64369,9 @@{"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"+ },{"$ref": "#/components/schemas/Main_Checkpoint_Anima_Config"},@@ -62415,6 +64393,9 @@{"$ref": "#/components/schemas/Main_GGUF_ZImage_Config"},+ {+ "$ref": "#/components/schemas/Main_GGUF_Krea2_Config"+ },{"$ref": "#/components/schemas/VAE_Checkpoint_SD1_Config"},@@ -62499,6 +64480,9 @@{"$ref": "#/components/schemas/LoRA_LyCORIS_ZImage_Config"},+ {+ "$ref": "#/components/schemas/LoRA_LyCORIS_Krea2_Config"+ },{"$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage_Config"},@@ -62544,6 +64528,12 @@{"$ref": "#/components/schemas/T5Encoder_GGUF_Config"},+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_Config"+ },+ {+ "$ref": "#/components/schemas/Qwen3VLEncoder_Qwen3VLEncoder_Config"+ },{"$ref": "#/components/schemas/Qwen3Encoder_Qwen3Encoder_Config"},@@ -65362,6 +67352,315 @@"title": "Qwen3Encoder_Qwen3Encoder_Config","description": "Configuration for Qwen3 Encoder models in a diffusers-like format.\n\nThe model weights are expected to be in a folder called text_encoder inside the model directory,\ncompatible with Qwen2VLForConditionalGeneration or similar architectures used by Z-Image."},+ "Qwen3VLEncoderField": {+ "description": "Field for the Qwen3-VL text encoder used by Krea-2 models.",+ "properties": {+ "tokenizer": {+ "$ref": "#/components/schemas/ModelIdentifierField",+ "description": "Info to load tokenizer submodel"+ },+ "text_encoder": {+ "$ref": "#/components/schemas/ModelIdentifierField",+ "description": "Info to load text_encoder submodel"+ },+ "loras": {+ "description": "LoRAs to apply on model loading",+ "items": {+ "$ref": "#/components/schemas/LoRAField"+ },+ "title": "Loras",+ "type": "array"+ }+ },+ "required": ["tokenizer", "text_encoder"],+ "title": "Qwen3VLEncoderField",+ "type": "object"+ },+ "Qwen3VLEncoder_Checkpoint_Config": {+ "properties": {+ "key": {+ "type": "string",+ "title": "Key",+ "description": "A unique key for this model."+ },+ "hash": {+ "type": "string",+ "title": "Hash",+ "description": "The hash of the model file(s)."+ },+ "path": {+ "type": "string",+ "title": "Path",+ "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."+ },+ "file_size": {+ "type": "integer",+ "title": "File Size",+ "description": "The size of the model in bytes."+ },+ "name": {+ "type": "string",+ "title": "Name",+ "description": "Name of the model."+ },+ "description": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Description",+ "description": "Model description"+ },+ "source": {+ "type": "string",+ "title": "Source",+ "description": "The original source of the model (path, URL or repo_id)."+ },+ "source_type": {+ "$ref": "#/components/schemas/ModelSourceType",+ "description": "The type of source"+ },+ "source_api_response": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Source Api Response",+ "description": "The original API response from the source, as stringified JSON."+ },+ "source_url": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Source Url",+ "description": "Optional URL for the model (e.g. download page or model page)."+ },+ "cover_image": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Cover Image",+ "description": "Url for image to preview model"+ },+ "config_path": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Config Path",+ "description": "Path to the config for this model, if any."+ },+ "base": {+ "type": "string",+ "const": "any",+ "title": "Base",+ "default": "any"+ },+ "type": {+ "type": "string",+ "const": "qwen3_vl_encoder",+ "title": "Type",+ "default": "qwen3_vl_encoder"+ },+ "format": {+ "type": "string",+ "const": "checkpoint",+ "title": "Format",+ "default": "checkpoint"+ },+ "cpu_only": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ],+ "title": "Cpu Only",+ "description": "Whether this model should run on CPU only"+ }+ },+ "type": "object",+ "required": [+ "key",+ "hash",+ "path",+ "file_size",+ "name",+ "description",+ "source",+ "source_type",+ "source_api_response",+ "source_url",+ "cover_image",+ "config_path",+ "base",+ "type",+ "format",+ "cpu_only"+ ],+ "title": "Qwen3VLEncoder_Checkpoint_Config",+ "description": "Configuration for a single-file Qwen3-VL text encoder checkpoint (e.g. ComfyUI ``qwen3vl_4b_*``).\n\nDistinguished from the text-only ``Qwen3Encoder`` checkpoint (Z-Image) by the presence of the\nQwen3-VL visual tower. The tokenizer is not bundled in single-file checkpoints and is pulled from\nHuggingFace (``Qwen/Qwen3-VL-4B-Instruct``) by the loader."+ },+ "Qwen3VLEncoder_Qwen3VLEncoder_Config": {+ "properties": {+ "key": {+ "type": "string",+ "title": "Key",+ "description": "A unique key for this model."+ },+ "hash": {+ "type": "string",+ "title": "Hash",+ "description": "The hash of the model file(s)."+ },+ "path": {+ "type": "string",+ "title": "Path",+ "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."+ },+ "file_size": {+ "type": "integer",+ "title": "File Size",+ "description": "The size of the model in bytes."+ },+ "name": {+ "type": "string",+ "title": "Name",+ "description": "Name of the model."+ },+ "description": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Description",+ "description": "Model description"+ },+ "source": {+ "type": "string",+ "title": "Source",+ "description": "The original source of the model (path, URL or repo_id)."+ },+ "source_type": {+ "$ref": "#/components/schemas/ModelSourceType",+ "description": "The type of source"+ },+ "source_api_response": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Source Api Response",+ "description": "The original API response from the source, as stringified JSON."+ },+ "source_url": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Source Url",+ "description": "Optional URL for the model (e.g. download page or model page)."+ },+ "cover_image": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Cover Image",+ "description": "Url for image to preview model"+ },+ "base": {+ "type": "string",+ "const": "any",+ "title": "Base",+ "default": "any"+ },+ "type": {+ "type": "string",+ "const": "qwen3_vl_encoder",+ "title": "Type",+ "default": "qwen3_vl_encoder"+ },+ "format": {+ "type": "string",+ "const": "qwen3_vl_encoder",+ "title": "Format",+ "default": "qwen3_vl_encoder"+ },+ "cpu_only": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ],+ "title": "Cpu Only",+ "description": "Whether this model should run on CPU only"+ }+ },+ "type": "object",+ "required": [+ "key",+ "hash",+ "path",+ "file_size",+ "name",+ "description",+ "source",+ "source_type",+ "source_api_response",+ "source_url",+ "cover_image",+ "base",+ "type",+ "format",+ "cpu_only"+ ],+ "title": "Qwen3VLEncoder_Qwen3VLEncoder_Config",+ "description": "Configuration for standalone Qwen3-VL text encoder models (diffusers-like directory format).\n\nUsed by Krea-2, whose text conditioning comes from a Qwen3-VL model (``Qwen3VLModel``). The model\nweights are expected either in a ``text_encoder`` subfolder of the model directory or directly at the\nroot (standalone download). This is distinct from the text-only ``Qwen3Encoder`` (Z-Image / FLUX.2\nKlein) and the Qwen2.5-VL ``QwenVLEncoder`` (Qwen Image)."+ },"Qwen3VariantType": {"type": "string","enum": ["qwen3_4b", "qwen3_8b", "qwen3_06b"],@@ -71984,6 +74283,9 @@{"$ref": "#/components/schemas/Qwen3VariantType"},+ {+ "$ref": "#/components/schemas/Krea2VariantType"+ },{"type": "null"}@@ -72150,6 +74452,9 @@{"$ref": "#/components/schemas/Qwen3VariantType"},+ {+ "$ref": "#/components/schemas/Krea2VariantType"+ },{"type": "null"}@@ -73089,6 +75394,9 @@{"$ref": "#/components/schemas/Qwen3VariantType"},+ {+ "$ref": "#/components/schemas/Krea2VariantType"+ },{"type": "null"}diff --git a/invokeai/frontend/web/public/locales/en.json b/invokeai/frontend/web/public/locales/en.jsonindex 3855d506db..91036e1893 100644--- a/invokeai/frontend/web/public/locales/en.json+++ b/invokeai/frontend/web/public/locales/en.json@@ -1068,6 +1068,10 @@"imageDetails": "Image Details","imageDimensions": "Image Dimensions","imageSize": "Image Size",+ "krea2Qwen3VlEncoder": "Qwen3-VL Encoder",+ "krea2RebalanceEnabled": "Conditioning Rebalance Enabled",+ "krea2RebalanceMultiplier": "Rebalance Multiplier",+ "krea2RebalanceWeights": "Rebalance Per-Layer Weights","metadata": "Metadata","model": "Model","negativePrompt": "Negative Prompt",@@ -1391,6 +1395,7 @@"t5Encoder": "T5 Encoder","qwen3Encoder": "Qwen3 Encoder","qwenVLEncoder": "Qwen2.5-VL Encoder",+ "qwen3VLEncoder": "Qwen3-VL Encoder","animaVae": "VAE","animaVaePlaceholder": "Select Anima-compatible VAE","animaQwen3Encoder": "Qwen3 0.6B Encoder",@@ -1405,6 +1410,10 @@"zImageQwen3EncoderPlaceholder": "From Qwen3 source model","zImageQwen3Source": "Qwen3 & VAE Source Model","zImageQwen3SourcePlaceholder": "Required if VAE/Encoder empty",+ "krea2Vae": "VAE (optional)",+ "krea2VaePlaceholder": "From Krea-2 diffusers model",+ "krea2Qwen3VlEncoder": "Qwen3-VL Encoder (optional)",+ "krea2Qwen3VlEncoderPlaceholder": "From Krea-2 diffusers model","flux2KleinVae": "VAE (optional)","flux2KleinVaePlaceholder": "From diffusers model","flux2KleinVaeNoModelPlaceholder": "No diffusers model available",@@ -1752,6 +1761,9 @@"noWanComponentSourceSelected": "GGUF Wan 2.2 models require a Diffusers Component Source for VAE/encoder","noZImageVaeSourceSelected": "No VAE source: Select VAE (FLUX) or Qwen3 Source model","noZImageQwen3EncoderSourceSelected": "No Qwen3 Encoder source: Select Qwen3 Encoder or Qwen3 Source model",+ "noKrea2VaeModelSelected": "Non-diffusers Krea-2: select a VAE in Advanced settings",+ "noKrea2Qwen3VlEncoderModelSelected": "Non-diffusers Krea-2: select a Qwen3-VL Encoder in Advanced settings",+ "krea2RebalanceWeightsInvalid": "Krea-2 Conditioning Rebalance weights must be exactly 12 finite comma-separated numbers","noAnimaVaeModelSelected": "No Anima VAE model selected","noAnimaQwen3EncoderModelSelected": "No Anima Qwen3 Encoder model selected","fluxModelIncompatibleBboxWidth": "$t(parameters.invoke.fluxRequiresDimensionsToBeMultipleOf16), bbox width is {{width}}",@@ -1798,6 +1810,10 @@"seedVarianceEnabled": "Seed Variance Enhancer","seedVarianceStrength": "Variance Strength","seedVarianceRandomizePercent": "Randomize Percent",+ "krea2RebalanceEnabled": "Conditioning Rebalance",+ "krea2RebalanceMultiplier": "Rebalance Multiplier",+ "krea2RebalanceWeights": "Per-Layer Weights (12)",+ "krea2RebalanceWeightsPlaceholder": "1.0,1.0,1.0,1.0,1.0,1.0,1.0,2.5,5.0,1.1,4.0,1.0","imageActions": "Image Actions","sendToCanvas": "Send To Canvas","sendToUpscale": "Send To Upscale",@@ -2165,6 +2181,48 @@"Lower values create more selective noise patterns, while 100% affects all values equally."]},+ "krea2ConditioningRebalance": {+ "heading": "Conditioning Rebalance",+ "paragraphs": [+ "Krea-2 stacks 12 text-encoder layers per token. This reweights those layers and applies an overall multiplier to push the model harder toward your prompt, countering the quality dilution of the distilled Turbo model.",+ "Enable this to improve prompt adherence when the model ignores parts of your prompt."+ ]+ },+ "krea2RebalanceMultiplier": {+ "heading": "Rebalance Multiplier",+ "paragraphs": [+ "Overall gain applied to the conditioning after per-layer weighting. Higher values push harder toward the prompt.",+ "Default is 4.0. Very high values may over-saturate or distort the output."+ ]+ },+ "krea2RebalanceWeights": {+ "heading": "Per-Layer Weights",+ "paragraphs": [+ "Comma-separated gains for the 12 tapped encoder layers (exactly 12 values). Later layers carry more semantic detail.",+ "The default emphasizes specific layers (e.g. 2.5, 5, 4) found to improve prompt adherence."+ ]+ },+ "krea2SeedVarianceEnhancer": {+ "heading": "Seed Variance Enhancer",+ "paragraphs": [+ "Distilled few-step models like Krea-2-Turbo can produce nearly identical images across different seeds. This adds seed-based noise to the text embeddings to increase variation while staying reproducible.",+ "Enable this to get more diverse results when exploring seeds, at some cost to prompt adherence."+ ]+ },+ "krea2SeedVarianceStrength": {+ "heading": "Variance Strength",+ "paragraphs": [+ "Noise strength as a multiplier of the embedding's standard deviation, so it behaves consistently regardless of the embedding scale (including whether Conditioning Rebalance is on).",+ "0 is off, 0.1 is subtle, 0.5 is strong. Higher values give more variety but drift further from the prompt."+ ]+ },+ "krea2SeedVarianceRandomizePercent": {+ "heading": "Randomize Percent",+ "paragraphs": [+ "Percentage of embedding values that receive noise (0-100%); 0 disables.",+ "Lower values create more selective perturbations, while 100% affects all values."+ ]+ },"compositingMaskBlur": {"heading": "Mask Blur","paragraphs": ["The blur radius of the mask."]diff --git a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/krea2ComponentSync.test.ts b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/krea2ComponentSync.test.tsnew file mode 100644index 0000000000..a759d57ce7--- /dev/null+++ b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/krea2ComponentSync.test.ts@@ -0,0 +1,98 @@+import { describe, expect, it } from 'vitest';++import { getKrea2ComponentUpdates } from './krea2ComponentSync';++const vae = { key: 'vae', hash: 'h-vae', name: 'VAE', base: 'qwen-image', type: 'vae' } as const;+const animaVae = { key: 'anima-vae', hash: 'h-anima', name: 'Anima VAE', base: 'anima', type: 'vae' } as const;+const encoder = {+ key: 'encoder',+ hash: 'h-encoder',+ name: 'Encoder',+ base: 'any',+ type: 'qwen3_vl_encoder',+} as const;++describe('getKrea2ComponentUpdates', () => {+ it('clears stale standalone components for a Diffusers model', () => {+ expect(+ getKrea2ComponentUpdates({+ format: 'diffusers',+ selectedVae: vae,+ selectedEncoder: encoder,+ availableQwenImageVaes: [vae],+ availableAnimaVaes: [animaVae],+ availableEncoders: [encoder],+ })+ ).toEqual({ vae: null, encoder: null });+ });++ it('selects installed standalone components for a non-Diffusers model', () => {+ expect(+ getKrea2ComponentUpdates({+ format: 'gguf_quantized',+ selectedVae: null,+ selectedEncoder: null,+ availableQwenImageVaes: [vae],+ availableAnimaVaes: [animaVae],+ availableEncoders: [encoder],+ })+ ).toEqual({ vae, encoder });+ });++ it('falls back to an Anima VAE and preserves explicit standalone selections', () => {+ expect(+ getKrea2ComponentUpdates({+ format: 'checkpoint',+ selectedVae: animaVae,+ selectedEncoder: encoder,+ availableQwenImageVaes: [],+ availableAnimaVaes: [animaVae],+ availableEncoders: [encoder],+ })+ ).toEqual({});+ });++ it('replaces stale standalone selections with installed compatible components', () => {+ const staleVae = { ...vae, key: 'deleted-vae' };+ const staleEncoder = { ...encoder, key: 'deleted-encoder' };++ expect(+ getKrea2ComponentUpdates({+ format: 'checkpoint',+ selectedVae: staleVae,+ selectedEncoder: staleEncoder,+ availableQwenImageVaes: [vae],+ availableAnimaVaes: [],+ availableEncoders: [encoder],+ })+ ).toEqual({ vae, encoder });+ });++ it('clears stale standalone selections when no compatible replacement is installed', () => {+ expect(+ getKrea2ComponentUpdates({+ format: 'checkpoint',+ selectedVae: { ...vae, key: 'deleted-vae' },+ selectedEncoder: { ...encoder, key: 'deleted-encoder' },+ availableQwenImageVaes: [],+ availableAnimaVaes: [],+ availableEncoders: [],+ })+ ).toEqual({ vae: null, encoder: null });+ });++ it('replaces an installed but incompatible VAE selection', () => {+ const incompatibleVae = { ...vae, key: 'sdxl-vae', base: 'sdxl' as const };++ expect(+ getKrea2ComponentUpdates({+ format: 'checkpoint',+ selectedVae: incompatibleVae,+ selectedEncoder: encoder,+ availableQwenImageVaes: [vae],+ availableAnimaVaes: [],+ availableEncoders: [encoder],+ })+ ).toEqual({ vae });+ });+});diff --git a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/krea2ComponentSync.ts b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/krea2ComponentSync.tsnew file mode 100644index 0000000000..6ee342c749--- /dev/null+++ b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/krea2ComponentSync.ts@@ -0,0 +1,42 @@+import type { ModelIdentifierField } from 'features/nodes/types/common';++type Krea2ComponentSyncArg = {+ format: string;+ selectedVae: ModelIdentifierField | null;+ selectedEncoder: ModelIdentifierField | null;+ availableQwenImageVaes: ModelIdentifierField[];+ availableAnimaVaes: ModelIdentifierField[];+ availableEncoders: ModelIdentifierField[];+};++type Krea2ComponentUpdates = {+ vae?: ModelIdentifierField | null;+ encoder?: ModelIdentifierField | null;+};++export const getKrea2ComponentUpdates = (arg: Krea2ComponentSyncArg): Krea2ComponentUpdates => {+ const { format, selectedVae, selectedEncoder, availableQwenImageVaes, availableAnimaVaes, availableEncoders } = arg;++ if (format === 'diffusers') {+ return {+ ...(selectedVae ? { vae: null } : {}),+ ...(selectedEncoder ? { encoder: null } : {}),+ };+ }++ const defaultVae = availableQwenImageVaes[0] ?? availableAnimaVaes[0];+ const defaultEncoder = availableEncoders[0];+ const availableVaes = [...availableQwenImageVaes, ...availableAnimaVaes];+ const hasSelectedVae = selectedVae !== null && selectedVae !== undefined;+ const hasSelectedEncoder = selectedEncoder !== null && selectedEncoder !== undefined;+ const selectedVaeIsAvailable = hasSelectedVae && availableVaes.some((vae) => vae.key === selectedVae.key);+ const selectedEncoderIsAvailable =+ hasSelectedEncoder && availableEncoders.some((encoder) => encoder.key === selectedEncoder.key);++ return {+ ...(!selectedVaeIsAvailable && (hasSelectedVae || defaultVae) ? { vae: defaultVae ?? null } : {}),+ ...(!selectedEncoderIsAvailable && (hasSelectedEncoder || defaultEncoder)+ ? { encoder: defaultEncoder ?? null }+ : {}),+ };+};diff --git a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/modelSelected.test.ts b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/modelSelected.test.tsindex c4331daeab..5e2e158927 100644--- a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/modelSelected.test.ts+++ b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/modelSelected.test.ts@@ -37,6 +37,33 @@ const mockFluxMainModel = {type: 'main' as const,};+const mockKrea2MainModel = {+ key: 'krea2-main-key',+ hash: 'krea2-main-hash',+ name: 'Krea-2 Turbo',+ base: 'krea-2' as const,+ type: 'main' as const,+};++// Krea-2 borrows the Qwen-Image VAE and uses a standalone Qwen3-VL encoder for single-file / GGUF transformers.+const mockKrea2Vae = {+ key: 'krea2-vae-key',+ hash: 'krea2-vae-hash',+ name: 'Qwen Image VAE',+ base: 'qwen-image' as const,+ type: 'vae' as const,+ format: 'checkpoint' as const,+};++const mockKrea2Qwen3VlEncoder = {+ key: 'krea2-q3vl-key',+ hash: 'krea2-q3vl-hash',+ name: 'Qwen3-VL 4B Encoder',+ base: 'any' as const,+ type: 'qwen3_vl_encoder' as const,+ format: 'qwen3_vl_encoder' as const,+};+const mockZImageTurboDiffusers = {key: 'zimage-turbo-diff-key',hash: 'zimage-turbo-diff-hash',@@ -108,15 +135,16 @@ const mockSelectAnimaQwen3EncoderModels = vi.fn((_state: unknown) => [mockAnimaQconst mockSelectAnimaVAEModels = vi.fn((_state: unknown) => [mockAnimaVAE]);+// Krea-2 standalone-component selectors (used only by the Krea-2 auto-select branch).+const mockSelectQwenImageVAEModels = vi.fn((_state: unknown) => [mockKrea2Vae]);+const mockSelectQwen3VLEncoderModels = vi.fn((_state: unknown) => [mockKrea2Qwen3VlEncoder]);const mockSelectZImageDiffusersModels = vi.fn((_state: unknown) => [] as unknown[]);-const mockSelectModelConfigsQuery = vi.fn((_state: unknown) => ({ data: undefined as unknown }));--const mockModelConfigsSelectById = vi.fn((_data: unknown, _key: string) => undefined as unknown);-vi.mock('services/api/hooks/modelsByType', () => ({selectAnimaQwen3EncoderModels: (state: unknown) => mockSelectAnimaQwen3EncoderModels(state),selectAnimaVAEModels: (state: unknown) => mockSelectAnimaVAEModels(state),+ selectQwenImageVAEModels: (state: unknown) => mockSelectQwenImageVAEModels(state),+ selectQwen3VLEncoderModels: (state: unknown) => mockSelectQwen3VLEncoderModels(state),selectQwen3EncoderModels: vi.fn(() => []),selectZImageDiffusersModels: (state: unknown) => mockSelectZImageDiffusersModels(state),selectFluxVAEModels: vi.fn(() => []),@@ -124,10 +152,20 @@ vi.mock('services/api/hooks/modelsByType', () => ({selectRegionalRefImageModels: vi.fn(() => []),}));-// Mock model configs adapter+// Mock model configs adapter. Routed through overridable fns so the Krea-2 tests can toggle the resolved+// model's format (diffusers vs. single-file/GGUF), which drives clear-vs-auto-select.+const mockSelectModelConfigsQuery = vi.fn((_state: unknown) => ({ data: undefined }) as { data: unknown });+const mockSelectModelById = vi.fn((_data: unknown, _key: string) => undefined as unknown);+// Alias: the Z-Image tests drive the same modelConfigsAdapterSelectors.selectById mock under this name.+const mockModelConfigsSelectById = mockSelectModelById;+const mockSelectIndividualModelConfig = vi.fn((_state: unknown) => ({ data: undefined }) as { data: unknown });+vi.mock('services/api/endpoints/models', () => ({- modelConfigsAdapterSelectors: {- selectById: (data: unknown, key: string) => mockModelConfigsSelectById(data, key),+ modelConfigsAdapterSelectors: { selectById: (data: unknown, key: string) => mockSelectModelById(data, key) },+ modelsApi: {+ endpoints: {+ getModelConfig: { select: (_key: string) => (state: unknown) => mockSelectIndividualModelConfig(state) },+ },},selectModelConfigsQuery: (state: unknown) => mockSelectModelConfigsQuery(state),}));@@ -191,9 +229,17 @@ let capturedEffect: ((action: unknown, api: unknown) => void) | null = null;const paramsSliceActual = (await vi.importActual('features/controlLayers/store/paramsSlice')) as {animaQwen3EncoderModelSelected: { type: string };animaVaeModelSelected: { type: string };+ krea2VaeModelSelected: { type: string };+ krea2Qwen3VlEncoderModelSelected: { type: string };zImageQwen3SourceModelSelected: { type: string };};-const { animaQwen3EncoderModelSelected, animaVaeModelSelected, zImageQwen3SourceModelSelected } = paramsSliceActual;+const {+ animaQwen3EncoderModelSelected,+ animaVaeModelSelected,+ krea2VaeModelSelected,+ krea2Qwen3VlEncoderModelSelected,+ zImageQwen3SourceModelSelected,+} = paramsSliceActual;// Import after mocks are set upconst { addModelSelectedListener } = await import('./modelSelected');@@ -452,3 +498,205 @@ describe('zModelIdentifierField schema validation', () => {expect(zModelIdentifierField.safeParse(complete).success).toBe(true);});});++describe('modelSelected listener - Krea-2 defaulting', () => {+ beforeEach(() => {+ dispatched.length = 0;+ mockDispatch.mockClear();+ // Standalone components installed by default; resolved model defaults to a non-diffusers (single-file /+ // GGUF) transformer, which is what triggers the auto-select branch.+ mockSelectQwenImageVAEModels.mockReturnValue([mockKrea2Vae]);+ mockSelectAnimaVAEModels.mockReturnValue([mockAnimaVAE]);+ mockSelectQwen3VLEncoderModels.mockReturnValue([mockKrea2Qwen3VlEncoder]);+ mockSelectModelConfigsQuery.mockReturnValue({ data: {} });+ mockSelectModelById.mockReturnValue({ format: 'checkpoint' });+ mockSelectIndividualModelConfig.mockReturnValue({ data: undefined });+ });++ it('auto-selects a standalone VAE and Qwen3-VL encoder when switching to a single-file/GGUF Krea-2 model', () => {+ const state = buildMockState({ model: mockFluxMainModel });+ const action = modelSelected(zParameterModel.parse(mockKrea2MainModel));++ capturedEffect!(action, { getState: () => state, dispatch: mockDispatch });++ const vaeDispatch = dispatched.find((a) => a.type === krea2VaeModelSelected.type);+ const encoderDispatch = dispatched.find((a) => a.type === krea2Qwen3VlEncoderModelSelected.type);++ expect(vaeDispatch).toBeDefined();+ expect(encoderDispatch).toBeDefined();+ // The reducer parses payloads with zModelIdentifierField, so the dispatched values must be complete.+ expect(zModelIdentifierField.safeParse(vaeDispatch!.payload).success).toBe(true);+ expect(zModelIdentifierField.safeParse(encoderDispatch!.payload).success).toBe(true);+ expect(vaeDispatch!.payload).toMatchObject({ key: mockKrea2Vae.key, type: 'vae' });+ expect(encoderDispatch!.payload).toMatchObject({ key: mockKrea2Qwen3VlEncoder.key, type: 'qwen3_vl_encoder' });+ });++ it('falls back to an Anima-tagged VAE when no Qwen-Image VAE is installed', () => {+ mockSelectQwenImageVAEModels.mockReturnValue([]);+ mockSelectAnimaVAEModels.mockReturnValue([mockAnimaVAE]);++ const state = buildMockState({ model: mockFluxMainModel });+ const action = modelSelected(zParameterModel.parse(mockKrea2MainModel));++ capturedEffect!(action, { getState: () => state, dispatch: mockDispatch });++ const vaeDispatch = dispatched.find((a) => a.type === krea2VaeModelSelected.type);+ expect(vaeDispatch).toBeDefined();+ expect(vaeDispatch!.payload).toMatchObject({ key: mockAnimaVAE.key });+ });++ it('does not auto-select standalone components when none are installed', () => {+ // No Qwen-Image VAEs, no Anima VAEs (the fallback), no Qwen3-VL encoders.+ mockSelectQwenImageVAEModels.mockReturnValue([]);+ mockSelectAnimaVAEModels.mockReturnValue([]);+ mockSelectQwen3VLEncoderModels.mockReturnValue([]);++ const state = buildMockState({ model: mockFluxMainModel });+ const action = modelSelected(zParameterModel.parse(mockKrea2MainModel));++ capturedEffect!(action, { getState: () => state, dispatch: mockDispatch });++ expect(dispatched.find((a) => a.type === krea2VaeModelSelected.type)).toBeUndefined();+ expect(dispatched.find((a) => a.type === krea2Qwen3VlEncoderModelSelected.type)).toBeUndefined();+ });++ it('defers standalone component changes while the selected model format is unknown', () => {+ mockSelectModelConfigsQuery.mockReturnValue({ data: undefined });+ mockSelectModelById.mockReturnValue(undefined);+ const state = buildMockState({ model: mockFluxMainModel });+ const action = modelSelected(zParameterModel.parse(mockKrea2MainModel));++ capturedEffect!(action, { getState: () => state, dispatch: mockDispatch });++ expect(dispatched.find((a) => a.type === krea2VaeModelSelected.type)).toBeUndefined();+ expect(dispatched.find((a) => a.type === krea2Qwen3VlEncoderModelSelected.type)).toBeUndefined();+ });++ it('uses the individual model-config cache when the list cache is unavailable', () => {+ mockSelectModelConfigsQuery.mockReturnValue({ data: undefined });+ mockSelectModelById.mockReturnValue(undefined);+ mockSelectIndividualModelConfig.mockReturnValue({ data: { format: 'diffusers' } });+ const state = buildMockState({+ model: mockKrea2MainModel,+ krea2VaeModel: { key: 'stale-vae', hash: 'h', name: 'Stale VAE', base: 'qwen-image', type: 'vae' },+ krea2Qwen3VlEncoderModel: {+ key: 'stale-enc',+ hash: 'h',+ name: 'Stale Enc',+ base: 'any',+ type: 'qwen3_vl_encoder',+ },+ });+ const nextKreaModel = { ...mockKrea2MainModel, key: 'next-krea-key' };+ const action = modelSelected(zParameterModel.parse(nextKreaModel));++ capturedEffect!(action, { getState: () => state, dispatch: mockDispatch });++ expect(dispatched.find((a) => a.type === krea2VaeModelSelected.type)?.payload).toBeNull();+ expect(dispatched.find((a) => a.type === krea2Qwen3VlEncoderModelSelected.type)?.payload).toBeNull();+ });++ it('does not overwrite standalone components the user already selected', () => {+ const existingVae = {+ key: 'existing-vae',+ hash: 'h',+ name: 'Existing VAE',+ base: 'qwen-image',+ type: 'vae',+ format: 'checkpoint',+ } as const;+ const existingEncoder = {+ key: 'existing-enc',+ hash: 'h',+ name: 'Existing Enc',+ base: 'any',+ type: 'qwen3_vl_encoder',+ format: 'qwen3_vl_encoder',+ } as const;+ mockSelectQwenImageVAEModels.mockReturnValue([existingVae]);+ mockSelectQwen3VLEncoderModels.mockReturnValue([existingEncoder]);+ const state = buildMockState({+ model: mockFluxMainModel,+ krea2VaeModel: existingVae,+ krea2Qwen3VlEncoderModel: existingEncoder,+ });+ const action = modelSelected(zParameterModel.parse(mockKrea2MainModel));++ capturedEffect!(action, { getState: () => state, dispatch: mockDispatch });++ // Already set + non-diffusers -> nothing dispatched for the standalone slots.+ expect(dispatched.find((a) => a.type === krea2VaeModelSelected.type)).toBeUndefined();+ expect(dispatched.find((a) => a.type === krea2Qwen3VlEncoderModelSelected.type)).toBeUndefined();+ });++ it('clears stale standalone components when no replacement is installed', () => {+ mockSelectQwenImageVAEModels.mockReturnValue([]);+ mockSelectAnimaVAEModels.mockReturnValue([]);+ mockSelectQwen3VLEncoderModels.mockReturnValue([]);+ const state = buildMockState({+ model: mockFluxMainModel,+ krea2VaeModel: { key: 'deleted-vae', hash: 'h', name: 'Deleted VAE', base: 'qwen-image', type: 'vae' },+ krea2Qwen3VlEncoderModel: {+ key: 'deleted-enc',+ hash: 'h',+ name: 'Deleted Enc',+ base: 'any',+ type: 'qwen3_vl_encoder',+ },+ });++ capturedEffect!(modelSelected(zParameterModel.parse(mockKrea2MainModel)), {+ getState: () => state,+ dispatch: mockDispatch,+ });++ expect(dispatched.find((a) => a.type === krea2VaeModelSelected.type)?.payload).toBeNull();+ expect(dispatched.find((a) => a.type === krea2Qwen3VlEncoderModelSelected.type)?.payload).toBeNull();+ });++ it('clears stale standalone overrides when switching to a Diffusers Krea-2 model', () => {+ // A Diffusers pipeline bundles its own VAE + encoder, so any standalone overrides must be cleared.+ mockSelectModelConfigsQuery.mockReturnValue({ data: {} });+ mockSelectModelById.mockReturnValue({ format: 'diffusers' });++ const state = buildMockState({+ model: mockFluxMainModel,+ krea2VaeModel: { key: 'stale-vae', hash: 'h', name: 'Stale VAE', base: 'qwen-image', type: 'vae' },+ krea2Qwen3VlEncoderModel: {+ key: 'stale-enc',+ hash: 'h',+ name: 'Stale Enc',+ base: 'any',+ type: 'qwen3_vl_encoder',+ },+ });+ const action = modelSelected(zParameterModel.parse(mockKrea2MainModel));++ capturedEffect!(action, { getState: () => state, dispatch: mockDispatch });++ const vaeDispatch = dispatched.find((a) => a.type === krea2VaeModelSelected.type);+ const encoderDispatch = dispatched.find((a) => a.type === krea2Qwen3VlEncoderModelSelected.type);+ expect(vaeDispatch).toBeDefined();+ expect(vaeDispatch!.payload).toBeNull();+ expect(encoderDispatch).toBeDefined();+ expect(encoderDispatch!.payload).toBeNull();+ });++ it('clears Krea-2 standalone components when switching away from Krea-2', () => {+ const state = buildMockState({+ model: mockKrea2MainModel,+ krea2VaeModel: { key: 'vae', hash: 'h', name: 'VAE', base: 'qwen-image', type: 'vae' },+ krea2Qwen3VlEncoderModel: { key: 'enc', hash: 'h', name: 'Enc', base: 'any', type: 'qwen3_vl_encoder' },+ });+ const action = modelSelected(zParameterModel.parse(mockFluxMainModel));++ capturedEffect!(action, { getState: () => state, dispatch: mockDispatch });++ const vaeDispatch = dispatched.find((a) => a.type === krea2VaeModelSelected.type);+ const encoderDispatch = dispatched.find((a) => a.type === krea2Qwen3VlEncoderModelSelected.type);+ expect(vaeDispatch).toBeDefined();+ expect(vaeDispatch!.payload).toBeNull();+ expect(encoderDispatch).toBeDefined();+ expect(encoderDispatch!.payload).toBeNull();+ });+});diff --git a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/modelSelected.ts b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/modelSelected.tsindex 34df519b69..7acb6b22fa 100644--- a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/modelSelected.ts+++ b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/modelSelected.ts@@ -9,6 +9,8 @@ import {aspectRatioIdChanged,kleinQwen3EncoderModelSelected,kleinVaeModelSelected,+ krea2Qwen3VlEncoderModelSelected,+ krea2VaeModelSelected,modelChanged,qwenImageComponentSourceSelected,qwenImageQwenVLEncoderModelSelected,@@ -55,13 +57,14 @@ import { modelSelected } from 'features/parameters/store/actions';import { zParameterModel } from 'features/parameters/types/parameterSchemas';import { toast } from 'features/toast/toast';import { t } from 'i18next';-import { modelConfigsAdapterSelectors, selectModelConfigsQuery } from 'services/api/endpoints/models';+import { modelConfigsAdapterSelectors, modelsApi, selectModelConfigsQuery } from 'services/api/endpoints/models';import {selectAnimaQwen3EncoderModels,selectAnimaVAEModels,selectFluxVAEModels,selectGlobalRefImageModels,selectQwen3EncoderModels,+ selectQwen3VLEncoderModels,selectQwenImageDiffusersModels,selectQwenImageVAEModels,selectQwenVLEncoderModels,@@ -74,6 +77,8 @@ import {import type { FLUXKontextModelConfig, FLUXReduxModelConfig, IPAdapterModelConfig } from 'services/api/types';import { isExternalApiModelConfig, isFluxKontextModelConfig, isFluxReduxModelConfig } from 'services/api/types';+import { getKrea2ComponentUpdates } from './krea2ComponentSync';+const log = logger('models');export const addModelSelectedListener = (startAppListening: AppStartListening) => {@@ -323,6 +328,71 @@ export const addModelSelectedListener = (startAppListening: AppStartListening) =}}+ // handle incompatible Krea-2 standalone components+ const { krea2VaeModel, krea2Qwen3VlEncoderModel } = state.params;+ if (newBase !== 'krea-2') {+ // Switching away from Krea-2 - clear the standalone VAE / Qwen3-VL encoder selections so they+ // don't survive onto another model family (or get reused as stale overrides later).+ if (krea2VaeModel) {+ dispatch(krea2VaeModelSelected(null));+ modelsUpdatedDisabledOrCleared += 1;+ }+ if (krea2Qwen3VlEncoderModel) {+ dispatch(krea2Qwen3VlEncoderModelSelected(null));+ modelsUpdatedDisabledOrCleared += 1;+ }+ } else {+ // Switching to Krea-2. A Diffusers pipeline bundles its own VAE + encoder, so clear any+ // standalone overrides (buildKrea2Graph would otherwise pass stale selections). A single-file /+ // GGUF transformer ships only the transformer, so auto-select standalone components if the user+ // hasn't already picked them - this unblocks the readiness check after installing the starter pack.+ const modelConfigsResult = selectModelConfigsQuery(state);+ const newModelConfig =+ (modelConfigsResult.data+ ? modelConfigsAdapterSelectors.selectById(modelConfigsResult.data, newModel.key)+ : undefined) ?? modelsApi.endpoints.getModelConfig.select(newModel.key)(state).data;+ if (!newModelConfig) {+ // The model list may not be populated yet during startup or metadata recall. Defer component+ // changes until the selected model's format is known instead of treating unknown as single-file.+ } else if (newModelConfig.format === 'diffusers') {+ const updates = getKrea2ComponentUpdates({+ format: newModelConfig.format,+ selectedVae: krea2VaeModel,+ selectedEncoder: krea2Qwen3VlEncoderModel,+ availableQwenImageVaes: selectQwenImageVAEModels(state),+ availableAnimaVaes: selectAnimaVAEModels(state),+ availableEncoders: selectQwen3VLEncoderModels(state),+ });+ if ('vae' in updates) {+ dispatch(krea2VaeModelSelected(updates.vae ? zModelIdentifierField.parse(updates.vae) : null));+ modelsUpdatedDisabledOrCleared += 1;+ }+ if ('encoder' in updates) {+ dispatch(+ krea2Qwen3VlEncoderModelSelected(updates.encoder ? zModelIdentifierField.parse(updates.encoder) : null)+ );+ modelsUpdatedDisabledOrCleared += 1;+ }+ } else {+ const updates = getKrea2ComponentUpdates({+ format: newModelConfig.format,+ selectedVae: krea2VaeModel,+ selectedEncoder: krea2Qwen3VlEncoderModel,+ availableQwenImageVaes: selectQwenImageVAEModels(state),+ availableAnimaVaes: selectAnimaVAEModels(state),+ availableEncoders: selectQwen3VLEncoderModels(state),+ });+ if ('vae' in updates) {+ dispatch(krea2VaeModelSelected(updates.vae ? zModelIdentifierField.parse(updates.vae) : null));+ }+ if ('encoder' in updates) {+ dispatch(+ krea2Qwen3VlEncoderModelSelected(updates.encoder ? zModelIdentifierField.parse(updates.encoder) : null)+ );+ }+ }+ }+// handle Wan 2.2 component source / standalone VAE / standalone T5 encoder -// clear when switching away. (Auto-default happens unconditionally outside// this block so it fires when switching between Wan variants too.)@@ -650,6 +720,38 @@ export const addModelSelectedListener = (startAppListening: AppStartListening) =}}+ // Handle Krea-2 model changes within the same base (e.g. switching GGUF <-> Diffusers). A Diffusers+ // pipeline bundles its VAE + encoder, so stale standalone overrides must be cleared; a single-file /+ // GGUF transformer needs standalone components auto-selected so the readiness check passes.+ if (newBase === 'krea-2' && state.params.model?.base === 'krea-2' && newModel.key !== state.params.model?.key) {+ const { krea2VaeModel, krea2Qwen3VlEncoderModel } = state.params;+ const modelConfigsResult = selectModelConfigsQuery(state);+ const newModelConfig =+ (modelConfigsResult.data+ ? modelConfigsAdapterSelectors.selectById(modelConfigsResult.data, newModel.key)+ : undefined) ?? modelsApi.endpoints.getModelConfig.select(newModel.key)(state).data;+ if (!newModelConfig) {+ // Defer until the model format is known.+ } else {+ const updates = getKrea2ComponentUpdates({+ format: newModelConfig.format,+ selectedVae: krea2VaeModel,+ selectedEncoder: krea2Qwen3VlEncoderModel,+ availableQwenImageVaes: selectQwenImageVAEModels(state),+ availableAnimaVaes: selectAnimaVAEModels(state),+ availableEncoders: selectQwen3VLEncoderModels(state),+ });+ if ('vae' in updates) {+ dispatch(krea2VaeModelSelected(updates.vae ? zModelIdentifierField.parse(updates.vae) : null));+ }+ if ('encoder' in updates) {+ dispatch(+ krea2Qwen3VlEncoderModelSelected(updates.encoder ? zModelIdentifierField.parse(updates.encoder) : null)+ );+ }+ }+ }+// Handle Z-Image model changes within the same base (variant may change between turbo/zbase)// Auto-update the Qwen3 source diffusers model to match the new variantif (newBase === 'z-image' && state.params.model?.base === 'z-image' && newModel.key !== state.params.model?.key) {diff --git a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/modelsLoaded.krea2.test.ts b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/modelsLoaded.krea2.test.tsnew file mode 100644index 0000000000..e2d89af486--- /dev/null+++ b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/modelsLoaded.krea2.test.ts@@ -0,0 +1,85 @@+import type { RootState } from 'app/store/store';+import { krea2Qwen3VlEncoderModelSelected, krea2VaeModelSelected } from 'features/controlLayers/store/paramsSlice';+import type { AnyModelConfig } from 'services/api/types';+import { describe, expect, it, vi } from 'vitest';++import { handleKrea2Components } from './modelsLoaded';++const mainModel = {+ key: 'krea-main',+ hash: 'main-hash',+ name: 'Krea Main',+ base: 'krea-2',+ type: 'main',+ format: 'gguf_quantized',+} as const;+const vae = {+ key: 'vae',+ hash: 'vae-hash',+ name: 'Qwen Image VAE',+ base: 'qwen-image',+ type: 'vae',+ format: 'checkpoint',+} as const;+const encoder = {+ key: 'encoder',+ hash: 'encoder-hash',+ name: 'Qwen3-VL Encoder',+ base: 'any',+ type: 'qwen3_vl_encoder',+ format: 'qwen3_vl_encoder',+} as const;++const makeState = (overrides: Record<string, unknown> = {}) =>+ ({+ params: {+ model: mainModel,+ krea2VaeModel: null,+ krea2Qwen3VlEncoderModel: null,+ ...overrides,+ },+ }) as unknown as RootState;++describe('handleKrea2Components', () => {+ it('selects standalone components when a deferred non-Diffusers model arrives in the fulfilled list', () => {+ const dispatch = vi.fn();++ handleKrea2Components(+ [mainModel, vae, encoder] as unknown as AnyModelConfig[],+ makeState(),+ dispatch,+ null as never+ );++ expect(dispatch).toHaveBeenCalledWith(krea2VaeModelSelected(expect.objectContaining({ key: vae.key })));+ expect(dispatch).toHaveBeenCalledWith(+ krea2Qwen3VlEncoderModelSelected(expect.objectContaining({ key: encoder.key }))+ );+ });++ it('clears stale standalone components when a deferred Diffusers model arrives in the fulfilled list', () => {+ const dispatch = vi.fn();+ const diffusersMain = { ...mainModel, format: 'diffusers' } as const;+ const state = makeState({ model: diffusersMain, krea2VaeModel: vae, krea2Qwen3VlEncoderModel: encoder });++ handleKrea2Components([diffusersMain, vae, encoder] as unknown as AnyModelConfig[], state, dispatch, null as never);++ expect(dispatch).toHaveBeenCalledWith(krea2VaeModelSelected(null));+ expect(dispatch).toHaveBeenCalledWith(krea2Qwen3VlEncoderModelSelected(null));+ });++ it('replaces deleted standalone components when the model list refreshes', () => {+ const dispatch = vi.fn();+ const state = makeState({+ krea2VaeModel: { ...vae, key: 'deleted-vae' },+ krea2Qwen3VlEncoderModel: { ...encoder, key: 'deleted-encoder' },+ });++ handleKrea2Components([mainModel, vae, encoder] as unknown as AnyModelConfig[], state, dispatch, null as never);++ expect(dispatch).toHaveBeenCalledWith(krea2VaeModelSelected(expect.objectContaining({ key: vae.key })));+ expect(dispatch).toHaveBeenCalledWith(+ krea2Qwen3VlEncoderModelSelected(expect.objectContaining({ key: encoder.key }))+ );+ });+});diff --git a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/modelsLoaded.ts b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/modelsLoaded.tsindex 8cbbc72343..130a097296 100644--- a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/modelsLoaded.ts+++ b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/modelsLoaded.ts@@ -5,6 +5,8 @@ import { loraDeleted } from 'features/controlLayers/store/lorasSlice';import {clipEmbedModelSelected,fluxVAESelected,+ krea2Qwen3VlEncoderModelSelected,+ krea2VaeModelSelected,modelChanged,refinerModelChanged,t5EncoderModelSelected,@@ -19,6 +21,7 @@ import {isRegionalGuidanceFLUXReduxConfig,isRegionalGuidanceIPAdapterConfig,} from 'features/controlLayers/store/types';+import { zModelIdentifierField } from 'features/nodes/types/common';import { modelSelected } from 'features/parameters/store/actions';import {postProcessingModelChanged,@@ -35,6 +38,7 @@ import type { Logger } from 'roarr';import { modelConfigsAdapterSelectors, modelsApi } from 'services/api/endpoints/models';import type { AnyModelConfig } from 'services/api/types';import {+ isAnimaVAEModelConfig,isCLIPEmbedModelConfigOrSubmodel,isControlLayerModelConfig,isControlNetModelConfig,@@ -44,12 +48,16 @@ import {isLoRAModelConfig,isNonFluxVAEModelConfig,isNonRefinerMainModelConfig,+ isQwen3VLEncoderModelConfig,+ isQwenImageVAEModelConfig,isRefinerMainModelModelConfig,isSpandrelImageToImageModelConfig,isT5EncoderModelConfigOrSubmodel,} from 'services/api/types';import type { JsonObject } from 'type-fest';+import { getKrea2ComponentUpdates } from './krea2ComponentSync';+const log = logger('models');/**@@ -75,6 +83,7 @@ export const addModelsLoadedListener = (startAppListening: AppStartListening) =>const models = modelConfigsAdapterSelectors.selectAll(action.payload);handleMainModels(models, state, dispatch, log);+ handleKrea2Components(models, state, dispatch, log);handleRefinerModels(models, state, dispatch, log);handleVAEModels(models, state, dispatch, log);handleLoRAModels(models, state, dispatch, log);@@ -91,6 +100,31 @@ export const addModelsLoadedListener = (startAppListening: AppStartListening) =>});};+export const handleKrea2Components: ModelHandler = (models, state, dispatch) => {+ if (state.params.model?.base !== 'krea-2') {+ return;+ }+ const selectedModel = models.find((model) => model.key === state.params.model?.key);+ if (!selectedModel || !isNonRefinerMainModelConfig(selectedModel)) {+ return;+ }++ const updates = getKrea2ComponentUpdates({+ format: selectedModel.format,+ selectedVae: state.params.krea2VaeModel,+ selectedEncoder: state.params.krea2Qwen3VlEncoderModel,+ availableQwenImageVaes: models.filter((model) => isQwenImageVAEModelConfig(model)),+ availableAnimaVaes: models.filter((model) => isAnimaVAEModelConfig(model)),+ availableEncoders: models.filter(isQwen3VLEncoderModelConfig),+ });+ if ('vae' in updates) {+ dispatch(krea2VaeModelSelected(updates.vae ? zModelIdentifierField.parse(updates.vae) : null));+ }+ if ('encoder' in updates) {+ dispatch(krea2Qwen3VlEncoderModelSelected(updates.encoder ? zModelIdentifierField.parse(updates.encoder) : null));+ }+};+type ModelHandler = (models: AnyModelConfig[],state: RootState,diff --git a/invokeai/frontend/web/src/common/components/InformationalPopover/constants.ts b/invokeai/frontend/web/src/common/components/InformationalPopover/constants.tsindex d858d630c5..2a4e94503a 100644--- a/invokeai/frontend/web/src/common/components/InformationalPopover/constants.ts+++ b/invokeai/frontend/web/src/common/components/InformationalPopover/constants.ts@@ -13,6 +13,12 @@ export type Feature =| 'seedVarianceEnhancer'| 'seedVarianceStrength'| 'seedVarianceRandomizePercent'+ | 'krea2ConditioningRebalance'+ | 'krea2RebalanceMultiplier'+ | 'krea2RebalanceWeights'+ | 'krea2SeedVarianceEnhancer'+ | 'krea2SeedVarianceStrength'+ | 'krea2SeedVarianceRandomizePercent'| 'compositingMaskBlur'| 'compositingBlurMethod'| 'compositingCoherencePass'diff --git a/invokeai/frontend/web/src/features/controlLayers/store/paramsSlice.test.ts b/invokeai/frontend/web/src/features/controlLayers/store/paramsSlice.test.tsindex a7192f8595..27bac90d42 100644--- a/invokeai/frontend/web/src/features/controlLayers/store/paramsSlice.test.ts+++ b/invokeai/frontend/web/src/features/controlLayers/store/paramsSlice.test.ts@@ -8,7 +8,10 @@ import type {import { describe, expect, it } from 'vitest';import {+ isValidKrea2RebalanceWeights,+ KREA2_REBALANCE_WEIGHT_COUNT,paramsSliceConfig,+ parseKrea2RebalanceWeights,positivePromptAddedToHistory,promptRemovedFromHistory,selectModelSupportsDimensions,@@ -158,7 +161,7 @@ describe('paramsSliceConfig persisted state migration', () => {const result = migrate?.(v2State) as ReturnType<typeof getInitialParamsState>;- expect(result._version).toBe(3);+ expect(result._version).toBe(4);expect(result.qwenImageVaeModel).toBeNull();expect(result.qwenImageQwenVLEncoderModel).toBeNull();// Existing params should be preserved@@ -169,6 +172,42 @@ describe('paramsSliceConfig persisted state migration', () => {expect(result.dimensions.height).toBe(768);});+ it('backfills Krea-2 fields when migrating from v3 and preserves existing params', () => {+ expect(migrate).toBeDefined();++ const initial = getInitialParamsState();+ const v3State: Record<string, unknown> = {+ ...initial,+ _version: 3,+ positivePrompt: 'preserve this prompt',+ seed: 1234,+ dimensions: { ...initial.dimensions, width: 640, height: 896 },+ };+ delete v3State.krea2VaeModel;+ delete v3State.krea2Qwen3VlEncoderModel;+ delete v3State.krea2SeedVarianceEnabled;+ delete v3State.krea2SeedVarianceStrength;+ delete v3State.krea2SeedVarianceRandomizePercent;+ delete v3State.krea2RebalanceEnabled;+ delete v3State.krea2RebalanceMultiplier;+ delete v3State.krea2RebalanceWeights;++ const result = migrate?.(v3State) as ReturnType<typeof getInitialParamsState>;++ expect(result._version).toBe(4);+ expect(result.krea2VaeModel).toBeNull();+ expect(result.krea2Qwen3VlEncoderModel).toBeNull();+ expect(result.krea2SeedVarianceEnabled).toBe(false);+ expect(result.krea2SeedVarianceStrength).toBe(0.1);+ expect(result.krea2SeedVarianceRandomizePercent).toBe(50);+ expect(result.krea2RebalanceEnabled).toBe(false);+ expect(result.krea2RebalanceMultiplier).toBe(4);+ expect(result.krea2RebalanceWeights).toBe('1.0,1.0,1.0,1.0,1.0,1.0,1.0,2.5,5.0,1.1,4.0,1.0');+ expect(result.positivePrompt).toBe('preserve this prompt');+ expect(result.seed).toBe(1234);+ expect(result.dimensions).toMatchObject({ width: 640, height: 896 });+ });+it('migrates old positive prompt history entries to prompt pairs', () => {expect(migrate).toBeDefined();@@ -243,3 +282,32 @@ describe('paramsSlice ideogram4Steps normalization (backend requires >= 2)', ()expect(rehydrated.ideogram4Steps).toBeNull();});});++describe('isValidKrea2RebalanceWeights (backend rebalance node requires exactly 12 finite numbers)', () => {+ it('accepts exactly 12 finite comma-separated numbers', () => {+ const parsed = parseKrea2RebalanceWeights('1,1,1,1,1,1,1,2.5,5,1.1,4,1');+ expect(parsed).toEqual([1, 1, 1, 1, 1, 1, 1, 2.5, 5, 1.1, 4, 1]);+ expect(parsed).toHaveLength(KREA2_REBALANCE_WEIGHT_COUNT);+ // Tolerates surrounding whitespace and a trailing comma (empty segments are ignored, as in the backend).+ expect(isValidKrea2RebalanceWeights(' 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 ,')).toBe(true);+ expect(isValidKrea2RebalanceWeights('0,-1,1.5,-2.25,3,4,5,6,7,8,9,10')).toBe(true);+ // Scientific notation and leading-dot decimals are valid Python floats and must be accepted.+ expect(isValidKrea2RebalanceWeights('1e2,1.5e-3,.5,2.,+1,-1,1E3,3.14,0,10,11,12')).toBe(true);+ });++ it.each([+ ['too few', '1,2,3'],+ ['too many', '1,2,3,4,5,6,7,8,9,10,11,12,13'],+ ['nonnumeric', '1,2,3,4,5,6,7,8,9,10,11,x'],+ ['nan', '1,2,3,4,5,6,7,8,9,10,11,nan'],+ ['inf', '1,2,3,4,5,6,7,8,9,10,11,inf'],+ ['Infinity', '1,2,3,4,5,6,7,8,9,10,11,Infinity'],+ ['empty', ''],+ // JS Number() accepts these, but Python float() (the backend) rejects them, so we must too.+ ['hex', '0x10,2,3,4,5,6,7,8,9,10,11,12'],+ ['binary', '0b10,2,3,4,5,6,7,8,9,10,11,12'],+ ['octal', '0o10,2,3,4,5,6,7,8,9,10,11,12'],+ ])('rejects %s', (_label, value) => {+ expect(isValidKrea2RebalanceWeights(value)).toBe(false);+ });+});diff --git a/invokeai/frontend/web/src/features/controlLayers/store/paramsSlice.ts b/invokeai/frontend/web/src/features/controlLayers/store/paramsSlice.tsindex 0770525dee..e2214f5814 100644--- a/invokeai/frontend/web/src/features/controlLayers/store/paramsSlice.ts+++ b/invokeai/frontend/web/src/features/controlLayers/store/paramsSlice.ts@@ -125,6 +125,24 @@ const slice = createSlice({setZImageSeedVarianceRandomizePercent: (state, action: PayloadAction<number>) => {state.zImageSeedVarianceRandomizePercent = action.payload;},+ setKrea2SeedVarianceEnabled: (state, action: PayloadAction<boolean>) => {+ state.krea2SeedVarianceEnabled = action.payload;+ },+ setKrea2SeedVarianceStrength: (state, action: PayloadAction<number>) => {+ state.krea2SeedVarianceStrength = action.payload;+ },+ setKrea2SeedVarianceRandomizePercent: (state, action: PayloadAction<number>) => {+ state.krea2SeedVarianceRandomizePercent = action.payload;+ },+ setKrea2RebalanceEnabled: (state, action: PayloadAction<boolean>) => {+ state.krea2RebalanceEnabled = action.payload;+ },+ setKrea2RebalanceMultiplier: (state, action: PayloadAction<number>) => {+ state.krea2RebalanceMultiplier = action.payload;+ },+ setKrea2RebalanceWeights: (state, action: PayloadAction<string>) => {+ state.krea2RebalanceWeights = action.payload;+ },setUpscaleScheduler: (state, action: PayloadAction<ParameterScheduler>) => {state.upscaleScheduler = action.payload;},@@ -241,6 +259,23 @@ const slice = createSlice({}state.zImageQwen3SourceModel = result.data;},+ krea2VaeModelSelected: (state, action: PayloadAction<ParameterVAEModel | null>) => {+ const result = zParamsState.shape.krea2VaeModel.safeParse(action.payload);+ if (!result.success) {+ return;+ }+ state.krea2VaeModel = result.data;+ },+ krea2Qwen3VlEncoderModelSelected: (+ state,+ action: PayloadAction<{ key: string; name: string; base: string } | null>+ ) => {+ const result = zParamsState.shape.krea2Qwen3VlEncoderModel.safeParse(action.payload);+ if (!result.success) {+ return;+ }+ state.krea2Qwen3VlEncoderModel = result.data;+ },animaVaeModelSelected: (state, action: PayloadAction<ParameterVAEModel | null>) => {const result = zParamsState.shape.animaVaeModel.safeParse(action.payload);if (!result.success) {@@ -675,6 +710,8 @@ const resetState = (state: ParamsState): ParamsState => {newState.zImageVaeModel = oldState.zImageVaeModel;newState.zImageQwen3EncoderModel = oldState.zImageQwen3EncoderModel;newState.zImageQwen3SourceModel = oldState.zImageQwen3SourceModel;+ newState.krea2VaeModel = oldState.krea2VaeModel;+ newState.krea2Qwen3VlEncoderModel = oldState.krea2Qwen3VlEncoderModel;newState.animaVaeModel = oldState.animaVaeModel;newState.animaQwen3EncoderModel = oldState.animaQwen3EncoderModel;newState.animaLLLiteModel = oldState.animaLLLiteModel;@@ -722,6 +759,12 @@ export const {setZImageSeedVarianceEnabled,setZImageSeedVarianceStrength,setZImageSeedVarianceRandomizePercent,+ setKrea2SeedVarianceEnabled,+ setKrea2SeedVarianceStrength,+ setKrea2SeedVarianceRandomizePercent,+ setKrea2RebalanceEnabled,+ setKrea2RebalanceMultiplier,+ setKrea2RebalanceWeights,setUpscaleScheduler,setUpscaleCfgScale,setSeed,@@ -740,6 +783,8 @@ export const {zImageVaeModelSelected,zImageQwen3EncoderModelSelected,zImageQwen3SourceModelSelected,+ krea2VaeModelSelected,+ krea2Qwen3VlEncoderModelSelected,kleinVaeModelSelected,kleinQwen3EncoderModelSelected,qwenImageComponentSourceSelected,@@ -825,6 +870,19 @@ export const paramsSliceConfig: SliceConfig<typeof slice> = {state.qwenImageQwenVLEncoderModel = null;}+ if (state._version === 3) {+ // v3 -> v4, add Krea-2 standalone component and conditioning enhancer fields+ state._version = 4;+ state.krea2VaeModel = null;+ state.krea2Qwen3VlEncoderModel = null;+ state.krea2SeedVarianceEnabled = false;+ state.krea2SeedVarianceStrength = 0.1;+ state.krea2SeedVarianceRandomizePercent = 50;+ state.krea2RebalanceEnabled = false;+ state.krea2RebalanceMultiplier = 4;+ state.krea2RebalanceWeights = '1.0,1.0,1.0,1.0,1.0,1.0,1.0,2.5,5.0,1.1,4.0,1.0';+ }+return zParamsState.parse(state);},},@@ -844,6 +902,7 @@ export const selectIsAnima = createParamsSelector((params) => params.model?.baseexport const selectIsFlux2 = createParamsSelector((params) => params.model?.base === 'flux2');export const selectIsExternal = createParamsSelector((params) => params.model?.base === 'external');export const selectIsQwenImage = createParamsSelector((params) => params.model?.base === 'qwen-image');+export const selectIsKrea2 = createParamsSelector((params) => params.model?.base === 'krea-2');export const selectIsWan = createParamsSelector((params) => params.model?.base === 'wan');export const selectIsFluxKontext = createParamsSelector((params) => {if (params.model?.base === 'flux' && params.model?.name.toLowerCase().includes('kontext')) {@@ -865,6 +924,8 @@ export const selectCLIPGEmbedModel = createParamsSelector((params) => params.cliexport const selectZImageVaeModel = createParamsSelector((params) => params.zImageVaeModel);export const selectZImageQwen3EncoderModel = createParamsSelector((params) => params.zImageQwen3EncoderModel);export const selectZImageQwen3SourceModel = createParamsSelector((params) => params.zImageQwen3SourceModel);+export const selectKrea2VaeModel = createParamsSelector((params) => params.krea2VaeModel);+export const selectKrea2Qwen3VlEncoderModel = createParamsSelector((params) => params.krea2Qwen3VlEncoderModel);export const selectAnimaVaeModel = createParamsSelector((params) => params.animaVaeModel);export const selectAnimaQwen3EncoderModel = createParamsSelector((params) => params.animaQwen3EncoderModel);export const selectAnimaScheduler = createParamsSelector((params) => params.animaScheduler);@@ -1019,6 +1080,45 @@ export const selectZImageSeedVarianceStrength = createParamsSelector((params) =>export const selectZImageSeedVarianceRandomizePercent = createParamsSelector((params) => params.zImageSeedVarianceRandomizePercent);+export const selectKrea2SeedVarianceEnabled = createParamsSelector((params) => params.krea2SeedVarianceEnabled);+export const selectKrea2SeedVarianceStrength = createParamsSelector((params) => params.krea2SeedVarianceStrength);+export const selectKrea2SeedVarianceRandomizePercent = createParamsSelector(+ (params) => params.krea2SeedVarianceRandomizePercent+);+export const selectKrea2RebalanceEnabled = createParamsSelector((params) => params.krea2RebalanceEnabled);+export const selectKrea2RebalanceMultiplier = createParamsSelector((params) => params.krea2RebalanceMultiplier);+export const selectKrea2RebalanceWeights = createParamsSelector((params) => params.krea2RebalanceWeights);++// The Krea-2 Conditioning Rebalance node taps exactly 12 encoder layers, so its per-layer weights string+// must be exactly 12 finite comma-separated numbers. Mirrors Krea2ConditioningRebalanceInvocation._parse_weights+// so an invalid string is blocked before it can queue a generation the backend will reject.+export const KREA2_REBALANCE_WEIGHT_COUNT = 12;++// Plain decimal / scientific-notation float, matching what Python's float() accepts. Crucially this rejects+// the hex/binary/octal literals (0x10, 0b10, 0o10) that JS Number() would happily parse but the backend+// float() rejects — which would otherwise let a graph queue that is guaranteed to fail at generation.+const KREA2_DECIMAL_NUMBER_RE = /^[+-]?(\d+\.?\d*|\.\d+)([eE][+-]?\d+)?$/;++export const parseKrea2RebalanceWeights = (weights: string): number[] | null => {+ const parts = weights+ .split(',')+ .map((s) => s.trim())+ .filter((s) => s !== '');+ if (parts.length !== KREA2_REBALANCE_WEIGHT_COUNT) {+ return null;+ }+ if (!parts.every((p) => KREA2_DECIMAL_NUMBER_RE.test(p))) {+ return null;+ }+ const nums = parts.map(Number);+ if (nums.some((n) => !Number.isFinite(n))) {+ return null;+ }+ return nums;+};++export const isValidKrea2RebalanceWeights = (weights: string): boolean => parseKrea2RebalanceWeights(weights) !== null;+export const selectSeamlessXAxis = createParamsSelector((params) => params.seamlessXAxis);export const selectSeamlessYAxis = createParamsSelector((params) => params.seamlessYAxis);export const selectSeed = createParamsSelector((params) => params.seed);diff --git a/invokeai/frontend/web/src/features/controlLayers/store/types.ts b/invokeai/frontend/web/src/features/controlLayers/store/types.tsindex cd96be52d0..55470843ad 100644--- a/invokeai/frontend/web/src/features/controlLayers/store/types.ts+++ b/invokeai/frontend/web/src/features/controlLayers/store/types.ts@@ -813,7 +813,7 @@ export const zInfillMethod = z.enum(['patchmatch', 'lama', 'cv2', 'color', 'tileexport type InfillMethod = z.infer<typeof zInfillMethod>;export const zParamsState = z.object({- _version: z.literal(3),+ _version: z.literal(4),maskBlur: z.number(),maskBlurMethod: zParameterMaskBlurMethod,canvasCoherenceMode: zParameterCanvasCoherenceMode,@@ -906,6 +906,17 @@ export const zParamsState = z.object({zImageSeedVarianceEnabled: z.boolean(),zImageSeedVarianceStrength: z.number().min(0).max(2),zImageSeedVarianceRandomizePercent: z.number().min(1).max(100),+ // Krea-2 standalone submodels (optional; used when the transformer is a single-file checkpoint/GGUF+ // that has no bundled VAE / Qwen3-VL encoder. When null, they are extracted from the diffusers model.)+ krea2VaeModel: zParameterVAEModel.nullable(),+ krea2Qwen3VlEncoderModel: zModelIdentifierField.nullable(),+ // Krea-2 conditioning enhancers (optional; both default off so stock behaviour is unchanged)+ krea2SeedVarianceEnabled: z.boolean(),+ krea2SeedVarianceStrength: z.number().min(0).max(2),+ krea2SeedVarianceRandomizePercent: z.number().min(0).max(100),+ krea2RebalanceEnabled: z.boolean(),+ krea2RebalanceMultiplier: z.number().min(0).max(20),+ krea2RebalanceWeights: z.string(),imageSize: z.string().nullable().default(null),// OpenAI-specific external optionsopenaiQuality: z.enum(['auto', 'high', 'medium', 'low']).default('auto'),@@ -921,7 +932,7 @@ export const zParamsState = z.object({});export type ParamsState = z.infer<typeof zParamsState>;export const getInitialParamsState = (): ParamsState => ({- _version: 3,+ _version: 4,maskBlur: 16,maskBlurMethod: 'box',canvasCoherenceMode: 'Gaussian Blur',@@ -1001,6 +1012,14 @@ export const getInitialParamsState = (): ParamsState => ({zImageSeedVarianceEnabled: false,zImageSeedVarianceStrength: 0.1,zImageSeedVarianceRandomizePercent: 50,+ krea2VaeModel: null,+ krea2Qwen3VlEncoderModel: null,+ krea2SeedVarianceEnabled: false,+ krea2SeedVarianceStrength: 0.1,+ krea2SeedVarianceRandomizePercent: 50,+ krea2RebalanceEnabled: false,+ krea2RebalanceMultiplier: 4,+ krea2RebalanceWeights: '1.0,1.0,1.0,1.0,1.0,1.0,1.0,2.5,5.0,1.1,4.0,1.0',imageSize: null,openaiQuality: 'auto',openaiBackground: 'auto',diff --git a/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/ImageMetadataActions.test.tsx b/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/ImageMetadataActions.test.tsxindex a4f1427aef..853bf2ceaa 100644--- a/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/ImageMetadataActions.test.tsx+++ b/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/ImageMetadataActions.test.tsx@@ -9,4 +9,22 @@ describe('IMAGE_METADATA_ACTION_HANDLERS', () => {expect(IMAGE_METADATA_ACTION_HANDLERS).toContain(ImageMetadataHandlers.QwenImageQuantization);expect(IMAGE_METADATA_ACTION_HANDLERS).toContain(ImageMetadataHandlers.QwenImageShift);});++ it('includes every Krea-2 metadata handler in the recall parameters UI', () => {+ // Krea-2 records standalone components (single-file / GGUF) and the conditioning-enhancer settings.+ // All must be wired into the recall UI, otherwise they are saved to metadata but cannot be recalled.+ const krea2Handlers = [+ ImageMetadataHandlers.Krea2VAEModel,+ ImageMetadataHandlers.Krea2Qwen3VlEncoderModel,+ ImageMetadataHandlers.Krea2SeedVarianceEnabled,+ ImageMetadataHandlers.Krea2SeedVarianceStrength,+ ImageMetadataHandlers.Krea2SeedVarianceRandomizePercent,+ ImageMetadataHandlers.Krea2RebalanceEnabled,+ ImageMetadataHandlers.Krea2RebalanceMultiplier,+ ImageMetadataHandlers.Krea2RebalanceWeights,+ ];+ for (const handler of krea2Handlers) {+ expect(IMAGE_METADATA_ACTION_HANDLERS).toContain(handler);+ }+ });});diff --git a/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/ImageMetadataActions.tsx b/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/ImageMetadataActions.tsxindex 7b206a30af..bfd732bb60 100644--- a/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/ImageMetadataActions.tsx+++ b/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/ImageMetadataActions.tsx@@ -72,6 +72,14 @@ export const IMAGE_METADATA_ACTION_HANDLERS: ImageMetadataActionHandler[] = [ImageMetadataHandlers.RefImages,ImageMetadataHandlers.KleinVAEModel,ImageMetadataHandlers.KleinQwen3EncoderModel,+ ImageMetadataHandlers.Krea2VAEModel,+ ImageMetadataHandlers.Krea2Qwen3VlEncoderModel,+ ImageMetadataHandlers.Krea2SeedVarianceEnabled,+ ImageMetadataHandlers.Krea2SeedVarianceStrength,+ ImageMetadataHandlers.Krea2SeedVarianceRandomizePercent,+ ImageMetadataHandlers.Krea2RebalanceEnabled,+ ImageMetadataHandlers.Krea2RebalanceMultiplier,+ ImageMetadataHandlers.Krea2RebalanceWeights,ImageMetadataHandlers.LoRAs,];diff --git a/invokeai/frontend/web/src/features/metadata/parsing.test.tsx b/invokeai/frontend/web/src/features/metadata/parsing.test.tsxindex 781394db45..f255a9c755 100644--- a/invokeai/frontend/web/src/features/metadata/parsing.test.tsx+++ b/invokeai/frontend/web/src/features/metadata/parsing.test.tsx@@ -22,7 +22,7 @@ vi.mock('features/controlLayers/store/paramsSlice', async (importOriginal) => {return { ...mod, selectBase: () => currentBase };});-const fakeModel = (type: 'vae' | 'qwen3_encoder' | 't5_encoder', base: string) => ({+const fakeModel = (type: 'vae' | 'qwen3_encoder' | 'qwen3_vl_encoder' | 't5_encoder', base: string) => ({key: `${type}-key`,hash: 'hash',name: `Some ${type}`,@@ -105,10 +105,11 @@ describe('ImageMetadataHandlers — Klein recall gating', () => {});describe('VAEModel (generic)', () => {- // The generic VAEModel handler must NOT also fire for FLUX.2 / Z-Image- // images, otherwise the metadata viewer renders duplicate VAE rows next- // to the dedicated KleinVAEModel / ZImageVAEModel handlers.- it.each(['flux2', 'z-image'])('rejects parsing when current base is %s', async (base) => {+ // The generic VAEModel handler must NOT also fire for FLUX.2 / Z-Image /+ // Krea-2 images, otherwise the metadata viewer renders duplicate VAE rows+ // next to the dedicated KleinVAEModel / ZImageVAEModel / Krea2VAEModel+ // handlers (and recalls into the wrong, shared VAE slot).+ it.each(['flux2', 'z-image', 'krea-2'])('rejects parsing when current base is %s', async (base) => {currentBase = base;nextResolved = fakeModel('vae', base);const store = makeStore();@@ -191,3 +192,223 @@ describe('ImageMetadataHandlers — Klein recall gating', () => {});});});++describe('ImageMetadataHandlers — Krea-2 recall gating', () => {+ // Krea-2 borrows the Qwen-Image VAE and a standalone Qwen3-VL encoder for single-file / GGUF+ // transformers, recalled into dedicated (krea2VaeModel / krea2Qwen3VlEncoderModel) slots — but only when+ // the current main model is actually Krea-2.+ describe('Krea2VAEModel', () => {+ it.each(['qwen-image', 'anima'] as const)(+ 'parses a supported %s VAE when the current and metadata main models are Krea-2',+ async (vaeBase) => {+ currentBase = 'krea-2';+ nextResolved = fakeModel('vae', vaeBase);+ const store = makeStore();++ const parsed = await ImageMetadataHandlers.Krea2VAEModel.parse(+ { model: fakeModel('main', 'krea-2'), vae: nextResolved },+ store+ );++ expect(parsed.key).toBe('vae-key');+ expect(parsed.type).toBe('vae');+ expect(parsed.base).toBe(vaeBase);+ }+ );++ it('rejects parsing when the current main model is not Krea-2', async () => {+ currentBase = 'sdxl';+ nextResolved = fakeModel('vae', 'krea-2');+ const store = makeStore();++ await expect(ImageMetadataHandlers.Krea2VAEModel.parse({ vae: nextResolved }, store)).rejects.toThrow();+ });++ it('rejects VAE metadata from a non-Krea-2 image even when Krea-2 is currently selected', async () => {+ currentBase = 'krea-2';+ nextResolved = fakeModel('vae', 'sdxl');+ const store = makeStore();++ await expect(+ ImageMetadataHandlers.Krea2VAEModel.parse(+ { model: fakeModel('qwen3_vl_encoder', 'sdxl'), vae: nextResolved },+ store+ )+ ).rejects.toThrow();+ });++ it.each(['sdxl', 'flux'] as const)('rejects an incompatible %s VAE from Krea-2 image metadata', async (vaeBase) => {+ currentBase = 'krea-2';+ nextResolved = fakeModel('vae', vaeBase);+ const store = makeStore();++ await expect(+ ImageMetadataHandlers.Krea2VAEModel.parse({ model: fakeModel('main', 'krea-2'), vae: nextResolved }, store)+ ).rejects.toThrow();+ });+ });++ describe('Krea2Qwen3VlEncoderModel', () => {+ it('parses metadata.qwen3_vl_encoder when the current main model is Krea-2', async () => {+ currentBase = 'krea-2';+ nextResolved = fakeModel('qwen3_vl_encoder', 'krea-2');+ const store = makeStore();++ const parsed = await ImageMetadataHandlers.Krea2Qwen3VlEncoderModel.parse(+ { model: fakeModel('main', 'krea-2'), qwen3_vl_encoder: nextResolved },+ store+ );++ expect(parsed.key).toBe('qwen3_vl_encoder-key');+ expect(parsed.type).toBe('qwen3_vl_encoder');+ });++ it('rejects parsing when the current main model is not Krea-2', async () => {+ currentBase = 'flux';+ nextResolved = fakeModel('qwen3_vl_encoder', 'krea-2');+ const store = makeStore();++ await expect(+ ImageMetadataHandlers.Krea2Qwen3VlEncoderModel.parse({ qwen3_vl_encoder: nextResolved }, store)+ ).rejects.toThrow();+ });++ it('rejects encoder metadata from a non-Krea-2 image even when Krea-2 is currently selected', async () => {+ currentBase = 'krea-2';+ nextResolved = fakeModel('qwen3_vl_encoder', 'any');+ const store = makeStore();++ await expect(+ ImageMetadataHandlers.Krea2Qwen3VlEncoderModel.parse(+ { model: fakeModel('qwen3_vl_encoder', 'flux'), qwen3_vl_encoder: nextResolved },+ store+ )+ ).rejects.toThrow();+ });+ });++ // The conditioning-enhancer settings are Krea-2-only scalars. Their parse is gated on the current base so+ // recalling an unrelated (older / non-Krea-2) image does NOT clobber the user's hidden enhancer state.+ // The base check throws synchronously, which the parse runner turns into a rejected promise.+ describe('conditioning-enhancer gating', () => {+ const enhancerCases = [+ { handler: 'Krea2SeedVarianceEnabled', field: 'krea2_seed_variance_enabled', value: true },+ { handler: 'Krea2SeedVarianceStrength', field: 'krea2_seed_variance_strength', value: 0.5 },+ { handler: 'Krea2SeedVarianceRandomizePercent', field: 'krea2_seed_variance_randomize_percent', value: 50 },+ { handler: 'Krea2RebalanceEnabled', field: 'krea2_rebalance_enabled', value: true },+ { handler: 'Krea2RebalanceMultiplier', field: 'krea2_rebalance_multiplier', value: 4 },+ { handler: 'Krea2RebalanceWeights', field: 'krea2_rebalance_weights', value: '1,1,1,1,1,1,1,2.5,5,1.1,4,1' },+ ] as const;++ // The six handlers have different value types (boolean/number/string), so index into a loosely-typed+ // view to keep the union of parse signatures callable.+ const getHandler = (name: (typeof enhancerCases)[number]['handler']) =>+ ImageMetadataHandlers[name] as unknown as {+ parse: (metadata: Record<string, unknown>, store: AppStore) => Promise<unknown>;+ };++ it.each(enhancerCases)('$handler parses when the current base is Krea-2', async ({ handler, field, value }) => {+ currentBase = 'krea-2';+ const store = makeStore();++ const parsed = await getHandler(handler).parse({ model: { base: 'krea-2' }, [field]: value }, store);++ expect(parsed).toBe(value);+ });++ it.each(enhancerCases)(+ '$handler rejects (does not clobber) when the current base is not Krea-2',+ async ({ handler, field, value }) => {+ currentBase = 'sdxl';+ const store = makeStore();++ await expect(+ Promise.resolve().then(() => getHandler(handler).parse({ model: { base: 'krea-2' }, [field]: value }, store))+ ).rejects.toThrow();+ }+ );++ it.each(enhancerCases)(+ '$handler rejects metadata from another model base even when Krea-2 is selected',+ async ({ handler, field, value }) => {+ currentBase = 'krea-2';+ const store = makeStore();++ await expect(+ Promise.resolve().then(() => getHandler(handler).parse({ model: { base: 'sdxl' }, [field]: value }, store))+ ).rejects.toThrow();+ }+ );+ });++ // The numeric enhancer scalars must parse exactly the ranges the slider / param-state / invocation accept,+ // so recalling an image never dispatches a value the backend rejects (regression for review 4791964047:+ // strength is a 0..2 std-multiplier, randomize-percent allows 0 as the disabled value).+ describe('conditioning-enhancer numeric ranges', () => {+ const parseStrength = (value: unknown, store: AppStore) =>+ (+ ImageMetadataHandlers.Krea2SeedVarianceStrength as unknown as {+ parse: (m: Record<string, unknown>, s: AppStore) => Promise<unknown>;+ }+ ).parse({ model: { base: 'krea-2' }, krea2_seed_variance_strength: value }, store);++ const parsePercent = (value: unknown, store: AppStore) =>+ (+ ImageMetadataHandlers.Krea2SeedVarianceRandomizePercent as unknown as {+ parse: (m: Record<string, unknown>, s: AppStore) => Promise<unknown>;+ }+ ).parse({ model: { base: 'krea-2' }, krea2_seed_variance_randomize_percent: value }, store);++ it.each([0, 0.1, 2])('strength accepts %s (0..2 std-multiplier)', async (value) => {+ currentBase = 'krea-2';+ expect(await parseStrength(value, makeStore())).toBe(value);+ });++ it.each([-0.1, 2.1, 20])('strength rejects out-of-range %s (e.g. the stale absolute value 20)', async (value) => {+ currentBase = 'krea-2';+ const store = makeStore();+ // `.parse()` throws synchronously, so wrap it to observe the rejection (as the gating tests do).+ await expect(Promise.resolve().then(() => parseStrength(value, store))).rejects.toThrow();+ });++ it.each([0, 1, 50, 100])('randomize percent accepts %s (0 = disabled)', async (value) => {+ currentBase = 'krea-2';+ expect(await parsePercent(value, makeStore())).toBe(value);+ });++ it.each([-1, 101])('randomize percent rejects out-of-range %s', async (value) => {+ currentBase = 'krea-2';+ const store = makeStore();+ await expect(Promise.resolve().then(() => parsePercent(value, store))).rejects.toThrow();+ });+ });++ // The rebalance weights are free text forwarded to the backend, which requires exactly 12 finite numbers.+ // Recall must reject anything else so it can't dispatch state that fails at generation (review 4800904928).+ describe('Krea2RebalanceWeights recall validation', () => {+ const parseWeights = (value: unknown, store: AppStore) =>+ (+ ImageMetadataHandlers.Krea2RebalanceWeights as unknown as {+ parse: (m: Record<string, unknown>, s: AppStore) => Promise<unknown>;+ }+ ).parse({ model: { base: 'krea-2' }, krea2_rebalance_weights: value }, store);++ it('recalls exactly 12 finite comma-separated numbers', async () => {+ currentBase = 'krea-2';+ const value = '1,1,1,1,1,1,1,2.5,5,1.1,4,1';+ expect(await parseWeights(value, makeStore())).toBe(value);+ });++ it.each([+ ['too few', '1,2,3'],+ ['too many', '1,2,3,4,5,6,7,8,9,10,11,12,13'],+ ['nonnumeric', '1,2,3,4,5,6,7,8,9,10,11,x'],+ ['nan', '1,2,3,4,5,6,7,8,9,10,11,nan'],+ ['inf', '1,2,3,4,5,6,7,8,9,10,11,inf'],+ ])('rejects %s', async (_label, value) => {+ currentBase = 'krea-2';+ const store = makeStore();+ await expect(Promise.resolve().then(() => parseWeights(value, store))).rejects.toThrow();+ });+ });+});diff --git a/invokeai/frontend/web/src/features/metadata/parsing.tsx b/invokeai/frontend/web/src/features/metadata/parsing.tsxindex b871ddbaf4..6a54ea7c03 100644--- a/invokeai/frontend/web/src/features/metadata/parsing.tsx+++ b/invokeai/frontend/web/src/features/metadata/parsing.tsx@@ -14,8 +14,11 @@ import {geminiThinkingLevelChanged,heightChanged,imageSizeChanged,+ isValidKrea2RebalanceWeights,kleinQwen3EncoderModelSelected,kleinVaeModelSelected,+ krea2Qwen3VlEncoderModelSelected,+ krea2VaeModelSelected,negativePromptChanged,openaiBackgroundChanged,openaiInputFidelityChanged,@@ -45,6 +48,12 @@ import {setIdeogram4SamplerPreset,setIdeogram4Steps,setImg2imgStrength,+ setKrea2RebalanceEnabled,+ setKrea2RebalanceMultiplier,+ setKrea2RebalanceWeights,+ setKrea2SeedVarianceEnabled,+ setKrea2SeedVarianceRandomizePercent,+ setKrea2SeedVarianceStrength,setRefinerCFGScale,setRefinerNegativeAestheticScore,setRefinerPositiveAestheticScore,@@ -164,6 +173,12 @@ const getProperty = (obj: unknown, path: string): unknown => {return get(obj, path) as unknown;};+const assertMetadataModelBase = (metadata: unknown, expectedBase: string, handlerType: string): void => {+ const rawModel = getProperty(metadata, 'model');+ const modelBase = (rawModel as { base?: unknown } | undefined)?.base;+ assert(modelBase === expectedBase, `${handlerType} handler only works with ${expectedBase} metadata`);+};+type UnparsedData = {isParsed: false;isSuccess: false;@@ -1366,9 +1381,12 @@ const VAEModel: SingleMetadataHandler<ParameterVAEModel> = {const parsed = await parseModelIdentifier(raw, store, 'vae');assert(parsed.type === 'vae');assert(isCompatibleWithMainModel(parsed, store));- // Z-Image and FLUX.2 Klein have dedicated VAE handlers; avoid rendering a duplicate row.+ // Z-Image, FLUX.2 Klein and Krea-2 have dedicated VAE handlers; avoid rendering a duplicate row.const base = selectBase(store.getState());- assert(base !== 'z-image' && base !== 'flux2', 'VAEModel handler does not apply to Z-Image or FLUX.2 Klein');+ assert(+ base !== 'z-image' && base !== 'flux2' && base !== 'krea-2',+ 'VAEModel handler does not apply to Z-Image, FLUX.2 Klein or Krea-2'+ );return Promise.resolve(parsed);},recall: (value, store) => {@@ -1479,6 +1497,185 @@ const ZImageQwen3SourceModel: SingleMetadataHandler<ModelIdentifierField> = {};//#endregion ZImageQwen3SourceModel+//#region Krea2VAEModel+const Krea2VAEModel: SingleMetadataHandler<ModelIdentifierField> = {+ [SingleMetadataKey]: true,+ type: 'Krea2VAEModel',+ parse: async (metadata, store) => {+ assertMetadataModelBase(metadata, 'krea-2', 'Krea2VAEModel');+ const raw = getProperty(metadata, 'vae');+ const parsed = await parseModelIdentifier(raw, store, 'vae');+ assert(parsed.type === 'vae');+ assert(parsed.base === 'qwen-image' || parsed.base === 'anima', 'Krea2VAEModel requires a Qwen Image or Anima VAE');+ // Only recall if the current main model is Krea-2 (its VAE dropdown differs from other bases).+ const base = selectBase(store.getState());+ assert(base === 'krea-2', 'Krea2VAEModel handler only works with Krea-2 models');+ return Promise.resolve(parsed);+ },+ recall: (value, store) => {+ store.dispatch(krea2VaeModelSelected(value));+ },+ i18nKey: 'metadata.vae',+ LabelComponent: MetadataLabel,+ ValueComponent: ({ value }: SingleMetadataValueProps<ModelIdentifierField>) => (+ <MetadataPrimitiveValue value={`${value.name} (${value.base.toUpperCase()})`} />+ ),+};+//#endregion Krea2VAEModel++//#region Krea2Qwen3VlEncoderModel+const Krea2Qwen3VlEncoderModel: SingleMetadataHandler<ModelIdentifierField> = {+ [SingleMetadataKey]: true,+ type: 'Krea2Qwen3VlEncoderModel',+ parse: async (metadata, store) => {+ assertMetadataModelBase(metadata, 'krea-2', 'Krea2Qwen3VlEncoderModel');+ const raw = getProperty(metadata, 'qwen3_vl_encoder');+ const parsed = await parseModelIdentifier(raw, store, 'qwen3_vl_encoder');+ assert(parsed.type === 'qwen3_vl_encoder');+ const base = selectBase(store.getState());+ assert(base === 'krea-2', 'Krea2Qwen3VlEncoderModel handler only works with Krea-2 models');+ return Promise.resolve(parsed);+ },+ recall: (value, store) => {+ store.dispatch(krea2Qwen3VlEncoderModelSelected(value));+ },+ i18nKey: 'metadata.krea2Qwen3VlEncoder',+ LabelComponent: MetadataLabel,+ ValueComponent: ({ value }: SingleMetadataValueProps<ModelIdentifierField>) => (+ <MetadataPrimitiveValue value={`${value.name} (${value.base.toUpperCase()})`} />+ ),+};+//#endregion Krea2Qwen3VlEncoderModel++//#region Krea2SeedVarianceEnabled+const Krea2SeedVarianceEnabled: SingleMetadataHandler<boolean> = {+ [SingleMetadataKey]: true,+ type: 'Krea2SeedVarianceEnabled',+ parse: (metadata, store) => {+ // Only applies to Krea-2 models, and only when the field is actually present — otherwise recalling+ // an unrelated/older image would silently clear the user's current enhancer state. (A synchronous+ // throw here is turned into a rejected promise by the parse runner, skipping the handler.)+ assert(selectBase(store.getState()) === 'krea-2', 'Krea2SeedVarianceEnabled handler only applies to Krea-2 models');+ assertMetadataModelBase(metadata, 'krea-2', 'Krea2SeedVarianceEnabled');+ const raw = getProperty(metadata, 'krea2_seed_variance_enabled');+ return Promise.resolve(z.boolean().parse(raw));+ },+ recall: (value, store) => {+ store.dispatch(setKrea2SeedVarianceEnabled(value));+ },+ i18nKey: 'metadata.seedVarianceEnabled',+ LabelComponent: MetadataLabel,+ ValueComponent: ({ value }: SingleMetadataValueProps<boolean>) => <MetadataPrimitiveValue value={value} />,+};+//#endregion Krea2SeedVarianceEnabled++//#region Krea2SeedVarianceStrength+const Krea2SeedVarianceStrength: SingleMetadataHandler<number> = {+ [SingleMetadataKey]: true,+ type: 'Krea2SeedVarianceStrength',+ parse: (metadata, store) => {+ assert(+ selectBase(store.getState()) === 'krea-2',+ 'Krea2SeedVarianceStrength handler only applies to Krea-2 models'+ );+ assertMetadataModelBase(metadata, 'krea-2', 'Krea2SeedVarianceStrength');+ const raw = getProperty(metadata, 'krea2_seed_variance_strength');+ // Strength is a multiplier of the embedding std, capped at 2 (matches the invocation + param state).+ return Promise.resolve(z.number().min(0).max(2).parse(raw));+ },+ recall: (value, store) => {+ store.dispatch(setKrea2SeedVarianceStrength(value));+ },+ i18nKey: 'metadata.seedVarianceStrength',+ LabelComponent: MetadataLabel,+ ValueComponent: ({ value }: SingleMetadataValueProps<number>) => <MetadataPrimitiveValue value={value} />,+};+//#endregion Krea2SeedVarianceStrength++//#region Krea2SeedVarianceRandomizePercent+const Krea2SeedVarianceRandomizePercent: SingleMetadataHandler<number> = {+ [SingleMetadataKey]: true,+ type: 'Krea2SeedVarianceRandomizePercent',+ parse: (metadata, store) => {+ assert(+ selectBase(store.getState()) === 'krea-2',+ 'Krea2SeedVarianceRandomizePercent handler only applies to Krea-2 models'+ );+ assertMetadataModelBase(metadata, 'krea-2', 'Krea2SeedVarianceRandomizePercent');+ const raw = getProperty(metadata, 'krea2_seed_variance_randomize_percent');+ // 0 is the valid "disabled" value (matches the slider, param state, and invocation); reject negatives.+ return Promise.resolve(z.number().min(0).max(100).parse(raw));+ },+ recall: (value, store) => {+ store.dispatch(setKrea2SeedVarianceRandomizePercent(value));+ },+ i18nKey: 'metadata.seedVarianceRandomizePercent',+ LabelComponent: MetadataLabel,+ ValueComponent: ({ value }: SingleMetadataValueProps<number>) => <MetadataPrimitiveValue value={value} />,+};+//#endregion Krea2SeedVarianceRandomizePercent++//#region Krea2RebalanceEnabled+const Krea2RebalanceEnabled: SingleMetadataHandler<boolean> = {+ [SingleMetadataKey]: true,+ type: 'Krea2RebalanceEnabled',+ parse: (metadata, store) => {+ assert(selectBase(store.getState()) === 'krea-2', 'Krea2RebalanceEnabled handler only applies to Krea-2 models');+ assertMetadataModelBase(metadata, 'krea-2', 'Krea2RebalanceEnabled');+ const raw = getProperty(metadata, 'krea2_rebalance_enabled');+ return Promise.resolve(z.boolean().parse(raw));+ },+ recall: (value, store) => {+ store.dispatch(setKrea2RebalanceEnabled(value));+ },+ i18nKey: 'metadata.krea2RebalanceEnabled',+ LabelComponent: MetadataLabel,+ ValueComponent: ({ value }: SingleMetadataValueProps<boolean>) => <MetadataPrimitiveValue value={value} />,+};+//#endregion Krea2RebalanceEnabled++//#region Krea2RebalanceMultiplier+const Krea2RebalanceMultiplier: SingleMetadataHandler<number> = {+ [SingleMetadataKey]: true,+ type: 'Krea2RebalanceMultiplier',+ parse: (metadata, store) => {+ assert(selectBase(store.getState()) === 'krea-2', 'Krea2RebalanceMultiplier handler only applies to Krea-2 models');+ assertMetadataModelBase(metadata, 'krea-2', 'Krea2RebalanceMultiplier');+ const raw = getProperty(metadata, 'krea2_rebalance_multiplier');+ return Promise.resolve(z.number().min(0).max(20).parse(raw));+ },+ recall: (value, store) => {+ store.dispatch(setKrea2RebalanceMultiplier(value));+ },+ i18nKey: 'metadata.krea2RebalanceMultiplier',+ LabelComponent: MetadataLabel,+ ValueComponent: ({ value }: SingleMetadataValueProps<number>) => <MetadataPrimitiveValue value={value} />,+};+//#endregion Krea2RebalanceMultiplier++//#region Krea2RebalanceWeights+const Krea2RebalanceWeights: SingleMetadataHandler<string> = {+ [SingleMetadataKey]: true,+ type: 'Krea2RebalanceWeights',+ parse: (metadata, store) => {+ assert(selectBase(store.getState()) === 'krea-2', 'Krea2RebalanceWeights handler only applies to Krea-2 models');+ assertMetadataModelBase(metadata, 'krea-2', 'Krea2RebalanceWeights');+ const raw = getProperty(metadata, 'krea2_rebalance_weights');+ // Only recall a string the backend rebalance node would actually accept (exactly 12 finite numbers),+ // so recalling stale/garbage metadata can't dispatch state that later fails at generation time.+ return Promise.resolve(+ z.string().refine(isValidKrea2RebalanceWeights, 'expected exactly 12 finite comma-separated numbers').parse(raw)+ );+ },+ recall: (value, store) => {+ store.dispatch(setKrea2RebalanceWeights(value));+ },+ i18nKey: 'metadata.krea2RebalanceWeights',+ LabelComponent: MetadataLabel,+ ValueComponent: ({ value }: SingleMetadataValueProps<string>) => <MetadataPrimitiveValue value={value} />,+};+//#endregion Krea2RebalanceWeights+//#region AnimaVAEModelconst AnimaVAEModel: SingleMetadataHandler<ModelIdentifierField> = {[SingleMetadataKey]: true,@@ -1978,6 +2175,14 @@ export const ImageMetadataHandlers = {ZImageSeedVarianceEnabled,ZImageSeedVarianceStrength,ZImageSeedVarianceRandomizePercent,+ Krea2VAEModel,+ Krea2Qwen3VlEncoderModel,+ Krea2SeedVarianceEnabled,+ Krea2SeedVarianceStrength,+ Krea2SeedVarianceRandomizePercent,+ Krea2RebalanceEnabled,+ Krea2RebalanceMultiplier,+ Krea2RebalanceWeights,QwenImageComponentSource,QwenImageVaeModel,QwenImageQwenVLEncoderModel,diff --git a/invokeai/frontend/web/src/features/modelManagerV2/models.ts b/invokeai/frontend/web/src/features/modelManagerV2/models.tsindex 4e67d58062..b772f7bea3 100644--- a/invokeai/frontend/web/src/features/modelManagerV2/models.ts+++ b/invokeai/frontend/web/src/features/modelManagerV2/models.ts@@ -13,6 +13,7 @@ import {isLoRAModelConfig,isNonRefinerMainModelConfig,isQwen3EncoderModelConfig,+ isQwen3VLEncoderModelConfig,isQwenVLEncoderModelConfig,isRefinerMainModelModelConfig,isSigLipModelConfig,@@ -86,6 +87,11 @@ const MODEL_CATEGORIES: Record<ModelCategoryType, ModelCategoryData> = {i18nKey: 'modelManager.qwenVLEncoder',filter: isQwenVLEncoderModelConfig,},+ qwen3_vl_encoder: {+ category: 'qwen3_vl_encoder',+ i18nKey: 'modelManager.qwen3VLEncoder',+ filter: isQwen3VLEncoderModelConfig,+ },wan_t5_encoder: {category: 'wan_t5_encoder',i18nKey: 'modelManager.wanT5Encoder',@@ -169,6 +175,7 @@ export const MODEL_BASE_TO_COLOR: Record<BaseModelType, string> = {cogview4: 'red','qwen-image': 'orange','z-image': 'cyan',+ 'krea-2': 'pink','ideogram-4': 'pink',external: 'orange',anima: 'invokePurple',@@ -195,6 +202,7 @@ export const MODEL_TYPE_TO_LONG_NAME: Record<ModelType, string> = {t5_encoder: 'T5 Encoder',qwen3_encoder: 'Qwen3 Encoder',qwen_vl_encoder: 'Qwen2.5-VL Encoder',+ qwen3_vl_encoder: 'Qwen3-VL Encoder',wan_t5_encoder: 'Wan T5 Encoder',clip_embed: 'CLIP Embed',siglip: 'SigLIP',@@ -219,6 +227,7 @@ export const MODEL_BASE_TO_LONG_NAME: Record<BaseModelType, string> = {cogview4: 'CogView4','qwen-image': 'Qwen Image','z-image': 'Z-Image',+ 'krea-2': 'Krea-2','ideogram-4': 'Ideogram 4',external: 'External',anima: 'Anima',@@ -241,6 +250,7 @@ export const MODEL_BASE_TO_SHORT_NAME: Record<BaseModelType, string> = {cogview4: 'CogView4','qwen-image': 'QwenImg','z-image': 'Z-Image',+ 'krea-2': 'Krea-2','ideogram-4': 'Ideogram4',external: 'External',anima: 'Anima',@@ -261,6 +271,8 @@ export const MODEL_VARIANT_TO_LONG_NAME: Record<AnyModelVariant, string> = {klein_9b_base: 'FLUX.2 Klein 9B Base',turbo: 'Z-Image Turbo',zbase: 'Z-Image Base',+ krea2_turbo: 'Krea-2 Turbo',+ krea2_base: 'Krea-2 Raw',large: 'CLIP L',gigantic: 'CLIP G',generate: 'Qwen Image',@@ -289,6 +301,7 @@ export const MODEL_FORMAT_TO_LONG_NAME: Record<ModelFormat, string> = {t5_encoder: 'T5 Encoder',qwen3_encoder: 'Qwen3 Encoder',qwen_vl_encoder: 'Qwen2.5-VL Encoder',+ qwen3_vl_encoder: 'Qwen3-VL Encoder',wan_t5_encoder: 'Wan T5 Encoder (UMT5-XXL)',bnb_quantized_int8b: 'BNB Quantized (int8b)',bnb_quantized_nf4b: 'BNB Quantized (nf4b)',@@ -309,5 +322,6 @@ export const SUPPORTS_NEGATIVE_PROMPT_BASE_MODELS: BaseModelType[] = ['sd-3','z-image','anima',+ 'krea-2','wan',];diff --git a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManagerPanel/ModelFormatBadge.tsx b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManagerPanel/ModelFormatBadge.tsxindex 1473e6dd07..23ba79bb2b 100644--- a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManagerPanel/ModelFormatBadge.tsx+++ b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManagerPanel/ModelFormatBadge.tsx@@ -16,6 +16,7 @@ const FORMAT_NAME_MAP: Record<ModelFormat, string> = {t5_encoder: 't5_encoder',qwen3_encoder: 'qwen3_encoder',qwen_vl_encoder: 'qwen_vl_encoder',+ qwen3_vl_encoder: 'qwen3_vl_encoder',wan_t5_encoder: 'wan_t5_encoder',bnb_quantized_int8b: 'bnb_quantized_int8b',bnb_quantized_nf4b: 'quantized',@@ -38,6 +39,7 @@ const FORMAT_COLOR_MAP: Record<ModelFormat, string> = {t5_encoder: 'base',qwen3_encoder: 'base',qwen_vl_encoder: 'base',+ qwen3_vl_encoder: 'base',wan_t5_encoder: 'base',bnb_quantized_int8b: 'base',bnb_quantized_nf4b: 'base',diff --git a/invokeai/frontend/web/src/features/nodes/types/common.test-d.ts b/invokeai/frontend/web/src/features/nodes/types/common.test-d.tsindex 04e0fea2cc..373f95f6f5 100644--- a/invokeai/frontend/web/src/features/nodes/types/common.test-d.ts+++ b/invokeai/frontend/web/src/features/nodes/types/common.test-d.ts@@ -14,6 +14,7 @@ import type {zClipVariantType,zFlux2VariantType,zFluxVariantType,+ zKrea2VariantType,zModelFormat,zModelVariantType,zQwen3VariantType,@@ -52,6 +53,7 @@ describe('Common types', () => {test('FluxVariantType', () => assert<Equals<z.infer<typeof zFluxVariantType>, S['FluxVariantType']>>());test('Flux2VariantType', () => assert<Equals<z.infer<typeof zFlux2VariantType>, S['Flux2VariantType']>>());test('ZImageVariantType', () => assert<Equals<z.infer<typeof zZImageVariantType>, S['ZImageVariantType']>>());+ test('Krea2VariantType', () => assert<Equals<z.infer<typeof zKrea2VariantType>, S['Krea2VariantType']>>());test('Qwen3VariantType', () => assert<Equals<z.infer<typeof zQwen3VariantType>, S['Qwen3VariantType']>>());test('ModelFormat', () => assert<Equals<z.infer<typeof zModelFormat>, S['ModelFormat']>>());diff --git a/invokeai/frontend/web/src/features/nodes/types/common.ts b/invokeai/frontend/web/src/features/nodes/types/common.tsindex ed90c981e3..506a10f531 100644--- a/invokeai/frontend/web/src/features/nodes/types/common.ts+++ b/invokeai/frontend/web/src/features/nodes/types/common.ts@@ -108,6 +108,7 @@ export const zBaseModelType = z.enum(['cogview4','qwen-image','z-image',+ 'krea-2','ideogram-4','external','anima',@@ -125,6 +126,7 @@ export const zMainModelBase = z.enum(['cogview4','qwen-image','z-image',+ 'krea-2','ideogram-4','anima','wan',@@ -148,6 +150,7 @@ export const zModelType = z.enum(['t5_encoder','qwen3_encoder','qwen_vl_encoder',+ 'qwen3_vl_encoder','wan_t5_encoder','clip_embed','siglip',@@ -178,6 +181,7 @@ export const zModelVariantType = z.enum(['normal', 'inpaint', 'depth']);export const zFluxVariantType = z.enum(['dev', 'dev_fill', 'schnell']);export const zFlux2VariantType = z.enum(['klein_4b', 'klein_4b_base', 'klein_9b', 'klein_9b_base']);export const zZImageVariantType = z.enum(['turbo', 'zbase']);+export const zKrea2VariantType = z.enum(['krea2_turbo', 'krea2_base']);const zQwenImageVariantType = z.enum(['generate', 'edit']);const zWanVariantType = z.enum(['t2v_a14b', 'i2v_a14b', 'ti2v_5b']);/** Wan LoRA variant — identifies which model FAMILY (inner_dim) a LoRA@@ -190,6 +194,7 @@ export const zAnyModelVariant = z.union([zFluxVariantType,zFlux2VariantType,zZImageVariantType,+ zKrea2VariantType,zQwenImageVariantType,zWanVariantType,zWanLoRAVariantType,@@ -209,6 +214,7 @@ export const zModelFormat = z.enum(['t5_encoder','qwen3_encoder','qwen_vl_encoder',+ 'qwen3_vl_encoder','wan_t5_encoder','bnb_quantized_int8b','bnb_quantized_nf4b',diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/generation/addImageToImage.ts b/invokeai/frontend/web/src/features/nodes/util/graph/generation/addImageToImage.tsindex 103c139b72..1971b61d41 100644--- a/invokeai/frontend/web/src/features/nodes/util/graph/generation/addImageToImage.ts+++ b/invokeai/frontend/web/src/features/nodes/util/graph/generation/addImageToImage.ts@@ -73,6 +73,7 @@ export const addImageToImage = async ({denoise.type === 'flux2_denoise' ||denoise.type === 'sd3_denoise' ||denoise.type === 'z_image_denoise' ||+ denoise.type === 'krea2_denoise' ||denoise.type === 'anima_denoise' ||denoise.type === 'wan_denoise') {diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/generation/addInpaint.ts b/invokeai/frontend/web/src/features/nodes/util/graph/generation/addInpaint.tsindex 2f47577366..97e1576224 100644--- a/invokeai/frontend/web/src/features/nodes/util/graph/generation/addInpaint.ts+++ b/invokeai/frontend/web/src/features/nodes/util/graph/generation/addInpaint.ts@@ -73,6 +73,7 @@ export const addInpaint = async ({denoise.type === 'flux2_denoise' ||denoise.type === 'sd3_denoise' ||denoise.type === 'z_image_denoise' ||+ denoise.type === 'krea2_denoise' ||denoise.type === 'anima_denoise' ||denoise.type === 'wan_denoise') {diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/generation/addKrea2LoRAs.test.ts b/invokeai/frontend/web/src/features/nodes/util/graph/generation/addKrea2LoRAs.test.tsnew file mode 100644index 0000000000..0250fbf969--- /dev/null+++ b/invokeai/frontend/web/src/features/nodes/util/graph/generation/addKrea2LoRAs.test.ts@@ -0,0 +1,126 @@+import type { Invocation } from 'services/api/types';+import { describe, expect, it, vi } from 'vitest';++let nextId = 0;+vi.mock('features/controlLayers/konva/util', () => ({+ getPrefixedId: (prefix: string) => `${prefix}:${nextId++}`,+}));++import { addKrea2LoRAs } from './addKrea2LoRAs';+import { Graph } from './Graph';++const model = { key: 'krea2-model', hash: 'h', name: 'Krea-2', base: 'krea-2', type: 'main' };++const buildBaseGraph = (withNeg: boolean) => {+ nextId = 0;+ const g = new Graph('test');+ const modelLoader = g.addNode({+ type: 'krea2_model_loader',+ id: 'model_loader',+ model,+ } as Invocation<'krea2_model_loader'>);+ const denoise = g.addNode({ type: 'krea2_denoise', id: 'denoise' } as Invocation<'krea2_denoise'>);+ const posCond = g.addNode({ type: 'krea2_text_encoder', id: 'pos_prompt' } as Invocation<'krea2_text_encoder'>);+ const negCond = withNeg+ ? g.addNode({ type: 'krea2_text_encoder', id: 'neg_prompt' } as Invocation<'krea2_text_encoder'>)+ : null;++ // The direct model -> denoise / text-encoder edges that addKrea2LoRAs must reroute.+ g.addEdge(modelLoader, 'transformer', denoise, 'transformer');+ g.addEdge(modelLoader, 'qwen3_vl_encoder', posCond, 'qwen3_vl_encoder');+ if (negCond) {+ g.addEdge(modelLoader, 'qwen3_vl_encoder', negCond, 'qwen3_vl_encoder');+ }++ return { g, modelLoader, denoise, posCond, negCond };+};++const stateWith = (loras: unknown[]) => ({ loras: { loras } }) as never;++const enabledKrea2Lora = {+ id: 'lora-1',+ isEnabled: true,+ weight: 0.8,+ model: { key: 'lora-key', hash: 'lora-hash', name: 'My Krea LoRA', base: 'krea-2', type: 'lora' },+};++describe('addKrea2LoRAs', () => {+ it('reroutes the transformer and both text encoders through the collection loader', () => {+ const { g, modelLoader, denoise, posCond, negCond } = buildBaseGraph(true);++ addKrea2LoRAs(stateWith([enabledKrea2Lora]), g, denoise, modelLoader, posCond, negCond);++ const graph = g.getGraph();+ const nodeTypes = Object.values(graph.nodes).map((n) => n.type);+ expect(nodeTypes).toContain('krea2_lora_collection_loader');+ expect(nodeTypes).toContain('collect');+ expect(nodeTypes).toContain('lora_selector');++ const collectionLoaderId = Object.values(graph.nodes).find((n) => n.type === 'krea2_lora_collection_loader')!.id;++ // The single edge into denoise.transformer now originates from the collection loader (old direct edge gone).+ const transformerEdges = graph.edges.filter(+ (e) => e.destination.node_id === denoise.id && e.destination.field === 'transformer'+ );+ expect(transformerEdges).toHaveLength(1);+ expect(transformerEdges[0]!.source.node_id).toBe(collectionLoaderId);++ // Both the positive and negative encoders are rerouted to the collection loader.+ for (const cond of [posCond, negCond!]) {+ const encoderEdges = graph.edges.filter(+ (e) => e.destination.node_id === cond.id && e.destination.field === 'qwen3_vl_encoder'+ );+ expect(encoderEdges).toHaveLength(1);+ expect(encoderEdges[0]!.source.node_id).toBe(collectionLoaderId);+ }++ // No stale direct edge remains from the model loader to denoise or the encoders.+ const staleDirectEdges = graph.edges.filter(+ (e) =>+ e.source.node_id === modelLoader.id && [denoise.id, posCond.id, negCond!.id].includes(e.destination.node_id)+ );+ expect(staleDirectEdges).toHaveLength(0);++ // The lora selector feeds the collector, which feeds the collection loader.+ const selectorId = Object.values(graph.nodes).find((n) => n.type === 'lora_selector')!.id;+ const collectorId = Object.values(graph.nodes).find((n) => n.type === 'collect')!.id;+ expect(graph.edges.some((e) => e.source.node_id === selectorId && e.destination.node_id === collectorId)).toBe(+ true+ );+ expect(+ graph.edges.some((e) => e.source.node_id === collectorId && e.destination.node_id === collectionLoaderId)+ ).toBe(true);+ });++ it('does nothing (keeps direct edges) when no Krea-2 LoRAs are enabled', () => {+ const { g, modelLoader, denoise, posCond, negCond } = buildBaseGraph(true);++ addKrea2LoRAs(stateWith([]), g, denoise, modelLoader, posCond, negCond);++ const graph = g.getGraph();+ expect(Object.values(graph.nodes).map((n) => n.type)).not.toContain('krea2_lora_collection_loader');+ const transformerEdges = graph.edges.filter(+ (e) => e.destination.node_id === denoise.id && e.destination.field === 'transformer'+ );+ expect(transformerEdges).toHaveLength(1);+ expect(transformerEdges[0]!.source.node_id).toBe(modelLoader.id);+ });++ it('ignores disabled and non-Krea-2 LoRAs', () => {+ const { g, modelLoader, denoise, posCond, negCond } = buildBaseGraph(false);++ addKrea2LoRAs(+ stateWith([+ { ...enabledKrea2Lora, isEnabled: false },+ { ...enabledKrea2Lora, id: 'flux', model: { ...enabledKrea2Lora.model, base: 'flux' } },+ ]),+ g,+ denoise,+ modelLoader,+ posCond,+ negCond+ );++ expect(Object.values(g.getGraph().nodes).map((n) => n.type)).not.toContain('krea2_lora_collection_loader');+ });+});diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/generation/addKrea2LoRAs.ts b/invokeai/frontend/web/src/features/nodes/util/graph/generation/addKrea2LoRAs.tsnew file mode 100644index 0000000000..4fe0662828--- /dev/null+++ b/invokeai/frontend/web/src/features/nodes/util/graph/generation/addKrea2LoRAs.ts@@ -0,0 +1,68 @@+import type { RootState } from 'app/store/store';+import { getPrefixedId } from 'features/controlLayers/konva/util';+import { zModelIdentifierField } from 'features/nodes/types/common';+import type { Graph } from 'features/nodes/util/graph/generation/Graph';+import type { Invocation, S } from 'services/api/types';++export const addKrea2LoRAs = (+ state: RootState,+ g: Graph,+ denoise: Invocation<'krea2_denoise'>,+ modelLoader: Invocation<'krea2_model_loader'>,+ posCond: Invocation<'krea2_text_encoder'>,+ negCond: Invocation<'krea2_text_encoder'> | null+): void => {+ const enabledLoRAs = state.loras.loras.filter((l) => l.isEnabled && l.model.base === 'krea-2');+ const loraCount = enabledLoRAs.length;++ if (loraCount === 0) {+ return;+ }++ const loraMetadata: S['LoRAMetadataField'][] = [];++ // Collect LoRAs into a collection node, then apply them all via the collection loader, which reroutes+ // the transformer and Qwen3-VL encoder through itself.+ const loraCollector = g.addNode({+ id: getPrefixedId('lora_collector'),+ type: 'collect',+ });+ const loraCollectionLoader = g.addNode({+ type: 'krea2_lora_collection_loader',+ id: getPrefixedId('krea2_lora_collection_loader'),+ });++ g.addEdge(loraCollector, 'collection', loraCollectionLoader, 'loras');+ g.addEdge(modelLoader, 'transformer', loraCollectionLoader, 'transformer');+ g.addEdge(modelLoader, 'qwen3_vl_encoder', loraCollectionLoader, 'qwen3_vl_encoder');+ // Reroute model connections through the LoRA collection loader.+ g.deleteEdgesTo(denoise, ['transformer']);+ g.deleteEdgesTo(posCond, ['qwen3_vl_encoder']);+ g.addEdge(loraCollectionLoader, 'transformer', denoise, 'transformer');+ g.addEdge(loraCollectionLoader, 'qwen3_vl_encoder', posCond, 'qwen3_vl_encoder');+ if (negCond !== null) {+ g.deleteEdgesTo(negCond, ['qwen3_vl_encoder']);+ g.addEdge(loraCollectionLoader, 'qwen3_vl_encoder', negCond, 'qwen3_vl_encoder');+ }++ for (const lora of enabledLoRAs) {+ const { weight } = lora;+ const parsedModel = zModelIdentifierField.parse(lora.model);++ const loraSelector = g.addNode({+ type: 'lora_selector',+ id: getPrefixedId('lora_selector'),+ lora: parsedModel,+ weight,+ });++ loraMetadata.push({+ model: parsedModel,+ weight,+ });++ g.addEdge(loraSelector, 'lora', loraCollector, 'item');+ }++ g.upsertMetadata({ loras: loraMetadata });+};diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/generation/addOutpaint.ts b/invokeai/frontend/web/src/features/nodes/util/graph/generation/addOutpaint.tsindex 4ced0744af..60d281bc38 100644--- a/invokeai/frontend/web/src/features/nodes/util/graph/generation/addOutpaint.ts+++ b/invokeai/frontend/web/src/features/nodes/util/graph/generation/addOutpaint.ts@@ -65,6 +65,7 @@ export const addOutpaint = async ({denoise.type === 'flux2_denoise' ||denoise.type === 'sd3_denoise' ||denoise.type === 'z_image_denoise' ||+ denoise.type === 'krea2_denoise' ||denoise.type === 'anima_denoise' ||denoise.type === 'wan_denoise') {diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/generation/addTextToImage.ts b/invokeai/frontend/web/src/features/nodes/util/graph/generation/addTextToImage.tsindex 9e5d8aec82..db66ad4a9f 100644--- a/invokeai/frontend/web/src/features/nodes/util/graph/generation/addTextToImage.ts+++ b/invokeai/frontend/web/src/features/nodes/util/graph/generation/addTextToImage.ts@@ -45,6 +45,7 @@ export const addTextToImage = ({denoise.type === 'flux2_denoise' ||denoise.type === 'sd3_denoise' ||denoise.type === 'z_image_denoise' ||+ denoise.type === 'krea2_denoise' ||denoise.type === 'anima_denoise' ||denoise.type === 'wan_denoise') {diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/generation/buildKrea2Graph.test.ts b/invokeai/frontend/web/src/features/nodes/util/graph/generation/buildKrea2Graph.test.tsnew file mode 100644index 0000000000..34043589df--- /dev/null+++ b/invokeai/frontend/web/src/features/nodes/util/graph/generation/buildKrea2Graph.test.ts@@ -0,0 +1,303 @@+import { afterEach, describe, expect, it, vi } from 'vitest';++vi.mock('app/logging/logger', () => ({+ logger: () => ({+ debug: vi.fn(),+ }),+}));++let nextId = 0;+vi.mock('features/controlLayers/konva/util', () => ({+ getPrefixedId: (prefix: string) => `${prefix}:${nextId++}`,+}));++const baseModel = {+ key: 'krea2-model',+ hash: 'krea2-hash',+ name: 'Krea-2 Turbo',+ base: 'krea-2',+ type: 'main',+ format: 'diffusers',+ variant: 'krea2_turbo',+};++let model: Record<string, unknown> = { ...baseModel };++const defaultParams = {+ cfgScale: 1 as number | number[],+ steps: 8,+ krea2VaeModel: null as unknown,+ krea2Qwen3VlEncoderModel: null as unknown,+ krea2RebalanceEnabled: false,+ krea2RebalanceMultiplier: 4,+ krea2RebalanceWeights: '1,1,1,1,1,1,1,2.5,5,1.1,4,1',+ krea2SeedVarianceEnabled: false,+ krea2SeedVarianceStrength: 0.5,+ krea2SeedVarianceRandomizePercent: 50,+};++let params = { ...defaultParams };++vi.mock('features/controlLayers/store/paramsSlice', () => ({+ selectMainModelConfig: vi.fn(() => model),+ selectParamsSlice: vi.fn(() => params),+}));++vi.mock('features/controlLayers/store/selectors', () => ({+ selectCanvasMetadata: vi.fn(() => ({})),+}));++vi.mock('features/metadata/util/modelFetchingHelpers', () => ({+ fetchModelConfigWithTypeGuard: vi.fn(() => Promise.resolve(model)),+}));++vi.mock('features/nodes/util/graph/generation/addImageToImage', () => ({+ addImageToImage: vi.fn(({ l2i }) => Promise.resolve(l2i)),+}));++vi.mock('features/nodes/util/graph/generation/addInpaint', () => ({+ addInpaint: vi.fn(({ l2i }) => Promise.resolve(l2i)),+}));++vi.mock('features/nodes/util/graph/generation/addOutpaint', () => ({+ addOutpaint: vi.fn(({ l2i }) => Promise.resolve(l2i)),+}));++vi.mock('features/nodes/util/graph/generation/addKrea2LoRAs', () => ({+ addKrea2LoRAs: vi.fn(),+}));++vi.mock('features/nodes/util/graph/generation/addNSFWChecker', () => ({+ addNSFWChecker: vi.fn((_g, node) => node),+}));++vi.mock('features/nodes/util/graph/generation/addWatermarker', () => ({+ addWatermarker: vi.fn((_g, node) => node),+}));++vi.mock('features/nodes/util/graph/generation/addTextToImage', () => ({+ addTextToImage: vi.fn(({ l2i }) => l2i),+}));++vi.mock('features/nodes/util/graph/graphBuilderUtils', () => ({+ selectCanvasOutputFields: vi.fn(() => ({})),+ selectPresetModifiedPrompts: vi.fn(() => ({+ positive: 'a prompt',+ negative: 'a negative prompt',+ })),+}));++vi.mock('features/ui/store/uiSelectors', () => ({+ selectActiveTab: vi.fn(() => 'generation'),+}));++vi.mock('services/api/types', async () => {+ const actual = await vi.importActual('services/api/types');+ return {+ ...actual,+ isNonRefinerMainModelConfig: vi.fn(() => true),+ };+});++import { addImageToImage } from './addImageToImage';+import { addInpaint } from './addInpaint';+import { addOutpaint } from './addOutpaint';+import { buildKrea2Graph } from './buildKrea2Graph';++type BuiltGraph = Awaited<ReturnType<typeof buildKrea2Graph>>['g'];++const buildTxt2Img = () =>+ buildKrea2Graph({+ generationMode: 'txt2img',+ manager: null,+ state: {+ system: { shouldUseNSFWChecker: false, shouldUseWatermarker: false },+ } as never,+ });++const buildCanvasMode = (generationMode: 'img2img' | 'inpaint' | 'outpaint') =>+ buildKrea2Graph({+ generationMode,+ manager: { id: 'manager' } as never,+ state: {+ system: { shouldUseNSFWChecker: false, shouldUseWatermarker: false },+ } as never,+ });++const nodeTypesOf = (g: BuiltGraph): string[] => Object.values(g.getGraph().nodes).map((n) => n.type);+const posConditioningEdge = (g: BuiltGraph) =>+ g.getGraph().edges.find((e) => e.destination.field === 'positive_conditioning');++describe('buildKrea2Graph', () => {+ afterEach(() => {+ nextId = 0;+ params = { ...defaultParams };+ model = { ...baseModel };+ });++ it('builds the core txt2img node chain', async () => {+ const { g } = await buildTxt2Img();+ const types = nodeTypesOf(g);+ expect(types).toContain('krea2_model_loader');+ expect(types).toContain('krea2_text_encoder');+ expect(types).toContain('krea2_denoise');+ // Krea-2 decodes with the Qwen-Image VAE node.+ expect(types).toContain('qwen_image_l2i');+ });++ it.each([+ ['img2img', addImageToImage],+ ['inpaint', addInpaint],+ ['outpaint', addOutpaint],+ ] as const)('builds the %s graph through its canvas integration', async (mode, integration) => {+ const { g } = await buildCanvasMode(mode);++ expect(integration).toHaveBeenCalledOnce();+ expect(nodeTypesOf(g)).toContain('qwen_image_i2l');+ expect((g.getMetadataNode() as unknown as Record<string, unknown>).generation_mode).toBe(`krea2_${mode}`);+ });++ describe('CFG gating (negative conditioning)', () => {+ // Krea-2 only adds a negative prompt + negative_conditioning edge when CFG is enabled (cfg_scale > 1).+ // The distilled Turbo checkpoint runs with CFG off (cfg_scale 1.0), so recording/encoding a negative+ // prompt would be wasted work.+ it('omits the negative prompt + edge when cfg_scale <= 1 (distilled Turbo default)', async () => {+ params = { ...defaultParams, cfgScale: 1 };+ const { g } = await buildTxt2Img();+ const graph = g.getGraph();+ const hasNegPromptNode = Object.keys(graph.nodes).some((id) => id.startsWith('neg_prompt:'));+ const hasNegEdge = graph.edges.some((e) => e.destination.field === 'negative_conditioning');+ expect(hasNegPromptNode).toBe(false);+ expect(hasNegEdge).toBe(false);+ });++ it('includes the negative prompt + edge when cfg_scale > 1 (Raw / CFG on)', async () => {+ params = { ...defaultParams, cfgScale: 4.5 };+ const { g } = await buildTxt2Img();+ const graph = g.getGraph();+ const hasNegPromptNode = Object.keys(graph.nodes).some((id) => id.startsWith('neg_prompt:'));+ const hasNegEdge = graph.edges.some((e) => e.destination.field === 'negative_conditioning');+ expect(hasNegPromptNode).toBe(true);+ expect(hasNegEdge).toBe(true);+ });+ });++ describe('conditioning enhancers', () => {+ it('inserts no enhancer nodes by default; positive conditioning flows straight to denoise', async () => {+ const { g } = await buildTxt2Img();+ const types = nodeTypesOf(g);+ expect(types).not.toContain('krea2_conditioning_rebalance');+ expect(types).not.toContain('krea2_seed_variance');+ // The edge into denoise.positive_conditioning comes directly from the text encoder.+ const edge = posConditioningEdge(g);+ expect(edge).toBeDefined();+ expect(edge!.source.node_id.startsWith('pos_prompt:')).toBe(true);+ });++ it('inserts the rebalance node and reroutes positive conditioning through it when enabled', async () => {+ params = { ...defaultParams, krea2RebalanceEnabled: true };+ const { g } = await buildTxt2Img();+ const types = nodeTypesOf(g);+ expect(types).toContain('krea2_conditioning_rebalance');+ expect(types).not.toContain('krea2_seed_variance');+ const edge = posConditioningEdge(g);+ expect(edge!.source.node_id.startsWith('krea2_rebalance:')).toBe(true);+ });++ it('inserts the seed-variance node when enabled with strength > 0', async () => {+ params = { ...defaultParams, krea2SeedVarianceEnabled: true, krea2SeedVarianceStrength: 0.5 };+ const { g } = await buildTxt2Img();+ expect(nodeTypesOf(g)).toContain('krea2_seed_variance');+ const edge = posConditioningEdge(g);+ expect(edge!.source.node_id.startsWith('krea2_seed_variance:')).toBe(true);+ });++ it('does not insert the seed-variance node when strength is 0 (a no-op)', async () => {+ params = { ...defaultParams, krea2SeedVarianceEnabled: true, krea2SeedVarianceStrength: 0 };+ const { g } = await buildTxt2Img();+ expect(nodeTypesOf(g)).not.toContain('krea2_seed_variance');+ });++ it('chains rebalance -> seed-variance -> denoise when both are enabled', async () => {+ params = {+ ...defaultParams,+ krea2RebalanceEnabled: true,+ krea2SeedVarianceEnabled: true,+ krea2SeedVarianceStrength: 0.5,+ };+ const { g } = await buildTxt2Img();+ const graph = g.getGraph();+ const types = nodeTypesOf(g);+ expect(types).toContain('krea2_conditioning_rebalance');+ expect(types).toContain('krea2_seed_variance');+ // rebalance -> seed_variance+ const rebalanceToSeed = graph.edges.find(+ (e) =>+ e.source.node_id.startsWith('krea2_rebalance:') && e.destination.node_id.startsWith('krea2_seed_variance:')+ );+ expect(rebalanceToSeed).toBeDefined();+ // seed_variance -> denoise.positive_conditioning+ const edge = posConditioningEdge(g);+ expect(edge!.source.node_id.startsWith('krea2_seed_variance:')).toBe(true);+ });+ });++ describe('standalone components for non-diffusers transformers', () => {+ // A single-file / GGUF transformer has no bundled VAE or encoder, so both standalone submodels are+ // required. A Diffusers pipeline bundles them, so it needs neither.+ it('throws when a single-file/GGUF transformer has no VAE selected', async () => {+ model = { ...baseModel, format: 'gguf_quantized' };+ params = { ...defaultParams, krea2VaeModel: null, krea2Qwen3VlEncoderModel: null };+ await expect(buildTxt2Img()).rejects.toThrow(/require a VAE/);+ });++ it('throws when a single-file/GGUF transformer has no Qwen3-VL encoder selected', async () => {+ model = { ...baseModel, format: 'gguf_quantized' };+ params = {+ ...defaultParams,+ krea2VaeModel: { key: 'vae', hash: 'h', name: 'VAE', base: 'qwen-image', type: 'vae' },+ krea2Qwen3VlEncoderModel: null,+ };+ await expect(buildTxt2Img()).rejects.toThrow(/require a Qwen3-VL encoder/);+ });++ it('passes the standalone submodels to the model loader when provided', async () => {+ model = { ...baseModel, format: 'gguf_quantized' };+ params = {+ ...defaultParams,+ krea2VaeModel: { key: 'vae', hash: 'h', name: 'VAE', base: 'qwen-image', type: 'vae' },+ krea2Qwen3VlEncoderModel: { key: 'enc', hash: 'h', name: 'Enc', base: 'any', type: 'qwen3_vl_encoder' },+ };+ const { g } = await buildTxt2Img();+ const loader = Object.values(g.getGraph().nodes).find((n) => n.type === 'krea2_model_loader') as+ | { vae_model?: { key: string }; qwen3_vl_encoder_model?: { key: string } }+ | undefined;+ expect(loader?.vae_model).toMatchObject({ key: 'vae' });+ expect(loader?.qwen3_vl_encoder_model).toMatchObject({ key: 'enc' });+ });+ });++ describe('metadata', () => {+ it('records the conditioning-enhancer settings and generation mode', async () => {+ params = {+ ...defaultParams,+ krea2RebalanceEnabled: true,+ krea2RebalanceMultiplier: 4,+ krea2SeedVarianceEnabled: false,+ };+ const { g } = await buildTxt2Img();+ const metadata = g.getMetadataNode() as unknown as Record<string, unknown>;+ expect(metadata.krea2_rebalance_enabled).toBe(true);+ expect(metadata.krea2_rebalance_multiplier).toBe(4);+ expect(metadata.krea2_seed_variance_enabled).toBe(false);+ expect(metadata.generation_mode).toBe('krea2_txt2img');+ });++ it('does not record a negative prompt for the CFG-off (Turbo) default', async () => {+ params = { ...defaultParams, cfgScale: 1 };+ const { g } = await buildTxt2Img();+ const metadata = g.getMetadataNode() as unknown as Record<string, unknown>;+ expect(metadata.negative_prompt).toBeUndefined();+ });+ });+});diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/generation/buildKrea2Graph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/generation/buildKrea2Graph.tsnew file mode 100644index 0000000000..7f208ea9d9--- /dev/null+++ b/invokeai/frontend/web/src/features/nodes/util/graph/generation/buildKrea2Graph.ts@@ -0,0 +1,252 @@+import { logger } from 'app/logging/logger';+import { getPrefixedId } from 'features/controlLayers/konva/util';+import { selectMainModelConfig, selectParamsSlice } from 'features/controlLayers/store/paramsSlice';+import { selectCanvasMetadata } from 'features/controlLayers/store/selectors';+import { fetchModelConfigWithTypeGuard } from 'features/metadata/util/modelFetchingHelpers';+import { addImageToImage } from 'features/nodes/util/graph/generation/addImageToImage';+import { addInpaint } from 'features/nodes/util/graph/generation/addInpaint';+import { addKrea2LoRAs } from 'features/nodes/util/graph/generation/addKrea2LoRAs';+import { addNSFWChecker } from 'features/nodes/util/graph/generation/addNSFWChecker';+import { addOutpaint } from 'features/nodes/util/graph/generation/addOutpaint';+import { addTextToImage } from 'features/nodes/util/graph/generation/addTextToImage';+import { addWatermarker } from 'features/nodes/util/graph/generation/addWatermarker';+import { Graph } from 'features/nodes/util/graph/generation/Graph';+import { selectCanvasOutputFields, selectPresetModifiedPrompts } from 'features/nodes/util/graph/graphBuilderUtils';+import type { GraphBuilderArg, GraphBuilderReturn, ImageOutputNodes } from 'features/nodes/util/graph/types';+import { selectActiveTab } from 'features/ui/store/uiSelectors';+import type { Invocation } from 'services/api/types';+import { isNonRefinerMainModelConfig } from 'services/api/types';+import type { Equals } from 'tsafe';+import { assert } from 'tsafe';++const log = logger('system');++export const buildKrea2Graph = async (arg: GraphBuilderArg): Promise<GraphBuilderReturn> => {+ const { generationMode, state, manager } = arg;++ log.debug({ generationMode, manager: manager?.id }, 'Building Krea-2 graph');++ const model = selectMainModelConfig(state);+ assert(model, 'No model selected');+ assert(model.base === 'krea-2', 'Selected model is not a Krea-2 model');++ const params = selectParamsSlice(state);+ // Krea-2-Turbo uses the standard CFG convention; cfg_scale defaults to 1.0 (no CFG) for the distilled model.+ const {+ cfgScale: cfg_scale,+ steps,+ krea2VaeModel,+ krea2Qwen3VlEncoderModel,+ krea2RebalanceEnabled,+ krea2RebalanceMultiplier,+ krea2RebalanceWeights,+ krea2SeedVarianceEnabled,+ krea2SeedVarianceStrength,+ krea2SeedVarianceRandomizePercent,+ } = params;++ // Krea-2 has no source field: a non-diffusers transformer (single-file checkpoint / GGUF) has no+ // bundled VAE or encoder, so both standalone submodels must be selected. (Also enforced in readiness.)+ if (model.format !== 'diffusers') {+ assert(krea2VaeModel, 'Krea-2 non-diffusers models require a VAE to be selected');+ assert(krea2Qwen3VlEncoderModel, 'Krea-2 non-diffusers models require a Qwen3-VL encoder to be selected');+ }++ const prompts = selectPresetModifiedPrompts(state);++ const g = new Graph(getPrefixedId('krea2_graph'));++ const modelLoader = g.addNode({+ type: 'krea2_model_loader',+ id: getPrefixedId('krea2_model_loader'),+ model,+ // Optional standalone submodels (used when the transformer is a single-file checkpoint/GGUF). When+ // unset, the loader extracts the VAE / Qwen3-VL encoder from the diffusers model.+ vae_model: krea2VaeModel ?? undefined,+ qwen3_vl_encoder_model: krea2Qwen3VlEncoderModel ?? undefined,+ });++ const positivePrompt = g.addNode({+ id: getPrefixedId('positive_prompt'),+ type: 'string',+ });+ const posCond = g.addNode({+ type: 'krea2_text_encoder',+ id: getPrefixedId('pos_prompt'),+ });++ // Krea-2 supports negative conditioning only when CFG is enabled (cfg_scale > 1).+ let negCond: Invocation<'krea2_text_encoder'> | null = null;+ if (cfg_scale > 1) {+ negCond = g.addNode({+ type: 'krea2_text_encoder',+ id: getPrefixedId('neg_prompt'),+ prompt: prompts.negative,+ });+ }++ const seed = g.addNode({+ id: getPrefixedId('seed'),+ type: 'integer',+ });+ const denoise = g.addNode({+ type: 'krea2_denoise',+ id: getPrefixedId('denoise_latents'),+ cfg_scale,+ steps,+ });+ // Krea-2 decodes with the Qwen-Image VAE, so reuse the Qwen-Image latents-to-image node.+ const l2i = g.addNode({+ type: 'qwen_image_l2i',+ id: getPrefixedId('l2i'),+ });++ g.addEdge(modelLoader, 'transformer', denoise, 'transformer');+ g.addEdge(modelLoader, 'qwen3_vl_encoder', posCond, 'qwen3_vl_encoder');+ g.addEdge(modelLoader, 'vae', l2i, 'vae');++ g.addEdge(positivePrompt, 'value', posCond, 'prompt');++ // Optional conditioning enhancers between the text encoder and denoise. Both default OFF (params), so+ // by default the conditioning flows straight through and stock Krea-2 behaviour is unchanged. Order:+ // rebalance (scale the signal toward the prompt) first, then seed variance (perturb for variety).+ if (krea2RebalanceEnabled) {+ const rebalance = g.addNode({+ type: 'krea2_conditioning_rebalance',+ id: getPrefixedId('krea2_rebalance'),+ multiplier: krea2RebalanceMultiplier,+ per_layer_weights: krea2RebalanceWeights,+ });+ g.addEdge(posCond, 'conditioning', rebalance, 'conditioning');++ if (krea2SeedVarianceEnabled && krea2SeedVarianceStrength > 0) {+ const seedVariance = g.addNode({+ type: 'krea2_seed_variance',+ id: getPrefixedId('krea2_seed_variance'),+ strength: krea2SeedVarianceStrength,+ randomize_percent: krea2SeedVarianceRandomizePercent,+ });+ g.addEdge(rebalance, 'conditioning', seedVariance, 'conditioning');+ g.addEdge(seed, 'value', seedVariance, 'variance_seed');+ g.addEdge(seedVariance, 'conditioning', denoise, 'positive_conditioning');+ } else {+ g.addEdge(rebalance, 'conditioning', denoise, 'positive_conditioning');+ }+ } else if (krea2SeedVarianceEnabled && krea2SeedVarianceStrength > 0) {+ const seedVariance = g.addNode({+ type: 'krea2_seed_variance',+ id: getPrefixedId('krea2_seed_variance'),+ strength: krea2SeedVarianceStrength,+ randomize_percent: krea2SeedVarianceRandomizePercent,+ });+ g.addEdge(posCond, 'conditioning', seedVariance, 'conditioning');+ g.addEdge(seed, 'value', seedVariance, 'variance_seed');+ g.addEdge(seedVariance, 'conditioning', denoise, 'positive_conditioning');+ } else {+ g.addEdge(posCond, 'conditioning', denoise, 'positive_conditioning');+ }++ if (negCond !== null) {+ g.addEdge(modelLoader, 'qwen3_vl_encoder', negCond, 'qwen3_vl_encoder');+ g.addEdge(negCond, 'conditioning', denoise, 'negative_conditioning');+ }++ g.addEdge(seed, 'value', denoise, 'seed');+ g.addEdge(denoise, 'latents', l2i, 'latents');++ // Apply any enabled Krea-2 LoRAs (reroutes transformer + Qwen3-VL encoder through the collection loader).+ addKrea2LoRAs(state, g, denoise, modelLoader, posCond, negCond);++ const modelConfig = await fetchModelConfigWithTypeGuard(model.key, isNonRefinerMainModelConfig);+ assert(modelConfig.base === 'krea-2');++ g.upsertMetadata({+ cfg_scale,+ model: Graph.getModelMetadataField(modelConfig),+ steps,+ // Standalone submodels (used for single-file / GGUF transformers) - recorded so they recall.+ vae: krea2VaeModel ?? undefined,+ qwen3_vl_encoder: krea2Qwen3VlEncoderModel ?? undefined,+ // Conditioning enhancer settings (default off) - recorded so they recall.+ krea2_seed_variance_enabled: krea2SeedVarianceEnabled,+ krea2_seed_variance_strength: krea2SeedVarianceStrength,+ krea2_seed_variance_randomize_percent: krea2SeedVarianceRandomizePercent,+ krea2_rebalance_enabled: krea2RebalanceEnabled,+ krea2_rebalance_multiplier: krea2RebalanceMultiplier,+ krea2_rebalance_weights: krea2RebalanceWeights,+ });+ // Only record a negative prompt when CFG is enabled (cfg_scale > 1). Krea-2-Turbo runs with CFG+ // disabled by default, in which case there is no negative conditioning - recording it would surface a+ // spurious (often empty) negative prompt on metadata recall.+ if (cfg_scale > 1) {+ g.upsertMetadata({ negative_prompt: prompts.negative });+ }+ g.addEdgeToMetadata(seed, 'value', 'seed');+ g.addEdgeToMetadata(positivePrompt, 'value', 'positive_prompt');++ let canvasOutput: Invocation<ImageOutputNodes> = l2i;++ if (generationMode === 'txt2img') {+ canvasOutput = addTextToImage({ g, state, denoise, l2i });+ g.upsertMetadata({ generation_mode: 'krea2_txt2img' });+ } else if (generationMode === 'img2img') {+ assert(manager !== null);+ const i2l = g.addNode({ type: 'qwen_image_i2l', id: getPrefixedId('qwen_image_i2l') });+ canvasOutput = await addImageToImage({ g, state, manager, denoise, l2i, i2l, vaeSource: modelLoader });+ g.upsertMetadata({ generation_mode: 'krea2_img2img' });+ } else if (generationMode === 'inpaint') {+ assert(manager !== null);+ const i2l = g.addNode({ type: 'qwen_image_i2l', id: getPrefixedId('qwen_image_i2l') });+ canvasOutput = await addInpaint({+ g,+ state,+ manager,+ l2i,+ i2l,+ denoise,+ vaeSource: modelLoader,+ modelLoader,+ seed,+ });+ g.upsertMetadata({ generation_mode: 'krea2_inpaint' });+ } else if (generationMode === 'outpaint') {+ assert(manager !== null);+ const i2l = g.addNode({ type: 'qwen_image_i2l', id: getPrefixedId('qwen_image_i2l') });+ canvasOutput = await addOutpaint({+ g,+ state,+ manager,+ l2i,+ i2l,+ denoise,+ vaeSource: modelLoader,+ modelLoader,+ seed,+ });+ g.upsertMetadata({ generation_mode: 'krea2_outpaint' });+ } else {+ assert<Equals<typeof generationMode, never>>(false);+ }++ if (state.system.shouldUseNSFWChecker) {+ canvasOutput = addNSFWChecker(g, canvasOutput);+ }++ if (state.system.shouldUseWatermarker) {+ canvasOutput = addWatermarker(g, canvasOutput);+ }++ g.updateNode(canvasOutput, selectCanvasOutputFields(state));++ if (selectActiveTab(state) === 'canvas') {+ g.upsertMetadata(selectCanvasMetadata(state));+ }++ g.setMetadataReceivingNode(canvasOutput);++ return {+ g,+ seed,+ positivePrompt,+ };+};diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/graphBuilderUtils.ts b/invokeai/frontend/web/src/features/nodes/util/graph/graphBuilderUtils.tsindex 9d5f165ef7..555d7dc093 100644--- a/invokeai/frontend/web/src/features/nodes/util/graph/graphBuilderUtils.ts+++ b/invokeai/frontend/web/src/features/nodes/util/graph/graphBuilderUtils.ts@@ -209,17 +209,17 @@ export const getInfill = (export const CANVAS_OUTPUT_PREFIX = 'canvas_output';-export const isMainModelWithoutUnet = (modelLoader: Invocation<MainModelLoaderNodes>) => {- return (- modelLoader.type === 'flux_model_loader' ||- modelLoader.type === 'flux2_klein_model_loader' ||- modelLoader.type === 'sd3_model_loader' ||- modelLoader.type === 'cogview4_model_loader' ||- modelLoader.type === 'qwen_image_model_loader' ||- modelLoader.type === 'z_image_model_loader' ||- modelLoader.type === 'anima_model_loader' ||- modelLoader.type === 'wan_model_loader'- );+// Only the classic SD/SDXL loaders expose a `unet` output; every other main-model loader (FLUX,+// FLUX.2, SD3, CogView4, Qwen-Image, Z-Image, Krea-2, Anima) is transformer-based and has no `unet`.+// Defining the predicate by this small allow-list means any newly added transformer loader is treated+// as unet-less automatically, and the negated branch narrows `modelLoader` to the unet-bearing loaders+// so `addEdge(modelLoader, 'unet', ...)` type-checks.+type MainModelLoaderWithUnetNodes = 'main_model_loader' | 'sdxl_model_loader';++export const isMainModelWithoutUnet = (+ modelLoader: Invocation<MainModelLoaderNodes>+): modelLoader is Invocation<Exclude<MainModelLoaderNodes, MainModelLoaderWithUnetNodes>> => {+ return modelLoader.type !== 'main_model_loader' && modelLoader.type !== 'sdxl_model_loader';};export const isCanvasOutputNodeId = (nodeId: string) => nodeId.split(':')[0] === CANVAS_OUTPUT_PREFIX;@@ -267,7 +267,8 @@ export const getDenoisingStartAndEnd = (state: RootState): { denoising_start: nucase 'cogview4':case 'qwen-image':case 'wan':- case 'z-image': {+ case 'z-image':+ case 'krea-2': {return {denoising_start: 1 - denoisingStrength,denoising_end: 1,diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/types.ts b/invokeai/frontend/web/src/features/nodes/util/graph/types.tsindex a6bded54fc..09c0304a8b 100644--- a/invokeai/frontend/web/src/features/nodes/util/graph/types.ts+++ b/invokeai/frontend/web/src/features/nodes/util/graph/types.ts@@ -51,6 +51,7 @@ export type DenoiseLatentsNodes =| 'cogview4_denoise'| 'qwen_image_denoise'| 'z_image_denoise'+ | 'krea2_denoise'| 'anima_denoise'| 'wan_denoise';@@ -63,6 +64,7 @@ export type MainModelLoaderNodes =| 'cogview4_model_loader'| 'qwen_image_model_loader'| 'z_image_model_loader'+ | 'krea2_model_loader'| 'anima_model_loader'| 'wan_model_loader';diff --git a/invokeai/frontend/web/src/features/parameters/components/Advanced/ParamKrea2ModelSelects.tsx b/invokeai/frontend/web/src/features/parameters/components/Advanced/ParamKrea2ModelSelects.tsxnew file mode 100644index 0000000000..c717aba4d0--- /dev/null+++ b/invokeai/frontend/web/src/features/parameters/components/Advanced/ParamKrea2ModelSelects.tsx@@ -0,0 +1,116 @@+import { Combobox, FormControl, FormLabel } from '@invoke-ai/ui-library';+import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';+import { useModelCombobox } from 'common/hooks/useModelCombobox';+import {+ krea2Qwen3VlEncoderModelSelected,+ krea2VaeModelSelected,+ selectKrea2Qwen3VlEncoderModel,+ selectKrea2VaeModel,+} from 'features/controlLayers/store/paramsSlice';+import { zModelIdentifierField } from 'features/nodes/types/common';+import { memo, useCallback, useMemo } from 'react';+import { useTranslation } from 'react-i18next';+import { useAnimaVAEModels, useQwen3VLEncoderModels, useQwenImageVAEModels } from 'services/api/hooks/modelsByType';+import type { Qwen3VLEncoderModelConfig, VAEModelConfig } from 'services/api/types';++/**+ * Krea-2 VAE Model Select - Krea-2 uses the Qwen-Image VAE (16-channel). Optional override used when the+ * transformer is a single-file checkpoint/GGUF without a bundled VAE.+ */+const ParamKrea2VaeModelSelect = memo(() => {+ const dispatch = useAppDispatch();+ const { t } = useTranslation();+ const krea2VaeModel = useAppSelector(selectKrea2VaeModel);+ // Krea-2 / Qwen-Image / Anima share the identical AutoencoderKLQwenImage VAE. A standalone+ // qwen_image_vae.safetensors is classified as either base (the weights are indistinguishable), so+ // accept both here.+ const [qwenImageVaes, { isLoading: isLoadingQwen }] = useQwenImageVAEModels();+ const [animaVaes, { isLoading: isLoadingAnima }] = useAnimaVAEModels();+ const modelConfigs = useMemo(() => [...qwenImageVaes, ...animaVaes], [qwenImageVaes, animaVaes]);+ const isLoading = isLoadingQwen || isLoadingAnima;++ const _onChange = useCallback(+ (model: VAEModelConfig | null) => {+ dispatch(krea2VaeModelSelected(model ? zModelIdentifierField.parse(model) : null));+ },+ [dispatch]+ );++ const { options, value, onChange, noOptionsMessage } = useModelCombobox({+ modelConfigs,+ onChange: _onChange,+ selectedModel: krea2VaeModel,+ isLoading,+ });++ return (+ <FormControl minW={0} flexGrow={1} gap={2}>+ <FormLabel m={0}>{t('modelManager.krea2Vae')}</FormLabel>+ <Combobox+ value={value}+ options={options}+ onChange={onChange}+ noOptionsMessage={noOptionsMessage}+ isClearable+ placeholder={t('modelManager.krea2VaePlaceholder')}+ />+ </FormControl>+ );+});++ParamKrea2VaeModelSelect.displayName = 'ParamKrea2VaeModelSelect';++/**+ * Krea-2 Qwen3-VL Encoder Model Select - optional standalone encoder used when the transformer is a+ * single-file checkpoint/GGUF without a bundled encoder.+ */+const ParamKrea2Qwen3VlEncoderModelSelect = memo(() => {+ const dispatch = useAppDispatch();+ const { t } = useTranslation();+ const krea2Qwen3VlEncoderModel = useAppSelector(selectKrea2Qwen3VlEncoderModel);+ const [modelConfigs, { isLoading }] = useQwen3VLEncoderModels();++ const _onChange = useCallback(+ (model: Qwen3VLEncoderModelConfig | null) => {+ dispatch(krea2Qwen3VlEncoderModelSelected(model ? zModelIdentifierField.parse(model) : null));+ },+ [dispatch]+ );++ const { options, value, onChange, noOptionsMessage } = useModelCombobox({+ modelConfigs,+ onChange: _onChange,+ selectedModel: krea2Qwen3VlEncoderModel,+ isLoading,+ });++ return (+ <FormControl minW={0} flexGrow={1} gap={2}>+ <FormLabel m={0}>{t('modelManager.krea2Qwen3VlEncoder')}</FormLabel>+ <Combobox+ value={value}+ options={options}+ onChange={onChange}+ noOptionsMessage={noOptionsMessage}+ isClearable+ placeholder={t('modelManager.krea2Qwen3VlEncoderPlaceholder')}+ />+ </FormControl>+ );+});++ParamKrea2Qwen3VlEncoderModelSelect.displayName = 'ParamKrea2Qwen3VlEncoderModelSelect';++/**+ * Combined component for Krea-2 standalone submodel selection (VAE + Qwen3-VL encoder).+ */+const ParamKrea2ModelSelects = () => {+ return (+ <>+ <ParamKrea2VaeModelSelect />+ <ParamKrea2Qwen3VlEncoderModelSelect />+ </>+ );+};++export default memo(ParamKrea2ModelSelects);diff --git a/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2EnhancersSettings.tsx b/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2EnhancersSettings.tsxnew file mode 100644index 0000000000..8e09b34510--- /dev/null+++ b/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2EnhancersSettings.tsx@@ -0,0 +1,38 @@+import { Divider, Flex } from '@invoke-ai/ui-library';+import { useAppSelector } from 'app/store/storeHooks';+import { selectKrea2RebalanceEnabled, selectKrea2SeedVarianceEnabled } from 'features/controlLayers/store/paramsSlice';+import { memo } from 'react';++import ParamKrea2RebalanceEnabled from './ParamKrea2RebalanceEnabled';+import ParamKrea2RebalanceMultiplier from './ParamKrea2RebalanceMultiplier';+import ParamKrea2RebalanceWeights from './ParamKrea2RebalanceWeights';+import ParamKrea2SeedVarianceEnabled from './ParamKrea2SeedVarianceEnabled';+import ParamKrea2SeedVarianceRandomizePercent from './ParamKrea2SeedVarianceRandomizePercent';+import ParamKrea2SeedVarianceStrength from './ParamKrea2SeedVarianceStrength';++const ParamKrea2EnhancersSettings = () => {+ const rebalanceEnabled = useAppSelector(selectKrea2RebalanceEnabled);+ const seedVarianceEnabled = useAppSelector(selectKrea2SeedVarianceEnabled);++ return (+ <Flex gap={4} flexDir="column" w="full">+ <ParamKrea2RebalanceEnabled />+ {rebalanceEnabled && (+ <>+ <ParamKrea2RebalanceMultiplier />+ <ParamKrea2RebalanceWeights />+ </>+ )}+ <Divider />+ <ParamKrea2SeedVarianceEnabled />+ {seedVarianceEnabled && (+ <>+ <ParamKrea2SeedVarianceStrength />+ <ParamKrea2SeedVarianceRandomizePercent />+ </>+ )}+ </Flex>+ );+};++export default memo(ParamKrea2EnhancersSettings);diff --git a/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2RebalanceEnabled.tsx b/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2RebalanceEnabled.tsxnew file mode 100644index 0000000000..85d879a79c--- /dev/null+++ b/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2RebalanceEnabled.tsx@@ -0,0 +1,31 @@+import { FormControl, FormLabel, Switch } from '@invoke-ai/ui-library';+import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';+import { InformationalPopover } from 'common/components/InformationalPopover/InformationalPopover';+import { selectKrea2RebalanceEnabled, setKrea2RebalanceEnabled } from 'features/controlLayers/store/paramsSlice';+import type { ChangeEvent } from 'react';+import { memo, useCallback } from 'react';+import { useTranslation } from 'react-i18next';++const ParamKrea2RebalanceEnabled = () => {+ const { t } = useTranslation();+ const enabled = useAppSelector(selectKrea2RebalanceEnabled);+ const dispatch = useAppDispatch();++ const handleChange = useCallback(+ (e: ChangeEvent<HTMLInputElement>) => {+ dispatch(setKrea2RebalanceEnabled(e.target.checked));+ },+ [dispatch]+ );++ return (+ <FormControl>+ <InformationalPopover feature="krea2ConditioningRebalance">+ <FormLabel>{t('parameters.krea2RebalanceEnabled')}</FormLabel>+ </InformationalPopover>+ <Switch isChecked={enabled} onChange={handleChange} />+ </FormControl>+ );+};++export default memo(ParamKrea2RebalanceEnabled);diff --git a/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2RebalanceMultiplier.tsx b/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2RebalanceMultiplier.tsxnew file mode 100644index 0000000000..a32ab73b30--- /dev/null+++ b/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2RebalanceMultiplier.tsx@@ -0,0 +1,54 @@+import { CompositeNumberInput, CompositeSlider, FormControl, FormLabel } from '@invoke-ai/ui-library';+import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';+import { InformationalPopover } from 'common/components/InformationalPopover/InformationalPopover';+import { selectKrea2RebalanceMultiplier, setKrea2RebalanceMultiplier } from 'features/controlLayers/store/paramsSlice';+import { memo, useCallback } from 'react';+import { useTranslation } from 'react-i18next';++const CONSTRAINTS = {+ initial: 4,+ sliderMin: 0,+ sliderMax: 10,+ numberInputMin: 0,+ numberInputMax: 20,+ fineStep: 0.1,+ coarseStep: 0.5,+};++const MARKS = [0, 2.5, 5, 7.5, 10];++const ParamKrea2RebalanceMultiplier = () => {+ const multiplier = useAppSelector(selectKrea2RebalanceMultiplier);+ const dispatch = useAppDispatch();+ const { t } = useTranslation();+ const onChange = useCallback((v: number) => dispatch(setKrea2RebalanceMultiplier(v)), [dispatch]);++ return (+ <FormControl>+ <InformationalPopover feature="krea2RebalanceMultiplier">+ <FormLabel>{t('parameters.krea2RebalanceMultiplier')}</FormLabel>+ </InformationalPopover>+ <CompositeSlider+ value={multiplier}+ defaultValue={CONSTRAINTS.initial}+ min={CONSTRAINTS.sliderMin}+ max={CONSTRAINTS.sliderMax}+ step={CONSTRAINTS.coarseStep}+ fineStep={CONSTRAINTS.fineStep}+ onChange={onChange}+ marks={MARKS}+ />+ <CompositeNumberInput+ value={multiplier}+ defaultValue={CONSTRAINTS.initial}+ min={CONSTRAINTS.numberInputMin}+ max={CONSTRAINTS.numberInputMax}+ step={CONSTRAINTS.coarseStep}+ fineStep={CONSTRAINTS.fineStep}+ onChange={onChange}+ />+ </FormControl>+ );+};++export default memo(ParamKrea2RebalanceMultiplier);diff --git a/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2RebalanceWeights.test.ts b/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2RebalanceWeights.test.tsnew file mode 100644index 0000000000..69529cbd9b--- /dev/null+++ b/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2RebalanceWeights.test.ts@@ -0,0 +1,17 @@+import { readFileSync } from 'node:fs';++import { describe, expect, it } from 'vitest';++const source = readFileSync(new URL('./ParamKrea2RebalanceWeights.tsx', import.meta.url), 'utf8');+const english = JSON.parse(readFileSync(new URL('../../../../../public/locales/en.json', import.meta.url), 'utf8')) as {+ parameters?: Record<string, string>;+};++describe('ParamKrea2RebalanceWeights localisation', () => {+ it('uses a translated placeholder with an English locale entry', () => {+ expect(source).toContain("placeholder={t('parameters.krea2RebalanceWeightsPlaceholder')}");+ expect(english.parameters?.krea2RebalanceWeightsPlaceholder).toBe(+ '1.0,1.0,1.0,1.0,1.0,1.0,1.0,2.5,5.0,1.1,4.0,1.0'+ );+ });+});diff --git a/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2RebalanceWeights.tsx b/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2RebalanceWeights.tsxnew file mode 100644index 0000000000..b9e4f69fd0--- /dev/null+++ b/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2RebalanceWeights.tsx@@ -0,0 +1,39 @@+import { FormControl, FormLabel, Input } from '@invoke-ai/ui-library';+import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';+import { InformationalPopover } from 'common/components/InformationalPopover/InformationalPopover';+import {+ isValidKrea2RebalanceWeights,+ selectKrea2RebalanceWeights,+ setKrea2RebalanceWeights,+} from 'features/controlLayers/store/paramsSlice';+import type { ChangeEvent } from 'react';+import { memo, useCallback } from 'react';+import { useTranslation } from 'react-i18next';++const ParamKrea2RebalanceWeights = () => {+ const { t } = useTranslation();+ const weights = useAppSelector(selectKrea2RebalanceWeights);+ const dispatch = useAppDispatch();++ const onChange = useCallback(+ (e: ChangeEvent<HTMLInputElement>) => {+ dispatch(setKrea2RebalanceWeights(e.target.value));+ },+ [dispatch]+ );++ // Surface the same requirement readiness enforces (exactly 12 finite numbers), so an invalid string that+ // blocks generation is visible in the field rather than only in the queue-blocked reason.+ const isInvalid = !isValidKrea2RebalanceWeights(weights);++ return (+ <FormControl orientation="vertical" isInvalid={isInvalid}>+ <InformationalPopover feature="krea2RebalanceWeights">+ <FormLabel>{t('parameters.krea2RebalanceWeights')}</FormLabel>+ </InformationalPopover>+ <Input value={weights} onChange={onChange} placeholder={t('parameters.krea2RebalanceWeightsPlaceholder')} />+ </FormControl>+ );+};++export default memo(ParamKrea2RebalanceWeights);diff --git a/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2SeedVarianceEnabled.tsx b/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2SeedVarianceEnabled.tsxnew file mode 100644index 0000000000..a8e5e6875d--- /dev/null+++ b/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2SeedVarianceEnabled.tsx@@ -0,0 +1,31 @@+import { FormControl, FormLabel, Switch } from '@invoke-ai/ui-library';+import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';+import { InformationalPopover } from 'common/components/InformationalPopover/InformationalPopover';+import { selectKrea2SeedVarianceEnabled, setKrea2SeedVarianceEnabled } from 'features/controlLayers/store/paramsSlice';+import type { ChangeEvent } from 'react';+import { memo, useCallback } from 'react';+import { useTranslation } from 'react-i18next';++const ParamKrea2SeedVarianceEnabled = () => {+ const { t } = useTranslation();+ const enabled = useAppSelector(selectKrea2SeedVarianceEnabled);+ const dispatch = useAppDispatch();++ const handleChange = useCallback(+ (e: ChangeEvent<HTMLInputElement>) => {+ dispatch(setKrea2SeedVarianceEnabled(e.target.checked));+ },+ [dispatch]+ );++ return (+ <FormControl>+ <InformationalPopover feature="krea2SeedVarianceEnhancer">+ <FormLabel>{t('parameters.seedVarianceEnabled')}</FormLabel>+ </InformationalPopover>+ <Switch isChecked={enabled} onChange={handleChange} />+ </FormControl>+ );+};++export default memo(ParamKrea2SeedVarianceEnabled);diff --git a/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2SeedVarianceRandomizePercent.tsx b/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2SeedVarianceRandomizePercent.tsxnew file mode 100644index 0000000000..90b9f88840--- /dev/null+++ b/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2SeedVarianceRandomizePercent.tsx@@ -0,0 +1,57 @@+import { CompositeNumberInput, CompositeSlider, FormControl, FormLabel } from '@invoke-ai/ui-library';+import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';+import { InformationalPopover } from 'common/components/InformationalPopover/InformationalPopover';+import {+ selectKrea2SeedVarianceRandomizePercent,+ setKrea2SeedVarianceRandomizePercent,+} from 'features/controlLayers/store/paramsSlice';+import { memo, useCallback } from 'react';+import { useTranslation } from 'react-i18next';++const CONSTRAINTS = {+ initial: 50,+ sliderMin: 0,+ sliderMax: 100,+ numberInputMin: 0,+ numberInputMax: 100,+ fineStep: 1,+ coarseStep: 10,+};++const MARKS = [0, 25, 50, 75, 100];++const ParamKrea2SeedVarianceRandomizePercent = () => {+ const randomizePercent = useAppSelector(selectKrea2SeedVarianceRandomizePercent);+ const dispatch = useAppDispatch();+ const { t } = useTranslation();+ const onChange = useCallback((v: number) => dispatch(setKrea2SeedVarianceRandomizePercent(v)), [dispatch]);++ return (+ <FormControl>+ <InformationalPopover feature="krea2SeedVarianceRandomizePercent">+ <FormLabel>{t('parameters.seedVarianceRandomizePercent')}</FormLabel>+ </InformationalPopover>+ <CompositeSlider+ value={randomizePercent}+ defaultValue={CONSTRAINTS.initial}+ min={CONSTRAINTS.sliderMin}+ max={CONSTRAINTS.sliderMax}+ step={CONSTRAINTS.coarseStep}+ fineStep={CONSTRAINTS.fineStep}+ onChange={onChange}+ marks={MARKS}+ />+ <CompositeNumberInput+ value={randomizePercent}+ defaultValue={CONSTRAINTS.initial}+ min={CONSTRAINTS.numberInputMin}+ max={CONSTRAINTS.numberInputMax}+ step={CONSTRAINTS.coarseStep}+ fineStep={CONSTRAINTS.fineStep}+ onChange={onChange}+ />+ </FormControl>+ );+};++export default memo(ParamKrea2SeedVarianceRandomizePercent);diff --git a/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2SeedVarianceStrength.tsx b/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2SeedVarianceStrength.tsxnew file mode 100644index 0000000000..6af61b22bc--- /dev/null+++ b/invokeai/frontend/web/src/features/parameters/components/Krea2Enhancers/ParamKrea2SeedVarianceStrength.tsx@@ -0,0 +1,57 @@+import { CompositeNumberInput, CompositeSlider, FormControl, FormLabel } from '@invoke-ai/ui-library';+import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';+import { InformationalPopover } from 'common/components/InformationalPopover/InformationalPopover';+import {+ selectKrea2SeedVarianceStrength,+ setKrea2SeedVarianceStrength,+} from 'features/controlLayers/store/paramsSlice';+import { memo, useCallback } from 'react';+import { useTranslation } from 'react-i18next';++const CONSTRAINTS = {+ initial: 0.1,+ sliderMin: 0,+ sliderMax: 1,+ numberInputMin: 0,+ numberInputMax: 2,+ fineStep: 0.01,+ coarseStep: 0.05,+};++const MARKS = [0, 0.25, 0.5, 0.75, 1];++const ParamKrea2SeedVarianceStrength = () => {+ const strength = useAppSelector(selectKrea2SeedVarianceStrength);+ const dispatch = useAppDispatch();+ const { t } = useTranslation();+ const onChange = useCallback((v: number) => dispatch(setKrea2SeedVarianceStrength(v)), [dispatch]);++ return (+ <FormControl>+ <InformationalPopover feature="krea2SeedVarianceStrength">+ <FormLabel>{t('parameters.seedVarianceStrength')}</FormLabel>+ </InformationalPopover>+ <CompositeSlider+ value={strength}+ defaultValue={CONSTRAINTS.initial}+ min={CONSTRAINTS.sliderMin}+ max={CONSTRAINTS.sliderMax}+ step={CONSTRAINTS.coarseStep}+ fineStep={CONSTRAINTS.fineStep}+ onChange={onChange}+ marks={MARKS}+ />+ <CompositeNumberInput+ value={strength}+ defaultValue={CONSTRAINTS.initial}+ min={CONSTRAINTS.numberInputMin}+ max={CONSTRAINTS.numberInputMax}+ step={CONSTRAINTS.coarseStep}+ fineStep={CONSTRAINTS.fineStep}+ onChange={onChange}+ />+ </FormControl>+ );+};++export default memo(ParamKrea2SeedVarianceStrength);diff --git a/invokeai/frontend/web/src/features/parameters/util/optimalDimension.ts b/invokeai/frontend/web/src/features/parameters/util/optimalDimension.tsindex 6b339c0c35..d765c168e2 100644--- a/invokeai/frontend/web/src/features/parameters/util/optimalDimension.ts+++ b/invokeai/frontend/web/src/features/parameters/util/optimalDimension.ts@@ -20,6 +20,7 @@ export const getOptimalDimension = (base?: BaseModelType | null): number => {case 'cogview4':case 'qwen-image':case 'z-image':+ case 'krea-2':case 'ideogram-4':case 'anima':default:@@ -87,6 +88,7 @@ export const getGridSize = (base?: BaseModelType | null): number => {case 'qwen-image':case 'wan':case 'z-image':+ case 'krea-2':case 'ideogram-4':return 16;case 'sd-1':diff --git a/invokeai/frontend/web/src/features/queue/hooks/useEnqueueCanvas.ts b/invokeai/frontend/web/src/features/queue/hooks/useEnqueueCanvas.tsindex 9456637cb3..457dd2ccff 100644--- a/invokeai/frontend/web/src/features/queue/hooks/useEnqueueCanvas.ts+++ b/invokeai/frontend/web/src/features/queue/hooks/useEnqueueCanvas.ts@@ -18,6 +18,7 @@ import { buildCogView4Graph } from 'features/nodes/util/graph/generation/buildCoimport { buildExternalGraph } from 'features/nodes/util/graph/generation/buildExternalGraph';import { buildFLUXGraph } from 'features/nodes/util/graph/generation/buildFLUXGraph';import { buildIdeogram4Graph } from 'features/nodes/util/graph/generation/buildIdeogram4Graph';+import { buildKrea2Graph } from 'features/nodes/util/graph/generation/buildKrea2Graph';import { buildQwenImageGraph } from 'features/nodes/util/graph/generation/buildQwenImageGraph';import { buildSD1Graph } from 'features/nodes/util/graph/generation/buildSD1Graph';import { buildSD3Graph } from 'features/nodes/util/graph/generation/buildSD3Graph';@@ -71,6 +72,8 @@ const enqueueCanvas = async (store: AppStore, canvasManager: CanvasManager, prepreturn await buildQwenImageGraph(graphBuilderArg);case 'z-image':return await buildZImageGraph(graphBuilderArg);+ case 'krea-2':+ return await buildKrea2Graph(graphBuilderArg);case 'ideogram-4':return await buildIdeogram4Graph(graphBuilderArg);case 'external':diff --git a/invokeai/frontend/web/src/features/queue/hooks/useEnqueueGenerate.ts b/invokeai/frontend/web/src/features/queue/hooks/useEnqueueGenerate.tsindex a80e3f6a6a..81d755055e 100644--- a/invokeai/frontend/web/src/features/queue/hooks/useEnqueueGenerate.ts+++ b/invokeai/frontend/web/src/features/queue/hooks/useEnqueueGenerate.ts@@ -16,6 +16,7 @@ import { buildCogView4Graph } from 'features/nodes/util/graph/generation/buildCoimport { buildExternalGraph } from 'features/nodes/util/graph/generation/buildExternalGraph';import { buildFLUXGraph } from 'features/nodes/util/graph/generation/buildFLUXGraph';import { buildIdeogram4Graph } from 'features/nodes/util/graph/generation/buildIdeogram4Graph';+import { buildKrea2Graph } from 'features/nodes/util/graph/generation/buildKrea2Graph';import { buildQwenImageGraph } from 'features/nodes/util/graph/generation/buildQwenImageGraph';import { buildSD1Graph } from 'features/nodes/util/graph/generation/buildSD1Graph';import { buildSD3Graph } from 'features/nodes/util/graph/generation/buildSD3Graph';@@ -64,6 +65,8 @@ const enqueueGenerate = async (store: AppStore, prepend: boolean) => {return await buildQwenImageGraph(graphBuilderArg);case 'z-image':return await buildZImageGraph(graphBuilderArg);+ case 'krea-2':+ return await buildKrea2Graph(graphBuilderArg);case 'ideogram-4':return await buildIdeogram4Graph(graphBuilderArg);case 'external':diff --git a/invokeai/frontend/web/src/features/queue/store/readiness.ts b/invokeai/frontend/web/src/features/queue/store/readiness.tsindex 351a62df4b..bf2620a30b 100644--- a/invokeai/frontend/web/src/features/queue/store/readiness.ts+++ b/invokeai/frontend/web/src/features/queue/store/readiness.ts@@ -8,7 +8,11 @@ import { useAssertSingleton } from 'common/hooks/useAssertSingleton';import { debounce, groupBy, upperFirst } from 'es-toolkit/compat';import { useCanvasManagerSafe } from 'features/controlLayers/contexts/CanvasManagerProviderGate';import { selectAddedLoRAs } from 'features/controlLayers/store/lorasSlice';-import { selectMainModelConfig, selectParamsSlice } from 'features/controlLayers/store/paramsSlice';+import {+ isValidKrea2RebalanceWeights,+ selectMainModelConfig,+ selectParamsSlice,+} from 'features/controlLayers/store/paramsSlice';import { selectRefImagesSlice } from 'features/controlLayers/store/refImagesSlice';import { selectCanvasSlice } from 'features/controlLayers/store/selectors';import type { CanvasState, LoRA, ParamsState, RefImagesState } from 'features/controlLayers/store/types';@@ -337,6 +341,27 @@ export const getReasonsWhyCannotEnqueueGenerateTab = (arg: {}}+ if (model?.base === 'krea-2' && model.format !== 'diffusers') {+ // Non-diffusers Krea-2 (single-file checkpoint / GGUF) ships only the transformer, so a standalone+ // VAE and Qwen3-VL encoder must be selected. Diffusers models bundle them, so they're optional there.+ if (!params.krea2VaeModel) {+ reasons.push({ content: i18n.t('parameters.invoke.noKrea2VaeModelSelected') });+ }+ if (!params.krea2Qwen3VlEncoderModel) {+ reasons.push({ content: i18n.t('parameters.invoke.noKrea2Qwen3VlEncoderModelSelected') });+ }+ }++ if (+ model?.base === 'krea-2' &&+ params.krea2RebalanceEnabled &&+ !isValidKrea2RebalanceWeights(params.krea2RebalanceWeights)+ ) {+ // The rebalance weights are free text forwarded straight to the backend; block generation before an+ // invalid string (wrong count / nonnumeric / nan / inf) reaches the failing _parse_weights().+ reasons.push({ content: i18n.t('parameters.invoke.krea2RebalanceWeightsInvalid') });+ }+if (model?.base === 'anima') {if (!params.animaVaeModel) {reasons.push({ content: i18n.t('parameters.invoke.noAnimaVaeModelSelected') });@@ -856,6 +881,27 @@ export const getReasonsWhyCannotEnqueueCanvasTab = (arg: {}}+ if (model?.base === 'krea-2' && model.format !== 'diffusers') {+ // Non-diffusers Krea-2 (single-file checkpoint / GGUF) ships only the transformer, so a standalone+ // VAE and Qwen3-VL encoder must be selected. Diffusers models bundle them, so they're optional there.+ if (!params.krea2VaeModel) {+ reasons.push({ content: i18n.t('parameters.invoke.noKrea2VaeModelSelected') });+ }+ if (!params.krea2Qwen3VlEncoderModel) {+ reasons.push({ content: i18n.t('parameters.invoke.noKrea2Qwen3VlEncoderModelSelected') });+ }+ }++ if (+ model?.base === 'krea-2' &&+ params.krea2RebalanceEnabled &&+ !isValidKrea2RebalanceWeights(params.krea2RebalanceWeights)+ ) {+ // The rebalance weights are free text forwarded straight to the backend; block generation before an+ // invalid string (wrong count / nonnumeric / nan / inf) reaches the failing _parse_weights().+ reasons.push({ content: i18n.t('parameters.invoke.krea2RebalanceWeightsInvalid') });+ }+if (model?.base === 'anima') {if (!params.animaVaeModel) {reasons.push({ content: i18n.t('parameters.invoke.noAnimaVaeModelSelected') });diff --git a/invokeai/frontend/web/src/features/settingsAccordions/components/AdvancedSettingsAccordion/AdvancedSettingsAccordion.tsx b/invokeai/frontend/web/src/features/settingsAccordions/components/AdvancedSettingsAccordion/AdvancedSettingsAccordion.tsxindex 3bf4c88953..510480c976 100644--- a/invokeai/frontend/web/src/features/settingsAccordions/components/AdvancedSettingsAccordion/AdvancedSettingsAccordion.tsx+++ b/invokeai/frontend/web/src/features/settingsAccordions/components/AdvancedSettingsAccordion/AdvancedSettingsAccordion.tsx@@ -9,6 +9,7 @@ import {selectIsFLUX,selectIsFlux2,selectIsIdeogram4,+ selectIsKrea2,selectIsQwenImage,selectIsSD3,selectIsWan,@@ -23,6 +24,7 @@ import ParamCLIPGEmbedModelSelect from 'features/parameters/components/Advanced/import ParamCLIPLEmbedModelSelect from 'features/parameters/components/Advanced/ParamCLIPLEmbedModelSelect';import ParamClipSkip from 'features/parameters/components/Advanced/ParamClipSkip';import ParamFlux2KleinModelSelect from 'features/parameters/components/Advanced/ParamFlux2KleinModelSelect';+import ParamKrea2ModelSelects from 'features/parameters/components/Advanced/ParamKrea2ModelSelects';import ParamQwenImageComponentSourceSelect from 'features/parameters/components/Advanced/ParamQwenImageComponentSourceSelect';import ParamQwenImageQuantization from 'features/parameters/components/Advanced/ParamQwenImageQuantization';import ParamT5EncoderModelSelect from 'features/parameters/components/Advanced/ParamT5EncoderModelSelect';@@ -62,13 +64,14 @@ export const AdvancedSettingsAccordion = memo(() => {const isExternal = useAppSelector(selectIsExternal);const isQwenImage = useAppSelector(selectIsQwenImage);const isAnima = useAppSelector(selectIsAnima);+ const isKrea2 = useAppSelector(selectIsKrea2);const isWan = useAppSelector(selectIsWan);const selectBadges = useMemo(() =>createMemoizedSelector(- [selectParamsSlice, selectIsFLUX, selectIsFlux2, selectIsIdeogram4],- (params, isFLUX, isFlux2, isIdeogram4) => {+ [selectParamsSlice, selectIsFLUX, selectIsFlux2, selectIsKrea2, selectIsIdeogram4],+ (params, isFLUX, isFlux2, isKrea2, isIdeogram4) => {const badges: (string | number)[] = [];// FLUX.2 has VAE built into main model - no badge neededif (isFLUX && !isFlux2) {@@ -79,9 +82,9 @@ export const AdvancedSettingsAccordion = memo(() => {}badges.push(vaeBadge);}- // Ideogram 4 hides the VAE / clip skip / CFG rescale / seamless controls (they don't apply),- // so it must not advertise stale badges for them either.- } else if (!isFlux2 && !isIdeogram4) {+ // Ideogram 4 and Krea-2 hide the VAE / clip skip / CFG rescale / seamless controls (they don't+ // apply), so they must not advertise stale badges for them either.+ } else if (!isFlux2 && !isKrea2 && !isIdeogram4) {if (vaeConfig) {let vaeBadge = vaeConfig.name;if (params.vaePrecision === 'fp16') {@@ -121,31 +124,39 @@ export const AdvancedSettingsAccordion = memo(() => {return (<StandaloneAccordion label={t('accordions.advanced.title')} badges={badges} isOpen={isOpen} onToggle={onToggle}><Flex gap={4} alignItems="center" p={4} flexDir="column" data-testid="advanced-settings-accordion">- {!isZImage && !isAnima && !isFlux2 && !isQwenImage && !isWan && !isIdeogram4 && (+ {!isZImage && !isAnima && !isFlux2 && !isQwenImage && !isKrea2 && !isWan && !isIdeogram4 && (<Flex gap={4} w="full">{isFLUX ? <ParamFLUXVAEModelSelect /> : <ParamVAEModelSelect />}{!isFLUX && !isSD3 && <ParamVAEPrecision />}</Flex>)}- {!isFLUX && !isFlux2 && !isSD3 && !isZImage && !isQwenImage && !isAnima && !isWan && !isIdeogram4 && (- <>- <FormControlGroup formLabelProps={formLabelProps}>- <ParamClipSkip />- <ParamCFGRescaleMultiplier />- </FormControlGroup>- <Flex gap={4} w="full">- <FormControlGroup formLabelProps={formLabelProps2}>- <SimpleGrid columns={2} spacing={4} w="full">- <ParamSeamlessXAxis />- <ParamSeamlessYAxis />- <ParamColorCompensation />- {/* Empty box for visual alignment. Replace with new option when needed. */}- <Box />- </SimpleGrid>+ {!isFLUX &&+ !isFlux2 &&+ !isSD3 &&+ !isZImage &&+ !isQwenImage &&+ !isAnima &&+ !isKrea2 &&+ !isWan &&+ !isIdeogram4 && (+ <>+ <FormControlGroup formLabelProps={formLabelProps}>+ <ParamClipSkip />+ <ParamCFGRescaleMultiplier /></FormControlGroup>- </Flex>- </>- )}+ <Flex gap={4} w="full">+ <FormControlGroup formLabelProps={formLabelProps2}>+ <SimpleGrid columns={2} spacing={4} w="full">+ <ParamSeamlessXAxis />+ <ParamSeamlessYAxis />+ <ParamColorCompensation />+ {/* Empty box for visual alignment. Replace with new option when needed. */}+ <Box />+ </SimpleGrid>+ </FormControlGroup>+ </Flex>+ </>+ )}{isFLUX && !isFlux2 && (<FormControlGroup><ParamT5EncoderModelSelect />@@ -180,6 +191,11 @@ export const AdvancedSettingsAccordion = memo(() => {<ParamAnimaModelSelect /></FormControlGroup>)}+ {isKrea2 && (+ <FormControlGroup>+ <ParamKrea2ModelSelects />+ </FormControlGroup>+ )}{isWan && (<FormControlGroup><ParamWanModelSelects />diff --git a/invokeai/frontend/web/src/features/settingsAccordions/components/GenerationSettingsAccordion/GenerationSettingsAccordion.tsx b/invokeai/frontend/web/src/features/settingsAccordions/components/GenerationSettingsAccordion/GenerationSettingsAccordion.tsxindex b68d76503a..28065dda29 100644--- a/invokeai/frontend/web/src/features/settingsAccordions/components/GenerationSettingsAccordion/GenerationSettingsAccordion.tsx+++ b/invokeai/frontend/web/src/features/settingsAccordions/components/GenerationSettingsAccordion/GenerationSettingsAccordion.tsx@@ -5,15 +5,15 @@ import { createMemoizedSelector } from 'app/store/createMemoizedSelector';import { useAppSelector } from 'app/store/storeHooks';import { selectLoRAsSlice } from 'features/controlLayers/store/lorasSlice';import {+ selectBase,selectFluxDypePreset,selectIsAnima,- selectIsCogView4,selectIsExternal,selectIsFLUX,selectIsFlux2,selectIsIdeogram4,+ selectIsKrea2,selectIsQwenImage,- selectIsSD3,selectIsWan,selectIsZImage,selectModelSupportsGuidance,@@ -35,6 +35,7 @@ import ParamSteps from 'features/parameters/components/Core/ParamSteps';import ParamWanGuidanceScaleLowNoise from 'features/parameters/components/Core/ParamWanGuidanceScaleLowNoise';import ParamZImageScheduler from 'features/parameters/components/Core/ParamZImageScheduler';import ParamZImageShift from 'features/parameters/components/Core/ParamZImageShift';+import ParamKrea2EnhancersSettings from 'features/parameters/components/Krea2Enhancers/ParamKrea2EnhancersSettings';import ParamZImageSeedVarianceSettings from 'features/parameters/components/SeedVariance/ParamZImageSeedVarianceSettings';import { MainModelPicker } from 'features/settingsAccordions/components/GenerationSettingsAccordion/MainModelPicker';import { useExpanderToggle } from 'features/settingsAccordions/hooks/useExpanderToggle';@@ -44,6 +45,8 @@ import { useTranslation } from 'react-i18next';import { useSelectedModelConfig } from 'services/api/hooks/useSelectedModelConfig';import { isFluxFillMainModelModelConfig } from 'services/api/types';+import { shouldShowStandardScheduler } from './generationSettingsVisibility';+const formLabelProps: FormLabelProps = {minW: '4rem',};@@ -51,14 +54,14 @@ const formLabelProps: FormLabelProps = {export const GenerationSettingsAccordion = memo(() => {const { t } = useTranslation();const modelConfig = useSelectedModelConfig();+ const base = useAppSelector(selectBase);const isFLUX = useAppSelector(selectIsFLUX);const isFlux2 = useAppSelector(selectIsFlux2);- const isSD3 = useAppSelector(selectIsSD3);- const isCogView4 = useAppSelector(selectIsCogView4);const isZImage = useAppSelector(selectIsZImage);const isIdeogram4 = useAppSelector(selectIsIdeogram4);const isExternal = useAppSelector(selectIsExternal);const isQwenImage = useAppSelector(selectIsQwenImage);+ const isKrea2 = useAppSelector(selectIsKrea2);const isAnima = useAppSelector(selectIsAnima);const isWan = useAppSelector(selectIsWan);const fluxDypePreset = useAppSelector(selectFluxDypePreset);@@ -103,16 +106,7 @@ export const GenerationSettingsAccordion = memo(() => {<Expander label={t('accordions.advanced.options')} isOpen={isOpenExpander} onToggle={onToggleExpander}><Flex gap={4} flexDir="column" pb={4}><FormControlGroup formLabelProps={formLabelProps}>- {!isExternal &&- !isFLUX &&- !isFlux2 &&- !isSD3 &&- !isCogView4 &&- !isZImage &&- !isIdeogram4 &&- !isQwenImage &&- !isAnima &&- !isWan && <ParamScheduler />}+ {shouldShowStandardScheduler(base) && <ParamScheduler />}{!isExternal && (isFLUX || isFlux2) && <ParamFluxScheduler />}{!isExternal && isZImage && <ParamZImageScheduler />}{!isExternal && isIdeogram4 && <ParamIdeogram4SamplerPreset />}@@ -131,6 +125,7 @@ export const GenerationSettingsAccordion = memo(() => {{!isExternal && isFLUX && fluxDypePreset === 'manual' && <ParamFluxDypeExponent />}</FormControlGroup>{!isExternal && isZImage && <ParamZImageSeedVarianceSettings />}+ {!isExternal && isKrea2 && <ParamKrea2EnhancersSettings />}</Flex></Expander>)}diff --git a/invokeai/frontend/web/src/features/settingsAccordions/components/GenerationSettingsAccordion/generationSettingsVisibility.test.ts b/invokeai/frontend/web/src/features/settingsAccordions/components/GenerationSettingsAccordion/generationSettingsVisibility.test.tsnew file mode 100644index 0000000000..2dd9fde49e--- /dev/null+++ b/invokeai/frontend/web/src/features/settingsAccordions/components/GenerationSettingsAccordion/generationSettingsVisibility.test.ts@@ -0,0 +1,27 @@+import { describe, expect, it } from 'vitest';++import { shouldShowStandardScheduler } from './generationSettingsVisibility';++describe('shouldShowStandardScheduler', () => {+ it.each(['sd-1', 'sd-2', 'sdxl', 'sdxl-refiner', undefined] as const)(+ 'shows the standard scheduler for %s',+ (base) => {+ expect(shouldShowStandardScheduler(base)).toBe(true);+ }+ );++ it.each([+ 'external',+ 'flux',+ 'flux2',+ 'sd-3',+ 'cogview4',+ 'z-image',+ 'qwen-image',+ 'anima',+ 'krea-2',+ 'ideogram-4',+ ] as const)('hides the standard scheduler for %s', (base) => {+ expect(shouldShowStandardScheduler(base)).toBe(false);+ });+});diff --git a/invokeai/frontend/web/src/features/settingsAccordions/components/GenerationSettingsAccordion/generationSettingsVisibility.ts b/invokeai/frontend/web/src/features/settingsAccordions/components/GenerationSettingsAccordion/generationSettingsVisibility.tsnew file mode 100644index 0000000000..d74b8189e6--- /dev/null+++ b/invokeai/frontend/web/src/features/settingsAccordions/components/GenerationSettingsAccordion/generationSettingsVisibility.ts@@ -0,0 +1,18 @@+import type { BaseModelType } from 'features/nodes/types/common';++const BASES_WITHOUT_STANDARD_SCHEDULER = new Set<BaseModelType>([+ 'external',+ 'flux',+ 'flux2',+ 'sd-3',+ 'cogview4',+ 'z-image',+ 'qwen-image',+ 'anima',+ 'krea-2',+ 'wan',+ 'ideogram-4',+]);++export const shouldShowStandardScheduler = (base: BaseModelType | null | undefined): boolean =>+ base === undefined || base === null || !BASES_WITHOUT_STANDARD_SCHEDULER.has(base);diff --git a/invokeai/frontend/web/src/services/api/hooks/modelsByType.ts b/invokeai/frontend/web/src/services/api/hooks/modelsByType.tsindex 8de3906151..60bb22b668 100644--- a/invokeai/frontend/web/src/services/api/hooks/modelsByType.ts+++ b/invokeai/frontend/web/src/services/api/hooks/modelsByType.ts@@ -29,6 +29,7 @@ import {isLoRAModelConfig,isMainOrExternalModelConfig,isQwen3EncoderModelConfig,+ isQwen3VLEncoderModelConfig,isQwenImageDiffusersMainModelConfig,isQwenImageVAEModelConfig,isQwenVLEncoderModelConfig,@@ -117,6 +118,7 @@ export const useQwenImageDiffusersModels = () => buildModelsHook(isQwenImageDiffexport const useQwenImageVAEModels = () => buildModelsHook(isQwenImageVAEModelConfig)();export const useQwenVLEncoderModels = () => buildModelsHook(isQwenVLEncoderModelConfig)();export const useQwen3EncoderModels = () => buildModelsHook(isQwen3EncoderModelConfig)();+export const useQwen3VLEncoderModels = () => buildModelsHook(isQwen3VLEncoderModelConfig)();export const useWanDiffusersModels = () => buildModelsHook(isWanDiffusersMainModelConfig)();export const useWanGGUFLowNoiseModels = () => buildModelsHook(isWanGGUFLowNoiseMainModelConfig)();export const useWanVAEModels = () => buildModelsHook(isWanVAEModelConfig)();@@ -163,6 +165,7 @@ export const selectZImageDiffusersModels = buildModelsSelector(isZImageDiffusersexport const selectFlux2DiffusersModels = buildModelsSelector(isFlux2DiffusersMainModelConfig);export const selectFluxVAEModels = buildModelsSelector(isFluxVAEModelConfig);export const selectAnimaVAEModels = buildModelsSelector(isAnimaVAEModelConfig);+export const selectQwen3VLEncoderModels = buildModelsSelector(isQwen3VLEncoderModelConfig);export const selectWanDiffusersModels = buildModelsSelector(isWanDiffusersMainModelConfig);export const selectWanVAEModels = buildModelsSelector(isWanVAEModelConfig);export const selectWanT5EncoderModels = buildModelsSelector(isWanT5EncoderModelConfig);diff --git a/invokeai/frontend/web/src/services/api/schema.ts b/invokeai/frontend/web/src/services/api/schema.tsindex 3f2ef2a3a0..c413ccd7ab 100644--- a/invokeai/frontend/web/src/services/api/schema.ts+++ b/invokeai/frontend/web/src/services/api/schema.ts@@ -4125,7 +4125,7 @@ export type components = {*/type: "anima_text_encoder";};- AnyModelConfig: components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];+ AnyModelConfig: components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];/*** AppVersion* @description App Version Response@@ -4277,7 +4277,7 @@ export type components = {* fallback/null value `BaseModelType.Any` for these models, instead of making the model base optional.* @enum {string}*/- BaseModelType: "any" | "sd-1" | "sd-2" | "sd-3" | "sdxl" | "sdxl-refiner" | "flux" | "flux2" | "cogview4" | "z-image" | "ideogram-4" | "external" | "qwen-image" | "anima" | "wan" | "unknown";+ BaseModelType: "any" | "sd-1" | "sd-2" | "sd-3" | "sdxl" | "sdxl-refiner" | "flux" | "flux2" | "cogview4" | "z-image" | "ideogram-4" | "external" | "qwen-image" | "anima" | "krea-2" | "wan" | "unknown";/** Batch */Batch: {/**@@ -8295,7 +8295,7 @@ export type components = {* @description The generation mode that output this image* @default null*/- generation_mode?: ("txt2img" | "img2img" | "inpaint" | "outpaint" | "sdxl_txt2img" | "sdxl_img2img" | "sdxl_inpaint" | "sdxl_outpaint" | "flux_txt2img" | "flux_img2img" | "flux_inpaint" | "flux_outpaint" | "flux2_txt2img" | "flux2_img2img" | "flux2_inpaint" | "flux2_outpaint" | "sd3_txt2img" | "sd3_img2img" | "sd3_inpaint" | "sd3_outpaint" | "cogview4_txt2img" | "cogview4_img2img" | "cogview4_inpaint" | "cogview4_outpaint" | "z_image_txt2img" | "z_image_img2img" | "z_image_inpaint" | "z_image_outpaint" | "ideogram4_txt2img" | "qwen_image_txt2img" | "qwen_image_img2img" | "qwen_image_inpaint" | "qwen_image_outpaint" | "anima_txt2img" | "anima_img2img" | "anima_inpaint" | "anima_outpaint" | "wan_txt2img" | "wan_img2img" | "wan_inpaint" | "wan_outpaint" | "wan_i2v") | null;+ generation_mode?: ("txt2img" | "img2img" | "inpaint" | "outpaint" | "sdxl_txt2img" | "sdxl_img2img" | "sdxl_inpaint" | "sdxl_outpaint" | "flux_txt2img" | "flux_img2img" | "flux_inpaint" | "flux_outpaint" | "flux2_txt2img" | "flux2_img2img" | "flux2_inpaint" | "flux2_outpaint" | "sd3_txt2img" | "sd3_img2img" | "sd3_inpaint" | "sd3_outpaint" | "cogview4_txt2img" | "cogview4_img2img" | "cogview4_inpaint" | "cogview4_outpaint" | "z_image_txt2img" | "z_image_img2img" | "z_image_inpaint" | "z_image_outpaint" | "ideogram4_txt2img" | "qwen_image_txt2img" | "qwen_image_img2img" | "qwen_image_inpaint" | "qwen_image_outpaint" | "anima_txt2img" | "anima_img2img" | "anima_inpaint" | "anima_outpaint" | "krea2_txt2img" | "krea2_img2img" | "krea2_inpaint" | "krea2_outpaint" | "wan_txt2img" | "wan_img2img" | "wan_inpaint" | "wan_outpaint" | "wan_i2v") | null;/*** Positive Prompt* @description The positive prompt parameter@@ -13300,7 +13300,7 @@ export type components = {* @description The nodes in this graph*/nodes?: {- [key: string]: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["CreateGradientMaskInvocation"] | components["schemas"]["CropImageToBoundingBoxInvocation"] | components["schemas"]["CropLatentsCoreInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["DWOpenposeDetectionInvocation"] | components["schemas"]["DecodeInvisibleWatermarkInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["DenoiseLatentsMetaInvocation"] | components["schemas"]["DepthAnythingDepthEstimationInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["ExpandMaskWithFadeInvocation"] | components["schemas"]["ExtractVideoRangeInvocation"] | components["schemas"]["FLUXLoRACollectionLoader"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["FloatBatchInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["FloatGenerator"] | components["schemas"]["FloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["FluxControlLoRALoaderInvocation"] | components["schemas"]["FluxControlNetInvocation"] | components["schemas"]["FluxDenoiseInvocation"] | components["schemas"]["FluxDenoiseLatentsMetaInvocation"] | components["schemas"]["FluxFillInvocation"] | components["schemas"]["FluxIPAdapterInvocation"] | components["schemas"]["FluxKontextConcatenateImagesInvocation"] | components["schemas"]["FluxKontextInvocation"] | components["schemas"]["FluxLoRALoaderInvocation"] | components["schemas"]["FluxModelLoaderInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["GetMaskBoundingBoxInvocation"] | components["schemas"]["GroundingDinoInvocation"] | components["schemas"]["HEDEdgeDetectionInvocation"] | components["schemas"]["HeuristicResizeInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["IdealSizeInvocation"] | components["schemas"]["Ideogram4CaptionBuilderInvocation"] | components["schemas"]["Ideogram4DenoiseInvocation"] | components["schemas"]["Ideogram4LatentsToImageInvocation"] | components["schemas"]["Ideogram4ModelLoaderInvocation"] | components["schemas"]["Ideogram4TextEncoderInvocation"] | components["schemas"]["IfInvocation"] | components["schemas"]["ImageBatchInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImageGenerator"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageMaskToTensorInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["ImageNoiseInvocation"] | components["schemas"]["ImagePanelLayoutInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["IntegerBatchInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["IntegerGenerator"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["InvertTensorMaskInvocation"] | components["schemas"]["InvokeAdjustImageHuePlusInvocation"] | components["schemas"]["InvokeEquivalentAchromaticLightnessInvocation"] | components["schemas"]["InvokeImageBlendInvocation"] | components["schemas"]["InvokeImageCompositorInvocation"] | components["schemas"]["InvokeImageDilateOrErodeInvocation"] | components["schemas"]["InvokeImageEnhanceInvocation"] | components["schemas"]["InvokeImageValueThresholdsInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["NormalMapInvocation"] | components["schemas"]["OklabUnsharpMaskInvocation"] | components["schemas"]["OklchImageHueAdjustmentInvocation"] | components["schemas"]["OpenAIImageGenerationInvocation"] | components["schemas"]["PBRMapsInvocation"] | components["schemas"]["PairTileImageInvocation"] | components["schemas"]["PasteImageIntoBoundingBoxInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImageTextEncoderInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RectangleMaskInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["SD3DenoiseInvocation"] | components["schemas"]["SD3ImageToLatentsInvocation"] | components["schemas"]["SD3LatentsToImageInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["SaveImageToFileInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["Sd3ModelLoaderInvocation"] | components["schemas"]["Sd3TextEncoderInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["SeedreamImageGenerationInvocation"] | components["schemas"]["SegmentAnythingInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["SpandrelImageToImageAutoscaleInvocation"] | components["schemas"]["SpandrelImageToImageInvocation"] | components["schemas"]["StringBatchInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["StringGenerator"] | components["schemas"]["StringInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["TextLLMInvocation"] | components["schemas"]["TileToPropertiesInvocation"] | components["schemas"]["TiledMultiDiffusionDenoiseLatents"] | components["schemas"]["UnsharpMaskInvocation"] | components["schemas"]["VAELoaderInvocation"] | components["schemas"]["VideoConcatInvocation"] | components["schemas"]["VideoFrameExtractInvocation"] | components["schemas"]["VideoInvocation"] | components["schemas"]["WanDenoiseInvocation"] | components["schemas"]["WanI2VIdealDimensionsInvocation"] | components["schemas"]["WanImageToLatentsInvocation"] | components["schemas"]["WanLatentsToImageInvocation"] | components["schemas"]["WanLatentsToVideoInvocation"] | components["schemas"]["WanLoRACollectionLoader"] | components["schemas"]["WanLoRALoaderInvocation"] | components["schemas"]["WanModelLoaderInvocation"] | components["schemas"]["WanRefImageEncoderInvocation"] | components["schemas"]["WanTI2VIdealDimensionsInvocation"] | components["schemas"]["WanTextEncoderInvocation"] | components["schemas"]["WanVideoDenoiseInvocation"] | components["schemas"]["WorkflowReturnGetInvocation"] | components["schemas"]["WorkflowReturnInvocation"] | components["schemas"]["WorkflowReturnValueInvocation"] | components["schemas"]["ZImageControlInvocation"] | components["schemas"]["ZImageDenoiseInvocation"] | components["schemas"]["ZImageDenoiseMetaInvocation"] | components["schemas"]["ZImageImageToLatentsInvocation"] | components["schemas"]["ZImageLatentsToImageInvocation"] | components["schemas"]["ZImageLoRACollectionLoader"] | components["schemas"]["ZImageLoRALoaderInvocation"] | components["schemas"]["ZImageModelLoaderInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];+ [key: string]: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["CreateGradientMaskInvocation"] | components["schemas"]["CropImageToBoundingBoxInvocation"] | components["schemas"]["CropLatentsCoreInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["DWOpenposeDetectionInvocation"] | components["schemas"]["DecodeInvisibleWatermarkInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["DenoiseLatentsMetaInvocation"] | components["schemas"]["DepthAnythingDepthEstimationInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["ExpandMaskWithFadeInvocation"] | components["schemas"]["ExtractVideoRangeInvocation"] | components["schemas"]["FLUXLoRACollectionLoader"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["FloatBatchInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["FloatGenerator"] | components["schemas"]["FloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["FluxControlLoRALoaderInvocation"] | components["schemas"]["FluxControlNetInvocation"] | components["schemas"]["FluxDenoiseInvocation"] | components["schemas"]["FluxDenoiseLatentsMetaInvocation"] | components["schemas"]["FluxFillInvocation"] | components["schemas"]["FluxIPAdapterInvocation"] | components["schemas"]["FluxKontextConcatenateImagesInvocation"] | components["schemas"]["FluxKontextInvocation"] | components["schemas"]["FluxLoRALoaderInvocation"] | components["schemas"]["FluxModelLoaderInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["GetMaskBoundingBoxInvocation"] | components["schemas"]["GroundingDinoInvocation"] | components["schemas"]["HEDEdgeDetectionInvocation"] | components["schemas"]["HeuristicResizeInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["IdealSizeInvocation"] | components["schemas"]["Ideogram4CaptionBuilderInvocation"] | components["schemas"]["Ideogram4DenoiseInvocation"] | components["schemas"]["Ideogram4LatentsToImageInvocation"] | components["schemas"]["Ideogram4ModelLoaderInvocation"] | components["schemas"]["Ideogram4TextEncoderInvocation"] | components["schemas"]["IfInvocation"] | components["schemas"]["ImageBatchInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImageGenerator"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageMaskToTensorInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["ImageNoiseInvocation"] | components["schemas"]["ImagePanelLayoutInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["IntegerBatchInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["IntegerGenerator"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["InvertTensorMaskInvocation"] | components["schemas"]["InvokeAdjustImageHuePlusInvocation"] | components["schemas"]["InvokeEquivalentAchromaticLightnessInvocation"] | components["schemas"]["InvokeImageBlendInvocation"] | components["schemas"]["InvokeImageCompositorInvocation"] | components["schemas"]["InvokeImageDilateOrErodeInvocation"] | components["schemas"]["InvokeImageEnhanceInvocation"] | components["schemas"]["InvokeImageValueThresholdsInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["Krea2ConditioningRebalanceInvocation"] | components["schemas"]["Krea2DenoiseInvocation"] | components["schemas"]["Krea2LoRACollectionLoader"] | components["schemas"]["Krea2LoRALoaderInvocation"] | components["schemas"]["Krea2ModelLoaderInvocation"] | components["schemas"]["Krea2SeedVarianceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["NormalMapInvocation"] | components["schemas"]["OklabUnsharpMaskInvocation"] | components["schemas"]["OklchImageHueAdjustmentInvocation"] | components["schemas"]["OpenAIImageGenerationInvocation"] | components["schemas"]["PBRMapsInvocation"] | components["schemas"]["PairTileImageInvocation"] | components["schemas"]["PasteImageIntoBoundingBoxInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImageTextEncoderInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RectangleMaskInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["SD3DenoiseInvocation"] | components["schemas"]["SD3ImageToLatentsInvocation"] | components["schemas"]["SD3LatentsToImageInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["SaveImageToFileInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["Sd3ModelLoaderInvocation"] | components["schemas"]["Sd3TextEncoderInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["SeedreamImageGenerationInvocation"] | components["schemas"]["SegmentAnythingInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["SpandrelImageToImageAutoscaleInvocation"] | components["schemas"]["SpandrelImageToImageInvocation"] | components["schemas"]["StringBatchInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["StringGenerator"] | components["schemas"]["StringInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["TextLLMInvocation"] | components["schemas"]["TileToPropertiesInvocation"] | components["schemas"]["TiledMultiDiffusionDenoiseLatents"] | components["schemas"]["UnsharpMaskInvocation"] | components["schemas"]["VAELoaderInvocation"] | components["schemas"]["VideoConcatInvocation"] | components["schemas"]["VideoFrameExtractInvocation"] | components["schemas"]["VideoInvocation"] | components["schemas"]["WanDenoiseInvocation"] | components["schemas"]["WanI2VIdealDimensionsInvocation"] | components["schemas"]["WanImageToLatentsInvocation"] | components["schemas"]["WanLatentsToImageInvocation"] | components["schemas"]["WanLatentsToVideoInvocation"] | components["schemas"]["WanLoRACollectionLoader"] | components["schemas"]["WanLoRALoaderInvocation"] | components["schemas"]["WanModelLoaderInvocation"] | components["schemas"]["WanRefImageEncoderInvocation"] | components["schemas"]["WanTI2VIdealDimensionsInvocation"] | components["schemas"]["WanTextEncoderInvocation"] | components["schemas"]["WanVideoDenoiseInvocation"] | components["schemas"]["WorkflowReturnGetInvocation"] | components["schemas"]["WorkflowReturnInvocation"] | components["schemas"]["WorkflowReturnValueInvocation"] | components["schemas"]["ZImageControlInvocation"] | components["schemas"]["ZImageDenoiseInvocation"] | components["schemas"]["ZImageDenoiseMetaInvocation"] | components["schemas"]["ZImageImageToLatentsInvocation"] | components["schemas"]["ZImageLatentsToImageInvocation"] | components["schemas"]["ZImageLoRACollectionLoader"] | components["schemas"]["ZImageLoRALoaderInvocation"] | components["schemas"]["ZImageModelLoaderInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];};/*** Edges@@ -13337,7 +13337,7 @@ export type components = {* @description The results of node executions*/results: {- [key: string]: components["schemas"]["AnimaConditioningOutput"] | components["schemas"]["AnimaLLLiteOutput"] | components["schemas"]["AnimaLoRALoaderOutput"] | components["schemas"]["AnimaModelLoaderOutput"] | components["schemas"]["BooleanCollectionOutput"] | components["schemas"]["BooleanOutput"] | components["schemas"]["BoundingBoxCollectionOutput"] | components["schemas"]["BoundingBoxOutput"] | components["schemas"]["CLIPOutput"] | components["schemas"]["CLIPSkipInvocationOutput"] | components["schemas"]["CalculateImageTilesOutput"] | components["schemas"]["CogView4ConditioningOutput"] | components["schemas"]["CogView4ModelLoaderOutput"] | components["schemas"]["CollectInvocationOutput"] | components["schemas"]["ColorCollectionOutput"] | components["schemas"]["ColorOutput"] | components["schemas"]["ConditioningCollectionOutput"] | components["schemas"]["ConditioningOutput"] | components["schemas"]["ControlOutput"] | components["schemas"]["DenoiseMaskOutput"] | components["schemas"]["ExtractVideoRangeOutput"] | components["schemas"]["FaceMaskOutput"] | components["schemas"]["FaceOffOutput"] | components["schemas"]["FloatCollectionOutput"] | components["schemas"]["FloatGeneratorOutput"] | components["schemas"]["FloatOutput"] | components["schemas"]["Flux2KleinLoRALoaderOutput"] | components["schemas"]["Flux2KleinModelLoaderOutput"] | components["schemas"]["FluxConditioningCollectionOutput"] | components["schemas"]["FluxConditioningOutput"] | components["schemas"]["FluxControlLoRALoaderOutput"] | components["schemas"]["FluxControlNetOutput"] | components["schemas"]["FluxFillOutput"] | components["schemas"]["FluxKontextOutput"] | components["schemas"]["FluxLoRALoaderOutput"] | components["schemas"]["FluxModelLoaderOutput"] | components["schemas"]["FluxReduxOutput"] | components["schemas"]["GradientMaskOutput"] | components["schemas"]["IPAdapterOutput"] | components["schemas"]["IdealSizeOutput"] | components["schemas"]["Ideogram4ConditioningOutput"] | components["schemas"]["Ideogram4ModelLoaderOutput"] | components["schemas"]["IfInvocationOutput"] | components["schemas"]["ImageCollectionOutput"] | components["schemas"]["ImageGeneratorOutput"] | components["schemas"]["ImageOutput"] | components["schemas"]["ImagePanelCoordinateOutput"] | components["schemas"]["IntegerCollectionOutput"] | components["schemas"]["IntegerGeneratorOutput"] | components["schemas"]["IntegerOutput"] | components["schemas"]["IterateInvocationOutput"] | components["schemas"]["LatentsCollectionOutput"] | components["schemas"]["LatentsMetaOutput"] | components["schemas"]["LatentsOutput"] | components["schemas"]["LoRALoaderOutput"] | components["schemas"]["LoRASelectorOutput"] | components["schemas"]["MDControlListOutput"] | components["schemas"]["MDIPAdapterListOutput"] | components["schemas"]["MDT2IAdapterListOutput"] | components["schemas"]["MaskOutput"] | components["schemas"]["MetadataItemOutput"] | components["schemas"]["MetadataOutput"] | components["schemas"]["MetadataToLorasCollectionOutput"] | components["schemas"]["MetadataToModelOutput"] | components["schemas"]["MetadataToSDXLModelOutput"] | components["schemas"]["ModelIdentifierOutput"] | components["schemas"]["ModelLoaderOutput"] | components["schemas"]["NoiseOutput"] | components["schemas"]["PBRMapsOutput"] | components["schemas"]["PairTileImageOutput"] | components["schemas"]["PromptTemplateOutput"] | components["schemas"]["QwenImageConditioningOutput"] | components["schemas"]["QwenImageLoRALoaderOutput"] | components["schemas"]["QwenImageModelLoaderOutput"] | components["schemas"]["SD3ConditioningOutput"] | components["schemas"]["SDXLLoRALoaderOutput"] | components["schemas"]["SDXLModelLoaderOutput"] | components["schemas"]["SDXLRefinerModelLoaderOutput"] | components["schemas"]["SchedulerOutput"] | components["schemas"]["Sd3ModelLoaderOutput"] | components["schemas"]["SeamlessModeOutput"] | components["schemas"]["String2Output"] | components["schemas"]["StringCollectionOutput"] | components["schemas"]["StringGeneratorOutput"] | components["schemas"]["StringOutput"] | components["schemas"]["StringPosNegOutput"] | components["schemas"]["T2IAdapterOutput"] | components["schemas"]["TileToPropertiesOutput"] | components["schemas"]["UNetOutput"] | components["schemas"]["VAEOutput"] | components["schemas"]["VideoOutput"] | components["schemas"]["WanConditioningOutput"] | components["schemas"]["WanLoRALoaderOutput"] | components["schemas"]["WanModelLoaderOutput"] | components["schemas"]["WanRefImageOutput"] | components["schemas"]["WorkflowReturnGetOutput"] | components["schemas"]["WorkflowReturnOutput"] | components["schemas"]["WorkflowReturnValueOutput"] | components["schemas"]["ZImageConditioningOutput"] | components["schemas"]["ZImageControlOutput"] | components["schemas"]["ZImageLoRALoaderOutput"] | components["schemas"]["ZImageModelLoaderOutput"];+ [key: string]: components["schemas"]["AnimaConditioningOutput"] | components["schemas"]["AnimaLLLiteOutput"] | components["schemas"]["AnimaLoRALoaderOutput"] | components["schemas"]["AnimaModelLoaderOutput"] | components["schemas"]["BooleanCollectionOutput"] | components["schemas"]["BooleanOutput"] | components["schemas"]["BoundingBoxCollectionOutput"] | components["schemas"]["BoundingBoxOutput"] | components["schemas"]["CLIPOutput"] | components["schemas"]["CLIPSkipInvocationOutput"] | components["schemas"]["CalculateImageTilesOutput"] | components["schemas"]["CogView4ConditioningOutput"] | components["schemas"]["CogView4ModelLoaderOutput"] | components["schemas"]["CollectInvocationOutput"] | components["schemas"]["ColorCollectionOutput"] | components["schemas"]["ColorOutput"] | components["schemas"]["ConditioningCollectionOutput"] | components["schemas"]["ConditioningOutput"] | components["schemas"]["ControlOutput"] | components["schemas"]["DenoiseMaskOutput"] | components["schemas"]["ExtractVideoRangeOutput"] | components["schemas"]["FaceMaskOutput"] | components["schemas"]["FaceOffOutput"] | components["schemas"]["FloatCollectionOutput"] | components["schemas"]["FloatGeneratorOutput"] | components["schemas"]["FloatOutput"] | components["schemas"]["Flux2KleinLoRALoaderOutput"] | components["schemas"]["Flux2KleinModelLoaderOutput"] | components["schemas"]["FluxConditioningCollectionOutput"] | components["schemas"]["FluxConditioningOutput"] | components["schemas"]["FluxControlLoRALoaderOutput"] | components["schemas"]["FluxControlNetOutput"] | components["schemas"]["FluxFillOutput"] | components["schemas"]["FluxKontextOutput"] | components["schemas"]["FluxLoRALoaderOutput"] | components["schemas"]["FluxModelLoaderOutput"] | components["schemas"]["FluxReduxOutput"] | components["schemas"]["GradientMaskOutput"] | components["schemas"]["IPAdapterOutput"] | components["schemas"]["IdealSizeOutput"] | components["schemas"]["Ideogram4ConditioningOutput"] | components["schemas"]["Ideogram4ModelLoaderOutput"] | components["schemas"]["IfInvocationOutput"] | components["schemas"]["ImageCollectionOutput"] | components["schemas"]["ImageGeneratorOutput"] | components["schemas"]["ImageOutput"] | components["schemas"]["ImagePanelCoordinateOutput"] | components["schemas"]["IntegerCollectionOutput"] | components["schemas"]["IntegerGeneratorOutput"] | components["schemas"]["IntegerOutput"] | components["schemas"]["IterateInvocationOutput"] | components["schemas"]["Krea2ConditioningOutput"] | components["schemas"]["Krea2LoRALoaderOutput"] | components["schemas"]["Krea2ModelLoaderOutput"] | components["schemas"]["LatentsCollectionOutput"] | components["schemas"]["LatentsMetaOutput"] | components["schemas"]["LatentsOutput"] | components["schemas"]["LoRALoaderOutput"] | components["schemas"]["LoRASelectorOutput"] | components["schemas"]["MDControlListOutput"] | components["schemas"]["MDIPAdapterListOutput"] | components["schemas"]["MDT2IAdapterListOutput"] | components["schemas"]["MaskOutput"] | components["schemas"]["MetadataItemOutput"] | components["schemas"]["MetadataOutput"] | components["schemas"]["MetadataToLorasCollectionOutput"] | components["schemas"]["MetadataToModelOutput"] | components["schemas"]["MetadataToSDXLModelOutput"] | components["schemas"]["ModelIdentifierOutput"] | components["schemas"]["ModelLoaderOutput"] | components["schemas"]["NoiseOutput"] | components["schemas"]["PBRMapsOutput"] | components["schemas"]["PairTileImageOutput"] | components["schemas"]["PromptTemplateOutput"] | components["schemas"]["QwenImageConditioningOutput"] | components["schemas"]["QwenImageLoRALoaderOutput"] | components["schemas"]["QwenImageModelLoaderOutput"] | components["schemas"]["SD3ConditioningOutput"] | components["schemas"]["SDXLLoRALoaderOutput"] | components["schemas"]["SDXLModelLoaderOutput"] | components["schemas"]["SDXLRefinerModelLoaderOutput"] | components["schemas"]["SchedulerOutput"] | components["schemas"]["Sd3ModelLoaderOutput"] | components["schemas"]["SeamlessModeOutput"] | components["schemas"]["String2Output"] | components["schemas"]["StringCollectionOutput"] | components["schemas"]["StringGeneratorOutput"] | components["schemas"]["StringOutput"] | components["schemas"]["StringPosNegOutput"] | components["schemas"]["T2IAdapterOutput"] | components["schemas"]["TileToPropertiesOutput"] | components["schemas"]["UNetOutput"] | components["schemas"]["VAEOutput"] | components["schemas"]["VideoOutput"] | components["schemas"]["WanConditioningOutput"] | components["schemas"]["WanLoRALoaderOutput"] | components["schemas"]["WanModelLoaderOutput"] | components["schemas"]["WanRefImageOutput"] | components["schemas"]["WorkflowReturnGetOutput"] | components["schemas"]["WorkflowReturnOutput"] | components["schemas"]["WorkflowReturnValueOutput"] | components["schemas"]["ZImageConditioningOutput"] | components["schemas"]["ZImageControlOutput"] | components["schemas"]["ZImageLoRALoaderOutput"] | components["schemas"]["ZImageModelLoaderOutput"];};/*** Errors@@ -17113,7 +17113,7 @@ export type components = {* Invocation* @description The ID of the invocation*/- invocation: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["CreateGradientMaskInvocation"] | components["schemas"]["CropImageToBoundingBoxInvocation"] | components["schemas"]["CropLatentsCoreInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["DWOpenposeDetectionInvocation"] | components["schemas"]["DecodeInvisibleWatermarkInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["DenoiseLatentsMetaInvocation"] | components["schemas"]["DepthAnythingDepthEstimationInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["ExpandMaskWithFadeInvocation"] | components["schemas"]["ExtractVideoRangeInvocation"] | components["schemas"]["FLUXLoRACollectionLoader"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["FloatBatchInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["FloatGenerator"] | components["schemas"]["FloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["FluxControlLoRALoaderInvocation"] | components["schemas"]["FluxControlNetInvocation"] | components["schemas"]["FluxDenoiseInvocation"] | components["schemas"]["FluxDenoiseLatentsMetaInvocation"] | components["schemas"]["FluxFillInvocation"] | components["schemas"]["FluxIPAdapterInvocation"] | components["schemas"]["FluxKontextConcatenateImagesInvocation"] | components["schemas"]["FluxKontextInvocation"] | components["schemas"]["FluxLoRALoaderInvocation"] | components["schemas"]["FluxModelLoaderInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["GetMaskBoundingBoxInvocation"] | components["schemas"]["GroundingDinoInvocation"] | components["schemas"]["HEDEdgeDetectionInvocation"] | components["schemas"]["HeuristicResizeInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["IdealSizeInvocation"] | components["schemas"]["Ideogram4CaptionBuilderInvocation"] | components["schemas"]["Ideogram4DenoiseInvocation"] | components["schemas"]["Ideogram4LatentsToImageInvocation"] | components["schemas"]["Ideogram4ModelLoaderInvocation"] | components["schemas"]["Ideogram4TextEncoderInvocation"] | components["schemas"]["IfInvocation"] | components["schemas"]["ImageBatchInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImageGenerator"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageMaskToTensorInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["ImageNoiseInvocation"] | components["schemas"]["ImagePanelLayoutInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["IntegerBatchInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["IntegerGenerator"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["InvertTensorMaskInvocation"] | components["schemas"]["InvokeAdjustImageHuePlusInvocation"] | components["schemas"]["InvokeEquivalentAchromaticLightnessInvocation"] | components["schemas"]["InvokeImageBlendInvocation"] | components["schemas"]["InvokeImageCompositorInvocation"] | components["schemas"]["InvokeImageDilateOrErodeInvocation"] | components["schemas"]["InvokeImageEnhanceInvocation"] | components["schemas"]["InvokeImageValueThresholdsInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["NormalMapInvocation"] | components["schemas"]["OklabUnsharpMaskInvocation"] | components["schemas"]["OklchImageHueAdjustmentInvocation"] | components["schemas"]["OpenAIImageGenerationInvocation"] | components["schemas"]["PBRMapsInvocation"] | components["schemas"]["PairTileImageInvocation"] | components["schemas"]["PasteImageIntoBoundingBoxInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImageTextEncoderInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RectangleMaskInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["SD3DenoiseInvocation"] | components["schemas"]["SD3ImageToLatentsInvocation"] | components["schemas"]["SD3LatentsToImageInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["SaveImageToFileInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["Sd3ModelLoaderInvocation"] | components["schemas"]["Sd3TextEncoderInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["SeedreamImageGenerationInvocation"] | components["schemas"]["SegmentAnythingInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["SpandrelImageToImageAutoscaleInvocation"] | components["schemas"]["SpandrelImageToImageInvocation"] | components["schemas"]["StringBatchInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["StringGenerator"] | components["schemas"]["StringInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["TextLLMInvocation"] | components["schemas"]["TileToPropertiesInvocation"] | components["schemas"]["TiledMultiDiffusionDenoiseLatents"] | components["schemas"]["UnsharpMaskInvocation"] | components["schemas"]["VAELoaderInvocation"] | components["schemas"]["VideoConcatInvocation"] | components["schemas"]["VideoFrameExtractInvocation"] | components["schemas"]["VideoInvocation"] | components["schemas"]["WanDenoiseInvocation"] | components["schemas"]["WanI2VIdealDimensionsInvocation"] | components["schemas"]["WanImageToLatentsInvocation"] | components["schemas"]["WanLatentsToImageInvocation"] | components["schemas"]["WanLatentsToVideoInvocation"] | components["schemas"]["WanLoRACollectionLoader"] | components["schemas"]["WanLoRALoaderInvocation"] | components["schemas"]["WanModelLoaderInvocation"] | components["schemas"]["WanRefImageEncoderInvocation"] | components["schemas"]["WanTI2VIdealDimensionsInvocation"] | components["schemas"]["WanTextEncoderInvocation"] | components["schemas"]["WanVideoDenoiseInvocation"] | components["schemas"]["WorkflowReturnGetInvocation"] | components["schemas"]["WorkflowReturnInvocation"] | components["schemas"]["WorkflowReturnValueInvocation"] | components["schemas"]["ZImageControlInvocation"] | components["schemas"]["ZImageDenoiseInvocation"] | components["schemas"]["ZImageDenoiseMetaInvocation"] | components["schemas"]["ZImageImageToLatentsInvocation"] | components["schemas"]["ZImageLatentsToImageInvocation"] | components["schemas"]["ZImageLoRACollectionLoader"] | components["schemas"]["ZImageLoRALoaderInvocation"] | components["schemas"]["ZImageModelLoaderInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];+ invocation: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["CreateGradientMaskInvocation"] | components["schemas"]["CropImageToBoundingBoxInvocation"] | components["schemas"]["CropLatentsCoreInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["DWOpenposeDetectionInvocation"] | components["schemas"]["DecodeInvisibleWatermarkInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["DenoiseLatentsMetaInvocation"] | components["schemas"]["DepthAnythingDepthEstimationInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["ExpandMaskWithFadeInvocation"] | components["schemas"]["ExtractVideoRangeInvocation"] | components["schemas"]["FLUXLoRACollectionLoader"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["FloatBatchInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["FloatGenerator"] | components["schemas"]["FloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["FluxControlLoRALoaderInvocation"] | components["schemas"]["FluxControlNetInvocation"] | components["schemas"]["FluxDenoiseInvocation"] | components["schemas"]["FluxDenoiseLatentsMetaInvocation"] | components["schemas"]["FluxFillInvocation"] | components["schemas"]["FluxIPAdapterInvocation"] | components["schemas"]["FluxKontextConcatenateImagesInvocation"] | components["schemas"]["FluxKontextInvocation"] | components["schemas"]["FluxLoRALoaderInvocation"] | components["schemas"]["FluxModelLoaderInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["GetMaskBoundingBoxInvocation"] | components["schemas"]["GroundingDinoInvocation"] | components["schemas"]["HEDEdgeDetectionInvocation"] | components["schemas"]["HeuristicResizeInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["IdealSizeInvocation"] | components["schemas"]["Ideogram4CaptionBuilderInvocation"] | components["schemas"]["Ideogram4DenoiseInvocation"] | components["schemas"]["Ideogram4LatentsToImageInvocation"] | components["schemas"]["Ideogram4ModelLoaderInvocation"] | components["schemas"]["Ideogram4TextEncoderInvocation"] | components["schemas"]["IfInvocation"] | components["schemas"]["ImageBatchInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImageGenerator"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageMaskToTensorInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["ImageNoiseInvocation"] | components["schemas"]["ImagePanelLayoutInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["IntegerBatchInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["IntegerGenerator"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["InvertTensorMaskInvocation"] | components["schemas"]["InvokeAdjustImageHuePlusInvocation"] | components["schemas"]["InvokeEquivalentAchromaticLightnessInvocation"] | components["schemas"]["InvokeImageBlendInvocation"] | components["schemas"]["InvokeImageCompositorInvocation"] | components["schemas"]["InvokeImageDilateOrErodeInvocation"] | components["schemas"]["InvokeImageEnhanceInvocation"] | components["schemas"]["InvokeImageValueThresholdsInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["Krea2ConditioningRebalanceInvocation"] | components["schemas"]["Krea2DenoiseInvocation"] | components["schemas"]["Krea2LoRACollectionLoader"] | components["schemas"]["Krea2LoRALoaderInvocation"] | components["schemas"]["Krea2ModelLoaderInvocation"] | components["schemas"]["Krea2SeedVarianceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["NormalMapInvocation"] | components["schemas"]["OklabUnsharpMaskInvocation"] | components["schemas"]["OklchImageHueAdjustmentInvocation"] | components["schemas"]["OpenAIImageGenerationInvocation"] | components["schemas"]["PBRMapsInvocation"] | components["schemas"]["PairTileImageInvocation"] | components["schemas"]["PasteImageIntoBoundingBoxInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImageTextEncoderInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RectangleMaskInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["SD3DenoiseInvocation"] | components["schemas"]["SD3ImageToLatentsInvocation"] | components["schemas"]["SD3LatentsToImageInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["SaveImageToFileInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["Sd3ModelLoaderInvocation"] | components["schemas"]["Sd3TextEncoderInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["SeedreamImageGenerationInvocation"] | components["schemas"]["SegmentAnythingInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["SpandrelImageToImageAutoscaleInvocation"] | components["schemas"]["SpandrelImageToImageInvocation"] | components["schemas"]["StringBatchInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["StringGenerator"] | components["schemas"]["StringInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["TextLLMInvocation"] | components["schemas"]["TileToPropertiesInvocation"] | components["schemas"]["TiledMultiDiffusionDenoiseLatents"] | components["schemas"]["UnsharpMaskInvocation"] | components["schemas"]["VAELoaderInvocation"] | components["schemas"]["VideoConcatInvocation"] | components["schemas"]["VideoFrameExtractInvocation"] | components["schemas"]["VideoInvocation"] | components["schemas"]["WanDenoiseInvocation"] | components["schemas"]["WanI2VIdealDimensionsInvocation"] | components["schemas"]["WanImageToLatentsInvocation"] | components["schemas"]["WanLatentsToImageInvocation"] | components["schemas"]["WanLatentsToVideoInvocation"] | components["schemas"]["WanLoRACollectionLoader"] | components["schemas"]["WanLoRALoaderInvocation"] | components["schemas"]["WanModelLoaderInvocation"] | components["schemas"]["WanRefImageEncoderInvocation"] | components["schemas"]["WanTI2VIdealDimensionsInvocation"] | components["schemas"]["WanTextEncoderInvocation"] | components["schemas"]["WanVideoDenoiseInvocation"] | components["schemas"]["WorkflowReturnGetInvocation"] | components["schemas"]["WorkflowReturnInvocation"] | components["schemas"]["WorkflowReturnValueInvocation"] | components["schemas"]["ZImageControlInvocation"] | components["schemas"]["ZImageDenoiseInvocation"] | components["schemas"]["ZImageDenoiseMetaInvocation"] | components["schemas"]["ZImageImageToLatentsInvocation"] | components["schemas"]["ZImageLatentsToImageInvocation"] | components["schemas"]["ZImageLoRACollectionLoader"] | components["schemas"]["ZImageLoRALoaderInvocation"] | components["schemas"]["ZImageModelLoaderInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];/*** Invocation Source Id* @description The ID of the prepared invocation's source node@@ -17123,7 +17123,7 @@ export type components = {* Result* @description The result of the invocation*/- result: components["schemas"]["AnimaConditioningOutput"] | components["schemas"]["AnimaLLLiteOutput"] | components["schemas"]["AnimaLoRALoaderOutput"] | components["schemas"]["AnimaModelLoaderOutput"] | components["schemas"]["BooleanCollectionOutput"] | components["schemas"]["BooleanOutput"] | components["schemas"]["BoundingBoxCollectionOutput"] | components["schemas"]["BoundingBoxOutput"] | components["schemas"]["CLIPOutput"] | components["schemas"]["CLIPSkipInvocationOutput"] | components["schemas"]["CalculateImageTilesOutput"] | components["schemas"]["CogView4ConditioningOutput"] | components["schemas"]["CogView4ModelLoaderOutput"] | components["schemas"]["CollectInvocationOutput"] | components["schemas"]["ColorCollectionOutput"] | components["schemas"]["ColorOutput"] | components["schemas"]["ConditioningCollectionOutput"] | components["schemas"]["ConditioningOutput"] | components["schemas"]["ControlOutput"] | components["schemas"]["DenoiseMaskOutput"] | components["schemas"]["ExtractVideoRangeOutput"] | components["schemas"]["FaceMaskOutput"] | components["schemas"]["FaceOffOutput"] | components["schemas"]["FloatCollectionOutput"] | components["schemas"]["FloatGeneratorOutput"] | components["schemas"]["FloatOutput"] | components["schemas"]["Flux2KleinLoRALoaderOutput"] | components["schemas"]["Flux2KleinModelLoaderOutput"] | components["schemas"]["FluxConditioningCollectionOutput"] | components["schemas"]["FluxConditioningOutput"] | components["schemas"]["FluxControlLoRALoaderOutput"] | components["schemas"]["FluxControlNetOutput"] | components["schemas"]["FluxFillOutput"] | components["schemas"]["FluxKontextOutput"] | components["schemas"]["FluxLoRALoaderOutput"] | components["schemas"]["FluxModelLoaderOutput"] | components["schemas"]["FluxReduxOutput"] | components["schemas"]["GradientMaskOutput"] | components["schemas"]["IPAdapterOutput"] | components["schemas"]["IdealSizeOutput"] | components["schemas"]["Ideogram4ConditioningOutput"] | components["schemas"]["Ideogram4ModelLoaderOutput"] | components["schemas"]["IfInvocationOutput"] | components["schemas"]["ImageCollectionOutput"] | components["schemas"]["ImageGeneratorOutput"] | components["schemas"]["ImageOutput"] | components["schemas"]["ImagePanelCoordinateOutput"] | components["schemas"]["IntegerCollectionOutput"] | components["schemas"]["IntegerGeneratorOutput"] | components["schemas"]["IntegerOutput"] | components["schemas"]["IterateInvocationOutput"] | components["schemas"]["LatentsCollectionOutput"] | components["schemas"]["LatentsMetaOutput"] | components["schemas"]["LatentsOutput"] | components["schemas"]["LoRALoaderOutput"] | components["schemas"]["LoRASelectorOutput"] | components["schemas"]["MDControlListOutput"] | components["schemas"]["MDIPAdapterListOutput"] | components["schemas"]["MDT2IAdapterListOutput"] | components["schemas"]["MaskOutput"] | components["schemas"]["MetadataItemOutput"] | components["schemas"]["MetadataOutput"] | components["schemas"]["MetadataToLorasCollectionOutput"] | components["schemas"]["MetadataToModelOutput"] | components["schemas"]["MetadataToSDXLModelOutput"] | components["schemas"]["ModelIdentifierOutput"] | components["schemas"]["ModelLoaderOutput"] | components["schemas"]["NoiseOutput"] | components["schemas"]["PBRMapsOutput"] | components["schemas"]["PairTileImageOutput"] | components["schemas"]["PromptTemplateOutput"] | components["schemas"]["QwenImageConditioningOutput"] | components["schemas"]["QwenImageLoRALoaderOutput"] | components["schemas"]["QwenImageModelLoaderOutput"] | components["schemas"]["SD3ConditioningOutput"] | components["schemas"]["SDXLLoRALoaderOutput"] | components["schemas"]["SDXLModelLoaderOutput"] | components["schemas"]["SDXLRefinerModelLoaderOutput"] | components["schemas"]["SchedulerOutput"] | components["schemas"]["Sd3ModelLoaderOutput"] | components["schemas"]["SeamlessModeOutput"] | components["schemas"]["String2Output"] | components["schemas"]["StringCollectionOutput"] | components["schemas"]["StringGeneratorOutput"] | components["schemas"]["StringOutput"] | components["schemas"]["StringPosNegOutput"] | components["schemas"]["T2IAdapterOutput"] | components["schemas"]["TileToPropertiesOutput"] | components["schemas"]["UNetOutput"] | components["schemas"]["VAEOutput"] | components["schemas"]["VideoOutput"] | components["schemas"]["WanConditioningOutput"] | components["schemas"]["WanLoRALoaderOutput"] | components["schemas"]["WanModelLoaderOutput"] | components["schemas"]["WanRefImageOutput"] | components["schemas"]["WorkflowReturnGetOutput"] | components["schemas"]["WorkflowReturnOutput"] | components["schemas"]["WorkflowReturnValueOutput"] | components["schemas"]["ZImageConditioningOutput"] | components["schemas"]["ZImageControlOutput"] | components["schemas"]["ZImageLoRALoaderOutput"] | components["schemas"]["ZImageModelLoaderOutput"];+ result: components["schemas"]["AnimaConditioningOutput"] | components["schemas"]["AnimaLLLiteOutput"] | components["schemas"]["AnimaLoRALoaderOutput"] | components["schemas"]["AnimaModelLoaderOutput"] | components["schemas"]["BooleanCollectionOutput"] | components["schemas"]["BooleanOutput"] | components["schemas"]["BoundingBoxCollectionOutput"] | components["schemas"]["BoundingBoxOutput"] | components["schemas"]["CLIPOutput"] | components["schemas"]["CLIPSkipInvocationOutput"] | components["schemas"]["CalculateImageTilesOutput"] | components["schemas"]["CogView4ConditioningOutput"] | components["schemas"]["CogView4ModelLoaderOutput"] | components["schemas"]["CollectInvocationOutput"] | components["schemas"]["ColorCollectionOutput"] | components["schemas"]["ColorOutput"] | components["schemas"]["ConditioningCollectionOutput"] | components["schemas"]["ConditioningOutput"] | components["schemas"]["ControlOutput"] | components["schemas"]["DenoiseMaskOutput"] | components["schemas"]["ExtractVideoRangeOutput"] | components["schemas"]["FaceMaskOutput"] | components["schemas"]["FaceOffOutput"] | components["schemas"]["FloatCollectionOutput"] | components["schemas"]["FloatGeneratorOutput"] | components["schemas"]["FloatOutput"] | components["schemas"]["Flux2KleinLoRALoaderOutput"] | components["schemas"]["Flux2KleinModelLoaderOutput"] | components["schemas"]["FluxConditioningCollectionOutput"] | components["schemas"]["FluxConditioningOutput"] | components["schemas"]["FluxControlLoRALoaderOutput"] | components["schemas"]["FluxControlNetOutput"] | components["schemas"]["FluxFillOutput"] | components["schemas"]["FluxKontextOutput"] | components["schemas"]["FluxLoRALoaderOutput"] | components["schemas"]["FluxModelLoaderOutput"] | components["schemas"]["FluxReduxOutput"] | components["schemas"]["GradientMaskOutput"] | components["schemas"]["IPAdapterOutput"] | components["schemas"]["IdealSizeOutput"] | components["schemas"]["Ideogram4ConditioningOutput"] | components["schemas"]["Ideogram4ModelLoaderOutput"] | components["schemas"]["IfInvocationOutput"] | components["schemas"]["ImageCollectionOutput"] | components["schemas"]["ImageGeneratorOutput"] | components["schemas"]["ImageOutput"] | components["schemas"]["ImagePanelCoordinateOutput"] | components["schemas"]["IntegerCollectionOutput"] | components["schemas"]["IntegerGeneratorOutput"] | components["schemas"]["IntegerOutput"] | components["schemas"]["IterateInvocationOutput"] | components["schemas"]["Krea2ConditioningOutput"] | components["schemas"]["Krea2LoRALoaderOutput"] | components["schemas"]["Krea2ModelLoaderOutput"] | components["schemas"]["LatentsCollectionOutput"] | components["schemas"]["LatentsMetaOutput"] | components["schemas"]["LatentsOutput"] | components["schemas"]["LoRALoaderOutput"] | components["schemas"]["LoRASelectorOutput"] | components["schemas"]["MDControlListOutput"] | components["schemas"]["MDIPAdapterListOutput"] | components["schemas"]["MDT2IAdapterListOutput"] | components["schemas"]["MaskOutput"] | components["schemas"]["MetadataItemOutput"] | components["schemas"]["MetadataOutput"] | components["schemas"]["MetadataToLorasCollectionOutput"] | components["schemas"]["MetadataToModelOutput"] | components["schemas"]["MetadataToSDXLModelOutput"] | components["schemas"]["ModelIdentifierOutput"] | components["schemas"]["ModelLoaderOutput"] | components["schemas"]["NoiseOutput"] | components["schemas"]["PBRMapsOutput"] | components["schemas"]["PairTileImageOutput"] | components["schemas"]["PromptTemplateOutput"] | components["schemas"]["QwenImageConditioningOutput"] | components["schemas"]["QwenImageLoRALoaderOutput"] | components["schemas"]["QwenImageModelLoaderOutput"] | components["schemas"]["SD3ConditioningOutput"] | components["schemas"]["SDXLLoRALoaderOutput"] | components["schemas"]["SDXLModelLoaderOutput"] | components["schemas"]["SDXLRefinerModelLoaderOutput"] | components["schemas"]["SchedulerOutput"] | components["schemas"]["Sd3ModelLoaderOutput"] | components["schemas"]["SeamlessModeOutput"] | components["schemas"]["String2Output"] | components["schemas"]["StringCollectionOutput"] | components["schemas"]["StringGeneratorOutput"] | components["schemas"]["StringOutput"] | components["schemas"]["StringPosNegOutput"] | components["schemas"]["T2IAdapterOutput"] | components["schemas"]["TileToPropertiesOutput"] | components["schemas"]["UNetOutput"] | components["schemas"]["VAEOutput"] | components["schemas"]["VideoOutput"] | components["schemas"]["WanConditioningOutput"] | components["schemas"]["WanLoRALoaderOutput"] | components["schemas"]["WanModelLoaderOutput"] | components["schemas"]["WanRefImageOutput"] | components["schemas"]["WorkflowReturnGetOutput"] | components["schemas"]["WorkflowReturnOutput"] | components["schemas"]["WorkflowReturnValueOutput"] | components["schemas"]["ZImageConditioningOutput"] | components["schemas"]["ZImageControlOutput"] | components["schemas"]["ZImageLoRALoaderOutput"] | components["schemas"]["ZImageModelLoaderOutput"];};/*** InvocationErrorEvent@@ -17177,7 +17177,7 @@ export type components = {* Invocation* @description The ID of the invocation*/- invocation: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["CreateGradientMaskInvocation"] | components["schemas"]["CropImageToBoundingBoxInvocation"] | components["schemas"]["CropLatentsCoreInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["DWOpenposeDetectionInvocation"] | components["schemas"]["DecodeInvisibleWatermarkInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["DenoiseLatentsMetaInvocation"] | components["schemas"]["DepthAnythingDepthEstimationInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["ExpandMaskWithFadeInvocation"] | components["schemas"]["ExtractVideoRangeInvocation"] | components["schemas"]["FLUXLoRACollectionLoader"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["FloatBatchInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["FloatGenerator"] | components["schemas"]["FloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["FluxControlLoRALoaderInvocation"] | components["schemas"]["FluxControlNetInvocation"] | components["schemas"]["FluxDenoiseInvocation"] | components["schemas"]["FluxDenoiseLatentsMetaInvocation"] | components["schemas"]["FluxFillInvocation"] | components["schemas"]["FluxIPAdapterInvocation"] | components["schemas"]["FluxKontextConcatenateImagesInvocation"] | components["schemas"]["FluxKontextInvocation"] | components["schemas"]["FluxLoRALoaderInvocation"] | components["schemas"]["FluxModelLoaderInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["GetMaskBoundingBoxInvocation"] | components["schemas"]["GroundingDinoInvocation"] | components["schemas"]["HEDEdgeDetectionInvocation"] | components["schemas"]["HeuristicResizeInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["IdealSizeInvocation"] | components["schemas"]["Ideogram4CaptionBuilderInvocation"] | components["schemas"]["Ideogram4DenoiseInvocation"] | components["schemas"]["Ideogram4LatentsToImageInvocation"] | components["schemas"]["Ideogram4ModelLoaderInvocation"] | components["schemas"]["Ideogram4TextEncoderInvocation"] | components["schemas"]["IfInvocation"] | components["schemas"]["ImageBatchInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImageGenerator"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageMaskToTensorInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["ImageNoiseInvocation"] | components["schemas"]["ImagePanelLayoutInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["IntegerBatchInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["IntegerGenerator"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["InvertTensorMaskInvocation"] | components["schemas"]["InvokeAdjustImageHuePlusInvocation"] | components["schemas"]["InvokeEquivalentAchromaticLightnessInvocation"] | components["schemas"]["InvokeImageBlendInvocation"] | components["schemas"]["InvokeImageCompositorInvocation"] | components["schemas"]["InvokeImageDilateOrErodeInvocation"] | components["schemas"]["InvokeImageEnhanceInvocation"] | components["schemas"]["InvokeImageValueThresholdsInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["NormalMapInvocation"] | components["schemas"]["OklabUnsharpMaskInvocation"] | components["schemas"]["OklchImageHueAdjustmentInvocation"] | components["schemas"]["OpenAIImageGenerationInvocation"] | components["schemas"]["PBRMapsInvocation"] | components["schemas"]["PairTileImageInvocation"] | components["schemas"]["PasteImageIntoBoundingBoxInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImageTextEncoderInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RectangleMaskInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["SD3DenoiseInvocation"] | components["schemas"]["SD3ImageToLatentsInvocation"] | components["schemas"]["SD3LatentsToImageInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["SaveImageToFileInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["Sd3ModelLoaderInvocation"] | components["schemas"]["Sd3TextEncoderInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["SeedreamImageGenerationInvocation"] | components["schemas"]["SegmentAnythingInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["SpandrelImageToImageAutoscaleInvocation"] | components["schemas"]["SpandrelImageToImageInvocation"] | components["schemas"]["StringBatchInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["StringGenerator"] | components["schemas"]["StringInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["TextLLMInvocation"] | components["schemas"]["TileToPropertiesInvocation"] | components["schemas"]["TiledMultiDiffusionDenoiseLatents"] | components["schemas"]["UnsharpMaskInvocation"] | components["schemas"]["VAELoaderInvocation"] | components["schemas"]["VideoConcatInvocation"] | components["schemas"]["VideoFrameExtractInvocation"] | components["schemas"]["VideoInvocation"] | components["schemas"]["WanDenoiseInvocation"] | components["schemas"]["WanI2VIdealDimensionsInvocation"] | components["schemas"]["WanImageToLatentsInvocation"] | components["schemas"]["WanLatentsToImageInvocation"] | components["schemas"]["WanLatentsToVideoInvocation"] | components["schemas"]["WanLoRACollectionLoader"] | components["schemas"]["WanLoRALoaderInvocation"] | components["schemas"]["WanModelLoaderInvocation"] | components["schemas"]["WanRefImageEncoderInvocation"] | components["schemas"]["WanTI2VIdealDimensionsInvocation"] | components["schemas"]["WanTextEncoderInvocation"] | components["schemas"]["WanVideoDenoiseInvocation"] | components["schemas"]["WorkflowReturnGetInvocation"] | components["schemas"]["WorkflowReturnInvocation"] | components["schemas"]["WorkflowReturnValueInvocation"] | components["schemas"]["ZImageControlInvocation"] | components["schemas"]["ZImageDenoiseInvocation"] | components["schemas"]["ZImageDenoiseMetaInvocation"] | components["schemas"]["ZImageImageToLatentsInvocation"] | components["schemas"]["ZImageLatentsToImageInvocation"] | components["schemas"]["ZImageLoRACollectionLoader"] | components["schemas"]["ZImageLoRALoaderInvocation"] | components["schemas"]["ZImageModelLoaderInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];+ invocation: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["CreateGradientMaskInvocation"] | components["schemas"]["CropImageToBoundingBoxInvocation"] | components["schemas"]["CropLatentsCoreInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["DWOpenposeDetectionInvocation"] | components["schemas"]["DecodeInvisibleWatermarkInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["DenoiseLatentsMetaInvocation"] | components["schemas"]["DepthAnythingDepthEstimationInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["ExpandMaskWithFadeInvocation"] | components["schemas"]["ExtractVideoRangeInvocation"] | components["schemas"]["FLUXLoRACollectionLoader"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["FloatBatchInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["FloatGenerator"] | components["schemas"]["FloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["FluxControlLoRALoaderInvocation"] | components["schemas"]["FluxControlNetInvocation"] | components["schemas"]["FluxDenoiseInvocation"] | components["schemas"]["FluxDenoiseLatentsMetaInvocation"] | components["schemas"]["FluxFillInvocation"] | components["schemas"]["FluxIPAdapterInvocation"] | components["schemas"]["FluxKontextConcatenateImagesInvocation"] | components["schemas"]["FluxKontextInvocation"] | components["schemas"]["FluxLoRALoaderInvocation"] | components["schemas"]["FluxModelLoaderInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["GetMaskBoundingBoxInvocation"] | components["schemas"]["GroundingDinoInvocation"] | components["schemas"]["HEDEdgeDetectionInvocation"] | components["schemas"]["HeuristicResizeInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["IdealSizeInvocation"] | components["schemas"]["Ideogram4CaptionBuilderInvocation"] | components["schemas"]["Ideogram4DenoiseInvocation"] | components["schemas"]["Ideogram4LatentsToImageInvocation"] | components["schemas"]["Ideogram4ModelLoaderInvocation"] | components["schemas"]["Ideogram4TextEncoderInvocation"] | components["schemas"]["IfInvocation"] | components["schemas"]["ImageBatchInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImageGenerator"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageMaskToTensorInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["ImageNoiseInvocation"] | components["schemas"]["ImagePanelLayoutInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["IntegerBatchInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["IntegerGenerator"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["InvertTensorMaskInvocation"] | components["schemas"]["InvokeAdjustImageHuePlusInvocation"] | components["schemas"]["InvokeEquivalentAchromaticLightnessInvocation"] | components["schemas"]["InvokeImageBlendInvocation"] | components["schemas"]["InvokeImageCompositorInvocation"] | components["schemas"]["InvokeImageDilateOrErodeInvocation"] | components["schemas"]["InvokeImageEnhanceInvocation"] | components["schemas"]["InvokeImageValueThresholdsInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["Krea2ConditioningRebalanceInvocation"] | components["schemas"]["Krea2DenoiseInvocation"] | components["schemas"]["Krea2LoRACollectionLoader"] | components["schemas"]["Krea2LoRALoaderInvocation"] | components["schemas"]["Krea2ModelLoaderInvocation"] | components["schemas"]["Krea2SeedVarianceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["NormalMapInvocation"] | components["schemas"]["OklabUnsharpMaskInvocation"] | components["schemas"]["OklchImageHueAdjustmentInvocation"] | components["schemas"]["OpenAIImageGenerationInvocation"] | components["schemas"]["PBRMapsInvocation"] | components["schemas"]["PairTileImageInvocation"] | components["schemas"]["PasteImageIntoBoundingBoxInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImageTextEncoderInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RectangleMaskInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["SD3DenoiseInvocation"] | components["schemas"]["SD3ImageToLatentsInvocation"] | components["schemas"]["SD3LatentsToImageInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["SaveImageToFileInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["Sd3ModelLoaderInvocation"] | components["schemas"]["Sd3TextEncoderInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["SeedreamImageGenerationInvocation"] | components["schemas"]["SegmentAnythingInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["SpandrelImageToImageAutoscaleInvocation"] | components["schemas"]["SpandrelImageToImageInvocation"] | components["schemas"]["StringBatchInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["StringGenerator"] | components["schemas"]["StringInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["TextLLMInvocation"] | components["schemas"]["TileToPropertiesInvocation"] | components["schemas"]["TiledMultiDiffusionDenoiseLatents"] | components["schemas"]["UnsharpMaskInvocation"] | components["schemas"]["VAELoaderInvocation"] | components["schemas"]["VideoConcatInvocation"] | components["schemas"]["VideoFrameExtractInvocation"] | components["schemas"]["VideoInvocation"] | components["schemas"]["WanDenoiseInvocation"] | components["schemas"]["WanI2VIdealDimensionsInvocation"] | components["schemas"]["WanImageToLatentsInvocation"] | components["schemas"]["WanLatentsToImageInvocation"] | components["schemas"]["WanLatentsToVideoInvocation"] | components["schemas"]["WanLoRACollectionLoader"] | components["schemas"]["WanLoRALoaderInvocation"] | components["schemas"]["WanModelLoaderInvocation"] | components["schemas"]["WanRefImageEncoderInvocation"] | components["schemas"]["WanTI2VIdealDimensionsInvocation"] | components["schemas"]["WanTextEncoderInvocation"] | components["schemas"]["WanVideoDenoiseInvocation"] | components["schemas"]["WorkflowReturnGetInvocation"] | components["schemas"]["WorkflowReturnInvocation"] | components["schemas"]["WorkflowReturnValueInvocation"] | components["schemas"]["ZImageControlInvocation"] | components["schemas"]["ZImageDenoiseInvocation"] | components["schemas"]["ZImageDenoiseMetaInvocation"] | components["schemas"]["ZImageImageToLatentsInvocation"] | components["schemas"]["ZImageLatentsToImageInvocation"] | components["schemas"]["ZImageLoRACollectionLoader"] | components["schemas"]["ZImageLoRALoaderInvocation"] | components["schemas"]["ZImageModelLoaderInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];/*** Invocation Source Id* @description The ID of the prepared invocation's source node@@ -17346,6 +17346,13 @@ export type components = {invokeai_img_val_thresholds: components["schemas"]["ImageOutput"];ip_adapter: components["schemas"]["IPAdapterOutput"];iterate: components["schemas"]["IterateInvocationOutput"];+ krea2_conditioning_rebalance: components["schemas"]["Krea2ConditioningOutput"];+ krea2_denoise: components["schemas"]["LatentsOutput"];+ krea2_lora_collection_loader: components["schemas"]["Krea2LoRALoaderOutput"];+ krea2_lora_loader: components["schemas"]["Krea2LoRALoaderOutput"];+ krea2_model_loader: components["schemas"]["Krea2ModelLoaderOutput"];+ krea2_seed_variance: components["schemas"]["Krea2ConditioningOutput"];+ krea2_text_encoder: components["schemas"]["Krea2ConditioningOutput"];l2i: components["schemas"]["ImageOutput"];latents: components["schemas"]["LatentsOutput"];latents_collection: components["schemas"]["LatentsCollectionOutput"];@@ -17534,7 +17541,7 @@ export type components = {* Invocation* @description The ID of the invocation*/- invocation: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["CreateGradientMaskInvocation"] | components["schemas"]["CropImageToBoundingBoxInvocation"] | components["schemas"]["CropLatentsCoreInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["DWOpenposeDetectionInvocation"] | components["schemas"]["DecodeInvisibleWatermarkInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["DenoiseLatentsMetaInvocation"] | components["schemas"]["DepthAnythingDepthEstimationInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["ExpandMaskWithFadeInvocation"] | components["schemas"]["ExtractVideoRangeInvocation"] | components["schemas"]["FLUXLoRACollectionLoader"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["FloatBatchInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["FloatGenerator"] | components["schemas"]["FloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["FluxControlLoRALoaderInvocation"] | components["schemas"]["FluxControlNetInvocation"] | components["schemas"]["FluxDenoiseInvocation"] | components["schemas"]["FluxDenoiseLatentsMetaInvocation"] | components["schemas"]["FluxFillInvocation"] | components["schemas"]["FluxIPAdapterInvocation"] | components["schemas"]["FluxKontextConcatenateImagesInvocation"] | components["schemas"]["FluxKontextInvocation"] | components["schemas"]["FluxLoRALoaderInvocation"] | components["schemas"]["FluxModelLoaderInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["GetMaskBoundingBoxInvocation"] | components["schemas"]["GroundingDinoInvocation"] | components["schemas"]["HEDEdgeDetectionInvocation"] | components["schemas"]["HeuristicResizeInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["IdealSizeInvocation"] | components["schemas"]["Ideogram4CaptionBuilderInvocation"] | components["schemas"]["Ideogram4DenoiseInvocation"] | components["schemas"]["Ideogram4LatentsToImageInvocation"] | components["schemas"]["Ideogram4ModelLoaderInvocation"] | components["schemas"]["Ideogram4TextEncoderInvocation"] | components["schemas"]["IfInvocation"] | components["schemas"]["ImageBatchInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImageGenerator"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageMaskToTensorInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["ImageNoiseInvocation"] | components["schemas"]["ImagePanelLayoutInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["IntegerBatchInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["IntegerGenerator"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["InvertTensorMaskInvocation"] | components["schemas"]["InvokeAdjustImageHuePlusInvocation"] | components["schemas"]["InvokeEquivalentAchromaticLightnessInvocation"] | components["schemas"]["InvokeImageBlendInvocation"] | components["schemas"]["InvokeImageCompositorInvocation"] | components["schemas"]["InvokeImageDilateOrErodeInvocation"] | components["schemas"]["InvokeImageEnhanceInvocation"] | components["schemas"]["InvokeImageValueThresholdsInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["NormalMapInvocation"] | components["schemas"]["OklabUnsharpMaskInvocation"] | components["schemas"]["OklchImageHueAdjustmentInvocation"] | components["schemas"]["OpenAIImageGenerationInvocation"] | components["schemas"]["PBRMapsInvocation"] | components["schemas"]["PairTileImageInvocation"] | components["schemas"]["PasteImageIntoBoundingBoxInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImageTextEncoderInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RectangleMaskInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["SD3DenoiseInvocation"] | components["schemas"]["SD3ImageToLatentsInvocation"] | components["schemas"]["SD3LatentsToImageInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["SaveImageToFileInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["Sd3ModelLoaderInvocation"] | components["schemas"]["Sd3TextEncoderInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["SeedreamImageGenerationInvocation"] | components["schemas"]["SegmentAnythingInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["SpandrelImageToImageAutoscaleInvocation"] | components["schemas"]["SpandrelImageToImageInvocation"] | components["schemas"]["StringBatchInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["StringGenerator"] | components["schemas"]["StringInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["TextLLMInvocation"] | components["schemas"]["TileToPropertiesInvocation"] | components["schemas"]["TiledMultiDiffusionDenoiseLatents"] | components["schemas"]["UnsharpMaskInvocation"] | components["schemas"]["VAELoaderInvocation"] | components["schemas"]["VideoConcatInvocation"] | components["schemas"]["VideoFrameExtractInvocation"] | components["schemas"]["VideoInvocation"] | components["schemas"]["WanDenoiseInvocation"] | components["schemas"]["WanI2VIdealDimensionsInvocation"] | components["schemas"]["WanImageToLatentsInvocation"] | components["schemas"]["WanLatentsToImageInvocation"] | components["schemas"]["WanLatentsToVideoInvocation"] | components["schemas"]["WanLoRACollectionLoader"] | components["schemas"]["WanLoRALoaderInvocation"] | components["schemas"]["WanModelLoaderInvocation"] | components["schemas"]["WanRefImageEncoderInvocation"] | components["schemas"]["WanTI2VIdealDimensionsInvocation"] | components["schemas"]["WanTextEncoderInvocation"] | components["schemas"]["WanVideoDenoiseInvocation"] | components["schemas"]["WorkflowReturnGetInvocation"] | components["schemas"]["WorkflowReturnInvocation"] | components["schemas"]["WorkflowReturnValueInvocation"] | components["schemas"]["ZImageControlInvocation"] | components["schemas"]["ZImageDenoiseInvocation"] | components["schemas"]["ZImageDenoiseMetaInvocation"] | components["schemas"]["ZImageImageToLatentsInvocation"] | components["schemas"]["ZImageLatentsToImageInvocation"] | components["schemas"]["ZImageLoRACollectionLoader"] | components["schemas"]["ZImageLoRALoaderInvocation"] | components["schemas"]["ZImageModelLoaderInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];+ invocation: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["CreateGradientMaskInvocation"] | components["schemas"]["CropImageToBoundingBoxInvocation"] | components["schemas"]["CropLatentsCoreInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["DWOpenposeDetectionInvocation"] | components["schemas"]["DecodeInvisibleWatermarkInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["DenoiseLatentsMetaInvocation"] | components["schemas"]["DepthAnythingDepthEstimationInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["ExpandMaskWithFadeInvocation"] | components["schemas"]["ExtractVideoRangeInvocation"] | components["schemas"]["FLUXLoRACollectionLoader"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["FloatBatchInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["FloatGenerator"] | components["schemas"]["FloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["FluxControlLoRALoaderInvocation"] | components["schemas"]["FluxControlNetInvocation"] | components["schemas"]["FluxDenoiseInvocation"] | components["schemas"]["FluxDenoiseLatentsMetaInvocation"] | components["schemas"]["FluxFillInvocation"] | components["schemas"]["FluxIPAdapterInvocation"] | components["schemas"]["FluxKontextConcatenateImagesInvocation"] | components["schemas"]["FluxKontextInvocation"] | components["schemas"]["FluxLoRALoaderInvocation"] | components["schemas"]["FluxModelLoaderInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["GetMaskBoundingBoxInvocation"] | components["schemas"]["GroundingDinoInvocation"] | components["schemas"]["HEDEdgeDetectionInvocation"] | components["schemas"]["HeuristicResizeInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["IdealSizeInvocation"] | components["schemas"]["Ideogram4CaptionBuilderInvocation"] | components["schemas"]["Ideogram4DenoiseInvocation"] | components["schemas"]["Ideogram4LatentsToImageInvocation"] | components["schemas"]["Ideogram4ModelLoaderInvocation"] | components["schemas"]["Ideogram4TextEncoderInvocation"] | components["schemas"]["IfInvocation"] | components["schemas"]["ImageBatchInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImageGenerator"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageMaskToTensorInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["ImageNoiseInvocation"] | components["schemas"]["ImagePanelLayoutInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["IntegerBatchInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["IntegerGenerator"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["InvertTensorMaskInvocation"] | components["schemas"]["InvokeAdjustImageHuePlusInvocation"] | components["schemas"]["InvokeEquivalentAchromaticLightnessInvocation"] | components["schemas"]["InvokeImageBlendInvocation"] | components["schemas"]["InvokeImageCompositorInvocation"] | components["schemas"]["InvokeImageDilateOrErodeInvocation"] | components["schemas"]["InvokeImageEnhanceInvocation"] | components["schemas"]["InvokeImageValueThresholdsInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["Krea2ConditioningRebalanceInvocation"] | components["schemas"]["Krea2DenoiseInvocation"] | components["schemas"]["Krea2LoRACollectionLoader"] | components["schemas"]["Krea2LoRALoaderInvocation"] | components["schemas"]["Krea2ModelLoaderInvocation"] | components["schemas"]["Krea2SeedVarianceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["NormalMapInvocation"] | components["schemas"]["OklabUnsharpMaskInvocation"] | components["schemas"]["OklchImageHueAdjustmentInvocation"] | components["schemas"]["OpenAIImageGenerationInvocation"] | components["schemas"]["PBRMapsInvocation"] | components["schemas"]["PairTileImageInvocation"] | components["schemas"]["PasteImageIntoBoundingBoxInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImageTextEncoderInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RectangleMaskInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["SD3DenoiseInvocation"] | components["schemas"]["SD3ImageToLatentsInvocation"] | components["schemas"]["SD3LatentsToImageInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["SaveImageToFileInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["Sd3ModelLoaderInvocation"] | components["schemas"]["Sd3TextEncoderInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["SeedreamImageGenerationInvocation"] | components["schemas"]["SegmentAnythingInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["SpandrelImageToImageAutoscaleInvocation"] | components["schemas"]["SpandrelImageToImageInvocation"] | components["schemas"]["StringBatchInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["StringGenerator"] | components["schemas"]["StringInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["TextLLMInvocation"] | components["schemas"]["TileToPropertiesInvocation"] | components["schemas"]["TiledMultiDiffusionDenoiseLatents"] | components["schemas"]["UnsharpMaskInvocation"] | components["schemas"]["VAELoaderInvocation"] | components["schemas"]["VideoConcatInvocation"] | components["schemas"]["VideoFrameExtractInvocation"] | components["schemas"]["VideoInvocation"] | components["schemas"]["WanDenoiseInvocation"] | components["schemas"]["WanI2VIdealDimensionsInvocation"] | components["schemas"]["WanImageToLatentsInvocation"] | components["schemas"]["WanLatentsToImageInvocation"] | components["schemas"]["WanLatentsToVideoInvocation"] | components["schemas"]["WanLoRACollectionLoader"] | components["schemas"]["WanLoRALoaderInvocation"] | components["schemas"]["WanModelLoaderInvocation"] | components["schemas"]["WanRefImageEncoderInvocation"] | components["schemas"]["WanTI2VIdealDimensionsInvocation"] | components["schemas"]["WanTextEncoderInvocation"] | components["schemas"]["WanVideoDenoiseInvocation"] | components["schemas"]["WorkflowReturnGetInvocation"] | components["schemas"]["WorkflowReturnInvocation"] | components["schemas"]["WorkflowReturnValueInvocation"] | components["schemas"]["ZImageControlInvocation"] | components["schemas"]["ZImageDenoiseInvocation"] | components["schemas"]["ZImageDenoiseMetaInvocation"] | components["schemas"]["ZImageImageToLatentsInvocation"] | components["schemas"]["ZImageLatentsToImageInvocation"] | components["schemas"]["ZImageLoRACollectionLoader"] | components["schemas"]["ZImageLoRALoaderInvocation"] | components["schemas"]["ZImageModelLoaderInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];/*** Invocation Source Id* @description The ID of the prepared invocation's source node@@ -17609,7 +17616,7 @@ export type components = {* Invocation* @description The ID of the invocation*/- invocation: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["CreateGradientMaskInvocation"] | components["schemas"]["CropImageToBoundingBoxInvocation"] | components["schemas"]["CropLatentsCoreInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["DWOpenposeDetectionInvocation"] | components["schemas"]["DecodeInvisibleWatermarkInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["DenoiseLatentsMetaInvocation"] | components["schemas"]["DepthAnythingDepthEstimationInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["ExpandMaskWithFadeInvocation"] | components["schemas"]["ExtractVideoRangeInvocation"] | components["schemas"]["FLUXLoRACollectionLoader"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["FloatBatchInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["FloatGenerator"] | components["schemas"]["FloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["FluxControlLoRALoaderInvocation"] | components["schemas"]["FluxControlNetInvocation"] | components["schemas"]["FluxDenoiseInvocation"] | components["schemas"]["FluxDenoiseLatentsMetaInvocation"] | components["schemas"]["FluxFillInvocation"] | components["schemas"]["FluxIPAdapterInvocation"] | components["schemas"]["FluxKontextConcatenateImagesInvocation"] | components["schemas"]["FluxKontextInvocation"] | components["schemas"]["FluxLoRALoaderInvocation"] | components["schemas"]["FluxModelLoaderInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["GetMaskBoundingBoxInvocation"] | components["schemas"]["GroundingDinoInvocation"] | components["schemas"]["HEDEdgeDetectionInvocation"] | components["schemas"]["HeuristicResizeInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["IdealSizeInvocation"] | components["schemas"]["Ideogram4CaptionBuilderInvocation"] | components["schemas"]["Ideogram4DenoiseInvocation"] | components["schemas"]["Ideogram4LatentsToImageInvocation"] | components["schemas"]["Ideogram4ModelLoaderInvocation"] | components["schemas"]["Ideogram4TextEncoderInvocation"] | components["schemas"]["IfInvocation"] | components["schemas"]["ImageBatchInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImageGenerator"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageMaskToTensorInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["ImageNoiseInvocation"] | components["schemas"]["ImagePanelLayoutInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["IntegerBatchInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["IntegerGenerator"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["InvertTensorMaskInvocation"] | components["schemas"]["InvokeAdjustImageHuePlusInvocation"] | components["schemas"]["InvokeEquivalentAchromaticLightnessInvocation"] | components["schemas"]["InvokeImageBlendInvocation"] | components["schemas"]["InvokeImageCompositorInvocation"] | components["schemas"]["InvokeImageDilateOrErodeInvocation"] | components["schemas"]["InvokeImageEnhanceInvocation"] | components["schemas"]["InvokeImageValueThresholdsInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["NormalMapInvocation"] | components["schemas"]["OklabUnsharpMaskInvocation"] | components["schemas"]["OklchImageHueAdjustmentInvocation"] | components["schemas"]["OpenAIImageGenerationInvocation"] | components["schemas"]["PBRMapsInvocation"] | components["schemas"]["PairTileImageInvocation"] | components["schemas"]["PasteImageIntoBoundingBoxInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImageTextEncoderInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RectangleMaskInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["SD3DenoiseInvocation"] | components["schemas"]["SD3ImageToLatentsInvocation"] | components["schemas"]["SD3LatentsToImageInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["SaveImageToFileInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["Sd3ModelLoaderInvocation"] | components["schemas"]["Sd3TextEncoderInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["SeedreamImageGenerationInvocation"] | components["schemas"]["SegmentAnythingInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["SpandrelImageToImageAutoscaleInvocation"] | components["schemas"]["SpandrelImageToImageInvocation"] | components["schemas"]["StringBatchInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["StringGenerator"] | components["schemas"]["StringInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["TextLLMInvocation"] | components["schemas"]["TileToPropertiesInvocation"] | components["schemas"]["TiledMultiDiffusionDenoiseLatents"] | components["schemas"]["UnsharpMaskInvocation"] | components["schemas"]["VAELoaderInvocation"] | components["schemas"]["VideoConcatInvocation"] | components["schemas"]["VideoFrameExtractInvocation"] | components["schemas"]["VideoInvocation"] | components["schemas"]["WanDenoiseInvocation"] | components["schemas"]["WanI2VIdealDimensionsInvocation"] | components["schemas"]["WanImageToLatentsInvocation"] | components["schemas"]["WanLatentsToImageInvocation"] | components["schemas"]["WanLatentsToVideoInvocation"] | components["schemas"]["WanLoRACollectionLoader"] | components["schemas"]["WanLoRALoaderInvocation"] | components["schemas"]["WanModelLoaderInvocation"] | components["schemas"]["WanRefImageEncoderInvocation"] | components["schemas"]["WanTI2VIdealDimensionsInvocation"] | components["schemas"]["WanTextEncoderInvocation"] | components["schemas"]["WanVideoDenoiseInvocation"] | components["schemas"]["WorkflowReturnGetInvocation"] | components["schemas"]["WorkflowReturnInvocation"] | components["schemas"]["WorkflowReturnValueInvocation"] | components["schemas"]["ZImageControlInvocation"] | components["schemas"]["ZImageDenoiseInvocation"] | components["schemas"]["ZImageDenoiseMetaInvocation"] | components["schemas"]["ZImageImageToLatentsInvocation"] | components["schemas"]["ZImageLatentsToImageInvocation"] | components["schemas"]["ZImageLoRACollectionLoader"] | components["schemas"]["ZImageLoRALoaderInvocation"] | components["schemas"]["ZImageModelLoaderInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];+ invocation: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["CreateGradientMaskInvocation"] | components["schemas"]["CropImageToBoundingBoxInvocation"] | components["schemas"]["CropLatentsCoreInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["DWOpenposeDetectionInvocation"] | components["schemas"]["DecodeInvisibleWatermarkInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["DenoiseLatentsMetaInvocation"] | components["schemas"]["DepthAnythingDepthEstimationInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["ExpandMaskWithFadeInvocation"] | components["schemas"]["ExtractVideoRangeInvocation"] | components["schemas"]["FLUXLoRACollectionLoader"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["FloatBatchInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["FloatGenerator"] | components["schemas"]["FloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["FluxControlLoRALoaderInvocation"] | components["schemas"]["FluxControlNetInvocation"] | components["schemas"]["FluxDenoiseInvocation"] | components["schemas"]["FluxDenoiseLatentsMetaInvocation"] | components["schemas"]["FluxFillInvocation"] | components["schemas"]["FluxIPAdapterInvocation"] | components["schemas"]["FluxKontextConcatenateImagesInvocation"] | components["schemas"]["FluxKontextInvocation"] | components["schemas"]["FluxLoRALoaderInvocation"] | components["schemas"]["FluxModelLoaderInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["GetMaskBoundingBoxInvocation"] | components["schemas"]["GroundingDinoInvocation"] | components["schemas"]["HEDEdgeDetectionInvocation"] | components["schemas"]["HeuristicResizeInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["IdealSizeInvocation"] | components["schemas"]["Ideogram4CaptionBuilderInvocation"] | components["schemas"]["Ideogram4DenoiseInvocation"] | components["schemas"]["Ideogram4LatentsToImageInvocation"] | components["schemas"]["Ideogram4ModelLoaderInvocation"] | components["schemas"]["Ideogram4TextEncoderInvocation"] | components["schemas"]["IfInvocation"] | components["schemas"]["ImageBatchInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImageGenerator"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageMaskToTensorInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["ImageNoiseInvocation"] | components["schemas"]["ImagePanelLayoutInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["IntegerBatchInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["IntegerGenerator"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["InvertTensorMaskInvocation"] | components["schemas"]["InvokeAdjustImageHuePlusInvocation"] | components["schemas"]["InvokeEquivalentAchromaticLightnessInvocation"] | components["schemas"]["InvokeImageBlendInvocation"] | components["schemas"]["InvokeImageCompositorInvocation"] | components["schemas"]["InvokeImageDilateOrErodeInvocation"] | components["schemas"]["InvokeImageEnhanceInvocation"] | components["schemas"]["InvokeImageValueThresholdsInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["Krea2ConditioningRebalanceInvocation"] | components["schemas"]["Krea2DenoiseInvocation"] | components["schemas"]["Krea2LoRACollectionLoader"] | components["schemas"]["Krea2LoRALoaderInvocation"] | components["schemas"]["Krea2ModelLoaderInvocation"] | components["schemas"]["Krea2SeedVarianceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["NormalMapInvocation"] | components["schemas"]["OklabUnsharpMaskInvocation"] | components["schemas"]["OklchImageHueAdjustmentInvocation"] | components["schemas"]["OpenAIImageGenerationInvocation"] | components["schemas"]["PBRMapsInvocation"] | components["schemas"]["PairTileImageInvocation"] | components["schemas"]["PasteImageIntoBoundingBoxInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImageTextEncoderInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RectangleMaskInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["SD3DenoiseInvocation"] | components["schemas"]["SD3ImageToLatentsInvocation"] | components["schemas"]["SD3LatentsToImageInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["SaveImageToFileInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["Sd3ModelLoaderInvocation"] | components["schemas"]["Sd3TextEncoderInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["SeedreamImageGenerationInvocation"] | components["schemas"]["SegmentAnythingInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["SpandrelImageToImageAutoscaleInvocation"] | components["schemas"]["SpandrelImageToImageInvocation"] | components["schemas"]["StringBatchInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["StringGenerator"] | components["schemas"]["StringInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["TextLLMInvocation"] | components["schemas"]["TileToPropertiesInvocation"] | components["schemas"]["TiledMultiDiffusionDenoiseLatents"] | components["schemas"]["UnsharpMaskInvocation"] | components["schemas"]["VAELoaderInvocation"] | components["schemas"]["VideoConcatInvocation"] | components["schemas"]["VideoFrameExtractInvocation"] | components["schemas"]["VideoInvocation"] | components["schemas"]["WanDenoiseInvocation"] | components["schemas"]["WanI2VIdealDimensionsInvocation"] | components["schemas"]["WanImageToLatentsInvocation"] | components["schemas"]["WanLatentsToImageInvocation"] | components["schemas"]["WanLatentsToVideoInvocation"] | components["schemas"]["WanLoRACollectionLoader"] | components["schemas"]["WanLoRALoaderInvocation"] | components["schemas"]["WanModelLoaderInvocation"] | components["schemas"]["WanRefImageEncoderInvocation"] | components["schemas"]["WanTI2VIdealDimensionsInvocation"] | components["schemas"]["WanTextEncoderInvocation"] | components["schemas"]["WanVideoDenoiseInvocation"] | components["schemas"]["WorkflowReturnGetInvocation"] | components["schemas"]["WorkflowReturnInvocation"] | components["schemas"]["WorkflowReturnValueInvocation"] | components["schemas"]["ZImageControlInvocation"] | components["schemas"]["ZImageDenoiseInvocation"] | components["schemas"]["ZImageDenoiseMetaInvocation"] | components["schemas"]["ZImageImageToLatentsInvocation"] | components["schemas"]["ZImageLatentsToImageInvocation"] | components["schemas"]["ZImageLoRACollectionLoader"] | components["schemas"]["ZImageLoRALoaderInvocation"] | components["schemas"]["ZImageModelLoaderInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];/*** Invocation Source Id* @description The ID of the prepared invocation's source node@@ -18757,6 +18764,509 @@ export type components = {type: "iterate_output";};JsonValue: unknown;+ /**+ * Krea2ConditioningField+ * @description A Krea-2 conditioning tensor primitive value+ */+ Krea2ConditioningField: {+ /**+ * Conditioning Name+ * @description The name of conditioning tensor+ */+ conditioning_name: string;+ };+ /**+ * Krea2ConditioningOutput+ * @description Base class for nodes that output a Krea-2 conditioning tensor.+ */+ Krea2ConditioningOutput: {+ /** @description Conditioning tensor */+ conditioning: components["schemas"]["Krea2ConditioningField"];+ /**+ * type+ * @default krea2_conditioning_output+ * @constant+ */+ type: "krea2_conditioning_output";+ };+ /**+ * Conditioning Rebalance - Krea-2+ * @description Per-layer rebalancing of Krea-2 text conditioning (improves prompt adherence).+ *+ * Krea-2 conditioning stacks 12 Qwen3-VL hidden-state layers per token. Weighting those layers+ * individually (and applying an overall multiplier) lets you push the model harder toward the prompt,+ * counteracting the quality-dilution from distillation. Ported from the ComfyUI+ * `ConditioningKrea2Rebalance` node. This is an optional pass between the text encoder and denoise.+ */+ Krea2ConditioningRebalanceInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * Conditioning+ * @description Conditioning tensor+ * @default null+ */+ conditioning?: components["schemas"]["Krea2ConditioningField"] | null;+ /**+ * Per Layer Weights+ * @description Comma-separated gains for the 12 tapped encoder layers (exactly 12 values).+ * @default 1.0,1.0,1.0,1.0,1.0,1.0,1.0,2.5,5.0,1.1,4.0,1.0+ */+ per_layer_weights?: string;+ /**+ * Multiplier+ * @description Overall multiplier applied to the conditioning after per-layer weighting.+ * @default 4+ */+ multiplier?: number;+ /**+ * type+ * @default krea2_conditioning_rebalance+ * @constant+ */+ type: "krea2_conditioning_rebalance";+ };+ /**+ * Denoise - Krea-2+ * @description Run the denoising process with a Krea-2 model.+ */+ Krea2DenoiseInvocation: {+ /**+ * @description The board to save the image to+ * @default null+ */+ board?: components["schemas"]["BoardField"] | null;+ /**+ * @description Optional metadata to be saved with the image+ * @default null+ */+ metadata?: components["schemas"]["MetadataField"] | null;+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * @description Latents tensor+ * @default null+ */+ latents?: components["schemas"]["LatentsField"] | null;+ /**+ * @description A mask of the region to apply the denoising process to. Values of 0.0 represent the regions to be fully denoised, and 1.0 represent the regions to be preserved.+ * @default null+ */+ denoise_mask?: components["schemas"]["DenoiseMaskField"] | null;+ /**+ * Denoising Start+ * @description When to start denoising, expressed a percentage of total steps+ * @default 0+ */+ denoising_start?: number;+ /**+ * Denoising End+ * @description When to stop denoising, expressed a percentage of total steps+ * @default 1+ */+ denoising_end?: number;+ /**+ * Transformer+ * @description Krea-2 model (Transformer) to load+ * @default null+ */+ transformer?: components["schemas"]["TransformerField"] | null;+ /**+ * @description Positive conditioning tensor+ * @default null+ */+ positive_conditioning?: components["schemas"]["Krea2ConditioningField"] | null;+ /**+ * @description Negative conditioning tensor+ * @default null+ */+ negative_conditioning?: components["schemas"]["Krea2ConditioningField"] | null;+ /**+ * CFG Scale+ * @description Classifier-Free Guidance scale+ * @default 1+ */+ cfg_scale?: number | number[];+ /**+ * Width+ * @description Width of the generated image.+ * @default 1024+ */+ width?: number;+ /**+ * Height+ * @description Height of the generated image.+ * @default 1024+ */+ height?: number;+ /**+ * Steps+ * @description Number of steps to run+ * @default 8+ */+ steps?: number;+ /**+ * Seed+ * @description Randomness seed for reproducibility.+ * @default 0+ */+ seed?: number;+ /**+ * Shift+ * @description Override the resolution-aware timestep shift (mu). Leave unset to use the model default (mu=1.15 for the distilled Turbo checkpoint).+ * @default null+ */+ shift?: number | null;+ /**+ * type+ * @default krea2_denoise+ * @constant+ */+ type: "krea2_denoise";+ };+ /**+ * Apply LoRA Collection - Krea-2+ * @description Applies a collection of LoRAs to a Krea-2 transformer and/or Qwen3-VL encoder.+ */+ Krea2LoRACollectionLoader: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * LoRAs+ * @description LoRA models and weights. May be a single LoRA or collection.+ * @default null+ */+ loras?: components["schemas"]["LoRAField"] | components["schemas"]["LoRAField"][] | null;+ /**+ * Transformer+ * @description Transformer+ * @default null+ */+ transformer?: components["schemas"]["TransformerField"] | null;+ /**+ * Qwen3-VL Encoder+ * @description Qwen3-VL tokenizer and text encoder+ * @default null+ */+ qwen3_vl_encoder?: components["schemas"]["Qwen3VLEncoderField"] | null;+ /**+ * type+ * @default krea2_lora_collection_loader+ * @constant+ */+ type: "krea2_lora_collection_loader";+ };+ /**+ * Apply LoRA - Krea-2+ * @description Apply a LoRA model to a Krea-2 transformer and/or Qwen3-VL text encoder.+ */+ Krea2LoRALoaderInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * LoRA+ * @description LoRA model to load+ * @default null+ */+ lora?: components["schemas"]["ModelIdentifierField"] | null;+ /**+ * Weight+ * @description The weight at which the LoRA is applied to each model+ * @default 0.75+ */+ weight?: number;+ /**+ * Krea-2 Transformer+ * @description Transformer+ * @default null+ */+ transformer?: components["schemas"]["TransformerField"] | null;+ /**+ * Qwen3-VL Encoder+ * @description Qwen3-VL tokenizer and text encoder+ * @default null+ */+ qwen3_vl_encoder?: components["schemas"]["Qwen3VLEncoderField"] | null;+ /**+ * type+ * @default krea2_lora_loader+ * @constant+ */+ type: "krea2_lora_loader";+ };+ /**+ * Krea2LoRALoaderOutput+ * @description Krea-2 LoRA Loader Output+ */+ Krea2LoRALoaderOutput: {+ /**+ * Krea-2 Transformer+ * @description Transformer+ * @default null+ */+ transformer: components["schemas"]["TransformerField"] | null;+ /**+ * Qwen3-VL Encoder+ * @description Qwen3-VL tokenizer and text encoder+ * @default null+ */+ qwen3_vl_encoder: components["schemas"]["Qwen3VLEncoderField"] | null;+ /**+ * type+ * @default krea2_lora_loader_output+ * @constant+ */+ type: "krea2_lora_loader_output";+ };+ /**+ * Main Model - Krea-2+ * @description Loads a Krea-2 model, outputting its submodels.+ *+ * By default the VAE (Qwen-Image VAE) and Qwen3-VL text encoder are extracted from the Krea-2+ * diffusers pipeline. Standalone overrides may be supplied (e.g. when the transformer is a+ * single-file checkpoint that has no bundled VAE / encoder).+ */+ Krea2ModelLoaderInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * Transformer+ * @description Krea-2 model (Transformer) to load+ */+ model: components["schemas"]["ModelIdentifierField"];+ /**+ * VAE+ * @description Standalone VAE model. Krea-2 uses the Qwen-Image VAE (16-channel). If not provided, the VAE is loaded from the Krea-2 (diffusers) model.+ * @default null+ */+ vae_model?: components["schemas"]["ModelIdentifierField"] | null;+ /**+ * Qwen3-VL Encoder+ * @description Standalone Qwen3-VL Encoder model. If not provided, the encoder is loaded from the Krea-2 (diffusers) model.+ * @default null+ */+ qwen3_vl_encoder_model?: components["schemas"]["ModelIdentifierField"] | null;+ /**+ * type+ * @default krea2_model_loader+ * @constant+ */+ type: "krea2_model_loader";+ };+ /**+ * Krea2ModelLoaderOutput+ * @description Krea-2 base model loader output.+ */+ Krea2ModelLoaderOutput: {+ /**+ * Transformer+ * @description Transformer+ */+ transformer: components["schemas"]["TransformerField"];+ /**+ * Qwen3-VL Encoder+ * @description Qwen3-VL tokenizer and text encoder+ */+ qwen3_vl_encoder: components["schemas"]["Qwen3VLEncoderField"];+ /**+ * VAE+ * @description VAE+ */+ vae: components["schemas"]["VAEField"];+ /**+ * type+ * @default krea2_model_loader_output+ * @constant+ */+ type: "krea2_model_loader_output";+ };+ /**+ * Seed Variance - Krea-2+ * @description Inject per-seed diversity into Krea-2 text conditioning.+ *+ * Distilled few-step models (like Krea-2-Turbo) suffer from low seed variance — different seeds give+ * near-identical images. This adds seeded uniform noise to a random subset of the text-embedding+ * values, trading some prompt adherence for variety (the same idea as the Z-Image-Turbo+ * `SeedVarianceEnhancer`). Optional pass between the text encoder and denoise.+ *+ * The noise magnitude is auto-calibrated relative to the embedding's standard deviation, so a given+ * `strength` behaves consistently regardless of the embedding scale — in particular it stays sane+ * whether or not the upstream Conditioning Rebalance node has scaled the embeddings up.+ */+ Krea2SeedVarianceInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * Conditioning+ * @description Conditioning tensor+ * @default null+ */+ conditioning?: components["schemas"]["Krea2ConditioningField"] | null;+ /**+ * Strength+ * @description Noise strength as a multiplier of the embedding std (0=off, 0.1=subtle, 0.5=strong).+ * @default 0.1+ */+ strength?: number;+ /**+ * Randomize Percent+ * @description Percentage of embedding values that get perturbed (Bernoulli mask); 0 disables.+ * @default 50+ */+ randomize_percent?: number;+ /**+ * Variance Seed+ * @description Seed for the variance noise (vary this to get variety).+ * @default 0+ */+ variance_seed?: number;+ /**+ * type+ * @default krea2_seed_variance+ * @constant+ */+ type: "krea2_seed_variance";+ };+ /**+ * Prompt - Krea-2+ * @description Encodes a text prompt for Krea-2 using the Qwen3-VL text encoder.+ *+ * The encoder taps 12 decoder hidden-state layers and stacks them per token, producing a 4D+ * conditioning tensor (B, seq, 12, hidden) that the Krea-2 transformer's text-fusion stage consumes.+ */+ Krea2TextEncoderInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * Prompt+ * @description Text prompt describing the desired image.+ * @default null+ */+ prompt?: string | null;+ /**+ * Qwen3-VL Encoder+ * @description Qwen3-VL tokenizer and text encoder+ * @default null+ */+ qwen3_vl_encoder?: components["schemas"]["Qwen3VLEncoderField"] | null;+ /**+ * type+ * @default krea2_text_encoder+ * @constant+ */+ type: "krea2_text_encoder";+ };+ /**+ * Krea2VariantType+ * @description Krea 2 model variants.+ * @enum {string}+ */+ Krea2VariantType: "krea2_turbo" | "krea2_base";/*** LaMa Infill* @description Infills transparent areas of an image using the LaMa model@@ -20202,11 +20712,94 @@ export type components = {format: "lycoris";/*** Base- * @default flux2+ * @default flux2+ * @constant+ */+ base: "flux2";+ variant: components["schemas"]["Flux2VariantType"] | null;+ };+ /**+ * LoRA_LyCORIS_Krea2_Config+ * @description Model config for Krea-2 LoRA models in LyCORIS (single-file diffusers PEFT) format.+ */+ LoRA_LyCORIS_Krea2_Config: {+ /**+ * Key+ * @description A unique key for this model.+ */+ key: string;+ /**+ * Hash+ * @description The hash of the model file(s).+ */+ hash: string;+ /**+ * Path+ * @description Path to the model on the filesystem. Relative paths are relative to the Invoke root directory.+ */+ path: string;+ /**+ * File Size+ * @description The size of the model in bytes.+ */+ file_size: number;+ /**+ * Name+ * @description Name of the model.+ */+ name: string;+ /**+ * Description+ * @description Model description+ */+ description: string | null;+ /**+ * Source+ * @description The original source of the model (path, URL or repo_id).+ */+ source: string;+ /** @description The type of source */+ source_type: components["schemas"]["ModelSourceType"];+ /**+ * Source Api Response+ * @description The original API response from the source, as stringified JSON.+ */+ source_api_response: string | null;+ /**+ * Source Url+ * @description Optional URL for the model (e.g. download page or model page).+ */+ source_url: string | null;+ /**+ * Cover Image+ * @description Url for image to preview model+ */+ cover_image: string | null;+ /**+ * Type+ * @default lora+ * @constant+ */+ type: "lora";+ /**+ * Trigger Phrases+ * @description Set of trigger phrases for this model+ */+ trigger_phrases: string[] | null;+ /** @description Default settings for this model */+ default_settings: components["schemas"]["LoraModelDefaultSettings"] | null;+ /**+ * Format+ * @default lycoris+ * @constant+ */+ format: "lycoris";+ /**+ * Base+ * @default krea-2* @constant*/- base: "flux2";- variant: components["schemas"]["Flux2VariantType"] | null;+ base: "krea-2";};/*** LoRA_LyCORIS_QwenImage_Config@@ -21513,6 +22106,95 @@ export type components = {base: "flux2";variant: components["schemas"]["Flux2VariantType"];};+ /**+ * Main_Checkpoint_Krea2_Config+ * @description Model config for Krea-2 single-file checkpoint models (safetensors, etc).+ */+ Main_Checkpoint_Krea2_Config: {+ /**+ * Key+ * @description A unique key for this model.+ */+ key: string;+ /**+ * Hash+ * @description The hash of the model file(s).+ */+ hash: string;+ /**+ * Path+ * @description Path to the model on the filesystem. Relative paths are relative to the Invoke root directory.+ */+ path: string;+ /**+ * File Size+ * @description The size of the model in bytes.+ */+ file_size: number;+ /**+ * Name+ * @description Name of the model.+ */+ name: string;+ /**+ * Description+ * @description Model description+ */+ description: string | null;+ /**+ * Source+ * @description The original source of the model (path, URL or repo_id).+ */+ source: string;+ /** @description The type of source */+ source_type: components["schemas"]["ModelSourceType"];+ /**+ * Source Api Response+ * @description The original API response from the source, as stringified JSON.+ */+ source_api_response: string | null;+ /**+ * Source Url+ * @description Optional URL for the model (e.g. download page or model page).+ */+ source_url: string | null;+ /**+ * Cover Image+ * @description Url for image to preview model+ */+ cover_image: string | null;+ /**+ * Type+ * @default main+ * @constant+ */+ type: "main";+ /**+ * Trigger Phrases+ * @description Set of trigger phrases for this model+ */+ trigger_phrases: string[] | null;+ /** @description Default settings for this model */+ default_settings: components["schemas"]["MainModelDefaultSettings"] | null;+ /**+ * Config Path+ * @description Path to the config for this model, if any.+ */+ config_path: string | null;+ /**+ * Base+ * @default krea-2+ * @constant+ */+ base: "krea-2";+ /**+ * Format+ * @default checkpoint+ * @constant+ */+ format: "checkpoint";+ variant: components["schemas"]["Krea2VariantType"];+ };/*** Main_Checkpoint_QwenImage_Config* @description Model config for Qwen Image single-file checkpoint models (safetensors, etc).@@ -22388,6 +23070,92 @@ export type components = {*/base: "ideogram-4";};+ /**+ * Main_Diffusers_Krea2_Config+ * @description Model config for Krea-2 diffusers models (Krea-2-Turbo).+ */+ Main_Diffusers_Krea2_Config: {+ /**+ * Key+ * @description A unique key for this model.+ */+ key: string;+ /**+ * Hash+ * @description The hash of the model file(s).+ */+ hash: string;+ /**+ * Path+ * @description Path to the model on the filesystem. Relative paths are relative to the Invoke root directory.+ */+ path: string;+ /**+ * File Size+ * @description The size of the model in bytes.+ */+ file_size: number;+ /**+ * Name+ * @description Name of the model.+ */+ name: string;+ /**+ * Description+ * @description Model description+ */+ description: string | null;+ /**+ * Source+ * @description The original source of the model (path, URL or repo_id).+ */+ source: string;+ /** @description The type of source */+ source_type: components["schemas"]["ModelSourceType"];+ /**+ * Source Api Response+ * @description The original API response from the source, as stringified JSON.+ */+ source_api_response: string | null;+ /**+ * Source Url+ * @description Optional URL for the model (e.g. download page or model page).+ */+ source_url: string | null;+ /**+ * Cover Image+ * @description Url for image to preview model+ */+ cover_image: string | null;+ /**+ * Type+ * @default main+ * @constant+ */+ type: "main";+ /**+ * Trigger Phrases+ * @description Set of trigger phrases for this model+ */+ trigger_phrases: string[] | null;+ /** @description Default settings for this model */+ default_settings: components["schemas"]["MainModelDefaultSettings"] | null;+ /**+ * Format+ * @default diffusers+ * @constant+ */+ format: "diffusers";+ /** @default */+ repo_variant: components["schemas"]["ModelRepoVariant"];+ /**+ * Base+ * @default krea-2+ * @constant+ */+ base: "krea-2";+ variant: components["schemas"]["Krea2VariantType"];+ };/*** Main_Diffusers_QwenImage_Config* @description Model config for Qwen Image diffusers models (both txt2img and edit).@@ -22890,24 +23658,121 @@ export type components = {format: "diffusers";/** @default */repo_variant: components["schemas"]["ModelRepoVariant"];- prediction_type: components["schemas"]["SchedulerPredictionType"];- variant: components["schemas"]["ModelVariantType"];+ prediction_type: components["schemas"]["SchedulerPredictionType"];+ variant: components["schemas"]["ModelVariantType"];+ /**+ * Base+ * @default sdxl+ * @constant+ */+ base: "sdxl";+ };+ /**+ * Main_Diffusers_Wan_Config+ * @description Model config for Wan 2.2 diffusers models.+ *+ * Covers both the dual-expert T2V-A14B family and the single-transformer TI2V-5B+ * family. Variant is detected from the on-disk transformer config (latent channel+ * count) plus the presence of a sibling ``transformer_2/`` directory.+ */+ Main_Diffusers_Wan_Config: {+ /**+ * Key+ * @description A unique key for this model.+ */+ key: string;+ /**+ * Hash+ * @description The hash of the model file(s).+ */+ hash: string;+ /**+ * Path+ * @description Path to the model on the filesystem. Relative paths are relative to the Invoke root directory.+ */+ path: string;+ /**+ * File Size+ * @description The size of the model in bytes.+ */+ file_size: number;+ /**+ * Name+ * @description Name of the model.+ */+ name: string;+ /**+ * Description+ * @description Model description+ */+ description: string | null;+ /**+ * Source+ * @description The original source of the model (path, URL or repo_id).+ */+ source: string;+ /** @description The type of source */+ source_type: components["schemas"]["ModelSourceType"];+ /**+ * Source Api Response+ * @description The original API response from the source, as stringified JSON.+ */+ source_api_response: string | null;+ /**+ * Source Url+ * @description Optional URL for the model (e.g. download page or model page).+ */+ source_url: string | null;+ /**+ * Cover Image+ * @description Url for image to preview model+ */+ cover_image: string | null;+ /**+ * Type+ * @default main+ * @constant+ */+ type: "main";+ /**+ * Trigger Phrases+ * @description Set of trigger phrases for this model+ */+ trigger_phrases: string[] | null;+ /** @description Default settings for this model */+ default_settings: components["schemas"]["MainModelDefaultSettings"] | null;+ /**+ * Format+ * @default diffusers+ * @constant+ */+ format: "diffusers";+ /** @default */+ repo_variant: components["schemas"]["ModelRepoVariant"];/*** Base- * @default sdxl+ * @default wan* @constant*/- base: "sdxl";+ base: "wan";+ variant: components["schemas"]["WanVariantType"];+ /**+ * Has Dual Expert+ * @description Whether this model ships two transformer experts (Wan 2.2 A14B MoE). False for TI2V-5B.+ * @default false+ */+ has_dual_expert: boolean;+ /**+ * Boundary Ratio+ * @description MoE expert switch point as a fraction of num_train_timesteps (typically 1000). None for single-transformer models. Read from model_index.json by Diffusers' WanPipeline.+ */+ boundary_ratio: number | null;};/**- * Main_Diffusers_Wan_Config- * @description Model config for Wan 2.2 diffusers models.- *- * Covers both the dual-expert T2V-A14B family and the single-transformer TI2V-5B- * family. Variant is detected from the on-disk transformer config (latent channel- * count) plus the presence of a sibling ``transformer_2/`` directory.+ * Main_Diffusers_ZImage_Config+ * @description Model config for Z-Image diffusers models (Z-Image-Turbo, Z-Image-Base).*/- Main_Diffusers_Wan_Config: {+ Main_Diffusers_ZImage_Config: {/*** Key* @description A unique key for this model.@@ -22983,28 +23848,17 @@ export type components = {repo_variant: components["schemas"]["ModelRepoVariant"];/*** Base- * @default wan+ * @default z-image* @constant*/- base: "wan";- variant: components["schemas"]["WanVariantType"];- /**- * Has Dual Expert- * @description Whether this model ships two transformer experts (Wan 2.2 A14B MoE). False for TI2V-5B.- * @default false- */- has_dual_expert: boolean;- /**- * Boundary Ratio- * @description MoE expert switch point as a fraction of num_train_timesteps (typically 1000). None for single-transformer models. Read from model_index.json by Diffusers' WanPipeline.- */- boundary_ratio: number | null;+ base: "z-image";+ variant: components["schemas"]["ZImageVariantType"];};/**- * Main_Diffusers_ZImage_Config- * @description Model config for Z-Image diffusers models (Z-Image-Turbo, Z-Image-Base).+ * Main_GGUF_FLUX_Config+ * @description Model config for main checkpoint models.*/- Main_Diffusers_ZImage_Config: {+ Main_GGUF_FLUX_Config: {/*** Key* @description A unique key for this model.@@ -23071,26 +23925,29 @@ export type components = {/** @description Default settings for this model */default_settings: components["schemas"]["MainModelDefaultSettings"] | null;/**- * Format- * @default diffusers- * @constant+ * Config Path+ * @description Path to the config for this model, if any.*/- format: "diffusers";- /** @default */- repo_variant: components["schemas"]["ModelRepoVariant"];+ config_path: string | null;/*** Base- * @default z-image+ * @default flux* @constant*/- base: "z-image";- variant: components["schemas"]["ZImageVariantType"];+ base: "flux";+ /**+ * Format+ * @default gguf_quantized+ * @constant+ */+ format: "gguf_quantized";+ variant: components["schemas"]["FluxVariantType"];};/**- * Main_GGUF_FLUX_Config- * @description Model config for main checkpoint models.+ * Main_GGUF_Flux2_Config+ * @description Model config for GGUF-quantized FLUX.2 checkpoint models (e.g. Klein).*/- Main_GGUF_FLUX_Config: {+ Main_GGUF_Flux2_Config: {/*** Key* @description A unique key for this model.@@ -23163,23 +24020,23 @@ export type components = {config_path: string | null;/*** Base- * @default flux+ * @default flux2* @constant*/- base: "flux";+ base: "flux2";/*** Format* @default gguf_quantized* @constant*/format: "gguf_quantized";- variant: components["schemas"]["FluxVariantType"];+ variant: components["schemas"]["Flux2VariantType"];};/**- * Main_GGUF_Flux2_Config- * @description Model config for GGUF-quantized FLUX.2 checkpoint models (e.g. Klein).+ * Main_GGUF_Krea2_Config+ * @description Model config for GGUF-quantized Krea-2 transformer models (single-file).*/- Main_GGUF_Flux2_Config: {+ Main_GGUF_Krea2_Config: {/*** Key* @description A unique key for this model.@@ -23252,17 +24109,17 @@ export type components = {config_path: string | null;/*** Base- * @default flux2+ * @default krea-2* @constant*/- base: "flux2";+ base: "krea-2";/*** Format* @default gguf_quantized* @constant*/format: "gguf_quantized";- variant: components["schemas"]["Flux2VariantType"];+ variant: components["schemas"]["Krea2VariantType"];};/*** Main_GGUF_QwenImage_Config@@ -25244,7 +26101,7 @@ export type components = {* @description Storage format of model.* @enum {string}*/- ModelFormat: "omi" | "diffusers" | "checkpoint" | "lycoris" | "onnx" | "olive" | "embedding_file" | "embedding_folder" | "invokeai" | "t5_encoder" | "qwen3_encoder" | "qwen_vl_encoder" | "wan_t5_encoder" | "bnb_quantized_int8b" | "bnb_quantized_nf4b" | "gguf_quantized" | "external_api" | "unknown";+ ModelFormat: "omi" | "diffusers" | "checkpoint" | "lycoris" | "onnx" | "olive" | "embedding_file" | "embedding_folder" | "invokeai" | "t5_encoder" | "qwen3_encoder" | "qwen_vl_encoder" | "qwen3_vl_encoder" | "wan_t5_encoder" | "bnb_quantized_int8b" | "bnb_quantized_nf4b" | "gguf_quantized" | "external_api" | "unknown";/** ModelIdentifierField */ModelIdentifierField: {/**@@ -25381,7 +26238,7 @@ export type components = {* Config* @description The installed model's config*/- config: components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];+ config: components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];};/*** ModelInstallDownloadProgressEvent@@ -25547,7 +26404,7 @@ export type components = {* Config Out* @description After successful installation, this will hold the configuration object.*/- config_out?: (components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"]) | null;+ config_out?: (components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"]) | null;/*** Inplace* @description Leave model in its current location; otherwise install under models directory@@ -25633,7 +26490,7 @@ export type components = {* Config* @description The model's config*/- config: components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];+ config: components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];/*** @description The submodel type, if any* @default null@@ -25660,7 +26517,7 @@ export type components = {* Config* @description The model's config*/- config: components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];+ config: components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];/*** @description The submodel type, if any* @default null@@ -25792,7 +26649,7 @@ export type components = {* Variant* @description The variant of the model.*/- variant?: components["schemas"]["ModelVariantType"] | components["schemas"]["ClipVariantType"] | components["schemas"]["FluxVariantType"] | components["schemas"]["Flux2VariantType"] | components["schemas"]["ZImageVariantType"] | components["schemas"]["QwenImageVariantType"] | components["schemas"]["WanVariantType"] | components["schemas"]["WanLoRAVariantType"] | components["schemas"]["Qwen3VariantType"] | null;+ variant?: components["schemas"]["ModelVariantType"] | components["schemas"]["ClipVariantType"] | components["schemas"]["FluxVariantType"] | components["schemas"]["Flux2VariantType"] | components["schemas"]["ZImageVariantType"] | components["schemas"]["QwenImageVariantType"] | components["schemas"]["WanVariantType"] | components["schemas"]["WanLoRAVariantType"] | components["schemas"]["Qwen3VariantType"] | components["schemas"]["Krea2VariantType"] | null;/** @description The prediction type of the model. */prediction_type?: components["schemas"]["SchedulerPredictionType"] | null;/**@@ -25874,7 +26731,7 @@ export type components = {* @description Model type.* @enum {string}*/- ModelType: "onnx" | "main" | "vae" | "lora" | "control_lora" | "controlnet" | "embedding" | "ip_adapter" | "clip_vision" | "clip_embed" | "t2i_adapter" | "t5_encoder" | "qwen3_encoder" | "qwen_vl_encoder" | "wan_t5_encoder" | "spandrel_image_to_image" | "siglip" | "flux_redux" | "llava_onevision" | "text_llm" | "external_image_generator" | "unknown";+ ModelType: "onnx" | "main" | "vae" | "lora" | "control_lora" | "controlnet" | "embedding" | "ip_adapter" | "clip_vision" | "clip_embed" | "t2i_adapter" | "t5_encoder" | "qwen3_encoder" | "qwen_vl_encoder" | "qwen3_vl_encoder" | "wan_t5_encoder" | "spandrel_image_to_image" | "siglip" | "flux_redux" | "llava_onevision" | "text_llm" | "external_image_generator" | "unknown";/*** ModelVariantType* @description Variant type.@@ -25887,7 +26744,7 @@ export type components = {*/ModelsList: {/** Models */- models: (components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"])[];+ models: (components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"])[];};/*** Multiply Integers@@ -27407,6 +28264,197 @@ export type components = {/** @description Qwen3 model size variant (4B or 8B) */variant: components["schemas"]["Qwen3VariantType"];};+ /**+ * Qwen3VLEncoderField+ * @description Field for the Qwen3-VL text encoder used by Krea-2 models.+ */+ Qwen3VLEncoderField: {+ /** @description Info to load tokenizer submodel */+ tokenizer: components["schemas"]["ModelIdentifierField"];+ /** @description Info to load text_encoder submodel */+ text_encoder: components["schemas"]["ModelIdentifierField"];+ /**+ * Loras+ * @description LoRAs to apply on model loading+ */+ loras?: components["schemas"]["LoRAField"][];+ };+ /**+ * Qwen3VLEncoder_Checkpoint_Config+ * @description Configuration for a single-file Qwen3-VL text encoder checkpoint (e.g. ComfyUI ``qwen3vl_4b_*``).+ *+ * Distinguished from the text-only ``Qwen3Encoder`` checkpoint (Z-Image) by the presence of the+ * Qwen3-VL visual tower. The tokenizer is not bundled in single-file checkpoints and is pulled from+ * HuggingFace (``Qwen/Qwen3-VL-4B-Instruct``) by the loader.+ */+ Qwen3VLEncoder_Checkpoint_Config: {+ /**+ * Key+ * @description A unique key for this model.+ */+ key: string;+ /**+ * Hash+ * @description The hash of the model file(s).+ */+ hash: string;+ /**+ * Path+ * @description Path to the model on the filesystem. Relative paths are relative to the Invoke root directory.+ */+ path: string;+ /**+ * File Size+ * @description The size of the model in bytes.+ */+ file_size: number;+ /**+ * Name+ * @description Name of the model.+ */+ name: string;+ /**+ * Description+ * @description Model description+ */+ description: string | null;+ /**+ * Source+ * @description The original source of the model (path, URL or repo_id).+ */+ source: string;+ /** @description The type of source */+ source_type: components["schemas"]["ModelSourceType"];+ /**+ * Source Api Response+ * @description The original API response from the source, as stringified JSON.+ */+ source_api_response: string | null;+ /**+ * Source Url+ * @description Optional URL for the model (e.g. download page or model page).+ */+ source_url: string | null;+ /**+ * Cover Image+ * @description Url for image to preview model+ */+ cover_image: string | null;+ /**+ * Config Path+ * @description Path to the config for this model, if any.+ */+ config_path: string | null;+ /**+ * Base+ * @default any+ * @constant+ */+ base: "any";+ /**+ * Type+ * @default qwen3_vl_encoder+ * @constant+ */+ type: "qwen3_vl_encoder";+ /**+ * Format+ * @default checkpoint+ * @constant+ */+ format: "checkpoint";+ /**+ * Cpu Only+ * @description Whether this model should run on CPU only+ */+ cpu_only: boolean | null;+ };+ /**+ * Qwen3VLEncoder_Qwen3VLEncoder_Config+ * @description Configuration for standalone Qwen3-VL text encoder models (diffusers-like directory format).+ *+ * Used by Krea-2, whose text conditioning comes from a Qwen3-VL model (``Qwen3VLModel``). The model+ * weights are expected either in a ``text_encoder`` subfolder of the model directory or directly at the+ * root (standalone download). This is distinct from the text-only ``Qwen3Encoder`` (Z-Image / FLUX.2+ * Klein) and the Qwen2.5-VL ``QwenVLEncoder`` (Qwen Image).+ */+ Qwen3VLEncoder_Qwen3VLEncoder_Config: {+ /**+ * Key+ * @description A unique key for this model.+ */+ key: string;+ /**+ * Hash+ * @description The hash of the model file(s).+ */+ hash: string;+ /**+ * Path+ * @description Path to the model on the filesystem. Relative paths are relative to the Invoke root directory.+ */+ path: string;+ /**+ * File Size+ * @description The size of the model in bytes.+ */+ file_size: number;+ /**+ * Name+ * @description Name of the model.+ */+ name: string;+ /**+ * Description+ * @description Model description+ */+ description: string | null;+ /**+ * Source+ * @description The original source of the model (path, URL or repo_id).+ */+ source: string;+ /** @description The type of source */+ source_type: components["schemas"]["ModelSourceType"];+ /**+ * Source Api Response+ * @description The original API response from the source, as stringified JSON.+ */+ source_api_response: string | null;+ /**+ * Source Url+ * @description Optional URL for the model (e.g. download page or model page).+ */+ source_url: string | null;+ /**+ * Cover Image+ * @description Url for image to preview model+ */+ cover_image: string | null;+ /**+ * Base+ * @default any+ * @constant+ */+ base: "any";+ /**+ * Type+ * @default qwen3_vl_encoder+ * @constant+ */+ type: "qwen3_vl_encoder";+ /**+ * Format+ * @default qwen3_vl_encoder+ * @constant+ */+ format: "qwen3_vl_encoder";+ /**+ * Cpu Only+ * @description Whether this model should run on CPU only+ */+ cpu_only: boolean | null;+ };/*** Qwen3VariantType* @description Qwen3 text encoder variants based on model size.@@ -30809,7 +31857,7 @@ export type components = {type: components["schemas"]["ModelType"];format?: components["schemas"]["ModelFormat"] | null;/** Variant */- variant?: components["schemas"]["ModelVariantType"] | components["schemas"]["ClipVariantType"] | components["schemas"]["FluxVariantType"] | components["schemas"]["Flux2VariantType"] | components["schemas"]["ZImageVariantType"] | components["schemas"]["QwenImageVariantType"] | components["schemas"]["WanVariantType"] | components["schemas"]["WanLoRAVariantType"] | components["schemas"]["Qwen3VariantType"] | null;+ variant?: components["schemas"]["ModelVariantType"] | components["schemas"]["ClipVariantType"] | components["schemas"]["FluxVariantType"] | components["schemas"]["Flux2VariantType"] | components["schemas"]["ZImageVariantType"] | components["schemas"]["QwenImageVariantType"] | components["schemas"]["WanVariantType"] | components["schemas"]["WanLoRAVariantType"] | components["schemas"]["Qwen3VariantType"] | components["schemas"]["Krea2VariantType"] | null;/*** Is Installed* @default false@@ -30854,7 +31902,7 @@ export type components = {type: components["schemas"]["ModelType"];format?: components["schemas"]["ModelFormat"] | null;/** Variant */- variant?: components["schemas"]["ModelVariantType"] | components["schemas"]["ClipVariantType"] | components["schemas"]["FluxVariantType"] | components["schemas"]["Flux2VariantType"] | components["schemas"]["ZImageVariantType"] | components["schemas"]["QwenImageVariantType"] | components["schemas"]["WanVariantType"] | components["schemas"]["WanLoRAVariantType"] | components["schemas"]["Qwen3VariantType"] | null;+ variant?: components["schemas"]["ModelVariantType"] | components["schemas"]["ClipVariantType"] | components["schemas"]["FluxVariantType"] | components["schemas"]["Flux2VariantType"] | components["schemas"]["ZImageVariantType"] | components["schemas"]["QwenImageVariantType"] | components["schemas"]["WanVariantType"] | components["schemas"]["WanLoRAVariantType"] | components["schemas"]["Qwen3VariantType"] | components["schemas"]["Krea2VariantType"] | null;/*** Is Installed* @default false@@ -31385,7 +32433,7 @@ export type components = {path_or_prefix: string;model_type: components["schemas"]["ModelType"];/** Variant */- variant?: components["schemas"]["ModelVariantType"] | components["schemas"]["ClipVariantType"] | components["schemas"]["FluxVariantType"] | components["schemas"]["Flux2VariantType"] | components["schemas"]["ZImageVariantType"] | components["schemas"]["QwenImageVariantType"] | components["schemas"]["WanVariantType"] | components["schemas"]["WanLoRAVariantType"] | components["schemas"]["Qwen3VariantType"] | null;+ variant?: components["schemas"]["ModelVariantType"] | components["schemas"]["ClipVariantType"] | components["schemas"]["FluxVariantType"] | components["schemas"]["Flux2VariantType"] | components["schemas"]["ZImageVariantType"] | components["schemas"]["QwenImageVariantType"] | components["schemas"]["WanVariantType"] | components["schemas"]["WanLoRAVariantType"] | components["schemas"]["Qwen3VariantType"] | components["schemas"]["Krea2VariantType"] | null;};/*** Subtract Integers@@ -38064,7 +39112,7 @@ export interface operations {[name: string]: unknown;};content: {- "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];+ "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];};};/** @description Validation Error */@@ -38096,7 +39144,7 @@ export interface operations {[name: string]: unknown;};content: {- "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];+ "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];};};/** @description Validation Error */@@ -38148,7 +39196,7 @@ export interface operations {* "upcast_attention": false* }*/- "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];+ "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];};};/** @description Bad request */@@ -38255,7 +39303,7 @@ export interface operations {* "upcast_attention": false* }*/- "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];+ "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];};};/** @description Bad request */@@ -38328,7 +39376,7 @@ export interface operations {* "upcast_attention": false* }*/- "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];+ "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];};};/** @description Bad request */@@ -39063,7 +40111,7 @@ export interface operations {* "upcast_attention": false* }*/- "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];+ "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];};};/** @description Bad request */diff --git a/invokeai/frontend/web/src/services/api/types.ts b/invokeai/frontend/web/src/services/api/types.tsindex 53c5d17b1a..45087b523d 100644--- a/invokeai/frontend/web/src/services/api/types.ts+++ b/invokeai/frontend/web/src/services/api/types.ts@@ -119,6 +119,7 @@ export type T5EncoderBnbQuantizedLlmInt8bModelConfig = Extract<>;export type Qwen3EncoderModelConfig = Extract<InternalAnyModelConfig, { type: 'qwen3_encoder' }>;export type QwenVLEncoderModelConfig = Extract<InternalAnyModelConfig, { type: 'qwen_vl_encoder' }>;+export type Qwen3VLEncoderModelConfig = Extract<InternalAnyModelConfig, { type: 'qwen3_vl_encoder' }>;export type WanT5EncoderModelConfig = Extract<InternalAnyModelConfig, { type: 'wan_t5_encoder' }>;export type SpandrelImageToImageModelConfig = Extract<InternalAnyModelConfig, { type: 'spandrel_image_to_image' }>;export type CheckpointModelConfig = Extract<InternalAnyModelConfig, { type: 'main'; format: 'checkpoint' }>;@@ -406,6 +407,10 @@ export const isQwenVLEncoderModelConfig = (config: AnyModelConfig): config is Qwreturn config.type === 'qwen_vl_encoder';};+export const isQwen3VLEncoderModelConfig = (config: AnyModelConfig): config is Qwen3VLEncoderModelConfig => {+ return config.type === 'qwen3_vl_encoder';+};+export const isWanT5EncoderModelConfig = (config: AnyModelConfig): config is WanT5EncoderModelConfig => {return config.type === 'wan_t5_encoder';};diff --git a/pyproject.toml b/pyproject.tomlindex a9c4631015..5890ad3b37 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -36,7 +36,7 @@ dependencies = ["accelerate","bitsandbytes; sys_platform!='darwin'","compel>=2.4.0,<3",- "diffusers[torch]==0.37.0",+ "diffusers[torch]==0.39.0","gguf","mediapipe==0.10.14", # needed for "mediapipeface" controlnet model"numpy<2.0.0",diff --git a/tests/app/invocations/test_krea2_denoise.py b/tests/app/invocations/test_krea2_denoise.pynew file mode 100644index 0000000000..bb86b7ac48--- /dev/null+++ b/tests/app/invocations/test_krea2_denoise.py@@ -0,0 +1,475 @@+import math+from contextlib import contextmanager, nullcontext+from types import SimpleNamespace++import pytest+import torch++from invokeai.app.invocations.fields import DenoiseMaskField, Krea2ConditioningField, LatentsField+from invokeai.app.invocations.krea2_denoise import KREA2_LATENT_CHANNELS, Krea2DenoiseInvocation+from invokeai.app.invocations.model import ModelIdentifierField, TransformerField+from invokeai.backend.model_manager.taxonomy import BaseModelType, Krea2VariantType, ModelFormat, ModelType+from invokeai.backend.stable_diffusion.diffusion.conditioning_data import ConditioningFieldData, Krea2ConditioningInfo++[email protected](("denoising_start", "denoising_end"), [(0.75, 0.25), (0.5, 0.5)])+def test_validate_inputs_rejects_empty_or_inverted_denoising_range(+ denoising_start: float, denoising_end: float+) -> None:+ invocation = Krea2DenoiseInvocation.model_construct(+ denoising_start=denoising_start, denoising_end=denoising_end, denoise_mask=None+ )++ with pytest.raises(ValueError, match="denoising_start must be less than denoising_end"):+ invocation._validate_inputs()+++def test_validate_inputs_rejects_denoise_mask_without_latents() -> None:+ invocation = Krea2DenoiseInvocation.model_construct(+ denoising_start=0.0,+ denoising_end=1.0,+ denoise_mask=DenoiseMaskField(mask_name="mask"),+ latents=None,+ )++ with pytest.raises(ValueError, match="Initial latents are required when a denoise mask is provided"):+ invocation._validate_inputs()+++def test_validate_inputs_accepts_a_valid_configuration() -> None:+ invocation = Krea2DenoiseInvocation.model_construct(+ denoising_start=0.0, denoising_end=1.0, denoise_mask=None, latents=None+ )+ # A full-range denoise with no mask is valid and must not raise.+ invocation._validate_inputs()+++def _validation_payload() -> dict:+ model = ModelIdentifierField(+ key="krea-model",+ hash="model-hash",+ name="Krea Model",+ base=BaseModelType.Krea2,+ type=ModelType.Main,+ )+ return {+ "transformer": TransformerField(transformer=model, loras=[]),+ "positive_conditioning": Krea2ConditioningField(conditioning_name="positive"),+ }++[email protected](("field", "value"), [("width", 0), ("width", -16), ("height", 0), ("height", -16)])+def test_model_validation_rejects_non_positive_dimensions(field: str, value: int) -> None:+ with pytest.raises(ValueError):+ Krea2DenoiseInvocation(**_validation_payload(), **{field: value})+++ ("field", "value"),+ [+ ("cfg_scale", math.nan),+ ("cfg_scale", math.inf),+ ("cfg_scale", [1.0, math.nan]),+ ("shift", math.nan),+ ("shift", math.inf),+ ],+)+def test_model_validation_rejects_non_finite_sampling_values(field: str, value: object) -> None:+ with pytest.raises(ValueError):+ Krea2DenoiseInvocation(**_validation_payload(), **{field: value})+++def test_model_validation_accepts_positive_dimensions_and_finite_sampling_values() -> None:+ invocation = Krea2DenoiseInvocation(**_validation_payload(), width=16, height=32, cfg_scale=[1.0] * 8, shift=1.15)+ assert invocation.width == 16+ assert invocation.height == 32+++class TestPrepareCfgScale:+ def test_scalar_is_broadcast_to_the_step_count(self) -> None:+ invocation = Krea2DenoiseInvocation.model_construct(cfg_scale=4.5)+ assert invocation._prepare_cfg_scale(8) == [4.5] * 8++ def test_list_of_matching_length_is_returned_unchanged(self) -> None:+ invocation = Krea2DenoiseInvocation.model_construct(cfg_scale=[4.0, 3.0, 2.0])+ assert invocation._prepare_cfg_scale(3) == [4.0, 3.0, 2.0]++ def test_list_of_wrong_length_raises(self) -> None:+ invocation = Krea2DenoiseInvocation.model_construct(cfg_scale=[4.0, 3.0, 2.0])+ with pytest.raises(ValueError, match="cfg_scale list has 3 values but the model is configured for 8 steps"):+ invocation._prepare_cfg_scale(8)+++class TestCfgForStep:+ def test_scale_above_one_uses_cfg_when_negative_conditioning_is_available(self) -> None:+ invocation = Krea2DenoiseInvocation.model_construct()+ assert invocation._should_apply_cfg_for_step(4.0, has_negative_conditioning=True) is True++ @pytest.mark.parametrize("cfg_scale", [1.0, 0.5])+ def test_scale_at_or_below_one_does_not_use_cfg(self, cfg_scale: float) -> None:+ invocation = Krea2DenoiseInvocation.model_construct()+ assert invocation._should_apply_cfg_for_step(cfg_scale, has_negative_conditioning=True) is False++ def test_missing_negative_conditioning_does_not_use_cfg(self) -> None:+ invocation = Krea2DenoiseInvocation.model_construct()+ assert invocation._should_apply_cfg_for_step(4.0, has_negative_conditioning=False) is False+++class TestEffectiveScheduleValidation:+ def test_rejects_a_fractional_range_that_rounds_to_zero_steps(self) -> None:+ invocation = Krea2DenoiseInvocation.model_construct()+ with pytest.raises(ValueError, match="does not contain any effective denoising steps"):+ invocation._validate_effective_schedule(start_idx=0, end_idx=0)++ def test_accepts_a_range_with_at_least_one_effective_step(self) -> None:+ invocation = Krea2DenoiseInvocation.model_construct()+ invocation._validate_effective_schedule(start_idx=0, end_idx=1)++ def test_invalid_type_raises(self) -> None:+ invocation = Krea2DenoiseInvocation.model_construct(cfg_scale="nonsense")+ with pytest.raises(ValueError, match="Invalid CFG scale type"):+ invocation._prepare_cfg_scale(8)+++def test_cfg_scale_list_is_built_against_full_step_count_then_clipped() -> None:+ # Regression: a per-step CFG list carries one value per *configured* step. img2img/inpaint clips the+ # sampling schedule (denoising_start/denoising_end), which shrinks the number of active steps. The list+ # must be prepared against the full step count (``total_sigmas``) and *then* sliced to the active+ # window — preparing it against the already-reduced count would reject the user's full-length list.+ steps = 8+ invocation = Krea2DenoiseInvocation.model_construct(cfg_scale=[float(i) for i in range(steps)])++ full_cfg_scale = invocation._prepare_cfg_scale(steps) # built against the FULL step count -> ok+ assert len(full_cfg_scale) == steps++ # Slicing to the active window [start_idx:end_idx] (as _run_diffusion does) keeps the right per-step values.+ start_idx, end_idx = 2, 6+ assert full_cfg_scale[start_idx:end_idx] == [2.0, 3.0, 4.0, 5.0]++ # Preparing against the reduced (clipped) count instead would have raised — the bug this guards against.+ with pytest.raises(ValueError):+ invocation._prepare_cfg_scale(end_idx - start_idx)+++def test_get_noise_is_deterministic_and_correctly_shaped() -> None:+ invocation = Krea2DenoiseInvocation.model_construct()+ device = torch.device("cpu")++ noise_a = invocation._get_noise(height=64, width=128, dtype=torch.float32, device=device, seed=42)+ noise_b = invocation._get_noise(height=64, width=128, dtype=torch.float32, device=device, seed=42)+ noise_other = invocation._get_noise(height=64, width=128, dtype=torch.float32, device=device, seed=43)++ # Shape is (1, latent_channels, H // 8, W // 8).+ assert noise_a.shape == (1, KREA2_LATENT_CHANNELS, 8, 16)+ # Same seed -> identical noise (reproducibility); different seed -> different noise.+ assert torch.equal(noise_a, noise_b)+ assert not torch.equal(noise_a, noise_other)+++class _Scheduler:+ def __init__(self, **_kwargs) -> None:+ self.config = SimpleNamespace(num_train_timesteps=1000)++ def set_timesteps(self, *, sigmas, mu, device) -> None:+ del mu+ self.sigmas = torch.tensor([*sigmas, 0.0], device=device)+ self.timesteps = self.sigmas[:-1] * self.config.num_train_timesteps+++class _Transformer:+ def __init__(self) -> None:+ self.conditioning_values: list[float] = []++ def set_attn_processor(self, processor) -> None:+ # The real Krea2Transformer2DModel exposes this; denoise swaps in a memory-efficient attention processor.+ pass++ def __call__(self, *, hidden_states, encoder_hidden_states, **_kwargs):+ self.conditioning_values.append(float(encoder_hidden_states.mean()))+ return (torch.zeros_like(hidden_states),)+++class _TransformerInfo:+ def __init__(self, transformer: _Transformer) -> None:+ self.transformer = transformer++ @contextmanager+ def model_on_device(self, **_kwargs):+ yield ({}, self.transformer)+++def _model_identifier() -> ModelIdentifierField:+ return ModelIdentifierField(+ key="krea-model",+ hash="model-hash",+ name="Krea Model",+ base=BaseModelType.Krea2,+ type=ModelType.Main,+ )+++def _runtime_invocation(*, cfg_scale: float | list[float], with_mask: bool = False) -> Krea2DenoiseInvocation:+ return Krea2DenoiseInvocation.model_construct(+ transformer=TransformerField(transformer=_model_identifier(), loras=[]),+ positive_conditioning=Krea2ConditioningField(conditioning_name="positive"),+ negative_conditioning=Krea2ConditioningField(conditioning_name="negative"),+ cfg_scale=cfg_scale,+ width=16,+ height=16,+ steps=2,+ seed=1,+ shift=1.15,+ denoising_start=0.0,+ denoising_end=1.0,+ latents=LatentsField(latents_name="init") if with_mask else None,+ denoise_mask=DenoiseMaskField(mask_name="mask") if with_mask else None,+ )+++def _runtime_context(tmp_path, transformer: _Transformer):+ conditionings = {+ "positive": ConditioningFieldData(conditionings=[Krea2ConditioningInfo(prompt_embeds=torch.ones(1, 2, 12, 8))]),+ "negative": ConditioningFieldData(+ conditionings=[Krea2ConditioningInfo(prompt_embeds=torch.zeros(1, 2, 12, 8))]+ ),+ }+ tensors = {+ "init": torch.zeros(1, KREA2_LATENT_CHANNELS, 2, 2),+ "mask": torch.zeros(1, 1, 16, 16),+ }+ config = SimpleNamespace(format=ModelFormat.Checkpoint, variant=Krea2VariantType.Turbo)+ return SimpleNamespace(+ models=SimpleNamespace(+ load=lambda _identifier: _TransformerInfo(transformer),+ get_config=lambda _identifier: config,+ get_absolute_path=lambda _config: tmp_path,+ ),+ conditioning=SimpleNamespace(load=lambda name: conditionings[name]),+ tensors=SimpleNamespace(load=lambda name: tensors[name]),+ util=SimpleNamespace(sd_step_callback=lambda *_args: None),+ )+++def _patch_runtime(monkeypatch) -> None:+ monkeypatch.setattr(+ "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler", _Scheduler+ )+ monkeypatch.setattr(+ "invokeai.app.invocations.krea2_denoise.TorchDevice.choose_torch_device", lambda: torch.device("cpu")+ )+ monkeypatch.setattr(+ "invokeai.app.invocations.krea2_denoise.TorchDevice.choose_bfloat16_safe_dtype",+ lambda _device: torch.float32,+ )+ monkeypatch.setattr(+ "invokeai.app.invocations.krea2_denoise.LayerPatcher.apply_smart_model_patches",+ lambda **_kwargs: nullcontext(),+ )+++def test_run_diffusion_applies_mixed_cfg_only_at_enabled_steps(monkeypatch, tmp_path) -> None:+ _patch_runtime(monkeypatch)+ transformer = _Transformer()++ latents = _runtime_invocation(cfg_scale=[2.0, 1.0])._run_diffusion(_runtime_context(tmp_path, transformer))++ assert latents.shape == (1, KREA2_LATENT_CHANNELS, 1, 2, 2)+ assert transformer.conditioning_values == [1.0, 0.0, 1.0]+++def test_run_diffusion_reaches_masked_denoising_merge(monkeypatch, tmp_path) -> None:+ _patch_runtime(monkeypatch)+ transformer = _Transformer()+ merge_sigmas: list[float] = []++ class _InpaintExtension:+ def __init__(self, **_kwargs) -> None:+ pass++ def merge_intermediate_latents_with_init_latents(self, latents, sigma):+ merge_sigmas.append(sigma)+ return latents++ monkeypatch.setattr("invokeai.app.invocations.krea2_denoise.RectifiedFlowInpaintExtension", _InpaintExtension)++ latents = _runtime_invocation(cfg_scale=1.0, with_mask=True)._run_diffusion(_runtime_context(tmp_path, transformer))++ assert latents.shape == (1, KREA2_LATENT_CHANNELS, 1, 2, 2)+ assert len(merge_sigmas) == 2+ assert transformer.conditioning_values == [1.0, 1.0]+++def test_run_diffusion_uses_per_prompt_position_ids_when_lengths_differ(monkeypatch, tmp_path) -> None:+ # Regression: the positive and negative prompts can tokenize to different lengths. The rotary position+ # ids (text tokens + image grid) must match *each pass's own* text length. Reusing the positive prompt's+ # position ids for the uncond pass leaves the rotary embedding a different length than the negative+ # query sequence, which crashes in the real transformer's apply_rotary_emb.+ _patch_runtime(monkeypatch)++ image_seq_len = 1 # width=height=16 -> 2x2 latent -> a single 2x2 patch++ class _PositionIdChecker:+ def set_attn_processor(self, processor) -> None:+ pass++ def __call__(self, *, hidden_states, encoder_hidden_states, position_ids, **_kwargs):+ text_len = encoder_hidden_states.shape[1]+ pos_len = position_ids.shape[0]+ # The invariant the real Krea2Transformer2DModel enforces: rotary length == text + image tokens.+ assert pos_len == text_len + image_seq_len, (+ f"position_ids length {pos_len} must equal text length {text_len} + image tokens {image_seq_len}"+ )+ return (torch.zeros_like(hidden_states),)++ transformer = _PositionIdChecker()++ # Positive prompt is longer than the negative prompt (3 vs. 2 text tokens).+ conditionings = {+ "positive": ConditioningFieldData(conditionings=[Krea2ConditioningInfo(prompt_embeds=torch.ones(1, 3, 12, 8))]),+ "negative": ConditioningFieldData(+ conditionings=[Krea2ConditioningInfo(prompt_embeds=torch.zeros(1, 2, 12, 8))]+ ),+ }+ config = SimpleNamespace(format=ModelFormat.Checkpoint, variant=Krea2VariantType.Turbo)+ context = SimpleNamespace(+ models=SimpleNamespace(+ load=lambda _identifier: _TransformerInfo(transformer),+ get_config=lambda _identifier: config,+ get_absolute_path=lambda _config: tmp_path,+ ),+ conditioning=SimpleNamespace(load=lambda name: conditionings[name]),+ tensors=SimpleNamespace(load=lambda _name: None),+ util=SimpleNamespace(sd_step_callback=lambda *_args: None),+ )++ # cfg_scale > 1 so both the cond (positive) and uncond (negative) passes run each step. Without the fix,+ # the uncond pass receives the positive prompt's position ids and the checker above fails.+ latents = _runtime_invocation(cfg_scale=2.0)._run_diffusion(context)+ assert latents.shape == (1, KREA2_LATENT_CHANNELS, 1, 2, 2)+++def _mu_branch_invocation() -> Krea2DenoiseInvocation:+ # shift=None so the resolution-aware calculate_shift branch runs (not the fixed-mu override); width/height+ # 16 -> a 2x2 latent -> 1x1 grid -> image_seq_len == 1.+ return Krea2DenoiseInvocation.model_construct(+ transformer=TransformerField(transformer=_model_identifier(), loras=[]),+ positive_conditioning=Krea2ConditioningField(conditioning_name="positive"),+ negative_conditioning=None,+ cfg_scale=1.0,+ width=16,+ height=16,+ steps=2,+ seed=1,+ shift=None,+ denoising_start=0.0,+ denoising_end=1.0,+ latents=None,+ denoise_mask=None,+ )+++def _mu_branch_context(tmp_path, transformer: _Transformer):+ # variant=Base -> _is_distilled() is False -> the resolution-aware mu (calculate_shift) branch is taken.+ conditionings = {+ "positive": ConditioningFieldData(conditionings=[Krea2ConditioningInfo(prompt_embeds=torch.ones(1, 2, 12, 8))]),+ }+ config = SimpleNamespace(format=ModelFormat.Checkpoint, variant=Krea2VariantType.Base)+ return SimpleNamespace(+ models=SimpleNamespace(+ load=lambda _identifier: _TransformerInfo(transformer),+ get_config=lambda _identifier: config,+ get_absolute_path=lambda _config: tmp_path,+ ),+ conditioning=SimpleNamespace(load=lambda name: conditionings[name]),+ tensors=SimpleNamespace(load=lambda _name: None),+ util=SimpleNamespace(sd_step_callback=lambda *_args: None),+ )+++def _install_mu_capturing_scheduler(monkeypatch, captured: list[float], config_kwargs: dict) -> None:+ class _MuCapturingScheduler:+ def __init__(self, **_kwargs) -> None:+ # The real diffusers scheduler exposes shift params on .config (a FrozenDict, attribute-access);+ # the denoise reads them via getattr(scheduler.config, <key>, <krea-2 default>). Omitting a key+ # here (SimpleNamespace without the attr) exercises the fallback-to-default path.+ self.config = SimpleNamespace(num_train_timesteps=1000, **config_kwargs)++ def set_timesteps(self, *, sigmas, mu, device) -> None:+ captured.append(mu)+ self.sigmas = torch.tensor([*sigmas, 0.0], device=device)+ self.timesteps = self.sigmas[:-1] * self.config.num_train_timesteps++ monkeypatch.setattr(+ "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler",+ _MuCapturingScheduler,+ )+++def test_run_diffusion_mu_honors_scheduler_config_shift_params(monkeypatch, tmp_path) -> None:+ # Regression: the undistilled (Raw) resolution-aware mu path must derive its shift params from the loaded+ # scheduler's config so a checkpoint shipping a customized scheduler_config.json samples with its own+ # shift, rather than the hardcoded Krea-2 defaults.+ from invokeai.backend.krea2.sampling_utils import calculate_shift++ _patch_runtime(monkeypatch) # patches TorchDevice + LayerPatcher (and the default _Scheduler)...+ captured: list[float] = []+ custom = {"base_image_seq_len": 100, "max_image_seq_len": 1000, "base_shift": 0.3, "max_shift": 1.5}+ _install_mu_capturing_scheduler(monkeypatch, captured, custom) # ...then override the scheduler.++ _mu_branch_invocation()._run_diffusion(_mu_branch_context(tmp_path, _Transformer()))++ image_seq_len = 1 # width=height=16+ assert captured == [pytest.approx(calculate_shift(image_seq_len, **custom))]+ # Sanity: the custom config actually moves mu away from the stock-default result.+ assert captured[0] != pytest.approx(calculate_shift(image_seq_len))+++def test_run_diffusion_mu_falls_back_to_krea2_defaults_for_absent_config_keys(monkeypatch, tmp_path) -> None:+ # A scheduler config that omits some shift params must fall back to the Krea-2 defaults for exactly the+ # missing keys, honoring the ones it does provide.+ from invokeai.backend.krea2.sampling_utils import (+ KREA2_BASE_SHIFT,+ KREA2_MAX_IMAGE_SEQ_LEN,+ calculate_shift,+ )++ _patch_runtime(monkeypatch)+ captured: list[float] = []+ # Provide only base_image_seq_len + max_shift; base_shift and max_image_seq_len must default.+ partial = {"base_image_seq_len": 100, "max_shift": 1.5}+ _install_mu_capturing_scheduler(monkeypatch, captured, partial)++ _mu_branch_invocation()._run_diffusion(_mu_branch_context(tmp_path, _Transformer()))++ image_seq_len = 1+ expected = calculate_shift(+ image_seq_len,+ base_image_seq_len=100,+ max_image_seq_len=KREA2_MAX_IMAGE_SEQ_LEN,+ base_shift=KREA2_BASE_SHIFT,+ max_shift=1.5,+ )+ assert captured == [pytest.approx(expected)]+++def test_estimate_working_memory_stays_within_a_24gb_card_at_high_res() -> None:+ # Regression: with SDPA attention the footprint is ~linear with a small per-token constant. The previous+ # ~2.6 MiB/token figure demanded ~36 GB at 2560x1440 (14400 tokens), exceeding a 24 GB card, so the cache+ # offloaded the transformer itself to RAM and the forward pass hung. The estimate plus a fully-resident+ # ~12.2 GB fp8 transformer must comfortably fit a 24 GB card so the encoder (not the transformer) is what+ # gets evicted.+ inv = Krea2DenoiseInvocation.model_construct(transformer=SimpleNamespace(loras=[]))+ GB = 1024**3+ transformer_bytes = int(12.3 * GB) # Krea-2-Turbo fp8++ # 2560x1440 -> (2560/16) x (1440/16) = 160 x 90 = 14400 image tokens.+ est_hi = inv._estimate_working_memory(image_seq_len=14400, do_cfg=False, num_loras=0)+ assert est_hi + transformer_bytes < 24 * GB++ # 1280x720 -> 80 x 45 = 3600 image tokens.+ est_lo = inv._estimate_working_memory(image_seq_len=3600, do_cfg=False, num_loras=0)+ assert est_lo + transformer_bytes < 24 * GB++ # Monotonic in tokens, and a non-trivial (multi-GB) reservation so eviction is actually triggered.+ assert est_hi > est_lo+ assert est_lo > 1 * GBdiff --git a/tests/app/invocations/test_krea2_enhancers.py b/tests/app/invocations/test_krea2_enhancers.pynew file mode 100644index 0000000000..7bd617618d--- /dev/null+++ b/tests/app/invocations/test_krea2_enhancers.py@@ -0,0 +1,225 @@+"""Tests for the optional Krea-2 conditioning enhancers (rebalance + seed variance).++Both operate on the 4D ``prompt_embeds (B, seq, 12, hidden)`` conditioning between the text encoder and+denoise. The load-bearing logic - the per-layer gain broadcast, the exact-count weight validation, and the+seeded-noise determinism / out-of-place property - is exercised here with a stub conditioning context.+"""++import math+from types import SimpleNamespace++import pytest+import torch++from invokeai.app.invocations.fields import Krea2ConditioningField+from invokeai.app.invocations.krea2_conditioning_rebalance import Krea2ConditioningRebalanceInvocation+from invokeai.app.invocations.krea2_seed_variance import Krea2SeedVarianceInvocation+from invokeai.backend.stable_diffusion.diffusion.conditioning_data import ConditioningFieldData, Krea2ConditioningInfo+++def _make_context(embeds: torch.Tensor, saved: dict) -> SimpleNamespace:+ def load(_name: str) -> ConditioningFieldData:+ return ConditioningFieldData(+ conditionings=[Krea2ConditioningInfo(prompt_embeds=embeds, prompt_embeds_mask=None)]+ )++ def save(data: ConditioningFieldData) -> str:+ saved["data"] = data+ return "saved-name"++ return SimpleNamespace(conditioning=SimpleNamespace(load=load, save=save))+++def _saved_embeds(saved: dict) -> torch.Tensor:+ conditioning = saved["data"].conditionings[0]+ assert isinstance(conditioning, Krea2ConditioningInfo)+ return conditioning.prompt_embeds+++class TestRebalanceParseWeights:+ def test_accepts_exactly_twelve_values(self) -> None:+ invocation = Krea2ConditioningRebalanceInvocation.model_construct(+ per_layer_weights="1,2,3,4,5,6,7,8,9,10,11,12"+ )+ assert invocation._parse_weights() == [float(i) for i in range(1, 13)]++ def test_accepts_decimal_scientific_notation(self) -> None:+ invocation = Krea2ConditioningRebalanceInvocation.model_construct(+ per_layer_weights="1e2,-2.5e-1,3E+1,4,5,6,7,8,9,10,11,12"+ )+ assert invocation._parse_weights() == [100.0, -0.25, 30.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0]++ @pytest.mark.parametrize("weights", ["1,2,3", "1,2,3,4,5,6,7,8,9,10,11,12,13"])+ def test_rejects_wrong_count(self, weights: str) -> None:+ invocation = Krea2ConditioningRebalanceInvocation.model_construct(per_layer_weights=weights)+ with pytest.raises(ValueError, match="exactly 12 values"):+ invocation._parse_weights()++ def test_rejects_non_numeric(self) -> None:+ invocation = Krea2ConditioningRebalanceInvocation.model_construct(per_layer_weights="a,b,c,d,e,f,g,h,i,j,k,l")+ with pytest.raises(ValueError, match="comma-separated numbers"):+ invocation._parse_weights()++ @pytest.mark.parametrize("value", ["0x10", "0b10", "0o10"])+ def test_rejects_non_decimal_numeric_syntax(self, value: str) -> None:+ values = ["1"] * 11 + [value]+ invocation = Krea2ConditioningRebalanceInvocation.model_construct(per_layer_weights=",".join(values))+ with pytest.raises(ValueError, match="comma-separated numbers"):+ invocation._parse_weights()++ @pytest.mark.parametrize("value", ["nan", "inf", "-inf"])+ def test_rejects_non_finite_weights(self, value: str) -> None:+ values = ["1"] * 11 + [value]+ invocation = Krea2ConditioningRebalanceInvocation.model_construct(per_layer_weights=",".join(values))+ with pytest.raises(ValueError, match="finite"):+ invocation._parse_weights()++[email protected]("value", [math.nan, math.inf, -math.inf])+def test_rebalance_rejects_non_finite_multiplier(value: float) -> None:+ with pytest.raises(ValueError):+ Krea2ConditioningRebalanceInvocation(+ conditioning=Krea2ConditioningField(conditioning_name="c"),+ multiplier=value,+ )++[email protected]("value", [math.nan, math.inf, -math.inf])+def test_seed_variance_rejects_non_finite_strength(value: float) -> None:+ with pytest.raises(ValueError):+ Krea2SeedVarianceInvocation(+ conditioning=Krea2ConditioningField(conditioning_name="c"),+ strength=value,+ )+++def test_rebalance_applies_per_layer_gains_on_the_layer_axis() -> None:+ # embeds is (B=1, seq=2, 12 layers, hidden=4); gains must apply along the layer axis (dim=2).+ embeds = torch.ones(1, 2, 12, 4)+ saved: dict = {}+ invocation = Krea2ConditioningRebalanceInvocation.model_construct(+ conditioning=Krea2ConditioningField(conditioning_name="c"),+ per_layer_weights="1,2,3,4,5,6,7,8,9,10,11,12",+ multiplier=1.0,+ )++ invocation.invoke(_make_context(embeds, saved))++ out = _saved_embeds(saved)+ assert out.shape == (1, 2, 12, 4)+ for layer_index in range(12):+ assert torch.allclose(out[:, :, layer_index, :], torch.full((1, 2, 4), float(layer_index + 1)))+++def test_rebalance_applies_overall_multiplier() -> None:+ embeds = torch.ones(1, 1, 12, 2)+ saved: dict = {}+ invocation = Krea2ConditioningRebalanceInvocation.model_construct(+ conditioning=Krea2ConditioningField(conditioning_name="c"),+ per_layer_weights=",".join(["1.0"] * 12),+ multiplier=3.0,+ )++ invocation.invoke(_make_context(embeds, saved))++ assert torch.allclose(_saved_embeds(saved), torch.full((1, 1, 12, 2), 3.0))+++# The noise magnitude is auto-calibrated to the embedding std, so tests must use a non-constant tensor+# (a constant tensor has std 0 and would produce no noise at all).+def _ramp_embeds() -> torch.Tensor:+ return torch.arange(1 * 3 * 12 * 4, dtype=torch.float32).reshape(1, 3, 12, 4)+++def test_seed_variance_is_deterministic_for_a_fixed_seed() -> None:+ embeds = _ramp_embeds()+ saved_a: dict = {}+ saved_b: dict = {}+ invocation = Krea2SeedVarianceInvocation.model_construct(+ conditioning=Krea2ConditioningField(conditioning_name="c"),+ strength=0.5,+ randomize_percent=50.0,+ variance_seed=42,+ )++ invocation.invoke(_make_context(embeds.clone(), saved_a))+ invocation.invoke(_make_context(embeds.clone(), saved_b))++ assert torch.equal(_saved_embeds(saved_a), _saved_embeds(saved_b))+++def test_seed_variance_differs_across_seeds() -> None:+ embeds = _ramp_embeds()+ saved_a: dict = {}+ saved_b: dict = {}++ def _run(seed: int, saved: dict) -> None:+ Krea2SeedVarianceInvocation.model_construct(+ conditioning=Krea2ConditioningField(conditioning_name="c"),+ strength=0.5,+ randomize_percent=50.0,+ variance_seed=seed,+ ).invoke(_make_context(embeds.clone(), saved))++ _run(42, saved_a)+ _run(43, saved_b)++ assert not torch.equal(_saved_embeds(saved_a), _saved_embeds(saved_b))+++def test_seed_variance_does_not_mutate_the_input_conditioning() -> None:+ embeds = _ramp_embeds()+ original = embeds.clone()+ saved: dict = {}+ invocation = Krea2SeedVarianceInvocation.model_construct(+ conditioning=Krea2ConditioningField(conditioning_name="c"),+ strength=0.5,+ randomize_percent=50.0,+ variance_seed=7,+ )++ invocation.invoke(_make_context(embeds, saved))++ # The invocation must produce a new tensor, not perturb the caller's embeds in place.+ assert torch.equal(embeds, original)+ assert not torch.equal(_saved_embeds(saved), original)+++def test_seed_variance_scales_noise_with_embedding_std() -> None:+ # Auto-calibration: doubling the embedding scale (hence its std) must double the injected noise, so a+ # fixed `strength` behaves the same relative to the signal regardless of the upstream embedding scale.+ base = _ramp_embeds()+ saved_small: dict = {}+ saved_large: dict = {}++ def _run(embeds: torch.Tensor, saved: dict) -> None:+ Krea2SeedVarianceInvocation.model_construct(+ conditioning=Krea2ConditioningField(conditioning_name="c"),+ strength=0.5,+ randomize_percent=100.0,+ variance_seed=1,+ ).invoke(_make_context(embeds, saved))++ _run(base.clone(), saved_small)+ _run(base.clone() * 2.0, saved_large)++ # Per-element noise = out - in. With randomize_percent=100 every element is perturbed, so the large-scale+ # run's noise should be ~2x the small-scale run's (same seed → same underlying uniform draw and mask).+ noise_small = _saved_embeds(saved_small) - base+ noise_large = _saved_embeds(saved_large) - base * 2.0+ assert torch.allclose(noise_large, noise_small * 2.0, atol=1e-4)+++def test_seed_variance_is_a_noop_when_disabled() -> None:+ embeds = _ramp_embeds()+ for strength, percent in ((0.0, 50.0), (0.5, 0.0)):+ saved: dict = {}+ out = Krea2SeedVarianceInvocation.model_construct(+ conditioning=Krea2ConditioningField(conditioning_name="c"),+ strength=strength,+ randomize_percent=percent,+ variance_seed=3,+ ).invoke(_make_context(embeds.clone(), saved))+ # Nothing saved, and the output points back at the untouched input conditioning.+ assert saved == {}+ assert out.conditioning.conditioning_name == "c"diff --git a/tests/app/invocations/test_krea2_lora_loader.py b/tests/app/invocations/test_krea2_lora_loader.pynew file mode 100644index 0000000000..63087fc207--- /dev/null+++ b/tests/app/invocations/test_krea2_lora_loader.py@@ -0,0 +1,145 @@+from types import SimpleNamespace++import pytest++from invokeai.app.invocations.krea2_lora_loader import Krea2LoRACollectionLoader, Krea2LoRALoaderInvocation+from invokeai.app.invocations.model import LoRAField, ModelIdentifierField, Qwen3VLEncoderField, TransformerField+from invokeai.backend.model_manager.taxonomy import BaseModelType, ModelType, SubModelType+++def _model(key: str, model_type: ModelType, base: BaseModelType = BaseModelType.Krea2) -> ModelIdentifierField:+ return ModelIdentifierField(key=key, hash=f"hash-{key}", name=key, base=base, type=model_type)+++def _lora(key: str = "lora") -> LoRAField:+ return LoRAField(lora=_model(key, ModelType.LoRA), weight=1.0)+++def _transformer(loras: list[LoRAField]) -> TransformerField:+ return TransformerField(+ transformer=_model("main", ModelType.Main).model_copy(update={"submodel_type": SubModelType.Transformer}),+ loras=loras,+ )+++def _encoder(loras: list[LoRAField]) -> Qwen3VLEncoderField:+ encoder = _model("encoder", ModelType.Qwen3VLEncoder, BaseModelType.Any)+ return Qwen3VLEncoderField(+ tokenizer=encoder.model_copy(update={"submodel_type": SubModelType.Tokenizer}),+ text_encoder=encoder.model_copy(update={"submodel_type": SubModelType.TextEncoder}),+ loras=loras,+ )+++def _context(stored_base: BaseModelType = BaseModelType.Krea2) -> SimpleNamespace:+ return SimpleNamespace(+ models=SimpleNamespace(+ exists=lambda _key: True,+ get_config=lambda _identifier: SimpleNamespace(base=stored_base, type=ModelType.LoRA),+ )+ )+++def test_collection_loader_repairs_transformer_only_lora_state() -> None:+ lora = _lora()+ existing = lora.model_copy(update={"weight": 0.25})+ invocation = Krea2LoRACollectionLoader.model_construct(+ loras=[lora], transformer=_transformer([existing]), qwen3_vl_encoder=_encoder([])+ )++ output = invocation.invoke(_context())++ assert [item.lora.key for item in output.transformer.loras] == ["lora"]+ assert [item.lora.key for item in output.qwen3_vl_encoder.loras] == ["lora"]+ assert output.qwen3_vl_encoder.loras[0].weight == 0.25+++def test_collection_loader_repairs_encoder_only_lora_state() -> None:+ lora = _lora()+ invocation = Krea2LoRACollectionLoader.model_construct(+ loras=[lora], transformer=_transformer([]), qwen3_vl_encoder=_encoder([lora])+ )++ output = invocation.invoke(_context())++ assert [item.lora.key for item in output.transformer.loras] == ["lora"]+ assert [item.lora.key for item in output.qwen3_vl_encoder.loras] == ["lora"]+++def test_collection_loader_does_not_duplicate_synchronized_lora_state() -> None:+ lora = _lora()+ invocation = Krea2LoRACollectionLoader.model_construct(+ loras=[lora], transformer=_transformer([lora]), qwen3_vl_encoder=_encoder([lora])+ )++ output = invocation.invoke(_context())++ assert len(output.transformer.loras) == 1+ assert len(output.qwen3_vl_encoder.loras) == 1+++def test_single_loader_repairs_transformer_only_lora_state() -> None:+ lora = _lora()+ existing = lora.model_copy(update={"weight": 0.25})+ invocation = Krea2LoRALoaderInvocation.model_construct(+ lora=lora.lora, weight=lora.weight, transformer=_transformer([existing]), qwen3_vl_encoder=_encoder([])+ )++ output = invocation.invoke(_context())++ assert len(output.transformer.loras) == 1+ assert [item.lora.key for item in output.qwen3_vl_encoder.loras] == ["lora"]+ assert output.qwen3_vl_encoder.loras[0].weight == 0.25+++def test_single_loader_rejects_non_krea_lora() -> None:+ lora = _model("flux-lora", ModelType.LoRA, BaseModelType.Flux)+ invocation = Krea2LoRALoaderInvocation.model_construct(+ lora=lora, weight=1.0, transformer=_transformer([]), qwen3_vl_encoder=_encoder([])+ )++ try:+ invocation.invoke(_context())+ except ValueError as error:+ assert "not Krea-2 models" in str(error)+ else:+ raise AssertionError("Expected a non-Krea LoRA to be rejected")++[email protected]("loader_type", ["single", "collection"])+def test_loader_rejects_forged_krea_identifier_for_non_krea_stored_model(loader_type: str) -> None:+ lora = _lora("forged")+ if loader_type == "single":+ invocation = Krea2LoRALoaderInvocation.model_construct(+ lora=lora.lora, weight=lora.weight, transformer=_transformer([]), qwen3_vl_encoder=_encoder([])+ )+ else:+ invocation = Krea2LoRACollectionLoader.model_construct(+ loras=[lora], transformer=_transformer([]), qwen3_vl_encoder=_encoder([])+ )++ with pytest.raises(ValueError, match="not Krea-2"):+ invocation.invoke(_context(BaseModelType.Flux))++[email protected]("loader_type", ["single", "collection"])+def test_loader_rejects_conflicting_existing_weights(loader_type: str) -> None:+ requested = _lora()+ transformer_lora = requested.model_copy(update={"weight": 0.25})+ encoder_lora = requested.model_copy(update={"weight": 0.75})+ if loader_type == "single":+ invocation = Krea2LoRALoaderInvocation.model_construct(+ lora=requested.lora,+ weight=requested.weight,+ transformer=_transformer([transformer_lora]),+ qwen3_vl_encoder=_encoder([encoder_lora]),+ )+ else:+ invocation = Krea2LoRACollectionLoader.model_construct(+ loras=[requested],+ transformer=_transformer([transformer_lora]),+ qwen3_vl_encoder=_encoder([encoder_lora]),+ )++ with pytest.raises(ValueError, match="conflicting weights"):+ invocation.invoke(_context())diff --git a/tests/app/invocations/test_krea2_model_loader.py b/tests/app/invocations/test_krea2_model_loader.pynew file mode 100644index 0000000000..21432ffa9d--- /dev/null+++ b/tests/app/invocations/test_krea2_model_loader.py@@ -0,0 +1,70 @@+from types import SimpleNamespace++import pytest++from invokeai.app.invocations.krea2_model_loader import Krea2ModelLoaderInvocation+from invokeai.app.invocations.model import ModelIdentifierField+from invokeai.backend.model_manager.taxonomy import BaseModelType, ModelFormat, ModelType+++def _model(key: str, base: BaseModelType, model_type: ModelType) -> ModelIdentifierField:+ return ModelIdentifierField(key=key, hash=f"hash-{key}", name=key, base=base, type=model_type)+++def _context(configs: dict[str, SimpleNamespace]) -> SimpleNamespace:+ return SimpleNamespace(models=SimpleNamespace(get_config=lambda identifier: configs[identifier.key]))+++def _config(base: BaseModelType, model_type: ModelType, model_format: ModelFormat) -> SimpleNamespace:+ return SimpleNamespace(base=base, type=model_type, format=model_format, name=f"{base.value}-{model_type.value}")++[email protected]("vae_base", [BaseModelType.QwenImage, BaseModelType.Anima])+def test_loader_accepts_supported_standalone_components(vae_base: BaseModelType) -> None:+ main = _model("main", BaseModelType.Krea2, ModelType.Main)+ vae = _model("vae", vae_base, ModelType.VAE)+ encoder = _model("encoder", BaseModelType.Any, ModelType.Qwen3VLEncoder)+ context = _context(+ {+ "main": _config(BaseModelType.Krea2, ModelType.Main, ModelFormat.Checkpoint),+ "vae": _config(vae_base, ModelType.VAE, ModelFormat.Checkpoint),+ "encoder": _config(BaseModelType.Any, ModelType.Qwen3VLEncoder, ModelFormat.Qwen3VLEncoder),+ }+ )++ output = Krea2ModelLoaderInvocation(model=main, vae_model=vae, qwen3_vl_encoder_model=encoder).invoke(context)++ assert output.vae.vae.key == "vae"+ assert output.qwen3_vl_encoder.text_encoder.key == "encoder"+++ ("target", "stored_config"),+ [+ ("main", _config(BaseModelType.Flux, ModelType.Main, ModelFormat.Checkpoint)),+ ("vae", _config(BaseModelType.StableDiffusionXL, ModelType.VAE, ModelFormat.Checkpoint)),+ ("encoder", _config(BaseModelType.Any, ModelType.Qwen3Encoder, ModelFormat.Checkpoint)),+ ],+)+def test_loader_rejects_incompatible_stored_component(target: str, stored_config: SimpleNamespace) -> None:+ main = _model("main", BaseModelType.Krea2, ModelType.Main)+ vae = _model("vae", BaseModelType.QwenImage, ModelType.VAE)+ encoder = _model("encoder", BaseModelType.Any, ModelType.Qwen3VLEncoder)+ configs = {+ "main": _config(BaseModelType.Krea2, ModelType.Main, ModelFormat.Checkpoint),+ "vae": _config(BaseModelType.QwenImage, ModelType.VAE, ModelFormat.Checkpoint),+ "encoder": _config(BaseModelType.Any, ModelType.Qwen3VLEncoder, ModelFormat.Qwen3VLEncoder),+ }+ configs[target] = stored_config++ with pytest.raises(ValueError, match="Krea-2|VAE|Qwen3-VL"):+ Krea2ModelLoaderInvocation(model=main, vae_model=vae, qwen3_vl_encoder_model=encoder).invoke(_context(configs))+++def test_loader_vae_ui_filter_includes_qwen_image_and_anima() -> None:+ field = Krea2ModelLoaderInvocation.model_fields["vae_model"]+ assert field.json_schema_extra is not None+ assert set(field.json_schema_extra["ui_model_base"]) == {+ BaseModelType.QwenImage.value,+ BaseModelType.Anima.value,+ }diff --git a/tests/app/invocations/test_krea2_text_encoder.py b/tests/app/invocations/test_krea2_text_encoder.pynew file mode 100644index 0000000000..33bb4a0690--- /dev/null+++ b/tests/app/invocations/test_krea2_text_encoder.py@@ -0,0 +1,300 @@+from contextlib import contextmanager, nullcontext+from types import SimpleNamespace++import pytest+import torch++from invokeai.app.invocations.krea2_text_encoder import Krea2TextEncoderInvocation+from invokeai.app.invocations.model import LoRAField, ModelIdentifierField, Qwen3VLEncoderField+from invokeai.backend.model_manager.taxonomy import BaseModelType, ModelType, SubModelType+from invokeai.backend.patches.lora_conversions.krea2_lora_constants import KREA2_LORA_QWEN3VL_PREFIX+from invokeai.backend.patches.model_patch_raw import ModelPatchRaw+++class _Tokenizer:+ def __call__(self, _text, max_length=None, **_kwargs):+ seq_len = max_length if max_length is not None else 5+ attention_mask = torch.zeros((1, seq_len), dtype=torch.long)+ attention_mask[:, : min(seq_len, 35)] = 1+ return SimpleNamespace(+ input_ids=torch.ones((1, seq_len), dtype=torch.long),+ attention_mask=attention_mask,+ )+++class _TextEncoder(torch.nn.Module):+ def __init__(self) -> None:+ super().__init__()+ self.anchor = torch.nn.Parameter(torch.zeros(1))++ def forward(self, input_ids, **_kwargs):+ hidden_states = tuple(torch.full((1, input_ids.shape[1], 4), float(index)) for index in range(36))+ return SimpleNamespace(hidden_states=hidden_states)+++class _TokenizerInfo:+ def __enter__(self):+ return _Tokenizer()++ def __exit__(self, *_args):+ return None+++class _TextEncoderInfo:+ @contextmanager+ def model_on_device(self):+ yield ({}, _TextEncoder())+++def _identifier(key: str, model_type: ModelType, base: BaseModelType = BaseModelType.Any) -> ModelIdentifierField:+ return ModelIdentifierField(key=key, hash=f"hash-{key}", name=key, base=base, type=model_type)+++def _invocation() -> Krea2TextEncoderInvocation:+ encoder = _identifier("encoder", ModelType.Qwen3VLEncoder)+ lora = _identifier("lora", ModelType.LoRA, BaseModelType.Krea2)+ field = Qwen3VLEncoderField(+ tokenizer=encoder.model_copy(update={"submodel_type": SubModelType.Tokenizer}),+ text_encoder=encoder.model_copy(update={"submodel_type": SubModelType.TextEncoder}),+ loras=[LoRAField(lora=lora, weight=0.5)],+ )+ return Krea2TextEncoderInvocation.model_construct(prompt="a prompt", qwen3_vl_encoder=field)+++def _context(lora_model) -> SimpleNamespace:+ def load(identifier):+ if identifier.key == "lora":+ return SimpleNamespace(model=lora_model)+ if identifier.submodel_type is SubModelType.Tokenizer:+ return _TokenizerInfo()+ return _TextEncoderInfo()++ return SimpleNamespace(+ models=SimpleNamespace(load=load), util=SimpleNamespace(signal_progress=lambda _message: None)+ )+++def test_encode_applies_qwen3_vl_lora_and_returns_selected_hidden_layers(monkeypatch) -> None:+ captured = {}++ def apply_patches(**kwargs):+ captured.update(kwargs)+ captured["patches"] = list(kwargs["patches"])+ return nullcontext()++ monkeypatch.setattr(+ "invokeai.app.invocations.krea2_text_encoder.LayerPatcher.apply_smart_model_patches", apply_patches+ )+ monkeypatch.setattr(+ "invokeai.app.invocations.krea2_text_encoder.TorchDevice.choose_bfloat16_safe_dtype",+ lambda _device: torch.float32,+ )++ embeds, mask = _invocation()._encode(_context(ModelPatchRaw(layers={})))++ assert embeds.shape == (1, 512, 12, 4)+ assert mask is not None+ assert mask.shape == (1, 512)+ assert captured["prefix"] == KREA2_LORA_QWEN3VL_PREFIX+ assert captured["patches"][0][1] == 0.5+++def test_encode_rejects_a_loaded_non_patch_lora(monkeypatch) -> None:+ def apply_patches(**kwargs):+ list(kwargs["patches"])+ return nullcontext()++ monkeypatch.setattr(+ "invokeai.app.invocations.krea2_text_encoder.LayerPatcher.apply_smart_model_patches", apply_patches+ )++ with pytest.raises(TypeError, match="Expected ModelPatchRaw"):+ _invocation()._encode(_context(object()))+++def test_encode_preserves_suffix_for_a_prompt_that_overflows_truncation(monkeypatch) -> None:+ # Regression: a prompt longer than the tokenizer budget must NOT lose the assistant-turn suffix. The+ # encoder tokenizes (prefix + prompt) with truncation and appends the suffix AFTER, so the final tokens+ # always end with the suffix template (building one string and truncating it would cut the suffix off).+ from invokeai.app.invocations.krea2_text_encoder import _KREA2_SUFFIX++ suffix_ids = [901, 902, 903, 904, 905]++ class _TruncatingTokenizer:+ def __call__(+ self,+ text,+ max_length=None,+ truncation=False,+ padding=None,+ add_special_tokens=True,+ return_tensors=None,+ ):+ if text == _KREA2_SUFFIX:+ ids = list(suffix_ids)+ else:+ # Body (prefix + prompt): one filler id per whitespace token, distinct from the suffix ids.+ ids = [1] * len(text.split())+ if truncation and max_length is not None and len(ids) > max_length:+ ids = ids[:max_length] # right truncation, as the real tokenizer does+ valid_length = len(ids)+ if padding == "max_length" and max_length is not None and len(ids) < max_length:+ ids.extend([0] * (max_length - len(ids)))+ input_ids = torch.tensor([ids], dtype=torch.long)+ attention_mask = torch.zeros_like(input_ids)+ attention_mask[:, :valid_length] = 1+ return SimpleNamespace(input_ids=input_ids, attention_mask=attention_mask)++ captured: dict = {}++ class _CapturingEncoder(torch.nn.Module):+ def __init__(self) -> None:+ super().__init__()+ self.anchor = torch.nn.Parameter(torch.zeros(1))++ def forward(self, *, input_ids, attention_mask, **_kwargs):+ captured["input_ids"] = input_ids+ seq = input_ids.shape[1]+ hidden_states = tuple(torch.zeros((1, seq, 4)) for _ in range(36))+ return SimpleNamespace(hidden_states=hidden_states)++ encoder = _CapturingEncoder()++ class _CapturingEncoderInfo:+ @contextmanager+ def model_on_device(self):+ yield ({}, encoder)++ class _TruncatingTokenizerInfo:+ def __enter__(self):+ return _TruncatingTokenizer()++ def __exit__(self, *_args):+ return None++ def load(identifier):+ if identifier.submodel_type is SubModelType.Tokenizer:+ return _TruncatingTokenizerInfo()+ return _CapturingEncoderInfo()++ context = SimpleNamespace(+ models=SimpleNamespace(load=load), util=SimpleNamespace(signal_progress=lambda _message: None)+ )++ monkeypatch.setattr(+ "invokeai.app.invocations.krea2_text_encoder.LayerPatcher.apply_smart_model_patches",+ lambda **_kwargs: nullcontext(),+ )+ monkeypatch.setattr(+ "invokeai.app.invocations.krea2_text_encoder.TorchDevice.choose_bfloat16_safe_dtype",+ lambda _device: torch.float32,+ )++ encoder_id = _identifier("encoder", ModelType.Qwen3VLEncoder)+ field = Qwen3VLEncoderField(+ tokenizer=encoder_id.model_copy(update={"submodel_type": SubModelType.Tokenizer}),+ text_encoder=encoder_id.model_copy(update={"submodel_type": SubModelType.TextEncoder}),+ loras=[],+ )+ long_prompt = " ".join(["word"] * 2000) # far exceeds the ~541-token budget+ invocation = Krea2TextEncoderInvocation.model_construct(prompt=long_prompt, qwen3_vl_encoder=field)++ invocation._encode(context)++ final_ids = captured["input_ids"][0].tolist()+ # The suffix survives at the very end even though the body was truncated.+ assert final_ids[-len(suffix_ids) :] == suffix_ids+ # And the body really was truncated (total = reserved budget + suffix), proving append-after-truncate.+ assert len(final_ids) > len(suffix_ids)+++def test_encode_uses_reference_fixed_length_layout_and_position_ids(monkeypatch) -> None:+ from invokeai.app.invocations.krea2_text_encoder import _KREA2_SUFFIX++ captured: dict = {}++ class _ReferenceLayoutTokenizer:+ def __call__(+ self,+ text,+ max_length=None,+ truncation=False,+ padding=None,+ add_special_tokens=True,+ return_tensors=None,+ ):+ if text == _KREA2_SUFFIX:+ input_ids = torch.tensor([[91, 92, 93, 94, 95]], dtype=torch.long)+ return SimpleNamespace(input_ids=input_ids, attention_mask=torch.ones_like(input_ids))++ assert truncation is True+ assert padding == "max_length"+ assert max_length is not None+ input_ids = torch.zeros((1, max_length), dtype=torch.long)+ attention_mask = torch.zeros_like(input_ids)+ input_ids[:, :4] = torch.tensor([[11, 12, 13, 14]])+ attention_mask[:, :4] = 1+ return SimpleNamespace(input_ids=input_ids, attention_mask=attention_mask)++ class _ReferenceLayoutEncoder(torch.nn.Module):+ def __init__(self) -> None:+ super().__init__()+ self.anchor = torch.nn.Parameter(torch.zeros(1))++ def forward(self, *, input_ids, attention_mask, position_ids, **_kwargs):+ captured["input_ids"] = input_ids+ captured["attention_mask"] = attention_mask+ captured["position_ids"] = position_ids+ seq_len = input_ids.shape[1]+ hidden_states = tuple(torch.zeros((1, seq_len, 4)) for _ in range(36))+ return SimpleNamespace(hidden_states=hidden_states)++ class _ReferenceLayoutTokenizerInfo:+ def __enter__(self):+ return _ReferenceLayoutTokenizer()++ def __exit__(self, *_args):+ return None++ encoder = _ReferenceLayoutEncoder()++ class _ReferenceLayoutEncoderInfo:+ @contextmanager+ def model_on_device(self):+ yield ({}, encoder)++ encoder_id = _identifier("encoder", ModelType.Qwen3VLEncoder)+ field = Qwen3VLEncoderField(+ tokenizer=encoder_id.model_copy(update={"submodel_type": SubModelType.Tokenizer}),+ text_encoder=encoder_id.model_copy(update={"submodel_type": SubModelType.TextEncoder}),+ loras=[],+ )+ invocation = Krea2TextEncoderInvocation.model_construct(prompt="short prompt", qwen3_vl_encoder=field)++ def load(identifier):+ if identifier.submodel_type is SubModelType.Tokenizer:+ return _ReferenceLayoutTokenizerInfo()+ return _ReferenceLayoutEncoderInfo()++ context = SimpleNamespace(+ models=SimpleNamespace(load=load), util=SimpleNamespace(signal_progress=lambda _message: None)+ )++ monkeypatch.setattr(+ "invokeai.app.invocations.krea2_text_encoder.LayerPatcher.apply_smart_model_patches",+ lambda **_kwargs: nullcontext(),+ )+ monkeypatch.setattr(+ "invokeai.app.invocations.krea2_text_encoder.TorchDevice.choose_bfloat16_safe_dtype",+ lambda _device: torch.float32,+ )++ embeds, mask = invocation._encode(context)++ assert embeds.shape == (1, 512, 12, 4)+ assert mask is not None+ assert mask.shape == (1, 512)+ assert captured["input_ids"].shape == (1, 546)+ assert captured["attention_mask"].dtype == torch.bool+ assert captured["position_ids"].shape == (3, 1, 546)+ assert captured["position_ids"][0, 0, -5:].tolist() == [4, 5, 6, 7, 8]diff --git a/tests/app/invocations/test_qwen_image_working_memory.py b/tests/app/invocations/test_qwen_image_working_memory.pyindex 39689b1f98..02a6faedf1 100644--- a/tests/app/invocations/test_qwen_image_working_memory.py+++ b/tests/app/invocations/test_qwen_image_working_memory.py@@ -115,6 +115,47 @@ class TestQwenImageWorkingMemory:assert mock_estimate.call_args.kwargs["operation"] == "decode"mock_vae_info.model_on_device.assert_called_once_with(working_mem_bytes=expected_memory)+ def test_seamless_patch_is_applied_to_converted_anima_vae(self):+ original_vae, mock_vae_info = self._mock_vae_info()+ converted_vae = MagicMock(spec=AutoencoderKLQwenImage)+ converted_vae.parameters.return_value = iter([torch.zeros(1)])+ converted_vae.dtype = torch.float32+ converted_vae.config.z_dim = 16+ converted_vae.config.latents_mean = [0.0] * 16+ converted_vae.config.latents_std = [1.0] * 16+ converted_vae.decode.side_effect = RuntimeError("stop after seamless patch")+ mock_context = MagicMock()+ mock_context.models.load.return_value = mock_vae_info+ mock_context.tensors.load.return_value = torch.zeros(1, 16, 1, 2, 2)++ with (+ patch(+ "invokeai.app.invocations.qwen_image_latents_to_image.estimate_vae_working_memory_qwen_image",+ return_value=1,+ ),+ patch(+ "invokeai.app.invocations.qwen_image_latents_to_image.as_qwen_image_vae",+ return_value=converted_vae,+ ),+ patch(+ "invokeai.app.invocations.qwen_image_latents_to_image.SeamlessExt.static_patch_model",+ return_value=nullcontext(),+ ) as patch_seamless,+ patch(+ "invokeai.app.invocations.qwen_image_latents_to_image.TorchDevice.choose_torch_device",+ return_value=torch.device("cpu"),+ ),+ ):+ invocation = QwenImageLatentsToImageInvocation.model_construct(+ latents=MagicMock(latents_name="test_latents"),+ vae=MagicMock(vae=MagicMock(), seamless_axes=["x"]),+ )+ with pytest.raises(RuntimeError, match="stop after seamless patch"):+ invocation.invoke(mock_context)++ assert original_vae is not converted_vae+ patch_seamless.assert_called_once_with(converted_vae, ["x"])+def test_qwen_image_to_latents_requests_working_memory(self):"""QwenImageImageToLatentsInvocation estimates encode memory and passes it to the cache."""mock_vae, mock_vae_info = self._mock_vae_info()diff --git a/tests/backend/krea2/test_attention.py b/tests/backend/krea2/test_attention.pynew file mode 100644index 0000000000..e15243a345--- /dev/null+++ b/tests/backend/krea2/test_attention.py@@ -0,0 +1,45 @@+import torch+from diffusers.models.transformers.transformer_krea2 import Krea2Attention, Krea2AttnProcessor++from invokeai.backend.krea2.attention import Krea2MemoryEfficientAttnProcessor+++def _build_gqa_attention() -> Krea2Attention:+ # Krea-2's main blocks use grouped-query attention: more query heads than key/value heads.+ torch.manual_seed(0)+ attn = Krea2Attention(hidden_size=256, num_heads=8, num_kv_heads=2, eps=1e-5).eval()+ assert attn.num_heads != attn.num_kv_heads+ return attn+++def test_memory_efficient_processor_matches_stock_processor() -> None:+ # The memory-efficient processor expands the KV heads and uses the O(seq) SDPA kernel instead of the+ # enable_gqa math path, but must be numerically equivalent to the stock Krea2AttnProcessor.+ attn = _build_gqa_attention()+ hidden_states = torch.randn(1, 24, attn.hidden_size)+ mask = torch.ones(1, 1, 1, 24, dtype=torch.bool)++ with torch.no_grad():+ attn.set_processor(Krea2AttnProcessor())+ out_stock = attn(hidden_states, attention_mask=mask, image_rotary_emb=None)+ attn.set_processor(Krea2MemoryEfficientAttnProcessor())+ out_efficient = attn(hidden_states, attention_mask=mask, image_rotary_emb=None)++ assert out_stock.shape == out_efficient.shape+ assert torch.allclose(out_stock, out_efficient, atol=1e-4, rtol=1e-4)+++def test_memory_efficient_processor_handles_equal_head_counts() -> None:+ # The text-fusion attention has num_heads == num_kv_heads (no GQA); the processor must skip the KV expansion+ # and still produce the right result.+ torch.manual_seed(0)+ attn = Krea2Attention(hidden_size=256, num_heads=8, num_kv_heads=8, eps=1e-5).eval()+ hidden_states = torch.randn(1, 24, attn.hidden_size)++ with torch.no_grad():+ attn.set_processor(Krea2AttnProcessor())+ out_stock = attn(hidden_states, attention_mask=None, image_rotary_emb=None)+ attn.set_processor(Krea2MemoryEfficientAttnProcessor())+ out_efficient = attn(hidden_states, attention_mask=None, image_rotary_emb=None)++ assert torch.allclose(out_stock, out_efficient, atol=1e-4, rtol=1e-4)diff --git a/tests/backend/krea2/test_vae_compat.py b/tests/backend/krea2/test_vae_compat.pynew file mode 100644index 0000000000..ce4bf4206d--- /dev/null+++ b/tests/backend/krea2/test_vae_compat.py@@ -0,0 +1,44 @@+import accelerate+import pytest+from diffusers.models.autoencoders import AutoencoderKLWan++from invokeai.backend.krea2.vae_compat import as_qwen_image_vae+++def test_as_qwen_image_vae_preserves_the_cached_model_and_its_hooks() -> None:+ with accelerate.init_empty_weights():+ model = AutoencoderKLWan()++ hook = model.register_forward_pre_hook(lambda *_args: None)++ converted = as_qwen_image_vae(model)++ assert converted is model+ assert hook.id in converted._forward_pre_hooks+++def test_as_qwen_image_vae_rejects_incompatible_model() -> None:+ with pytest.raises(TypeError, match="Expected AutoencoderKLQwenImage or AutoencoderKLWan"):+ as_qwen_image_vae(object())+++def test_as_qwen_image_vae_accepts_default_16_channel_wan() -> None:+ # The default AutoencoderKLWan config is the Qwen-Image geometry (16 channels, 8x spatial, no patching).+ with accelerate.init_empty_weights():+ model = AutoencoderKLWan()+ assert as_qwen_image_vae(model) is model+++def test_as_qwen_image_vae_rejects_48_channel_wan_2_2_vae() -> None:+ # Wan 2.2's VAE is 48-channel and would fail the 16-vs-48 per-channel normalization.+ with accelerate.init_empty_weights():+ model = AutoencoderKLWan(z_dim=48)+ with pytest.raises(ValueError, match="not Qwen-Image-compatible"):+ as_qwen_image_vae(model)+++def test_as_qwen_image_vae_rejects_patchified_wan_vae() -> None:+ with accelerate.init_empty_weights():+ model = AutoencoderKLWan(patch_size=2, is_residual=True)+ with pytest.raises(ValueError, match="not Qwen-Image-compatible"):+ as_qwen_image_vae(model)diff --git a/tests/backend/model_manager/configs/test_krea2_lora_config.py b/tests/backend/model_manager/configs/test_krea2_lora_config.pynew file mode 100644index 0000000000..d9dd0c42e5--- /dev/null+++ b/tests/backend/model_manager/configs/test_krea2_lora_config.py@@ -0,0 +1,239 @@+from unittest.mock import MagicMock, patch++import pytest++from invokeai.backend.model_manager.configs.identification_utils import NotAMatchError+from invokeai.backend.model_manager.configs.lora import LoRA_LyCORIS_Krea2_Config+from invokeai.backend.model_manager.taxonomy import BaseModelType++_REQUIRED_FIELDS = {+ "hash": "blake3:fakehash",+ "path": "/fake/models/krea2-lora.safetensors",+ "file_size": 1000,+ "name": "krea2-lora",+ "description": "test",+ "source": "test",+ "source_type": "path",+ "key": "test-key",+}+++def _ambiguous_transformer_only_lora() -> MagicMock:+ mod = MagicMock()+ mod.load_state_dict.return_value = {+ "transformer.transformer_blocks.0.attn.to_q.lora_A.weight": object(),+ "transformer.transformer_blocks.0.attn.to_q.lora_B.weight": object(),+ }+ return mod+++def _ambiguous_text_encoder_only_lora() -> MagicMock:+ mod = MagicMock()+ mod.load_state_dict.return_value = {+ "text_encoder.language_model.layers.0.self_attn.q_proj.lora_A.weight": object(),+ "text_encoder.language_model.layers.0.self_attn.q_proj.lora_B.weight": object(),+ }+ return mod+++def _diffusion_model_transformer_only_lora() -> MagicMock:+ mod = MagicMock()+ mod.load_state_dict.return_value = {+ "diffusion_model.transformer_blocks.0.attn.to_q.lora_A.weight": object(),+ "diffusion_model.transformer_blocks.0.attn.to_q.lora_B.weight": object(),+ }+ return mod+++@patch("invokeai.backend.model_manager.configs.lora.raise_if_not_file")+def test_explicit_krea2_override_accepts_ambiguous_transformer_only_lora(_raise_if_not_file) -> None:+ config = LoRA_LyCORIS_Krea2_Config.from_model_on_disk(+ _ambiguous_transformer_only_lora(), {**_REQUIRED_FIELDS, "base": BaseModelType.Krea2}+ )++ assert config.base is BaseModelType.Krea2+++@patch("invokeai.backend.model_manager.configs.lora.raise_if_not_file")+def test_automatic_probe_rejects_ambiguous_transformer_only_lora(_raise_if_not_file) -> None:+ with pytest.raises(NotAMatchError):+ LoRA_LyCORIS_Krea2_Config.from_model_on_disk(_ambiguous_transformer_only_lora(), {**_REQUIRED_FIELDS})+++@patch("invokeai.backend.model_manager.configs.lora.raise_if_not_file")+def test_explicit_krea2_override_rejects_incomplete_lora_pair(_raise_if_not_file) -> None:+ mod = MagicMock()+ mod.load_state_dict.return_value = {+ "transformer.transformer_blocks.0.attn.to_q.lora_A.weight": object(),+ }++ with pytest.raises(NotAMatchError):+ LoRA_LyCORIS_Krea2_Config.from_model_on_disk(mod, {**_REQUIRED_FIELDS, "base": BaseModelType.Krea2})+++@patch("invokeai.backend.model_manager.configs.lora.raise_if_not_file")+def test_explicit_krea2_override_accepts_text_encoder_only_lora(_raise_if_not_file) -> None:+ config = LoRA_LyCORIS_Krea2_Config.from_model_on_disk(+ _ambiguous_text_encoder_only_lora(), {**_REQUIRED_FIELDS, "base": BaseModelType.Krea2}+ )++ assert config.base is BaseModelType.Krea2+++@patch("invokeai.backend.model_manager.configs.lora.raise_if_not_file")+def test_automatic_probe_rejects_ambiguous_text_encoder_only_lora(_raise_if_not_file) -> None:+ with pytest.raises(NotAMatchError):+ LoRA_LyCORIS_Krea2_Config.from_model_on_disk(_ambiguous_text_encoder_only_lora(), {**_REQUIRED_FIELDS})+++@patch("invokeai.backend.model_manager.configs.lora.raise_if_not_file")+def test_explicit_krea2_override_accepts_diffusion_model_transformer_only_lora(_raise_if_not_file) -> None:+ # The converter supports the `diffusion_model.` transformer layout (lora_model_from_krea2_state_dict), so a+ # transformer-only LoRA using it must install under an explicit Krea-2 override (regression: review 4791964047).+ config = LoRA_LyCORIS_Krea2_Config.from_model_on_disk(+ _diffusion_model_transformer_only_lora(), {**_REQUIRED_FIELDS, "base": BaseModelType.Krea2}+ )++ assert config.base is BaseModelType.Krea2+++@patch("invokeai.backend.model_manager.configs.lora.raise_if_not_file")+def test_explicit_krea2_override_accepts_multiple_complete_pairs(_raise_if_not_file) -> None:+ # Several fully-paired layers (both lora_A/B and lora_down/up styles) must install cleanly.+ mod = MagicMock()+ mod.load_state_dict.return_value = {+ "transformer.transformer_blocks.0.attn.to_q.lora_A.weight": object(),+ "transformer.transformer_blocks.0.attn.to_q.lora_B.weight": object(),+ "transformer.transformer_blocks.0.attn.to_k.lora_down.weight": object(),+ "transformer.transformer_blocks.0.attn.to_k.lora_up.weight": object(),+ "transformer.transformer_blocks.1.attn.to_v.lora_A.weight": object(),+ "transformer.transformer_blocks.1.attn.to_v.lora_B.weight": object(),+ }+ config = LoRA_LyCORIS_Krea2_Config.from_model_on_disk(mod, {**_REQUIRED_FIELDS, "base": BaseModelType.Krea2})+ assert config.base is BaseModelType.Krea2+++# One complete pair plus a dangling half of each kind - every mixed case must be rejected, because an+# orphaned half installs here but crashes later during LoRA conversion (review 4800904928).+_ORPHAN_HALVES = [+ "transformer.transformer_blocks.0.attn.to_k.lora_A.weight", # missing lora_B+ "transformer.transformer_blocks.0.attn.to_k.lora_B.weight", # missing lora_A+ "transformer.transformer_blocks.0.attn.to_k.lora_down.weight", # missing lora_up+ "transformer.transformer_blocks.0.attn.to_k.lora_up.weight", # missing lora_down+]++[email protected]("orphan_key", _ORPHAN_HALVES)+@patch("invokeai.backend.model_manager.configs.lora.raise_if_not_file")+def test_explicit_krea2_override_rejects_complete_pair_plus_orphan(_raise_if_not_file, orphan_key: str) -> None:+ mod = MagicMock()+ mod.load_state_dict.return_value = {+ "transformer.transformer_blocks.0.attn.to_q.lora_A.weight": object(),+ "transformer.transformer_blocks.0.attn.to_q.lora_B.weight": object(),+ orphan_key: object(),+ }+ with pytest.raises(NotAMatchError):+ LoRA_LyCORIS_Krea2_Config.from_model_on_disk(mod, {**_REQUIRED_FIELDS, "base": BaseModelType.Krea2})++[email protected]("orphan_key", _ORPHAN_HALVES)+@patch("invokeai.backend.model_manager.configs.lora.raise_if_not_file")+def test_automatic_probe_rejects_complete_pair_plus_orphan(_raise_if_not_file, orphan_key: str) -> None:+ # The automatic (no-override) path also validates completeness. text_fusion.* makes it look like Krea-2.+ mod = MagicMock()+ mod.load_state_dict.return_value = {+ "transformer.text_fusion.0.lora_A.weight": object(),+ "transformer.text_fusion.0.lora_B.weight": object(),+ orphan_key: object(),+ }+ with pytest.raises(NotAMatchError):+ LoRA_LyCORIS_Krea2_Config.from_model_on_disk(mod, {**_REQUIRED_FIELDS})+++@patch("invokeai.backend.model_manager.configs.lora.raise_if_not_file")+def test_explicit_krea2_override_rejects_incomplete_diffusion_model_lora_pair(_raise_if_not_file) -> None:+ mod = MagicMock()+ mod.load_state_dict.return_value = {+ "diffusion_model.transformer_blocks.0.attn.to_q.lora_A.weight": object(),+ }++ with pytest.raises(NotAMatchError):+ LoRA_LyCORIS_Krea2_Config.from_model_on_disk(mod, {**_REQUIRED_FIELDS, "base": BaseModelType.Krea2})+++@patch("invokeai.backend.model_manager.configs.lora.raise_if_not_file")+def test_explicit_krea2_override_rejects_orphan_outside_approved_prefixes(_raise_if_not_file) -> None:+ # A complete pair under an approved prefix plus a dangling half elsewhere (text_fusion, which is NOT in+ # the approved-prefix list) must still be rejected - the orphan crashes conversion (review 4802322488).+ mod = MagicMock()+ mod.load_state_dict.return_value = {+ "transformer.transformer_blocks.0.attn.to_q.lora_A.weight": object(),+ "transformer.transformer_blocks.0.attn.to_q.lora_B.weight": object(),+ "transformer.text_fusion.0.lora_A.weight": object(), # orphan: no matching lora_B+ }+ with pytest.raises(NotAMatchError):+ LoRA_LyCORIS_Krea2_Config.from_model_on_disk(mod, {**_REQUIRED_FIELDS, "base": BaseModelType.Krea2})+++@patch("invokeai.backend.model_manager.configs.lora.raise_if_not_file")+def test_automatic_probe_rejects_dora_scale_without_weight_pair(_raise_if_not_file) -> None:+ # dora_scale alone is not a loadable LoRA - there are no A/B (or down/up) weights to apply. text_fusion.*+ # makes it look like Krea-2, but it must be rejected for lacking a complete pair (review 4802322488).+ mod = MagicMock()+ mod.load_state_dict.return_value = {+ "transformer.text_fusion.0.dora_scale": object(),+ }+ with pytest.raises(NotAMatchError):+ LoRA_LyCORIS_Krea2_Config.from_model_on_disk(mod, {**_REQUIRED_FIELDS})+++@patch("invokeai.backend.model_manager.configs.lora.raise_if_not_file")+def test_automatic_probe_accepts_complete_pair_with_dora_scale(_raise_if_not_file) -> None:+ # A complete A/B pair accompanied by dora_scale is a valid DoRA LoRA and must be accepted.+ mod = MagicMock()+ mod.load_state_dict.return_value = {+ "transformer.text_fusion.0.lora_A.weight": object(),+ "transformer.text_fusion.0.lora_B.weight": object(),+ "transformer.text_fusion.0.dora_scale": object(),+ }+ config = LoRA_LyCORIS_Krea2_Config.from_model_on_disk(mod, {**_REQUIRED_FIELDS})+ assert config.base is BaseModelType.Krea2+++@patch("invokeai.backend.model_manager.configs.lora.raise_if_not_file")+def test_native_comfyui_krea2_lora_is_identified_as_krea2(_raise_if_not_file) -> None:+ # A native (ComfyUI) Krea-2 slider LoRA uses `blocks.N.attn.wq/gate` + `mlp` (no diffusers `text_fusion`+ # key). It must auto-identify as Krea-2 via the native gated-attention signature, not fall through to+ # Anima (whose strict detector previously false-matched the native `blocks.N.mlp.*`).+ mod = MagicMock()+ mod.load_state_dict.return_value = {+ "diffusion_model.blocks.0.attn.wq.lora_A.weight": object(),+ "diffusion_model.blocks.0.attn.wq.lora_B.weight": object(),+ "diffusion_model.blocks.0.attn.gate.lora_A.weight": object(),+ "diffusion_model.blocks.0.attn.gate.lora_B.weight": object(),+ "diffusion_model.blocks.0.mlp.down.lora_A.weight": object(),+ "diffusion_model.blocks.0.mlp.down.lora_B.weight": object(),+ }+ config = LoRA_LyCORIS_Krea2_Config.from_model_on_disk(mod, {**_REQUIRED_FIELDS})+ assert config.base is BaseModelType.Krea2+++ "native_module",+ [+ "blocks.0.attn.wq",+ "blocks.0.mlp.down",+ "tproj.1",+ ],+)+@patch("invokeai.backend.model_manager.configs.lora.raise_if_not_file")+def test_explicit_krea2_override_accepts_single_module_native_lora(_raise_if_not_file, native_module: str) -> None:+ mod = MagicMock()+ mod.load_state_dict.return_value = {+ f"diffusion_model.{native_module}.lora_A.weight": object(),+ f"diffusion_model.{native_module}.lora_B.weight": object(),+ }++ config = LoRA_LyCORIS_Krea2_Config.from_model_on_disk(mod, {**_REQUIRED_FIELDS, "base": BaseModelType.Krea2})++ assert config.base is BaseModelType.Krea2diff --git a/tests/backend/model_manager/configs/test_krea2_main_config.py b/tests/backend/model_manager/configs/test_krea2_main_config.pynew file mode 100644index 0000000000..f19ee8f0aa--- /dev/null+++ b/tests/backend/model_manager/configs/test_krea2_main_config.py@@ -0,0 +1,249 @@+"""Tests for Krea-2 main-model identification and variant detection.++Krea-2-Turbo (distilled) and Krea-2-Raw (Base, undistilled) share the IDENTICAL transformer+architecture, so a single-file/GGUF checkpoint cannot be told apart from its weights. Detection:++1. Explicit ``variant`` in override_fields always wins.+2. Diffusers pipelines read the pipeline-level ``is_distilled`` flag from model_index.json+ (``false`` → Base, ``true``/absent → Turbo).+3. Single-file / GGUF fall back to a filename heuristic ("raw"/"base" → Base, else Turbo).+"""++import json+from pathlib import Path+from tempfile import TemporaryDirectory+from unittest.mock import MagicMock, patch++import pytest++from invokeai.backend.model_manager.configs.identification_utils import NotAMatchError+from invokeai.backend.model_manager.configs.main import (+ MainModelDefaultSettings,+ _get_krea2_variant_from_name,+ _has_krea2_keys,+)+from invokeai.backend.model_manager.taxonomy import BaseModelType, Krea2VariantType++# Required fields for the Pydantic config models (mirrors the other config-probe tests).+_REQUIRED_FIELDS = {+ "hash": "blake3:fakehash",+ "path": "/fake/models/test",+ "file_size": 1000,+ "name": "test-model",+ "description": "test",+ "source": "test",+ "source_type": "path",+ "key": "test-key",+}+++class TestKrea2VariantFromName:+ """The filename heuristic used for single-file / GGUF Krea-2 checkpoints."""++ @pytest.mark.parametrize(+ "name, expected",+ [+ ("Krea-2-Raw", Krea2VariantType.Base),+ ("krea2_raw_q4.gguf", Krea2VariantType.Base),+ ("Krea-2-RAW-Q8_0.gguf", Krea2VariantType.Base), # case-insensitive+ ("krea2_base_fp8_scaled.safetensors", Krea2VariantType.Base),+ ("Krea-2-Turbo", Krea2VariantType.Turbo),+ ("krea2_turbo-Q3_K_M.gguf", Krea2VariantType.Turbo),+ ("Krea-2-Turbo-Q4_K_M.gguf", Krea2VariantType.Turbo),+ ("some-random-name.safetensors", Krea2VariantType.Turbo), # default+ # "turbo" wins outright, so a Turbo file whose name merely contains "base"/"raw" as a+ # substring is not misread as Base.+ ("krea2_turbo_baseline_q4.gguf", Krea2VariantType.Turbo),+ ("krea2-turbo-raw-export.safetensors", Krea2VariantType.Turbo),+ # "base"/"raw" only match as whole tokens, not arbitrary substrings.+ ("krea2_database_model.safetensors", Krea2VariantType.Turbo),+ ("krea2_baseline_q8.gguf", Krea2VariantType.Turbo),+ ],+ )+ def test_variant_from_name(self, name: str, expected: Krea2VariantType) -> None:+ assert _get_krea2_variant_from_name(name) == expected+++class TestHasKrea2Keys:+ """The Krea-2 transformer state-dict signature (diffusers + native/GGUF naming)."""++ def test_diffusers_naming_matches(self) -> None:+ sd = {+ "text_fusion.layerwise_blocks.0.attn.to_q.weight": object(),+ "img_in.weight": object(),+ "transformer_blocks.0.attn.to_q.weight": object(),+ }+ assert _has_krea2_keys(sd) is True++ def test_native_gguf_naming_matches(self) -> None:+ # Compact ComfyUI/GGUF naming: txtfusion + first / tproj.+ sd = {+ "txtfusion.0.attn.wq.weight": object(),+ "first.weight": object(),+ "tproj.1.weight": object(),+ }+ assert _has_krea2_keys(sd) is True++ def test_comfyui_prefixed_keys_match(self) -> None:+ sd = {+ "model.diffusion_model.text_fusion.projector.weight": object(),+ "model.diffusion_model.img_in.weight": object(),+ }+ assert _has_krea2_keys(sd) is True++ def test_text_fusion_without_corroborator_does_not_match(self) -> None:+ # text-fusion alone is not enough — an image-input corroborator is required.+ sd = {"text_fusion.projector.weight": object()}+ assert _has_krea2_keys(sd) is False++ def test_non_krea2_state_dict_does_not_match(self) -> None:+ sd = {"double_blocks.0.img_attn.qkv.weight": object(), "img_in.weight": object()}+ assert _has_krea2_keys(sd) is False++ def test_lora_is_rejected(self) -> None:+ # LoRA suffixes must never be classified as a Krea-2 main model.+ sd = {+ "text_fusion.layerwise_blocks.0.attn.to_q.lora_down.weight": object(),+ "img_in.lora_up.weight": object(),+ }+ assert _has_krea2_keys(sd) is False+++class TestKrea2GGUFVariantDetection:+ """Main_GGUF_Krea2_Config: variant from filename, explicit override wins."""++ def _make_mock_mod(self, filename: str) -> MagicMock:+ mod = MagicMock()+ mod.path = Path(f"/fake/models/{filename}")+ mod.load_state_dict.return_value = {}+ return mod++ @patch("invokeai.backend.model_manager.configs.main._has_krea2_keys", return_value=True)+ @patch("invokeai.backend.model_manager.configs.main._has_ggml_tensors", return_value=True)+ @patch("invokeai.backend.model_manager.configs.main.raise_if_not_file")+ @patch("invokeai.backend.model_manager.configs.main.raise_for_override_fields")+ def test_raw_filename_sets_base_variant(self, _rfo, _rif, _hgt, _hkk) -> None:+ from invokeai.backend.model_manager.configs.main import Main_GGUF_Krea2_Config++ mod = self._make_mock_mod("Krea-2-Raw-Q4_K_M.gguf")+ config = Main_GGUF_Krea2_Config.from_model_on_disk(mod, {**_REQUIRED_FIELDS})+ assert config.variant == Krea2VariantType.Base++ @patch("invokeai.backend.model_manager.configs.main._has_krea2_keys", return_value=True)+ @patch("invokeai.backend.model_manager.configs.main._has_ggml_tensors", return_value=True)+ @patch("invokeai.backend.model_manager.configs.main.raise_if_not_file")+ @patch("invokeai.backend.model_manager.configs.main.raise_for_override_fields")+ def test_turbo_filename_defaults_to_turbo(self, _rfo, _rif, _hgt, _hkk) -> None:+ from invokeai.backend.model_manager.configs.main import Main_GGUF_Krea2_Config++ mod = self._make_mock_mod("krea2_turbo-Q3_K_M.gguf")+ config = Main_GGUF_Krea2_Config.from_model_on_disk(mod, {**_REQUIRED_FIELDS})+ assert config.variant == Krea2VariantType.Turbo++ @patch("invokeai.backend.model_manager.configs.main._has_krea2_keys", return_value=True)+ @patch("invokeai.backend.model_manager.configs.main._has_ggml_tensors", return_value=True)+ @patch("invokeai.backend.model_manager.configs.main.raise_if_not_file")+ @patch("invokeai.backend.model_manager.configs.main.raise_for_override_fields")+ def test_explicit_variant_override_wins(self, _rfo, _rif, _hgt, _hkk) -> None:+ from invokeai.backend.model_manager.configs.main import Main_GGUF_Krea2_Config++ # Filename says Raw, but an explicit Turbo override must not be overwritten.+ mod = self._make_mock_mod("Krea-2-Raw-Q4_K_M.gguf")+ config = Main_GGUF_Krea2_Config.from_model_on_disk(mod, {**_REQUIRED_FIELDS, "variant": Krea2VariantType.Turbo})+ assert config.variant == Krea2VariantType.Turbo+++class TestKrea2CheckpointVariantDetection:+ """Main_Checkpoint_Krea2_Config: variant from filename (non-GGUF single file)."""++ def _make_mock_mod(self, filename: str) -> MagicMock:+ mod = MagicMock()+ mod.path = Path(f"/fake/models/{filename}")+ mod.load_state_dict.return_value = {}+ return mod++ @patch("invokeai.backend.model_manager.configs.main._has_krea2_keys", return_value=True)+ @patch("invokeai.backend.model_manager.configs.main._has_ggml_tensors", return_value=False)+ @patch("invokeai.backend.model_manager.configs.main.raise_if_not_file")+ @patch("invokeai.backend.model_manager.configs.main.raise_for_override_fields")+ def test_raw_filename_sets_base_variant(self, _rfo, _rif, _hgt, _hkk) -> None:+ from invokeai.backend.model_manager.configs.main import Main_Checkpoint_Krea2_Config++ mod = self._make_mock_mod("krea2_raw_fp8_scaled.safetensors")+ config = Main_Checkpoint_Krea2_Config.from_model_on_disk(mod, {**_REQUIRED_FIELDS})+ assert config.variant == Krea2VariantType.Base++ @patch("invokeai.backend.model_manager.configs.main._has_krea2_keys", return_value=True)+ @patch("invokeai.backend.model_manager.configs.main._has_ggml_tensors", return_value=False)+ @patch("invokeai.backend.model_manager.configs.main.raise_if_not_file")+ @patch("invokeai.backend.model_manager.configs.main.raise_for_override_fields")+ def test_turbo_filename_defaults_to_turbo(self, _rfo, _rif, _hgt, _hkk) -> None:+ from invokeai.backend.model_manager.configs.main import Main_Checkpoint_Krea2_Config++ mod = self._make_mock_mod("krea2_turbo_fp8_scaled.safetensors")+ config = Main_Checkpoint_Krea2_Config.from_model_on_disk(mod, {**_REQUIRED_FIELDS})+ assert config.variant == Krea2VariantType.Turbo++ @patch("invokeai.backend.model_manager.configs.main._has_krea2_keys", return_value=True)+ @patch("invokeai.backend.model_manager.configs.main._has_ggml_tensors", return_value=False)+ @patch("invokeai.backend.model_manager.configs.main.raise_if_not_file")+ @patch("invokeai.backend.model_manager.configs.main.raise_for_override_fields")+ def test_rejects_non_safetensors_checkpoint(self, _rfo, _rif, _hgt, _hkk) -> None:+ from invokeai.backend.model_manager.configs.main import Main_Checkpoint_Krea2_Config++ mod = self._make_mock_mod("krea2_turbo.bin")++ with pytest.raises(NotAMatchError, match="safetensors"):+ Main_Checkpoint_Krea2_Config.from_model_on_disk(mod, {**_REQUIRED_FIELDS})+++class TestKrea2DiffusersVariantDetection:+ """Main_Diffusers_Krea2_Config._get_variant reads is_distilled from model_index.json."""++ def _make_mock_mod_with_model_index(self, tmpdir: str, model_index: dict) -> MagicMock:+ path = Path(tmpdir)+ (path / "model_index.json").write_text(json.dumps(model_index))+ mod = MagicMock()+ mod.path = path+ return mod++ def test_is_distilled_false_is_base(self) -> None:+ from invokeai.backend.model_manager.configs.main import Main_Diffusers_Krea2_Config++ with TemporaryDirectory() as tmpdir:+ mod = self._make_mock_mod_with_model_index(tmpdir, {"_class_name": "Krea2Pipeline", "is_distilled": False})+ assert Main_Diffusers_Krea2_Config._get_variant(mod) == Krea2VariantType.Base++ def test_is_distilled_true_is_turbo(self) -> None:+ from invokeai.backend.model_manager.configs.main import Main_Diffusers_Krea2_Config++ with TemporaryDirectory() as tmpdir:+ mod = self._make_mock_mod_with_model_index(tmpdir, {"_class_name": "Krea2Pipeline", "is_distilled": True})+ assert Main_Diffusers_Krea2_Config._get_variant(mod) == Krea2VariantType.Turbo++ def test_is_distilled_absent_defaults_to_base(self) -> None:+ from invokeai.backend.model_manager.configs.main import Main_Diffusers_Krea2_Config++ with TemporaryDirectory() as tmpdir:+ mod = self._make_mock_mod_with_model_index(tmpdir, {"_class_name": "Krea2Pipeline"})+ assert Main_Diffusers_Krea2_Config._get_variant(mod) == Krea2VariantType.Base+++class TestKrea2DefaultSettings:+ """Per-variant default generation settings."""++ def test_turbo_defaults(self) -> None:+ ds = MainModelDefaultSettings.from_base(BaseModelType.Krea2, Krea2VariantType.Turbo)+ assert ds is not None+ assert ds.steps == 8+ assert ds.cfg_scale == 1.0+ assert ds.width == 1024+ assert ds.height == 1024++ def test_base_defaults(self) -> None:+ ds = MainModelDefaultSettings.from_base(BaseModelType.Krea2, Krea2VariantType.Base)+ assert ds is not None+ assert ds.cfg_scale == 5.5+ assert ds.steps == 28+ assert ds.width == 1024+ assert ds.height == 1024diff --git a/tests/backend/model_manager/configs/test_model_path_validation.py b/tests/backend/model_manager/configs/test_model_path_validation.pynew file mode 100644index 0000000000..ee99545093--- /dev/null+++ b/tests/backend/model_manager/configs/test_model_path_validation.py@@ -0,0 +1,96 @@+import json+from pathlib import Path++import pytest++from invokeai.backend.model_manager.configs.factory import _MAX_FILES_IN_MODEL_DIR, ModelConfigFactory+++def _fill_directory(path: Path) -> None:+ for index in range(_MAX_FILES_IN_MODEL_DIR + 1):+ (path / f"asset-{index}.txt").touch()+++def test_large_directory_with_generic_config_is_rejected(tmp_path: Path) -> None:+ (tmp_path / "config.json").write_text(json.dumps({"application": "not-a-model"}))+ _fill_directory(tmp_path)++ with pytest.raises(ValueError, match="general-purpose directory"):+ ModelConfigFactory._validate_path_looks_like_model(tmp_path)+++def test_large_directory_with_non_object_config_is_rejected(tmp_path: Path) -> None:+ (tmp_path / "config.json").write_text("[]")+ _fill_directory(tmp_path)++ with pytest.raises(ValueError, match="general-purpose directory"):+ ModelConfigFactory._validate_path_looks_like_model(tmp_path)+++ "config",+ [+ {"model_type": "application"},+ {"architectures": ["ApplicationService"]},+ {"_class_name": "ApplicationPipeline"},+ ],+)+def test_large_directory_with_unrecognized_model_markers_is_rejected(tmp_path: Path, config: dict) -> None:+ (tmp_path / "config.json").write_text(json.dumps(config))+ _fill_directory(tmp_path)++ with pytest.raises(ValueError, match="general-purpose directory"):+ ModelConfigFactory._validate_path_looks_like_model(tmp_path)+++ "config",+ [+ {"_class_name": "set_seed"},+ {"_class_name": "AutoTokenizer"},+ {"_class_name": "ModelMixin"},+ {"_class_name": "DiffusionPipeline"},+ {"_class_name": "PretrainedConfig"},+ {"architectures": ["set_seed"]},+ {"architectures": ["PreTrainedModel"]},+ ],+)+def test_large_directory_with_non_model_library_export_is_rejected(tmp_path: Path, config: dict) -> None:+ (tmp_path / "config.json").write_text(json.dumps(config))+ _fill_directory(tmp_path)++ with pytest.raises(ValueError, match="general-purpose directory"):+ ModelConfigFactory._validate_path_looks_like_model(tmp_path)+++def test_large_directory_with_transformers_config_is_accepted(tmp_path: Path) -> None:+ (tmp_path / "config.json").write_text(json.dumps({"architectures": ["Qwen3VLModel"]}))+ _fill_directory(tmp_path)++ ModelConfigFactory._validate_path_looks_like_model(tmp_path)+++def test_large_directory_with_diffusers_model_config_is_accepted(tmp_path: Path) -> None:+ (tmp_path / "config.json").write_text(json.dumps({"_class_name": "AutoencoderKL"}))+ _fill_directory(tmp_path)++ ModelConfigFactory._validate_path_looks_like_model(tmp_path)+++def test_large_directory_with_model_index_is_accepted(tmp_path: Path) -> None:+ (tmp_path / "model_index.json").write_text(json.dumps({"_class_name": "Krea2Pipeline"}))+ _fill_directory(tmp_path)++ ModelConfigFactory._validate_path_looks_like_model(tmp_path)+++def test_directory_with_utf8_non_ascii_config_is_accepted(tmp_path: Path) -> None:+ # config.json files are UTF-8. Reading them with the platform default encoding (cp1252 on Windows)+ # raises UnicodeDecodeError on non-ASCII bytes, which gets swallowed as "unrecognized" and wrongly+ # rejects a valid model directory. The config must be read explicitly as UTF-8.+ (tmp_path / "config.json").write_text(+ json.dumps({"architectures": ["Qwen3VLModel"], "description": "café — ünïcödé 模型"}, ensure_ascii=False),+ encoding="utf-8",+ )++ ModelConfigFactory._validate_path_looks_like_model(tmp_path)diff --git a/tests/backend/model_manager/configs/test_qwen3_encoder_config.py b/tests/backend/model_manager/configs/test_qwen3_encoder_config.pyindex 2574b7433a..b6d05724eb 100644--- a/tests/backend/model_manager/configs/test_qwen3_encoder_config.py+++ b/tests/backend/model_manager/configs/test_qwen3_encoder_config.py@@ -12,12 +12,16 @@ use that to disambiguate.import jsonfrom pathlib import Pathfrom tempfile import TemporaryDirectory-from unittest.mock import MagicMock+from unittest.mock import MagicMock, patchimport pytestfrom invokeai.backend.model_manager.configs.identification_utils import NotAMatchError-from invokeai.backend.model_manager.configs.qwen3_encoder import Qwen3Encoder_Qwen3Encoder_Config+from invokeai.backend.model_manager.configs.qwen3_encoder import (+ Qwen3Encoder_Checkpoint_Config,+ Qwen3Encoder_Qwen3Encoder_Config,+ _has_qwen_vl_visual_tower,+)_OVERRIDE_FIELDS: dict[str, object] = {"hash": "blake3:fakehash",@@ -63,6 +67,44 @@ def test_standalone_text_encoder_subfolder_still_matches() -> None:assert config.type.value == "qwen3_encoder"+class TestQwen3EncoderRejectsVisualTower:+ """Regression for the single-file Qwen3-VL dual-match bug.++ A nested-layout single-file Qwen3-VL 4B encoder (``model.layers.*`` + ``model.visual.*``) previously+ matched BOTH the text-only Qwen3Encoder checkpoint config and the Qwen3VLEncoder config, because the+ reject helper only looked for bare ``visual.blocks.*``. The tie-break is nondeterministic, so the+ encoder could register as Qwen3Encoder and vanish from Krea-2's Qwen3-VL dropdown - hard-blocking the+ single-file/GGUF Krea-2 install path. The reject helper now matches the nested ``model.visual.*``+ layout too, keeping the two configs mutually exclusive.+ """++ @pytest.mark.parametrize(+ "visual_key",+ [+ "model.visual.blocks.0.attn.qkv.weight", # ComfyUI single-file nested layout+ "visual.blocks.0.attn.qkv.weight", # already-split (transformers) layout+ "model.visual.patch_embed.proj.weight",+ ],+ )+ def test_matches_nested_and_split_visual_layouts(self, visual_key: str) -> None:+ assert _has_qwen_vl_visual_tower({visual_key: object()}) is True++ def test_ignores_text_only_decoder(self) -> None:+ assert _has_qwen_vl_visual_tower({"model.layers.0.self_attn.q_proj.weight": object()}) is False++ @patch("invokeai.backend.model_manager.configs.qwen3_encoder.raise_if_not_file")+ @patch("invokeai.backend.model_manager.configs.qwen3_encoder.raise_for_override_fields")+ def test_checkpoint_config_rejects_nested_qwen3_vl(self, _rfo, _rif) -> None:+ mod = MagicMock()+ mod.path = Path("/fake/qwen3vl_4b.safetensors")+ mod.load_state_dict.return_value = {+ "model.layers.0.self_attn.q_proj.weight": object(),+ "model.visual.blocks.0.attn.qkv.weight": object(),+ }+ with pytest.raises(NotAMatchError, match="visual tower"):+ Qwen3Encoder_Checkpoint_Config.from_model_on_disk(mod, dict(_OVERRIDE_FIELDS))++def test_nested_text_encoder_with_root_tokenizer_still_matches() -> None:"""A model with text_encoder/config.json should match even if tokenizer files exist at root.diff --git a/tests/backend/model_manager/configs/test_qwen3_vl_encoder_config.py b/tests/backend/model_manager/configs/test_qwen3_vl_encoder_config.pynew file mode 100644index 0000000000..223daa7682--- /dev/null+++ b/tests/backend/model_manager/configs/test_qwen3_vl_encoder_config.py@@ -0,0 +1,283 @@+"""Tests for Qwen3-VL text-encoder identification (used by Krea-2).++A single-file Qwen3-VL encoder is distinguished from the text-only ``Qwen3Encoder`` (Z-Image /+FLUX.2 Klein) by the presence of the Qwen3-VL **visual tower** (``visual.*`` / ``model.visual.*``).+Both have a Qwen3 text decoder (``model.layers.*``), so the visual tower is the deciding signal.+"""++import json+from pathlib import Path+from unittest.mock import MagicMock, patch++import pytest++from invokeai.backend.model_manager.configs.identification_utils import NotAMatchError+from invokeai.backend.model_manager.configs.qwen3_vl_encoder import (+ Qwen3VLEncoder_Checkpoint_Config,+ Qwen3VLEncoder_Qwen3VLEncoder_Config,+ _is_qwen3_vl_encoder_state_dict,+)+from invokeai.backend.model_manager.model_on_disk import ModelOnDisk+from invokeai.backend.model_manager.taxonomy import BaseModelType, ModelFormat, ModelType++_REQUIRED_FIELDS = {+ "hash": "blake3:fakehash",+ "path": "/fake/models/qwen3vl.safetensors",+ "file_size": 1000,+ "name": "qwen3vl-encoder",+ "description": "test",+ "source": "test",+ "source_type": "path",+ "key": "test-key",+}+++class TestIsQwen3VLEncoderStateDict:+ def test_text_decoder_plus_visual_tower_matches(self) -> None:+ # ComfyUI single-file layout (implicit LM prefix): model.layers.* + model.visual.*+ sd = {+ "model.layers.0.self_attn.q_proj.weight": object(),+ "model.visual.blocks.0.attn.qkv.weight": object(),+ }+ assert _is_qwen3_vl_encoder_state_dict(sd) is True++ def test_explicit_language_model_prefix_matches(self) -> None:+ # Alternative single-file layout (explicit LM prefix): model.language_model.layers.* + model.visual.*+ sd = {+ "model.language_model.layers.0.self_attn.q_proj.weight": object(),+ "model.visual.blocks.0.attn.qkv.weight": object(),+ }+ assert _is_qwen3_vl_encoder_state_dict(sd) is True++ def test_text_only_decoder_does_not_match(self) -> None:+ # Z-Image / FLUX.2 Klein Qwen3 text encoder: text decoder but NO visual tower.+ sd = {+ "model.layers.0.self_attn.q_proj.weight": object(),+ "model.layers.0.mlp.down_proj.weight": object(),+ "model.norm.weight": object(),+ }+ assert _is_qwen3_vl_encoder_state_dict(sd) is False++ def test_visual_tower_only_does_not_match(self) -> None:+ sd = {"model.visual.blocks.0.attn.qkv.weight": object()}+ assert _is_qwen3_vl_encoder_state_dict(sd) is False++ def test_ignores_non_string_keys(self) -> None:+ sd: dict = {0: object(), 1: object()}+ assert _is_qwen3_vl_encoder_state_dict(sd) is False+++class TestQwen3VLEncoderCheckpointConfig:+ def _make_mock_mod(self, state_dict: dict, suffix: str = ".safetensors") -> MagicMock:+ mod = MagicMock()+ mod.path = Path(f"/fake/qwen3vl{suffix}")+ mod.load_state_dict.return_value = state_dict+ return mod++ @patch("invokeai.backend.model_manager.configs.qwen3_vl_encoder.raise_if_not_file")+ @patch("invokeai.backend.model_manager.configs.qwen3_vl_encoder.raise_for_override_fields")+ def test_matches_vl_single_file(self, _rfo, _rif) -> None:+ mod = self._make_mock_mod(+ {+ "model.embed_tokens.weight": MagicMock(shape=(151936, 2560)),+ "model.layers.35.self_attn.q_proj.weight": object(),+ "model.visual.blocks.0.attn.qkv.weight": object(),+ }+ )+ config = Qwen3VLEncoder_Checkpoint_Config.from_model_on_disk(mod, {**_REQUIRED_FIELDS})+ assert config.type == ModelType.Qwen3VLEncoder+ assert config.base == BaseModelType.Any+ assert config.format == ModelFormat.Checkpoint++ @patch("invokeai.backend.model_manager.configs.qwen3_vl_encoder.raise_if_not_file")+ @patch("invokeai.backend.model_manager.configs.qwen3_vl_encoder.raise_for_override_fields")+ def test_rejects_text_only_encoder(self, _rfo, _rif) -> None:+ mod = self._make_mock_mod(+ {+ "model.layers.0.self_attn.q_proj.weight": object(),+ "model.norm.weight": object(),+ }+ )+ with pytest.raises(NotAMatchError):+ Qwen3VLEncoder_Checkpoint_Config.from_model_on_disk(mod, {**_REQUIRED_FIELDS})++ @patch("invokeai.backend.model_manager.configs.qwen3_vl_encoder.raise_if_not_file")+ @patch("invokeai.backend.model_manager.configs.qwen3_vl_encoder.raise_for_override_fields")+ def test_rejects_non_safetensors_checkpoint(self, _rfo, _rif) -> None:+ mod = self._make_mock_mod(+ {+ "model.layers.35.self_attn.q_proj.weight": object(),+ "model.visual.blocks.0.attn.qkv.weight": object(),+ },+ suffix=".bin",+ )++ with pytest.raises(NotAMatchError, match="safetensors"):+ Qwen3VLEncoder_Checkpoint_Config.from_model_on_disk(mod, {**_REQUIRED_FIELDS})++ @patch("invokeai.backend.model_manager.configs.qwen3_vl_encoder.raise_if_not_file")+ @patch("invokeai.backend.model_manager.configs.qwen3_vl_encoder.raise_for_override_fields")+ def test_rejects_non_4b_checkpoint_shape(self, _rfo, _rif) -> None:+ mod = self._make_mock_mod(+ {+ "model.embed_tokens.weight": MagicMock(shape=(151936, 4096)),+ "model.layers.35.self_attn.q_proj.weight": object(),+ "model.visual.blocks.0.attn.qkv.weight": object(),+ }+ )++ with pytest.raises(NotAMatchError, match="4B|hidden"):+ Qwen3VLEncoder_Checkpoint_Config.from_model_on_disk(mod, {**_REQUIRED_FIELDS})+++class TestQwen3VLEncoderDirectoryConfig:+ @staticmethod+ def _write_config(path: Path, *, hidden_size: int = 2560, num_hidden_layers: int = 36) -> None:+ path.write_text(+ json.dumps(+ {+ "architectures": ["Qwen3VLModel"],+ "text_config": {"hidden_size": hidden_size, "num_hidden_layers": num_hidden_layers},+ }+ )+ )++ @staticmethod+ def _fields(path: Path) -> dict:+ return {**_REQUIRED_FIELDS, "path": path.as_posix()}++ def test_accepts_direct_layout_with_weights_and_tokenizer(self, tmp_path: Path) -> None:+ self._write_config(tmp_path / "config.json")+ (tmp_path / "model.safetensors").touch()+ (tmp_path / "tokenizer.json").touch()++ config = Qwen3VLEncoder_Qwen3VLEncoder_Config.from_model_on_disk(ModelOnDisk(tmp_path), self._fields(tmp_path))++ assert config.type is ModelType.Qwen3VLEncoder++ @pytest.mark.parametrize(("include_weights", "include_tokenizer"), [(False, True), (True, False), (False, False)])+ def test_rejects_incomplete_direct_layout(+ self, tmp_path: Path, include_weights: bool, include_tokenizer: bool+ ) -> None:+ self._write_config(tmp_path / "config.json")+ if include_weights:+ (tmp_path / "model.safetensors").touch()+ if include_tokenizer:+ (tmp_path / "tokenizer.json").touch()++ with pytest.raises(NotAMatchError, match="weights|tokenizer"):+ Qwen3VLEncoder_Qwen3VLEncoder_Config.from_model_on_disk(ModelOnDisk(tmp_path), self._fields(tmp_path))++ def test_accepts_nested_layout_with_weights_and_tokenizer(self, tmp_path: Path) -> None:+ text_encoder = tmp_path / "text_encoder"+ tokenizer = tmp_path / "tokenizer"+ text_encoder.mkdir()+ tokenizer.mkdir()+ self._write_config(text_encoder / "config.json")+ (text_encoder / "model.safetensors").touch()+ (tokenizer / "tokenizer.json").touch()++ config = Qwen3VLEncoder_Qwen3VLEncoder_Config.from_model_on_disk(ModelOnDisk(tmp_path), self._fields(tmp_path))++ assert config.format is ModelFormat.Qwen3VLEncoder++ @pytest.mark.parametrize(("hidden_size", "num_hidden_layers"), [(4096, 36), (2560, 28)])+ def test_rejects_non_4b_directory_config(self, tmp_path: Path, hidden_size: int, num_hidden_layers: int) -> None:+ self._write_config(tmp_path / "config.json", hidden_size=hidden_size, num_hidden_layers=num_hidden_layers)+ (tmp_path / "model.safetensors").touch()+ (tmp_path / "tokenizer.json").touch()++ with pytest.raises(NotAMatchError, match="4B|hidden|layers"):+ Qwen3VLEncoder_Qwen3VLEncoder_Config.from_model_on_disk(ModelOnDisk(tmp_path), self._fields(tmp_path))++ def test_rejects_malformed_text_config(self, tmp_path: Path) -> None:+ (tmp_path / "config.json").write_text(json.dumps({"architectures": ["Qwen3VLModel"], "text_config": []}))+ (tmp_path / "model.safetensors").touch()+ (tmp_path / "tokenizer.json").touch()++ with pytest.raises(NotAMatchError, match="text_config"):+ Qwen3VLEncoder_Qwen3VLEncoder_Config.from_model_on_disk(ModelOnDisk(tmp_path), self._fields(tmp_path))++ @pytest.mark.parametrize("artifact", ["adapter_model.safetensors", "training_args.bin"])+ def test_rejects_unrecognized_weight_artifact(self, tmp_path: Path, artifact: str) -> None:+ self._write_config(tmp_path / "config.json")+ (tmp_path / artifact).touch()+ (tmp_path / "tokenizer.json").touch()++ with pytest.raises(NotAMatchError, match="weights"):+ Qwen3VLEncoder_Qwen3VLEncoder_Config.from_model_on_disk(ModelOnDisk(tmp_path), self._fields(tmp_path))++ def test_rejects_incomplete_sharded_checkpoint(self, tmp_path: Path) -> None:+ self._write_config(tmp_path / "config.json")+ (tmp_path / "model-00001-of-00002.safetensors").touch()+ (tmp_path / "model.safetensors.index.json").write_text(+ json.dumps(+ {+ "weight_map": {+ "language_model.layers.0.weight": "model-00001-of-00002.safetensors",+ "language_model.layers.35.weight": "model-00002-of-00002.safetensors",+ }+ }+ )+ )+ (tmp_path / "tokenizer.json").touch()++ with pytest.raises(NotAMatchError, match="missing|weights"):+ Qwen3VLEncoder_Qwen3VLEncoder_Config.from_model_on_disk(ModelOnDisk(tmp_path), self._fields(tmp_path))++ @pytest.mark.parametrize("index_name", ["model.safetensors.index.json", "pytorch_model.bin.index.json"])+ def test_accepts_complete_sharded_checkpoint(self, tmp_path: Path, index_name: str) -> None:+ self._write_config(tmp_path / "config.json")+ suffix = "safetensors" if index_name.startswith("model") else "bin"+ shard_names = [f"model-00001-of-00002.{suffix}", f"model-00002-of-00002.{suffix}"]+ for shard_name in shard_names:+ (tmp_path / shard_name).touch()+ (tmp_path / index_name).write_text(+ json.dumps(+ {+ "weight_map": {+ "language_model.layers.0.weight": shard_names[0],+ "language_model.layers.35.weight": shard_names[1],+ }+ }+ )+ )+ (tmp_path / "tokenizer.json").touch()++ config = Qwen3VLEncoder_Qwen3VLEncoder_Config.from_model_on_disk(ModelOnDisk(tmp_path), self._fields(tmp_path))++ assert config.type is ModelType.Qwen3VLEncoder++ @pytest.mark.parametrize("bad_filename", [7, "../outside.safetensors", "/tmp/outside.safetensors"])+ def test_rejects_unsafe_or_non_string_shard_names(self, tmp_path: Path, bad_filename: object) -> None:+ self._write_config(tmp_path / "config.json")+ valid_shard = "model-00001-of-00002.safetensors"+ (tmp_path / valid_shard).touch()+ outside = tmp_path.parent / "outside.safetensors"+ outside.touch()+ (tmp_path / "model.safetensors.index.json").write_text(+ json.dumps(+ {+ "weight_map": {+ "language_model.layers.0.weight": valid_shard,+ "language_model.layers.35.weight": bad_filename,+ }+ }+ )+ )+ (tmp_path / "tokenizer.json").touch()++ with pytest.raises(NotAMatchError, match="weights|shard|index"):+ Qwen3VLEncoder_Qwen3VLEncoder_Config.from_model_on_disk(ModelOnDisk(tmp_path), self._fields(tmp_path))++ def test_rejects_existing_absolute_shard_path(self, tmp_path: Path) -> None:+ self._write_config(tmp_path / "config.json")+ outside = tmp_path.parent / "absolute-outside.safetensors"+ outside.touch()+ (tmp_path / "model.safetensors.index.json").write_text(+ json.dumps({"weight_map": {"language_model.layers.0.weight": outside.as_posix()}})+ )+ (tmp_path / "tokenizer.json").touch()++ with pytest.raises(NotAMatchError, match="weights|shard|index"):+ Qwen3VLEncoder_Qwen3VLEncoder_Config.from_model_on_disk(ModelOnDisk(tmp_path), self._fields(tmp_path))diff --git a/tests/backend/model_manager/load/test_diffusers_039_compatibility.py b/tests/backend/model_manager/load/test_diffusers_039_compatibility.pynew file mode 100644index 0000000000..985b2cbfb2--- /dev/null+++ b/tests/backend/model_manager/load/test_diffusers_039_compatibility.py@@ -0,0 +1,200 @@+from inspect import signature+from types import SimpleNamespace++import accelerate+import diffusers+import pytest+import torch+from packaging.version import Version++from invokeai.backend.model_manager.load.model_loaders.generic_diffusers import GenericDiffusersLoader+++def test_pinned_diffusers_exposes_existing_and_krea_model_contracts() -> None:+ assert Version(diffusers.__version__) == Version("0.39.0")++ expected_symbols = (+ "AutoencoderKLFlux2",+ "FluxTransformer2DModel",+ "Flux2Transformer2DModel",+ "Krea2Transformer2DModel",+ "QwenImageTransformer2DModel",+ "StableDiffusionPipeline",+ "StableDiffusionXLPipeline",+ "ZImageTransformer2DModel",+ )+ for symbol in expected_symbols:+ assert getattr(diffusers, symbol, None) is not None, f"diffusers is missing {symbol}"+++def test_flow_match_scheduler_keeps_custom_sigma_and_shift_api() -> None:+ parameters = signature(diffusers.FlowMatchEulerDiscreteScheduler.set_timesteps).parameters++ assert "sigmas" in parameters+ assert "mu" in parameters+ assert "device" in parameters+++def test_invoke_generic_diffusers_loader_smoke(tmp_path) -> None:+ source_model = diffusers.AutoencoderKL(+ in_channels=3,+ out_channels=3,+ down_block_types=("DownEncoderBlock2D",),+ up_block_types=("UpDecoderBlock2D",),+ block_out_channels=(4,),+ layers_per_block=1,+ latent_channels=2,+ norm_num_groups=1,+ sample_size=8,+ )+ source_model.save_pretrained(tmp_path)++ loader = object.__new__(GenericDiffusersLoader)+ loader._torch_dtype = torch.float32+ loader._apply_fp8_layerwise_casting = lambda model, _config, _submodel: model++ loaded_model = loader._load_model(SimpleNamespace(path=str(tmp_path)))+ latents = loaded_model.encode(torch.zeros(1, 3, 8, 8)).latent_dist.mode()++ assert isinstance(loaded_model, diffusers.AutoencoderKL)+ assert latents.shape == (1, 2, 8, 8)+++ "factory",+ [+ pytest.param(+ lambda: diffusers.FluxTransformer2DModel(+ in_channels=4,+ num_layers=1,+ num_single_layers=1,+ attention_head_dim=4,+ num_attention_heads=1,+ joint_attention_dim=8,+ pooled_projection_dim=8,+ axes_dims_rope=(1, 1, 2),+ ),+ id="flux",+ ),+ pytest.param(+ lambda: diffusers.Flux2Transformer2DModel(+ in_channels=4,+ num_layers=1,+ num_single_layers=1,+ attention_head_dim=4,+ num_attention_heads=1,+ joint_attention_dim=8,+ timestep_guidance_channels=4,+ mlp_ratio=2,+ axes_dims_rope=(1, 1, 1, 1),+ ),+ id="flux2",+ ),+ pytest.param(+ lambda: diffusers.QwenImageTransformer2DModel(+ patch_size=1,+ in_channels=4,+ out_channels=4,+ num_layers=1,+ attention_head_dim=8,+ num_attention_heads=1,+ joint_attention_dim=8,+ axes_dims_rope=(2, 2, 4),+ ),+ id="qwen-image",+ ),+ pytest.param(+ lambda: diffusers.ZImageTransformer2DModel(+ all_patch_size=(1,),+ all_f_patch_size=(1,),+ in_channels=4,+ dim=8,+ n_layers=1,+ n_refiner_layers=1,+ n_heads=1,+ n_kv_heads=1,+ cap_feat_dim=8,+ axes_dims=[2, 2, 4],+ axes_lens=[8, 8, 8],+ ),+ id="z-image",+ ),+ pytest.param(+ lambda: diffusers.Krea2Transformer2DModel(+ in_channels=4,+ num_layers=1,+ attention_head_dim=8,+ num_attention_heads=1,+ num_key_value_heads=1,+ intermediate_size=16,+ timestep_embed_dim=8,+ text_hidden_dim=8,+ num_text_layers=2,+ text_num_attention_heads=1,+ text_num_key_value_heads=1,+ text_intermediate_size=16,+ num_layerwise_text_blocks=1,+ num_refiner_text_blocks=1,+ axes_dims_rope=(2, 2, 4),+ ),+ id="krea-2",+ ),+ pytest.param(+ lambda: diffusers.AutoencoderKLWan(+ base_dim=4,+ decoder_base_dim=4,+ z_dim=4,+ dim_mult=[1, 1],+ num_res_blocks=1,+ temperal_downsample=[False],+ latents_mean=[0.0] * 4,+ latents_std=[1.0] * 4,+ scale_factor_temporal=1,+ scale_factor_spatial=2,+ ),+ id="anima-vae",+ ),+ ],+)+def test_pinned_diffusers_constructs_representative_transformer_and_vae_configs(factory) -> None:+ with accelerate.init_empty_weights():+ model = factory()++ assert model is not None+++ "factory",+ [+ pytest.param(+ lambda: diffusers.StableDiffusionPipeline(+ vae=None,+ text_encoder=None,+ tokenizer=None,+ unet=None,+ scheduler=None,+ safety_checker=None,+ feature_extractor=None,+ requires_safety_checker=False,+ ),+ id="stable-diffusion",+ ),+ pytest.param(+ lambda: diffusers.StableDiffusionXLPipeline(+ vae=None,+ text_encoder=None,+ text_encoder_2=None,+ tokenizer=None,+ tokenizer_2=None,+ unet=None,+ scheduler=None,+ add_watermarker=False,+ ),+ id="stable-diffusion-xl",+ ),+ ],+)+def test_pinned_diffusers_constructs_existing_stable_diffusion_pipelines(factory) -> None:+ pipeline = factory()++ assert pipeline is not Nonediff --git a/tests/backend/model_manager/load/test_krea2_loader_boundaries.py b/tests/backend/model_manager/load/test_krea2_loader_boundaries.pynew file mode 100644index 0000000000..cb8dfe21d7--- /dev/null+++ b/tests/backend/model_manager/load/test_krea2_loader_boundaries.py@@ -0,0 +1,148 @@+from types import SimpleNamespace+from unittest.mock import MagicMock++import torch++from invokeai.backend.model_manager.configs.main import (+ Main_Checkpoint_Krea2_Config,+ Main_Diffusers_Krea2_Config,+ Main_GGUF_Krea2_Config,+)+from invokeai.backend.model_manager.configs.qwen3_vl_encoder import Qwen3VLEncoder_Qwen3VLEncoder_Config+from invokeai.backend.model_manager.load.model_loaders.krea2 import (+ Krea2CheckpointModel,+ Krea2DiffusersModel,+ Krea2GGUFCheckpointModel,+ Qwen3VLEncoderLoader,+)+from invokeai.backend.model_manager.taxonomy import Krea2VariantType, SubModelType+++class _TinyKrea2Transformer(torch.nn.Module):+ def __init__(self, **_kwargs) -> None:+ super().__init__()+ self.weight = torch.nn.Parameter(torch.empty(2, 2))+++def test_single_file_loader_constructs_and_materializes_model(monkeypatch, tmp_path) -> None:+ import diffusers+ import safetensors.torch++ checkpoint_path = tmp_path / "krea2.safetensors"+ checkpoint_path.touch()+ config = Main_Checkpoint_Krea2_Config.model_construct(+ path=str(checkpoint_path), variant=Krea2VariantType.Turbo, fp8_storage=None+ )+ ram_cache = SimpleNamespace(make_room=MagicMock())+ loader = object.__new__(Krea2CheckpointModel)+ loader._ram_cache = ram_cache+ loader._apply_fp8_layerwise_casting = lambda model, _config, _submodel: model++ monkeypatch.setattr(diffusers, "Krea2Transformer2DModel", _TinyKrea2Transformer, raising=False)+ monkeypatch.setattr(safetensors.torch, "load_file", lambda _path: {"weight": torch.ones(2, 2)})+ monkeypatch.setattr(+ "invokeai.backend.model_manager.load.model_loaders.krea2.TorchDevice.choose_torch_device",+ lambda: torch.device("cpu"),+ )+ monkeypatch.setattr(+ "invokeai.backend.model_manager.load.model_loaders.krea2.TorchDevice.choose_bfloat16_safe_dtype",+ lambda _device: torch.float32,+ )++ model = loader._load_from_singlefile(config)++ assert isinstance(model, _TinyKrea2Transformer)+ assert model.weight.device.type == "cpu"+ assert torch.equal(model.weight, torch.ones(2, 2))+ ram_cache.make_room.assert_called_once()+++def test_diffusers_loader_reaches_transformer_from_pretrained(monkeypatch, tmp_path) -> None:+ config = Main_Diffusers_Krea2_Config.model_construct(path=str(tmp_path), repo_variant=None)+ loader = object.__new__(Krea2DiffusersModel)+ loaded_model = object()+ load_class = SimpleNamespace(from_pretrained=MagicMock(return_value=loaded_model))+ loader.get_hf_load_class = lambda _path, _submodel: load_class+ loader._apply_fp8_layerwise_casting = lambda model, _config, _submodel: model+ monkeypatch.setattr(+ "invokeai.backend.model_manager.load.model_loaders.krea2.TorchDevice.choose_torch_device",+ lambda: torch.device("cpu"),+ )+ monkeypatch.setattr(+ "invokeai.backend.model_manager.load.model_loaders.krea2.TorchDevice.choose_bfloat16_safe_dtype",+ lambda _device: torch.float32,+ )++ model = loader._load_model(config, SubModelType.Transformer)++ assert model is loaded_model+ load_class.from_pretrained.assert_called_once_with(+ tmp_path / "transformer", torch_dtype=torch.float32, variant=None+ )+++def test_gguf_loader_constructs_and_materializes_model(monkeypatch, tmp_path) -> None:+ import diffusers++ checkpoint_path = tmp_path / "krea2.gguf"+ checkpoint_path.touch()+ config = Main_GGUF_Krea2_Config.model_construct(path=str(checkpoint_path), variant=Krea2VariantType.Turbo)+ loader = object.__new__(Krea2GGUFCheckpointModel)++ monkeypatch.setattr(diffusers, "Krea2Transformer2DModel", _TinyKrea2Transformer, raising=False)+ monkeypatch.setattr(+ "invokeai.backend.model_manager.load.model_loaders.krea2.gguf_sd_loader",+ lambda _path, *, compute_dtype: {"weight": torch.ones(2, 2, dtype=compute_dtype)},+ )+ monkeypatch.setattr(+ "invokeai.backend.model_manager.load.model_loaders.krea2.TorchDevice.choose_torch_device",+ lambda: torch.device("cpu"),+ )+ monkeypatch.setattr(+ "invokeai.backend.model_manager.load.model_loaders.krea2.TorchDevice.choose_bfloat16_safe_dtype",+ lambda _device: torch.float32,+ )++ model = loader._load_from_gguf(config)++ assert isinstance(model, _TinyKrea2Transformer)+ assert model.weight.device.type == "cpu"+ assert torch.equal(model.weight, torch.ones(2, 2))+++def test_directory_encoder_loader_reaches_transformers_from_pretrained(monkeypatch, tmp_path) -> None:+ import transformers++ (tmp_path / "config.json").write_text("{}")+ config = Qwen3VLEncoder_Qwen3VLEncoder_Config.model_construct(path=str(tmp_path))+ loader = object.__new__(Qwen3VLEncoderLoader)+ text_config = SimpleNamespace(rope_parameters={"rope_type": "default"}, rope_scaling=None)+ encoder_config = SimpleNamespace(text_config=text_config)+ loaded_model = object()+ from_pretrained = MagicMock(return_value=loaded_model)++ monkeypatch.setattr(+ "invokeai.backend.model_manager.load.model_loaders.krea2.AutoConfig.from_pretrained",+ lambda *_args, **_kwargs: encoder_config,+ )+ monkeypatch.setattr(transformers.Qwen3VLModel, "from_pretrained", from_pretrained)+ monkeypatch.setattr(+ "invokeai.backend.model_manager.load.model_loaders.krea2.TorchDevice.choose_torch_device",+ lambda: torch.device("cpu"),+ )+ monkeypatch.setattr(+ "invokeai.backend.model_manager.load.model_loaders.krea2.TorchDevice.choose_bfloat16_safe_dtype",+ lambda _device: torch.float32,+ )++ model = loader._load_model(config, SubModelType.TextEncoder)++ assert model is loaded_model+ assert text_config.rope_scaling == text_config.rope_parameters+ from_pretrained.assert_called_once_with(+ tmp_path,+ config=encoder_config,+ torch_dtype=torch.float32,+ low_cpu_mem_usage=True,+ local_files_only=True,+ )diff --git a/tests/backend/model_manager/load/test_krea2_state_dict_utils.py b/tests/backend/model_manager/load/test_krea2_state_dict_utils.pynew file mode 100644index 0000000000..c75873a8fd--- /dev/null+++ b/tests/backend/model_manager/load/test_krea2_state_dict_utils.py@@ -0,0 +1,359 @@+"""Unit tests for the Krea-2 loader state-dict helpers.++These cover the pure key/tensor transforms that the single-file, GGUF and Qwen3-VL encoder loaders+run before ``load_state_dict`` (prefix stripping, native<->diffusers key conversion, scaled-fp8+dequantization, encoder key remapping) plus the shared ``_reject_incomplete_load`` guard that turns a+silent partial load into an actionable error. They exercise the conversion logic without needing the+real (diffusers ``Krea2Transformer2DModel`` / transformers ``Qwen3VLModel``) architectures or weights.+"""++import re+from types import SimpleNamespace++import accelerate+import pytest+import torch++from invokeai.backend.model_manager.load.model_loaders.krea2 import (+ KREA2_TRANSFORMER_CONFIG,+ _convert_krea2_native_to_diffusers,+ _dequantize_scaled_fp8,+ _is_native_krea2_format,+ _normalize_qwen3vl_rope_config,+ _reject_incomplete_load,+ _remap_qwen3vl_singlefile_keys,+ _strip_comfyui_prefix,+)+++class TestNormalizeQwen3vlRopeConfig:+ def test_copies_rope_parameters_when_rope_scaling_is_missing(self) -> None:+ rope_parameters = {"rope_type": "default", "rope_theta": 1000000.0}+ text_config = SimpleNamespace(rope_parameters=rope_parameters, rope_scaling=None)+ config = SimpleNamespace(text_config=text_config)++ assert _normalize_qwen3vl_rope_config(config) is config+ assert text_config.rope_scaling == rope_parameters++ def test_preserves_existing_rope_scaling(self) -> None:+ existing = {"rope_type": "existing"}+ text_config = SimpleNamespace(rope_parameters={"rope_type": "new"}, rope_scaling=existing)+ config = SimpleNamespace(text_config=text_config)++ _normalize_qwen3vl_rope_config(config)++ assert text_config.rope_scaling is existing++ def test_accepts_config_without_a_text_config(self) -> None:+ config = SimpleNamespace()+ assert _normalize_qwen3vl_rope_config(config) is config+++class TestStripComfyuiPrefix:+ @pytest.mark.parametrize("prefix", ["model.diffusion_model.", "diffusion_model."])+ def test_strips_known_prefixes(self, prefix: str) -> None:+ sd = {f"{prefix}blocks.0.weight": torch.zeros(1), f"{prefix}first.weight": torch.zeros(1)}+ out = _strip_comfyui_prefix(sd)+ assert set(out.keys()) == {"blocks.0.weight", "first.weight"}++ def test_noop_when_no_prefix(self) -> None:+ sd = {"blocks.0.weight": torch.zeros(1), "img_in.weight": torch.zeros(1)}+ out = _strip_comfyui_prefix(sd)+ assert set(out.keys()) == set(sd.keys())++ def test_only_the_first_matching_prefix_is_used(self) -> None:+ # "model.diffusion_model." is checked before "diffusion_model.", so both strip to the same tail.+ sd = {"model.diffusion_model.blocks.0.weight": torch.zeros(1)}+ out = _strip_comfyui_prefix(sd)+ assert list(out.keys()) == ["blocks.0.weight"]+++class TestIsNativeKrea2Format:+ @pytest.mark.parametrize(+ "key",+ ["blocks.0.attn.wq.weight", "txtfusion.0.mlp.up.weight", "first.weight", "blocks.0.mod.lin"],+ )+ def test_true_for_native_keys(self, key: str) -> None:+ assert _is_native_krea2_format({key: torch.zeros(1)}) is True++ @pytest.mark.parametrize(+ "key",+ ["transformer_blocks.0.attn.to_q.weight", "img_in.weight", "text_fusion.0.ff.up.weight"],+ )+ def test_false_for_diffusers_keys(self, key: str) -> None:+ assert _is_native_krea2_format({key: torch.zeros(1)}) is False+++class TestDequantizeScaledFp8:+ def test_folds_scale_into_weight_and_drops_scale_key(self) -> None:+ sd = {+ "layer.weight": torch.tensor([2.0, 4.0]),+ "layer.weight_scale": torch.tensor(0.5),+ }+ out = _dequantize_scaled_fp8(sd)+ assert "layer.weight_scale" not in out+ assert torch.allclose(out["layer.weight"], torch.tensor([1.0, 2.0]))++ def test_noop_without_scale_keys(self) -> None:+ sd = {"layer.weight": torch.tensor([2.0, 4.0])}+ out = _dequantize_scaled_fp8(sd)+ assert out is sd++ def test_orphan_scale_key_is_dropped(self) -> None:+ # A scale key with no matching weight is simply removed (nothing to multiply).+ sd = {"other.weight": torch.tensor([1.0]), "layer.weight_scale": torch.tensor(0.5)}+ out = _dequantize_scaled_fp8(sd)+ assert "layer.weight_scale" not in out+ assert "other.weight" in out+++class TestConvertKrea2NativeToDiffusers:+ def test_top_level_module_renames(self) -> None:+ sd = {+ "first.weight": torch.zeros(1),+ "tmlp.0.weight": torch.zeros(1),+ "tmlp.2.weight": torch.zeros(1),+ "tproj.1.weight": torch.zeros(1),+ "txtmlp.0.scale": torch.zeros(1),+ "txtmlp.1.weight": torch.zeros(1),+ "txtmlp.3.weight": torch.zeros(1),+ "last.linear.weight": torch.zeros(1),+ "last.norm.scale": torch.zeros(1),+ }+ out = _convert_krea2_native_to_diffusers(sd)+ assert "img_in.weight" in out+ assert "time_embed.linear_1.weight" in out+ assert "time_embed.linear_2.weight" in out+ assert "time_mod_proj.weight" in out+ assert "txt_in.norm.weight" in out+ assert "txt_in.linear_1.weight" in out+ assert "txt_in.linear_2.weight" in out+ assert "final_layer.linear.weight" in out+ assert "final_layer.norm.weight" in out++ def test_within_block_renames(self) -> None:+ sd = {+ "blocks.0.attn.wq.weight": torch.zeros(1),+ "blocks.0.attn.wk.weight": torch.zeros(1),+ "blocks.0.attn.wv.weight": torch.zeros(1),+ "blocks.0.attn.wo.weight": torch.zeros(1),+ "blocks.0.attn.gate.weight": torch.zeros(1),+ "blocks.0.attn.qknorm.qnorm.scale": torch.zeros(1),+ "blocks.0.attn.qknorm.knorm.scale": torch.zeros(1),+ "blocks.0.mlp.gate.weight": torch.zeros(1),+ "blocks.0.mlp.up.weight": torch.zeros(1),+ "blocks.0.mlp.down.weight": torch.zeros(1),+ "blocks.0.prenorm.scale": torch.zeros(1),+ "blocks.0.postnorm.scale": torch.zeros(1),+ "txtfusion.1.attn.wq.weight": torch.zeros(1),+ }+ out = _convert_krea2_native_to_diffusers(sd)+ assert "transformer_blocks.0.attn.to_q.weight" in out+ assert "transformer_blocks.0.attn.to_k.weight" in out+ assert "transformer_blocks.0.attn.to_v.weight" in out+ assert "transformer_blocks.0.attn.to_out.0.weight" in out+ assert "transformer_blocks.0.attn.to_gate.weight" in out+ assert "transformer_blocks.0.attn.norm_q.weight" in out+ assert "transformer_blocks.0.attn.norm_k.weight" in out+ assert "transformer_blocks.0.ff.gate.weight" in out+ assert "transformer_blocks.0.ff.up.weight" in out+ assert "transformer_blocks.0.ff.down.weight" in out+ assert "transformer_blocks.0.norm1.weight" in out+ assert "transformer_blocks.0.norm2.weight" in out+ # text_fusion tower renamed the same way.+ assert "text_fusion.1.attn.to_q.weight" in out+ # No native names survive.+ assert not any(".wq." in k or ".qknorm." in k or ".mlp." in k or "prenorm" in k for k in out)++ def test_final_block_projections_are_dropped(self) -> None:+ sd = {"last.down.weight": torch.zeros(2, 2), "last.up.weight": torch.zeros(2, 2)}+ out = _convert_krea2_native_to_diffusers(sd)+ assert out == {}++ def test_mod_lin_is_reshaped_to_scale_shift_table(self) -> None:+ # A flat (6*H,) per-block modulation vector becomes a (6, H) scale_shift_table.+ sd = {"blocks.0.mod.lin": torch.arange(12, dtype=torch.float32)}+ out = _convert_krea2_native_to_diffusers(sd)+ assert "transformer_blocks.0.scale_shift_table" in out+ table = out["transformer_blocks.0.scale_shift_table"]+ assert table.shape == (6, 2)+ assert torch.equal(table, torch.arange(12, dtype=torch.float32).reshape(6, 2))++ def test_final_layer_modulation_is_reshaped_to_two_by_hidden(self) -> None:+ # Krea2FinalLayer.scale_shift_table is (2, hidden) (scale, shift). The flat native+ # last.modulation.lin must be reshaped (not merely renamed), otherwise load_state_dict(assign=True)+ # installs a wrong-shaped 1-D parameter that the meta-only completeness guard cannot catch and the+ # final layer fails at inference.+ sd = {"last.modulation.lin": torch.arange(8, dtype=torch.float32)} # 2 * hidden, hidden=4+ out = _convert_krea2_native_to_diffusers(sd)+ assert "final_layer.scale_shift_table" in out+ table = out["final_layer.scale_shift_table"]+ assert table.shape == (2, 4)+ assert torch.equal(table, torch.arange(8, dtype=torch.float32).reshape(2, 4))++ def test_non_string_keys_pass_through(self) -> None:+ sentinel = object()+ out = _convert_krea2_native_to_diffusers({sentinel: torch.zeros(1)}) # type: ignore[dict-item]+ assert sentinel in out++ @pytest.mark.parametrize(+ "keys",+ [+ ("blocks.0.attn.wq.weight", "transformer_blocks.0.attn.to_q.weight"),+ ("transformer_blocks.0.attn.to_q.weight", "blocks.0.attn.wq.weight"),+ ],+ )+ def test_rejects_mixed_layout_alias_collision(self, keys: tuple[str, str]) -> None:+ # A malformed mixed-layout checkpoint carries a native key and its already-diffusers alias, both+ # normalizing to transformer_blocks.0.attn.to_q.weight. Distinct tensors under colliding aliases+ # must be rejected in either insertion order rather than silently dropping one.+ first, second = keys+ sd = {first: torch.zeros(1), second: torch.ones(1)}+ with pytest.raises(RuntimeError, match="both normalize to"):+ _convert_krea2_native_to_diffusers(sd)+++class TestRemapQwen3vlSinglefileKeys:+ def test_routes_towers_and_prefixes_bare_language_model_keys(self) -> None:+ sd = {+ "model.visual.blocks.0.weight": torch.zeros(1),+ "model.language_model.layers.0.weight": torch.zeros(1),+ "model.layers.1.weight": torch.zeros(1), # bare LM key under a model. prefix+ "model.embed_tokens.weight": torch.zeros(1),+ "model.norm.weight": torch.zeros(1),+ "visual.blocks.1.weight": torch.zeros(1), # already un-prefixed+ "layers.2.weight": torch.zeros(1), # bare, no model. prefix+ }+ out = _remap_qwen3vl_singlefile_keys(sd)+ assert "visual.blocks.0.weight" in out+ assert "language_model.layers.0.weight" in out+ assert "language_model.layers.1.weight" in out+ assert "language_model.embed_tokens.weight" in out+ assert "language_model.norm.weight" in out+ assert "visual.blocks.1.weight" in out+ assert "language_model.layers.2.weight" in out+ # No key retains the leading model. prefix.+ assert not any(k.startswith("model.") for k in out)++ @pytest.mark.parametrize(+ "keys",+ [+ ("model.layers.1.weight", "layers.1.weight"),+ ("layers.1.weight", "model.layers.1.weight"),+ ],+ )+ def test_rejects_mixed_layout_alias_collision(self, keys: tuple[str, str]) -> None:+ # A bare LM key and its model.-prefixed alias both route to language_model.layers.1.weight.+ # Distinct tensors under colliding aliases must be rejected in either order, not silently merged.+ first, second = keys+ sd = {first: torch.zeros(1), second: torch.ones(1)}+ with pytest.raises(RuntimeError, match="both normalize to"):+ _remap_qwen3vl_singlefile_keys(sd)+++class TestRejectIncompleteLoad:+ @pytest.mark.parametrize(+ "what",+ ["Krea-2 single-file checkpoint", "Krea-2 GGUF checkpoint", "Qwen3-VL encoder checkpoint"],+ )+ def test_raises_when_parameters_remain_on_meta_device(self, what: str) -> None:+ # accelerate.init_empty_weights() leaves every parameter on the meta device — the exact state a+ # strict=False load produces for a checkpoint that omits required weights. All three Krea-2 loaders+ # feed their `what` label through this guard, so parametrize over the real call-site messages.+ with accelerate.init_empty_weights():+ model = torch.nn.Linear(4, 4)+ with pytest.raises(RuntimeError, match=re.escape(f"{what} is incomplete")):+ _reject_incomplete_load(model, what=what)++ def test_does_not_raise_for_a_fully_materialized_model(self) -> None:+ model = torch.nn.Linear(4, 4) # normal construction — no meta tensors+ _reject_incomplete_load(model, what="Krea-2 single-file checkpoint")++ def test_names_the_missing_parameters(self) -> None:+ # Materialize only the weight; the bias stays on meta and must be named in the error.+ with accelerate.init_empty_weights():+ model = torch.nn.Linear(4, 4)+ model.load_state_dict({"weight": torch.zeros(4, 4)}, strict=False, assign=True)+ with pytest.raises(RuntimeError, match="bias") as exc_info:+ _reject_incomplete_load(model, what="Krea-2 single-file checkpoint")+ assert "1 tensor(s)" in str(exc_info.value)++ def test_raises_for_a_persistent_buffer_left_on_meta(self) -> None:+ # Buffers land on the meta device too; a native/GGUF checkpoint that omits a persistent buffer+ # must be rejected. The parameter here is fully materialized, so a parameters-only guard would+ # wrongly pass - only the buffer check catches it.+ class _ModuleWithMetaBuffer(torch.nn.Module):+ def __init__(self) -> None:+ super().__init__()+ self.weight = torch.nn.Parameter(torch.zeros(2, 2))+ self.register_buffer("cached_stat", torch.empty(4, device="meta"))++ model = _ModuleWithMetaBuffer()+ with pytest.raises(RuntimeError, match="cached_stat"):+ _reject_incomplete_load(model, what="Krea-2 GGUF checkpoint")+++def _native_key_for_scale_shift_table(diffusers_key: str) -> str:+ """Inverse of the converter's ``.mod.lin``/``last.modulation.lin`` -> ``.scale_shift_table`` mapping.++ Only the modulation tables are reshaped by ``_convert_krea2_native_to_diffusers`` (every other+ conversion is a pure, shape-preserving rename), so these are the only keys whose converted shape can+ silently disagree with the real ``Krea2Transformer2DModel`` module dims.+ """+ stem = diffusers_key[: -len(".scale_shift_table")]+ if stem == "final_layer":+ return "last.modulation.lin"+ if stem.startswith("transformer_blocks."):+ return "blocks." + stem[len("transformer_blocks.") :] + ".mod.lin"+ if stem.startswith("text_fusion."):+ return "txtfusion." + stem[len("text_fusion.") :] + ".mod.lin"+ raise AssertionError(f"unmapped scale_shift_table key: {diffusers_key}")+++class TestConvertedShapesMatchRealKrea2Transformer:+ """Validate the native->diffusers converter against the REAL ``Krea2Transformer2DModel`` module.++ The loader boundary tests use a tiny stub transformer, so they cannot detect a converted tensor whose+ shape disagrees with the real module: ``load_state_dict(assign=True)`` installs whatever shape the+ converter produced (no shape check) and ``_reject_incomplete_load`` only inspects the meta device, not+ shapes, so a wrong-shaped tensor survives load and fails only at inference. The concrete instance is+ ``last.modulation.lin`` -> ``final_layer.scale_shift_table``: the real table is ``(2, hidden)`` and the+ flat native vector must be reshaped, not merely renamed.+ """++ def test_scale_shift_tables_match_real_module_dims(self) -> None:+ pytest.importorskip("diffusers")+ from diffusers import Krea2Transformer2DModel++ with accelerate.init_empty_weights():+ model = Krea2Transformer2DModel(**KREA2_TRANSFORMER_CONFIG)++ # Meta-device state dict still carries real shapes for every parameter/buffer.+ expected = {name: tuple(t.shape) for name, t in model.state_dict().items()}+ table_keys = [name for name in expected if name.endswith(".scale_shift_table")]+ assert table_keys, "real Krea2Transformer2DModel exposes no scale_shift_table params"+ assert "final_layer.scale_shift_table" in table_keys+ assert any(k.startswith("transformer_blocks.") for k in table_keys)++ # Build a native state dict covering every modulation-table site, sized (as a flat vector) from the+ # real module dims, then convert and assert the reshaped result matches the real parameter shape.+ native_sd = {}+ for name in table_keys:+ rows, hidden = expected[name]+ native_sd[_native_key_for_scale_shift_table(name)] = torch.arange(rows * hidden, dtype=torch.float32)++ out = _convert_krea2_native_to_diffusers(native_sd)++ for name in table_keys:+ assert name in out, f"converter did not produce {name}"+ assert tuple(out[name].shape) == expected[name], (+ f"{name}: converted shape {tuple(out[name].shape)} != real module shape {expected[name]}"+ )++ # The two named layouts from the review: final layer AdaLN table is (2, hidden); every per-block+ # (transformer + text-fusion) table is (6, hidden). A regression that dropped the reshape would leave+ # these 1-D and this would fail.+ assert expected["final_layer.scale_shift_table"][0] == 2+ for name in table_keys:+ if name.startswith(("transformer_blocks.", "text_fusion.")):+ assert expected[name][0] == 6, f"{name} expected 6 modulation rows, got {expected[name]}"diff --git a/tests/backend/model_manager/test_starter_models.py b/tests/backend/model_manager/test_starter_models.pynew file mode 100644index 0000000000..cdcddd495e--- /dev/null+++ b/tests/backend/model_manager/test_starter_models.py@@ -0,0 +1,80 @@+"""Tests for the Krea-2 starter-model bundle and its GGUF dependency wiring.++A single-file / GGUF Krea-2 transformer ships *only* the transformer, so it is unusable without a+standalone Qwen-Image VAE and Qwen3-VL text encoder. These tests assert that the Krea-2 launchpad+bundle exists, exposes both the diffusers and GGUF options, and that each GGUF entry declares the two+standalone dependencies so installing it also pulls the pieces needed to run it.+"""++from invokeai.backend.model_manager.starter_models import (+ STARTER_BUNDLES,+ STARTER_MODELS,+ StarterModel,+)+from invokeai.backend.model_manager.taxonomy import (+ BaseModelType,+ Krea2VariantType,+ ModelFormat,+ ModelType,+)+++def _krea2_bundle_by_source() -> dict[str, StarterModel]:+ bundle = STARTER_BUNDLES[BaseModelType.Krea2]+ return {model.source: model for model in bundle.models}+++def test_krea2_bundle_is_registered() -> None:+ assert BaseModelType.Krea2 in STARTER_BUNDLES+ assert STARTER_BUNDLES[BaseModelType.Krea2].name == "Krea-2"+++def test_krea2_bundle_contains_diffusers_gguf_and_standalone_components() -> None:+ by_source = _krea2_bundle_by_source()+ # Diffusers pipelines (self-contained), GGUF transformers, and the standalone VAE + encoder that the+ # GGUF transformers need.+ assert "krea/Krea-2-Turbo" in by_source+ assert "krea/Krea-2-Raw" in by_source+ assert any(s.endswith("krea2_turbo-Q4_K_M.gguf") for s in by_source)+ assert any(s.endswith("krea2_turbo-Q8_0.gguf") for s in by_source)+ # Standalone components (also declared as GGUF dependencies).+ assert any(m.type is ModelType.VAE for m in by_source.values())+ assert any(m.type is ModelType.Qwen3VLEncoder for m in by_source.values())+++def test_krea2_diffusers_variants() -> None:+ by_source = _krea2_bundle_by_source()+ # Turbo (distilled) vs Raw (undistilled Base) must be tagged so defaults/scheduling differ.+ assert by_source["krea/Krea-2-Turbo"].variant is Krea2VariantType.Turbo+ assert by_source["krea/Krea-2-Raw"].variant is Krea2VariantType.Base+++def test_krea2_gguf_entries_declare_vae_and_encoder_dependencies() -> None:+ gguf_models = [+ m+ for m in _krea2_bundle_by_source().values()+ if m.format is ModelFormat.GGUFQuantized and m.base is BaseModelType.Krea2+ ]+ assert len(gguf_models) == 2++ for model in gguf_models:+ assert model.variant is Krea2VariantType.Turbo+ assert model.dependencies is not None, f"{model.name} must declare its standalone dependencies"+ dep_types = {dep.type for dep in model.dependencies}+ # GGUF ships only the transformer -> it must pull a VAE and a Qwen3-VL encoder.+ assert ModelType.VAE in dep_types, f"{model.name} is missing a VAE dependency"+ assert ModelType.Qwen3VLEncoder in dep_types, f"{model.name} is missing a Qwen3-VL encoder dependency"+++def test_krea2_bundle_models_are_registered_in_starter_models() -> None:+ starter_sources = {m.source for m in STARTER_MODELS}+ for model in STARTER_BUNDLES[BaseModelType.Krea2].models:+ assert model.source in starter_sources, f"{model.name} is not registered in STARTER_MODELS"+++def test_krea2_gguf_dependency_models_are_registered_in_starter_models() -> None:+ # Every dependency source must itself be an installable starter model.+ starter_sources = {m.source for m in STARTER_MODELS}+ for model in STARTER_BUNDLES[BaseModelType.Krea2].models:+ for dep in model.dependencies or []:+ assert dep.source in starter_sources, f"dependency {dep.name} is not registered in STARTER_MODELS"diff --git a/tests/backend/patches/lora_conversions/test_krea2_lora_conversion_utils.py b/tests/backend/patches/lora_conversions/test_krea2_lora_conversion_utils.pynew file mode 100644index 0000000000..d4ebcc7a43--- /dev/null+++ b/tests/backend/patches/lora_conversions/test_krea2_lora_conversion_utils.py@@ -0,0 +1,252 @@+import pytest+import torch++from invokeai.backend.patches.layers.dora_layer import DoRALayer+from invokeai.backend.patches.layers.lora_layer import LoRALayer+from invokeai.backend.patches.lora_conversions.krea2_lora_constants import (+ KREA2_LORA_QWEN3VL_PREFIX,+ KREA2_LORA_TRANSFORMER_PREFIX,+)+from invokeai.backend.patches.lora_conversions.krea2_lora_conversion_utils import lora_model_from_krea2_state_dict+++def test_peft_layer_preserves_explicit_alpha() -> None:+ state_dict = {+ "transformer.text_fusion.0.attn.to_q.lora_A.weight": torch.ones(2, 4),+ "transformer.text_fusion.0.attn.to_q.lora_B.weight": torch.ones(4, 2),+ "transformer.text_fusion.0.attn.to_q.alpha": torch.tensor(1.0),+ }++ model = lora_model_from_krea2_state_dict(state_dict)++ layer = model.layers[f"{KREA2_LORA_TRANSFORMER_PREFIX}text_fusion.0.attn.to_q"]+ assert isinstance(layer, LoRALayer)+ assert layer._alpha == 1.0+++def test_peft_dora_layer_preserves_magnitude_and_alpha() -> None:+ dora_scale = torch.full((4, 1), 2.0)+ state_dict = {+ "transformer.text_fusion.0.attn.to_q.lora_A.weight": torch.ones(2, 4),+ "transformer.text_fusion.0.attn.to_q.lora_B.weight": torch.ones(4, 2),+ "transformer.text_fusion.0.attn.to_q.dora_scale": dora_scale,+ "transformer.text_fusion.0.attn.to_q.alpha": torch.tensor(1.0),+ }++ model = lora_model_from_krea2_state_dict(state_dict)++ layer = model.layers[f"{KREA2_LORA_TRANSFORMER_PREFIX}text_fusion.0.attn.to_q"]+ assert isinstance(layer, DoRALayer)+ assert layer._alpha == 1.0+ assert torch.equal(layer.dora_scale, dora_scale)+++def test_peft_layer_without_explicit_alpha_uses_rank_default() -> None:+ state_dict = {+ "transformer.text_fusion.0.attn.to_q.lora_A.weight": torch.ones(2, 4),+ "transformer.text_fusion.0.attn.to_q.lora_B.weight": torch.ones(4, 2),+ }++ model = lora_model_from_krea2_state_dict(state_dict)++ layer = model.layers[f"{KREA2_LORA_TRANSFORMER_PREFIX}text_fusion.0.attn.to_q"]+ assert isinstance(layer, LoRALayer)+ assert layer._alpha is None+++def test_incomplete_peft_pair_raises_descriptive_error() -> None:+ # A layer with lora_A but no matching lora_B is malformed. It must raise a clear ValueError naming the+ # missing key, not an uninformative bare KeyError.+ state_dict = {+ # Complete layer so the dict still looks like a Krea-2 LoRA.+ "transformer.text_fusion.0.attn.to_k.lora_A.weight": torch.ones(2, 4),+ "transformer.text_fusion.0.attn.to_k.lora_B.weight": torch.ones(4, 2),+ # Incomplete layer: lora_A present, lora_B missing.+ "transformer.text_fusion.0.attn.to_q.lora_A.weight": torch.ones(2, 4),+ }++ with pytest.raises(ValueError, match="lora_B.weight"):+ lora_model_from_krea2_state_dict(state_dict)+++def test_peft_dora_magnitude_vector_key_produces_dora_layer() -> None:+ # Standard PEFT / Diffusers DoRA stores the magnitude as `.lora_magnitude_vector.weight` (not the LyCORIS+ # `.dora_scale`). It must be recognized and produce a DoRALayer preserving the magnitude, so valid+ # Diffusers DoRA adapters load instead of being split into a bogus, unrecognized layer (review 4802322488).+ magnitude = torch.full((4, 1), 3.0)+ state_dict = {+ "transformer.text_fusion.0.attn.to_q.lora_A.weight": torch.ones(2, 4),+ "transformer.text_fusion.0.attn.to_q.lora_B.weight": torch.ones(4, 2),+ "transformer.text_fusion.0.attn.to_q.lora_magnitude_vector.weight": magnitude,+ }++ model = lora_model_from_krea2_state_dict(state_dict)++ layer = model.layers[f"{KREA2_LORA_TRANSFORMER_PREFIX}text_fusion.0.attn.to_q"]+ assert isinstance(layer, DoRALayer)+ assert torch.equal(layer.dora_scale, magnitude)+++def test_conflicting_transformer_and_diffusion_model_aliases_raise() -> None:+ # `transformer.` and `diffusion_model.` normalize to the same target key. Providing both aliases for one+ # logical layer (with different tensors) must raise, not silently drop one based on dict ordering.+ state_dict = {+ "transformer.transformer_blocks.0.attn.to_q.lora_A.weight": torch.ones(2, 4),+ "transformer.transformer_blocks.0.attn.to_q.lora_B.weight": torch.ones(4, 2),+ "diffusion_model.transformer_blocks.0.attn.to_q.lora_A.weight": torch.full((2, 4), 2.0),+ "diffusion_model.transformer_blocks.0.attn.to_q.lora_B.weight": torch.full((4, 2), 2.0),+ }++ with pytest.raises(ValueError, match="normalize to the same target"):+ lora_model_from_krea2_state_dict(state_dict)+++def test_conflicting_native_and_diffusers_aliases_raise() -> None:+ state_dict = {+ "diffusion_model.blocks.0.attn.wq.lora_A.weight": torch.ones(2, 4),+ "diffusion_model.blocks.0.attn.wq.lora_B.weight": torch.ones(4, 2),+ "diffusion_model.blocks.0.attn.gate.lora_A.weight": torch.ones(2, 4),+ "diffusion_model.blocks.0.attn.gate.lora_B.weight": torch.ones(4, 2),+ "diffusion_model.transformer_blocks.0.attn.to_q.lora_A.weight": torch.full((2, 4), 2.0),+ "diffusion_model.transformer_blocks.0.attn.to_q.lora_B.weight": torch.full((4, 2), 2.0),+ }++ with pytest.raises(ValueError, match="normalize to the same target"):+ lora_model_from_krea2_state_dict(state_dict)+++def test_native_comfyui_krea2_keys_are_remapped_to_diffusers_layout() -> None:+ # Native (ComfyUI) Krea-2 LoRAs name modules differently (blocks / attn.wq/wo/gate / mlp / txtfusion).+ # They must be remapped onto the diffusers Krea2Transformer2DModel layout so the LoRA actually applies.+ state_dict = {+ # main transformer block, native gated attention + SwiGLU mlp+ "diffusion_model.blocks.0.attn.wq.lora_A.weight": torch.ones(2, 4),+ "diffusion_model.blocks.0.attn.wq.lora_B.weight": torch.ones(4, 2),+ "diffusion_model.blocks.0.attn.wo.lora_A.weight": torch.ones(2, 4),+ "diffusion_model.blocks.0.attn.wo.lora_B.weight": torch.ones(4, 2),+ "diffusion_model.blocks.0.attn.gate.lora_A.weight": torch.ones(2, 4),+ "diffusion_model.blocks.0.attn.gate.lora_B.weight": torch.ones(4, 2),+ "diffusion_model.blocks.0.mlp.down.lora_A.weight": torch.ones(2, 8),+ "diffusion_model.blocks.0.mlp.down.lora_B.weight": torch.ones(4, 2),+ # text-fusion stage (native `txtfusion`, layerwise + refiner sub-blocks)+ "diffusion_model.txtfusion.layerwise_blocks.0.attn.wk.lora_A.weight": torch.ones(2, 4),+ "diffusion_model.txtfusion.layerwise_blocks.0.attn.wk.lora_B.weight": torch.ones(4, 2),+ "diffusion_model.txtfusion.refiner_blocks.1.mlp.up.lora_A.weight": torch.ones(2, 4),+ "diffusion_model.txtfusion.refiner_blocks.1.mlp.up.lora_B.weight": torch.ones(8, 2),+ }++ model = lora_model_from_krea2_state_dict(state_dict)+ keys = set(model.layers.keys())++ p = KREA2_LORA_TRANSFORMER_PREFIX+ # blocks -> transformer_blocks; attn.wq/wo/gate -> to_q/to_out.0/to_gate; mlp -> ff+ assert f"{p}transformer_blocks.0.attn.to_q" in keys+ assert f"{p}transformer_blocks.0.attn.to_out.0" in keys+ assert f"{p}transformer_blocks.0.attn.to_gate" in keys+ assert f"{p}transformer_blocks.0.ff.down" in keys+ # txtfusion -> text_fusion; layerwise_blocks / refiner_blocks preserved (NOT renamed to transformer_blocks)+ assert f"{p}text_fusion.layerwise_blocks.0.attn.to_k" in keys+ assert f"{p}text_fusion.refiner_blocks.1.ff.up" in keys+ # No native names should survive.+ assert not any(".wq" in k or ".wo" in k or ".mlp." in k or "txtfusion" in k for k in keys)+ assert all(isinstance(v, LoRALayer) for v in model.layers.values())+++def test_native_krea2_dora_magnitude_is_preserved_through_remap() -> None:+ # A native DoRA slider (A/B + magnitude) must remap AND keep its magnitude, producing a DoRALayer.+ magnitude = torch.full((4, 1), 2.0)+ state_dict = {+ "diffusion_model.blocks.0.attn.wq.lora_A.weight": torch.ones(2, 4),+ "diffusion_model.blocks.0.attn.wq.lora_B.weight": torch.ones(4, 2),+ "diffusion_model.blocks.0.attn.wq.lora_magnitude_vector.weight": magnitude,+ # a second native marker so detection is unambiguous+ "diffusion_model.blocks.0.attn.gate.lora_A.weight": torch.ones(2, 4),+ "diffusion_model.blocks.0.attn.gate.lora_B.weight": torch.ones(4, 2),+ }++ model = lora_model_from_krea2_state_dict(state_dict)++ layer = model.layers[f"{KREA2_LORA_TRANSFORMER_PREFIX}transformer_blocks.0.attn.to_q"]+ assert isinstance(layer, DoRALayer)+ assert torch.equal(layer.dora_scale, magnitude)+++def test_diffusers_layout_krea2_keys_are_left_untouched() -> None:+ # A LoRA already in the diffusers layout must not be altered by the native remap.+ state_dict = {+ "transformer.transformer_blocks.0.attn.to_q.lora_A.weight": torch.ones(2, 4),+ "transformer.transformer_blocks.0.attn.to_q.lora_B.weight": torch.ones(4, 2),+ "transformer.text_fusion.0.attn.to_q.lora_A.weight": torch.ones(2, 4),+ "transformer.text_fusion.0.attn.to_q.lora_B.weight": torch.ones(4, 2),+ }++ model = lora_model_from_krea2_state_dict(state_dict)+ keys = set(model.layers.keys())+ p = KREA2_LORA_TRANSFORMER_PREFIX+ assert f"{p}transformer_blocks.0.attn.to_q" in keys+ assert f"{p}text_fusion.0.attn.to_q" in keys+++ ("native_module", "diffusers_module"),+ [+ ("blocks.0.attn.wq", "transformer_blocks.0.attn.to_q"),+ ("blocks.0.mlp.down", "transformer_blocks.0.ff.down"),+ ],+)+def test_single_module_native_krea2_lora_is_remapped(+ native_module: str,+ diffusers_module: str,+) -> None:+ state_dict = {+ f"diffusion_model.{native_module}.lora_A.weight": torch.ones(2, 4),+ f"diffusion_model.{native_module}.lora_B.weight": torch.ones(4, 2),+ }++ model = lora_model_from_krea2_state_dict(state_dict)++ assert set(model.layers) == {f"{KREA2_LORA_TRANSFORMER_PREFIX}{diffusers_module}"}+++def test_native_transformer_remap_does_not_change_diffusers_text_encoder_blocks() -> None:+ state_dict = {+ "diffusion_model.blocks.0.attn.wq.lora_A.weight": torch.ones(2, 4),+ "diffusion_model.blocks.0.attn.wq.lora_B.weight": torch.ones(4, 2),+ "text_encoder.visual.blocks.0.attn.qkv.lora_A.weight": torch.ones(2, 4),+ "text_encoder.visual.blocks.0.attn.qkv.lora_B.weight": torch.ones(4, 2),+ }++ model = lora_model_from_krea2_state_dict(state_dict)++ assert f"{KREA2_LORA_TRANSFORMER_PREFIX}transformer_blocks.0.attn.to_q" in model.layers+ assert f"{KREA2_LORA_QWEN3VL_PREFIX}visual.blocks.0.attn.qkv" in model.layers+++def test_native_krea2_top_level_linear_keys_are_remapped() -> None:+ native_to_diffusers = {+ "first": "img_in",+ "tmlp.0": "time_embed.linear_1",+ "tmlp.2": "time_embed.linear_2",+ "tproj.1": "time_mod_proj",+ "txtmlp.1": "txt_in.linear_1",+ "txtmlp.3": "txt_in.linear_2",+ "last.linear": "final_layer.linear",+ }+ state_dict = {+ f"diffusion_model.{module}.{suffix}.weight": torch.ones(2, 4)+ for module in native_to_diffusers+ for suffix in ("lora_A", "lora_B")+ }+ state_dict.update(+ {+ "diffusion_model.txtfusion.layerwise_blocks.0.attn.wq.lora_A.weight": torch.ones(2, 4),+ "diffusion_model.txtfusion.layerwise_blocks.0.attn.wq.lora_B.weight": torch.ones(4, 2),+ }+ )++ model = lora_model_from_krea2_state_dict(state_dict)++ expected_keys = {+ f"{KREA2_LORA_TRANSFORMER_PREFIX}{diffusers_module}" for diffusers_module in native_to_diffusers.values()+ }+ assert expected_keys < set(model.layers)diff --git a/uv.lock b/uv.lockindex b2cf890a75..0051ccc39f 100644--- a/uv.lock+++ b/uv.lock@@ -714,7 +714,7 @@ wheels = [[[package]]name = "diffusers"-version = "0.37.0"+version = "0.39.0"source = { registry = "https://pypi.org/simple" }dependencies = [{ name = "filelock", marker = "(platform_machine != 'aarch64' and platform_machine != 'x86_64' and extra == 'extra-8-invokeai-cpu' and extra == 'extra-8-invokeai-cuda') or (platform_machine != 'aarch64' and platform_machine != 'x86_64' and extra == 'extra-8-invokeai-cpu' and extra == 'extra-8-invokeai-rocm') or (platform_machine != 'aarch64' and platform_machine != 'x86_64' and extra == 'extra-8-invokeai-cuda' and extra == 'extra-8-invokeai-rocm') or (platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux') or sys_platform == 'darwin' or sys_platform == 'win32' or (sys_platform != 'linux' and extra == 'extra-8-invokeai-cpu' and extra == 'extra-8-invokeai-cuda') or (sys_platform != 'linux' and extra == 'extra-8-invokeai-cpu' and extra == 'extra-8-invokeai-rocm') or (sys_platform != 'linux' and extra == 'extra-8-invokeai-cuda' and extra == 'extra-8-invokeai-rocm')" },@@ -727,9 +727,9 @@ dependencies = [{ name = "requests", marker = "(platform_machine != 'aarch64' and platform_machine != 'x86_64' and extra == 'extra-8-invokeai-cpu' and extra == 'extra-8-invokeai-cuda') or (platform_machine != 'aarch64' and platform_machine != 'x86_64' and extra == 'extra-8-invokeai-cpu' and extra == 'extra-8-invokeai-rocm') or (platform_machine != 'aarch64' and platform_machine != 'x86_64' and extra == 'extra-8-invokeai-cuda' and extra == 'extra-8-invokeai-rocm') or (platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux') or sys_platform == 'darwin' or sys_platform == 'win32' or (sys_platform != 'linux' and extra == 'extra-8-invokeai-cpu' and extra == 'extra-8-invokeai-cuda') or (sys_platform != 'linux' and extra == 'extra-8-invokeai-cpu' and extra == 'extra-8-invokeai-rocm') or (sys_platform != 'linux' and extra == 'extra-8-invokeai-cuda' and extra == 'extra-8-invokeai-rocm')" },{ name = "safetensors", marker = "(platform_machine != 'aarch64' and platform_machine != 'x86_64' and extra == 'extra-8-invokeai-cpu' and extra == 'extra-8-invokeai-cuda') or (platform_machine != 'aarch64' and platform_machine != 'x86_64' and extra == 'extra-8-invokeai-cpu' and extra == 'extra-8-invokeai-rocm') or (platform_machine != 'aarch64' and platform_machine != 'x86_64' and extra == 'extra-8-invokeai-cuda' and extra == 'extra-8-invokeai-rocm') or (platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux') or sys_platform == 'darwin' or sys_platform == 'win32' or (sys_platform != 'linux' and extra == 'extra-8-invokeai-cpu' and extra == 'extra-8-invokeai-cuda') or (sys_platform != 'linux' and extra == 'extra-8-invokeai-cpu' and extra == 'extra-8-invokeai-rocm') or (sys_platform != 'linux' and extra == 'extra-8-invokeai-cuda' and extra == 'extra-8-invokeai-rocm')" },]-sdist = { url = "https://files.pythonhosted.org/packages/58/3b/01d0ff800b811c5ad8bba682f4c6abf1d7071cd81464c01724333fefb7ba/diffusers-0.37.0.tar.gz", hash = "sha256:408789af73898585f525afd07ca72b3955affea4216a669558e9f59b5b1fe704", size = 4141136, upload-time = "2026-03-05T14:58:39.704Z" }+sdist = { url = "https://files.pythonhosted.org/packages/1a/81/6095237b86a3116c4789f28c4435d5296c00c0fc74ffde99008fd6b3a36c/diffusers-0.39.0.tar.gz", hash = "sha256:14bb1d98c85a0e463d734c99aaa73b480a7bc9bad22af30fbf730ef8f09c1d67", size = 4651240, upload-time = "2026-07-03T08:48:47.904Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/f7/55/586a3a2b9c95f371c9c3cb048c3cac15aedcce8d6d53ebd6bbc46860722d/diffusers-0.37.0-py3-none-any.whl", hash = "sha256:7eab74bf896974250b5e1027cae813aba1004f02d97c9b44891b83713386aa08", size = 5000449, upload-time = "2026-03-05T14:58:37.361Z" },+ { url = "https://files.pythonhosted.org/packages/3f/3f/7469c46e9d22307ea686bab687d70e6bf328722952f9d10339f5e913e608/diffusers-0.39.0-py3-none-any.whl", hash = "sha256:912aca51b5787365110806e984d5555735bf8a461073bb8459029d0bca7870ef", size = 5631176, upload-time = "2026-07-03T08:48:45.337Z" },][package.optional-dependencies]@@ -1282,7 +1282,7 @@ requires-dist = [{ name = "blake3" },{ name = "compel", specifier = ">=2.4.0,<3" },{ name = "deprecated" },- { name = "diffusers", extras = ["torch"], specifier = "==0.37.0" },+ { name = "diffusers", extras = ["torch"], specifier = "==0.39.0" },{ name = "dnspython" },{ name = "dynamicprompts" },{ name = "einops" },