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(nodes): add native metadata input and output across denoise invocations (#10083)
skunkworxdark345d15d3d9b1
diff --git a/docs/src/content/docs/contributing/new-model-integration.mdx b/docs/src/content/docs/contributing/new-model-integration.mdxindex f255664f0b..ce9e1c31a0 100644--- a/docs/src/content/docs/contributing/new-model-integration.mdx+++ b/docs/src/content/docs/contributing/new-model-integration.mdx@@ -576,10 +576,12 @@ Packages are discovered automatically. A directory of node modules without an `_3. **Denoise** (`new_model/new_model_denoise.py`)+ Every denoise node must inherit `WithMetadata` (and must **not** inherit `WithBoard`), implement `_build_metadata(self) -> MetadataField` via `build_denoise_metadata(...)` without mutating `self.metadata.root`, and return `LatentsMetaOutput` (or a custom output subclassing `MetadataOutput` for multi-tensor outputs). Never create a separate `*_denoise_meta` wrapper node.+```python title="invokeai/app/invocations/new_model/new_model_denoise.py"@invocation("new_model_denoise", title="Denoise - NewModel", tags=["image", "new_model"],category="image", version="1.0.0", classification=Classification.Prototype)- class NewModelDenoiseInvocation(BaseInvocation):+ class NewModelDenoiseInvocation(BaseInvocation, WithMetadata):latents: Optional[LatentsField] = InputField(default=None, description=FieldDescriptions.latents,input=Input.Connection)denoise_mask: Optional[DenoiseMaskField] = InputField(default=None, description=FieldDescriptions.denoise_mask,@@ -600,12 +602,29 @@ Packages are discovered automatically. A directory of node modules without an `_steps: int = InputField(default=8, gt=0, description=FieldDescriptions.steps)seed: int = InputField(default=0, description="Randomness seed for reproducibility.")- def invoke(self, context: InvocationContext) -> LatentsOutput:+ def _build_metadata(self) -> MetadataField:+ updates: dict[str, Any] = {+ "generation_mode": "new_model_inpaint"+ if self.denoise_mask is not None+ else ("new_model_img2img" if self.latents is not None else "new_model_txt2img"),+ "width": self.width,+ "height": self.height,+ "steps": self.steps,+ "cfg_scale": self.cfg_scale,+ "denoising_start": self.denoising_start,+ "denoising_end": self.denoising_end,+ "seed": self.seed,+ "model": self.transformer.transformer,+ }+ updates["loras"] = serialize_lora_metadata(getattr(self.transformer, "loras", None))+ return build_denoise_metadata(getattr(self, "metadata", None), updates)++ def invoke(self, context: InvocationContext) -> LatentsMetaOutput:# 1. Noise from the seed; init latents for img2img; clip the schedule by denoising_start/end.# 2. Load the transformer with a working-memory estimate; apply LoRA patches.# 3. Loop: model prediction, optional CFG, scheduler step,# RectifiedFlowInpaintExtension merge when a denoise_mask is set, step callback.- # 4. Save and return the latents.+ # 4. Save and return LatentsMetaOutput.build(..., metadata=self._build_metadata(), width=self.width, height=self.height)....```@@ -624,7 +643,7 @@ Packages are discovered automatically. A directory of node modules without an `_- [ ] Package `invocations/new_model/` with `__init__.py`- [ ] Model loader with `ui_model_base` / `ui_model_type`, and `accepted_vae_bases()` on the VAE field- [ ] Text encoder matching the reference encoding, with a test-- [ ] Denoise: grid equals `dimension_grid`, guidance bounds equal the facet, img2img, inpaint, previews, cancel, working memory+- [ ] Denoise: inherits `WithMetadata` (never `WithBoard`), returns `LatentsMetaOutput`, builds metadata via `build_denoise_metadata`, grid equals `dimension_grid`, guidance bounds equal the facet, img2img, inpaint, previews, cancel, working memory- [ ] VAE encode and decode with the correct normalization:::@@ -661,7 +680,23 @@ File: `invokeai/app/invocations/metadata.py`They must equal the `ModalityFacet` declaration: `<metadata_slug>_<mode>` for each mode. `tests/backend/architectures/test_modality.py` compares the two. webv2 writes `<slug>_txt2img`, and the canvas derives the other modes by replacing `txt2img`, so declare all four image modes if the canvas supports them.-2. **Metadata fields (if needed).**+2. **Register metadata labels and submodels in `CORE_METADATA_REGISTRY`.**++ File: `invokeai/app/invocations/metadata_constants.py`++ If your model introduces standalone submodel fields (e.g., custom text encoders, VAEs, or component sources) or new generation parameters, add them to `CORE_METADATA_REGISTRY`:++ ```python title="invokeai/app/invocations/metadata_constants.py"+ CORE_METADATA_REGISTRY: tuple[tuple[str, MetadataType | tuple[MetadataType, ...]], ...] = (+ ...+ ("new_model_text_encoder", T.MODEL),+ ("new_model_custom_setting", T.FLOAT),+ )+ ```++ This automatically adds the key to `Metadata Item Linked` (`CORE_LABELS`) and the matching typed extraction nodes (`Metadata to Float`, `Metadata to VAE`, etc.; `Metadata to Model` and `Metadata to SDXL Model` remain restricted to main-model labels via `CORE_LABELS_MAIN_MODEL` / `CORE_LABELS_SDXL_MODEL`), guarantees `* CUSTOM LABEL *` remains at index 0, and adds `T.MODEL` / `T.VAE` entries to `CORE_MODEL_LABELS` for submodel unwrapping during gallery recall.++3. **Metadata fields (if needed).**`CoreMetadataInvocation` (`core_metadata`) accepts extra fields, so architecture-specific keys such as the chosen encoder or VAE need no declaration. Declare a field only if it needs validation, or if a node output feeds it through an edge, as `ideogram4_caption` and `moss_image_layout_prompt` record the prompt assembled at run time. Adding one requires a node version bump and follows the `CORE_METADATA_VERSION` rules documented in [Media Metadata](/development/architecture/media-metadata/).</Steps>@@ -955,6 +990,7 @@ Several tests pin hand-maintained tables, so a new architecture has to extend th| `tests/backend/architectures/test_variants.py` | A `base=Any` variant enum in `BASE_AGNOSTIC_VARIANT_ENUMS`; an architecture that gains variants out of the pinned list of variant-less ones. Otherwise it checks the variant lists and unique values itself || `tests/backend/architectures/test_modality.py` | Nothing if `GENERATION_MODES` matches `ModalityFacet` || `tests/backend/architectures/test_capabilities_fixture.py` | Regenerate the webv2 fixture (see section 11) |+| `tests/app/invocations/test_denoise_metadata.py` | Automatically checks `WithMetadata` and `MetadataOutput` on every `*denoise*` node; add a per-node metadata contract test for the new denoise node || `tests/app/invocations/test_frontend_graph_node_types.py` | `SUPPORTED_BASE_COUNTS`, possibly `LITERAL_FLOORS` || `tests/app/invocations/test_ideal_size.py` | A row in `IDEAL_SIZE_AT_NODE_DEFAULTS`: the size Ideal Size returns for the base at the node's defaults, derived by hand from the declared default size and `dimension_grid` || `tests/backend/model_manager/load/test_diffusers_0XX_compatibility.py` | New classes, when the dependency is bumped |diff --git a/docs/src/content/docs/development/Architecture/media-metadata.mdx b/docs/src/content/docs/development/Architecture/media-metadata.mdxindex ae5d7c6a7a..020d0517ed 100644--- a/docs/src/content/docs/development/Architecture/media-metadata.mdx+++ b/docs/src/content/docs/development/Architecture/media-metadata.mdx@@ -69,7 +69,7 @@ is also the fallback written when the remux fails, so a record is never lost to## The record: `invokeai_metadata`-A flat JSON object, the output of the `core_metadata` node. Video is a *profile* of the same+A flat JSON object emitted either by the `core_metadata` node (in linear/canvas graphs) or directly by any denoise invocation (`*denoise*` nodes inherit `WithMetadata` and emit `metadata` on their output, merging any upstream `metadata` input with the node's own sampling, model, LoRA, ControlNet, T2I-Adapter, and reference image fields via `build_denoise_metadata()`). In Stage 1, prompts, standalone text encoders, and conditioning modifiers are not automatically extracted from incoming conditioning edges; workflows record those fields through upstream metadata nodes such as `core_metadata` or `metadata_item_linked`. Custom node workflows can wire a denoise node's `metadata` output straight into the decode (`*_l2i` / `*_latents_to_video`) node without a `core_metadata` node. Video is a *profile* of the samerecord as images, discriminated by `generation_mode`, not a second format. Every key isoptional; readers ignore keys they do not know and never reject a record for having them.@@ -79,7 +79,7 @@ Common shapes:ModelIdentifier = { key, hash, name, base, type, submodel_type? }ImageRef = { image_name }VideoRef = { video_name }-LoRA = { model: ModelIdentifier, weight }+LoRA = { model: ModelIdentifier, weight, target?: "high" | "low" | "both", low_noise_weight? }H3Reference = { kind: "image" | "video", image_name?, video_name?, detail?, conditioning?, start_frame?, end_frame? }```@@ -87,7 +87,7 @@ H3Reference = { kind: "image" | "video", image_name?, video_name?, detail?,| Key | Type | Meaning ||---|---|---|-| `metadata_version` | semver string | The record schema version, currently `1.2.0`. Absent on records written before versioning; they are read with the same rules plus the aliases listed below. |+| `metadata_version` | semver string | The record schema version, currently `1.3.0`. Absent on records written before versioning; they are read with the same rules plus the aliases listed below. || `app_version` | string | The InvokeAI release that wrote the record. Informational. |The version is over the **record**, not the node that writes it. A **minor** bump adds keys or@@ -102,12 +102,15 @@ The current value is `CORE_METADATA_VERSION` in `invokeai/app/invocations/metada|---|---|| `generation_mode` | string. Video values: `wan_t2v`, `wan_i2v`, `wan_interpolate`, `wan_extend_video`, `minimax_h3_t2v`, `minimax_h3_i2v`, `minimax_h3_lf2v`, `minimax_h3_flf2v`, `minimax_h3_extend_video`, `minimax_h3_ref2v`. A record is video metadata iff this is one of them. || `positive_prompt`, `negative_prompt` | string; `negative_prompt` is absent for MiniMax H3, which has no CFG |+| `positive_prompts`, `negative_prompts` | `string[]`: complete list of prompts when multiple conditionings are collected, e.g. via `Collect` node |+| `positive_style_prompt`, `negative_style_prompt` | `string`: SDXL style prompts || `seed`, `steps` | integer |-| `cfg_scale` | number (Wan only) |+| `cfg_scale` | number \| number[] |+| `hidiffusion_auto_ratios` | boolean: whether HiDiffusion automatically chooses `t1` and `t2` ratios || `width`, `height` | integer || `model` | `ModelIdentifier`: the main (transformer) model || `vae` | `ModelIdentifier`: a standalone VAE override |-| `loras` | `LoRA[]`: the LoRAs the graph loaded, in order; absent when none ran |+| `loras` | `LoRA[]`: the LoRAs the graph loaded, in order; on Wan, entries include optional `target` (`"high"`, `"low"`, or `"both"`) and `low_noise_weight` when high/low expert weights differ |### Image profile@@ -175,15 +178,16 @@ same key names from an external process, with models given by name.## Evolving the record-1. Add a typed `Optional` field to `CoreMetadataInvocation` under its canonical name, stamp it from+1. Register the key in `CORE_METADATA_REGISTRY` in `invokeai/app/invocations/metadata_constants.py` with its `MetadataType` (`T.STRING`, `T.INTEGER`, `T.FLOAT`, `T.MODEL`, `T.VAE`, etc.). This automatically derives workflow metadata extraction literals (`CORE_LABELS*`) and ensures model identifiers are unwrapped for frontend recall.+2. Add a typed `Optional` field to `CoreMetadataInvocation` under its canonical name, stamp it fromthe graph builder, and read it in the recall mappers.-2. Give the key an entry in the recall contract of each profile that writes it:+3. Give the key an entry in the recall contract of each profile that writes it:`IMAGE_RECALL_CONTRACT` (`invokeai/frontend/webv2/src/workbench/image-actions/imageRecallContract.test.ts`)and its video twin, `videoRecallContract.test.ts` beside it. A contract test fails for a key without anentry that the coverage fixtures' graphs write; a key written only under some setting needs that setting offits default in `recallTunedSettingsFor` (`graphCoverage.testing.ts`) or in a dedicated case. A field`CoreMetadataInvocation` declares without an image entry fails webv2's type check once the API types areregenerated.-3. Bump `CORE_METADATA_VERSION`'s minor component. Bump the major only for a rename, removal or+4. Bump `CORE_METADATA_VERSION`'s minor component. Bump the major only for a rename, removal ortype change, and add the old spelling to the readers' alias table.-4. Update the tables on this page.+5. Update the tables on this page.diff --git a/invokeai/app/AGENTS.md b/invokeai/app/AGENTS.mdindex 35c25a6477..15a0a728bf 100644--- a/invokeai/app/AGENTS.md+++ b/invokeai/app/AGENTS.md@@ -25,6 +25,9 @@- Preserve project/account isolation, document bounds, queue admission/receipts, lost-response retry safety. Never silently discard recovery data. Never resolve conflicts with last-write-wins.- Bound concurrency. Support cancellation, timeouts/retries, file/process/listener/task cleanup. Keep CPU and blocking I/O off the async server loop.- Preserve file/path validation, remote-fetch protections, sanitized errors. Never modify real user models, databases, outputs, or credentials in tests or debugging.+- Every denoise invocation (`*denoise*` in `invokeai/app/invocations/`) must inherit `WithMetadata`, must not inherit `WithBoard`, must return `LatentsMetaOutput` (or an output subclassing `MetadataOutput` for multi-tensor outputs), and must build a new `MetadataField` via `build_denoise_metadata` without mutating `self.metadata.root`. Never create new `*_denoise_meta` wrapper nodes; enforced by `tests/app/invocations/test_denoise_metadata.py`.+- Every metadata label, standalone model identifier, or generation parameter emitted into workflow metadata must be registered in `CORE_METADATA_REGISTRY` in `invokeai/app/invocations/metadata_constants.py` using its `MetadataType` (`T.MODEL`, `T.STRING`, `T.FLOAT`, etc.). Never declare or hardcode separate label sets or literals in `metadata_linked.py` or `metadata.py`; all dropdown literals and `CORE_MODEL_LABELS` are derived automatically from this registry and enforced by `tests/app/invocations/test_core_metadata.py`.+## Efficiency and verificationdiff --git a/invokeai/app/invocations/anima/anima_denoise.py b/invokeai/app/invocations/anima/anima_denoise.pyindex f05030d757..3f9e009ded 100644--- a/invokeai/app/invocations/anima/anima_denoise.py+++ b/invokeai/app/invocations/anima/anima_denoise.py@@ -18,7 +18,7 @@ Key differences from Z-Image denoise:import mathfrom contextlib import ExitStack-from typing import Callable, Iterator, Optional+from typing import Any, Callable, Iterator, Optionalimport torchimport torchvision.transforms as tv_transforms@@ -36,10 +36,18 @@ from invokeai.app.invocations.fields import (Input,InputField,LatentsField,+ MetadataField,+ WithMetadata,)from invokeai.app.invocations.latent_noise import validate_noise_tensor_shape+from invokeai.app.invocations.metadata import (+ LatentsMetaOutput,+ build_denoise_metadata,+ serialize_adapter_metadata,+ serialize_ip_adapter_ref_images,+ serialize_lora_metadata,+)from invokeai.app.invocations.model import TransformerField-from invokeai.app.invocations.primitives import LatentsOutputfrom invokeai.app.services.shared.invocation_context import InvocationContextfrom invokeai.backend.anima.anima_transformer import IPAdapterBlockFnfrom invokeai.backend.anima.anima_transformer_patch import (@@ -184,10 +192,10 @@ class AnimaInpaintExtension(RectifiedFlowInpaintExtension):title="Denoise - Anima",tags=["image", "anima"],category="image",- version="1.9.0",+ version="1.10.0",classification=Classification.Prototype,)-class AnimaDenoiseInvocation(BaseInvocation):+class AnimaDenoiseInvocation(BaseInvocation, WithMetadata):"""Run the denoising process with an Anima model.Uses rectified flow sampling with shift=3.0 and the Cosmos Predict2 DiT@@ -248,12 +256,67 @@ class AnimaDenoiseInvocation(BaseInvocation):ui_choice_labels=ANIMA_SCHEDULER_LABELS,)+ def _build_metadata(self, context: Optional[InvocationContext] = None) -> MetadataField:+ updates: dict[str, Any] = {+ "generation_mode": (+ "anima_inpaint"+ if getattr(self, "denoise_mask", None) is not None+ else ("anima_img2img" if getattr(self, "latents", None) is not None else "anima_txt2img")+ ),+ "width": self.width,+ "height": self.height,+ "steps": self.steps,+ "cfg_scale": self.guidance_scale,+ "scheduler": self.scheduler,+ "denoising_start": self.denoising_start,+ "denoising_end": self.denoising_end,+ "add_noise": self.add_noise,+ "model": self.transformer.transformer,+ }+ updates["loras"] = serialize_lora_metadata(getattr(self.transformer, "loras", None))+ updates["controlnets"] = serialize_adapter_metadata(self.control_lllite)+ updates["ref_images"] = serialize_ip_adapter_ref_images(+ getattr(self, "ip_adapter", None), context=context, default_width=self.width, default_height=self.height+ )++ if getattr(self, "denoise_mask", None) is not None and getattr(self, "control_lllite", None) is not None:+ lllite_list = self.control_lllite if isinstance(self.control_lllite, list) else [self.control_lllite]+ inpaint_adapter = next(+ (a for a in lllite_list if getattr(a, "mask_name", None) is not None),+ None,+ )+ if inpaint_adapter is not None:+ model = getattr(inpaint_adapter, "control_model", getattr(inpaint_adapter, "model", None))+ if model is not None:+ updates["anima_inpaint_adapter"] = model+ updates["anima_inpaint_adapter_weight"] = float(inpaint_adapter.weight)++ if (+ self.noise is not None+ and self.noise.seed is not None+ and (self.latents is None or getattr(self, "add_noise", True))+ ):+ updates["seed"] = self.noise.seed+ elif self.seed is not None:+ updates["seed"] = self.seed+ elif self.latents and self.latents.seed is not None:+ updates["seed"] = self.latents.seed++ return build_denoise_metadata(getattr(self, "metadata", None), updates)+@torch.no_grad()- def invoke(self, context: InvocationContext) -> LatentsOutput:+ def invoke(self, context: InvocationContext) -> LatentsMetaOutput: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)+ return LatentsMetaOutput.build(+ latents_name=name,+ latents=latents,+ seed=None,+ metadata=self._build_metadata(context),+ width=self.width,+ height=self.height,+ )def _prep_inpaint_mask(self, context: InvocationContext, latents: torch.Tensor) -> torch.Tensor | None:"""Prepare the inpaint mask for Anima.diff --git a/invokeai/app/invocations/cogview4/cogview4_denoise.py b/invokeai/app/invocations/cogview4/cogview4_denoise.pyindex 283c190dbd..492d1a7886 100644--- a/invokeai/app/invocations/cogview4/cogview4_denoise.py+++ b/invokeai/app/invocations/cogview4/cogview4_denoise.py@@ -1,4 +1,4 @@-from typing import Callable, Optional+from typing import Any, Callable, Optionalimport torchimport torchvision.transforms as tv_transforms@@ -15,12 +15,16 @@ from invokeai.app.invocations.fields import (Input,InputField,LatentsField,- WithBoard,+ MetadataField,WithMetadata,)from invokeai.app.invocations.latent_noise import validate_noise_tensor_shape+from invokeai.app.invocations.metadata import (+ LatentsMetaOutput,+ build_denoise_metadata,+ serialize_lora_metadata,+)from invokeai.app.invocations.model import TransformerField-from invokeai.app.invocations.primitives import LatentsOutputfrom invokeai.app.services.shared.invocation_context import InvocationContextfrom invokeai.backend.flux.sampling_utils import clip_timestep_schedule_fractionalfrom invokeai.backend.model_manager.taxonomy import BaseModelType@@ -35,10 +39,10 @@ from invokeai.backend.util.devices import TorchDevicetitle="Denoise - CogView4",tags=["image", "cogview4"],category="latents",- version="1.1.0",+ version="1.2.0",classification=Classification.Prototype,)-class CogView4DenoiseInvocation(BaseInvocation, WithMetadata, WithBoard):+class CogView4DenoiseInvocation(BaseInvocation, WithMetadata):"""Run the denoising process with a CogView4 model."""# If latents is provided, this means we are doing image-to-image.@@ -69,13 +73,50 @@ class CogView4DenoiseInvocation(BaseInvocation, WithMetadata, WithBoard):steps: int = InputField(default=25, gt=0, description=FieldDescriptions.steps)seed: int = InputField(default=0, description="Randomness seed for reproducibility.")+ def _build_metadata(self) -> MetadataField:+ updates: dict[str, Any] = {+ "generation_mode": (+ "cogview4_inpaint"+ if getattr(self, "denoise_mask", None) is not None+ else ("cogview4_img2img" if getattr(self, "latents", None) is not None else "cogview4_txt2img")+ ),+ "width": self.width,+ "height": self.height,+ "steps": self.steps,+ "cfg_scale": self.cfg_scale,+ "denoising_start": self.denoising_start,+ "denoising_end": self.denoising_end,+ "model": self.transformer.transformer,+ }+ updates["loras"] = serialize_lora_metadata(getattr(self.transformer, "loras", None))++ if (+ self.noise is not None+ and self.noise.seed is not None+ and (self.latents is None or getattr(self, "add_noise", True))+ ):+ updates["seed"] = self.noise.seed+ elif self.seed is not None:+ updates["seed"] = self.seed+ elif self.latents and self.latents.seed is not None:+ updates["seed"] = self.latents.seed++ return build_denoise_metadata(getattr(self, "metadata", None), updates)+@torch.no_grad()- def invoke(self, context: InvocationContext) -> LatentsOutput:+ def invoke(self, context: InvocationContext) -> LatentsMetaOutput: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)+ return LatentsMetaOutput.build(+ latents_name=name,+ latents=latents,+ seed=None,+ metadata=self._build_metadata(),+ width=self.width,+ height=self.height,+ )def _prep_inpaint_mask(self, context: InvocationContext, latents: torch.Tensor) -> torch.Tensor | None:"""Prepare the inpaint mask.diff --git a/invokeai/app/invocations/ernie_image/ernie_image_denoise.py b/invokeai/app/invocations/ernie_image/ernie_image_denoise.pyindex 1a32c18e0a..6472e5bfaa 100644--- a/invokeai/app/invocations/ernie_image/ernie_image_denoise.py+++ b/invokeai/app/invocations/ernie_image/ernie_image_denoise.py@@ -1,5 +1,5 @@from contextlib import ExitStack-from typing import Optional+from typing import Any, Optionalimport torchfrom diffusers.schedulers.scheduling_utils import SchedulerMixin@@ -11,9 +11,15 @@ from invokeai.app.invocations.fields import (Input,InputField,LatentsField,+ MetadataField,+ WithMetadata,+)+from invokeai.app.invocations.metadata import (+ LatentsMetaOutput,+ build_denoise_metadata,+ serialize_lora_metadata,)from invokeai.app.invocations.model import TransformerField-from invokeai.app.invocations.primitives import LatentsOutputfrom invokeai.app.services.shared.invocation_context import InvocationContextfrom invokeai.backend.ernie_image import sampling_utilsfrom invokeai.backend.ernie_image.denoise import denoise as ernie_denoise@@ -44,10 +50,10 @@ _PER_SAMPLE_LINEARS = frozenset(title="Denoise - ERNIE-Image",tags=["latents", "denoise", "ernie-image"],category="latents",- version="1.1.0",+ version="1.2.0",classification=Classification.Prototype,)-class ErnieImageDenoiseInvocation(BaseInvocation):+class ErnieImageDenoiseInvocation(BaseInvocation, WithMetadata):"""Run the ERNIE-Image denoising loop and emit packed latents."""transformer: TransformerField = InputField(@@ -96,8 +102,30 @@ class ErnieImageDenoiseInvocation(BaseInvocation):ui_choice_labels=ERNIE_IMAGE_SCHEDULER_LABELS,)+ def _build_metadata(self) -> MetadataField:+ updates: dict[str, Any] = {+ "generation_mode": "ernie_image_txt2img",+ "width": self.width,+ "height": self.height,+ "steps": self.steps,+ "cfg_scale": self.guidance_scale,+ "scheduler": self.scheduler,+ "denoising_start": self.denoising_start,+ "denoising_end": self.denoising_end,+ "add_noise": self.add_noise,+ "model": self.transformer.transformer,+ }+ updates["loras"] = serialize_lora_metadata(getattr(self.transformer, "loras", None))++ if self.seed is not None:+ updates["seed"] = self.seed+ elif self.latents and self.latents.seed is not None:+ updates["seed"] = self.latents.seed++ return build_denoise_metadata(getattr(self, "metadata", None), updates)+@torch.no_grad()- def invoke(self, context: InvocationContext) -> LatentsOutput:+ def invoke(self, context: InvocationContext) -> LatentsMetaOutput:device = TorchDevice.choose_torch_device()dtype = TorchDevice.choose_bfloat16_safe_dtype(device)@@ -222,10 +250,11 @@ class ErnieImageDenoiseInvocation(BaseInvocation):name = context.tensors.save(tensor=latents)# `LatentsOutput.build` assumes unpatched latents at 1/8 scale. ERNIE's latents are# 2x2-patchified on top of the 8x VAE downscale, so report the requested size directly.- return LatentsOutput(+ return LatentsMetaOutput(latents=LatentsField(latents_name=name, seed=self.seed),width=self.width,height=self.height,+ metadata=self._build_metadata(),)def _materialize_lora_patches(self, context: InvocationContext) -> list[PatchSpec]:diff --git a/invokeai/app/invocations/flux/flux_denoise.py b/invokeai/app/invocations/flux/flux_denoise.pyindex e20507c501..0948f937c6 100644--- a/invokeai/app/invocations/flux/flux_denoise.py+++ b/invokeai/app/invocations/flux/flux_denoise.py@@ -1,5 +1,5 @@from contextlib import ExitStack-from typing import Callable, Iterator, Optional, Union+from typing import Any, Callable, Iterator, Optional, Unionimport einopsimport numpy as np@@ -22,11 +22,19 @@ from invokeai.app.invocations.fields import (Input,InputField,LatentsField,+ MetadataField,+ WithMetadata,)from invokeai.app.invocations.flux.flux_controlnet import FluxControlNetFieldfrom invokeai.app.invocations.latent_noise import validate_noise_tensor_shape+from invokeai.app.invocations.metadata import (+ LatentsMetaOutput,+ build_denoise_metadata,+ serialize_adapter_metadata,+ serialize_ip_adapter_ref_images,+ serialize_lora_metadata,+)from invokeai.app.invocations.model import ControlLoRAField, LoRAField, TransformerField, VAEField-from invokeai.app.invocations.primitives import LatentsOutputfrom invokeai.app.invocations.sd.ip_adapter import IPAdapterFieldfrom invokeai.app.invocations.vae.flux_vae_encode import FluxVaeEncodeInvocationfrom invokeai.app.services.shared.invocation_context import InvocationContext@@ -77,9 +85,9 @@ from invokeai.backend.util.sage_attention import sage_attention_scopetitle="FLUX Denoise",tags=["image", "flux"],category="latents",- version="4.6.0",+ version="4.7.0",)-class FluxDenoiseInvocation(BaseInvocation):+class FluxDenoiseInvocation(BaseInvocation, WithMetadata):"""Run denoising process with a FLUX transformer model."""# If latents is provided, this means we are doing image-to-image.@@ -209,13 +217,69 @@ class FluxDenoiseInvocation(BaseInvocation):ui_order=102,)+ def _build_metadata(self, context: Optional[InvocationContext] = None) -> MetadataField:+ suffix = (+ "inpaint"+ if getattr(self, "denoise_mask", None) is not None+ else ("img2img" if getattr(self, "latents", None) is not None else "txt2img")+ )+ updates: dict[str, Any] = {+ "generation_mode": f"flux_{suffix}",+ "width": self.width,+ "height": self.height,+ "steps": self.num_steps,+ "scheduler": self.scheduler,+ "guidance": self.guidance,+ "cfg_scale": self.cfg_scale,+ "cfg_scale_start_step": self.cfg_scale_start_step,+ "cfg_scale_end_step": self.cfg_scale_end_step,+ "denoising_start": self.denoising_start,+ "denoising_end": self.denoising_end,+ "add_noise": self.add_noise,+ "model": self.transformer.transformer,+ "dype_preset": self.dype_preset,+ }+ if self.dype_scale is not None:+ updates["dype_scale"] = self.dype_scale+ if self.dype_exponent is not None:+ updates["dype_exponent"] = self.dype_exponent++ updates["loras"] = serialize_lora_metadata(getattr(self.transformer, "loras", None))+ updates["controlnets"] = serialize_adapter_metadata(self.control)+ existing = getattr(self, "metadata", None)+ if getattr(self, "controlnet_vae", None) is not None and (existing is None or "vae" not in existing.root):+ updates["vae"] = self.controlnet_vae.vae+ updates["ref_images"] = serialize_ip_adapter_ref_images(+ self.ip_adapter, context=context, default_width=self.width, default_height=self.height+ )++ if (+ self.noise is not None+ and self.noise.seed is not None+ and (self.latents is None or getattr(self, "add_noise", True))+ ):+ updates["seed"] = self.noise.seed+ elif self.seed is not None:+ updates["seed"] = self.seed+ elif self.latents and self.latents.seed is not None:+ updates["seed"] = self.latents.seed++ return build_denoise_metadata(getattr(self, "metadata", None), updates)+@torch.no_grad()- def invoke(self, context: InvocationContext) -> LatentsOutput:+ def invoke(self, context: InvocationContext) -> LatentsMetaOutput: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)+ return LatentsMetaOutput.build(+ latents_name=name,+ latents=latents,+ seed=None,+ metadata=self._build_metadata(context),+ width=self.width,+ height=self.height,+ )def _run_diffusion(self,diff --git a/invokeai/app/invocations/flux2/flux2_denoise.py b/invokeai/app/invocations/flux2/flux2_denoise.pyindex e2d3abd1ba..d1dc25ae08 100644--- a/invokeai/app/invocations/flux2/flux2_denoise.py+++ b/invokeai/app/invocations/flux2/flux2_denoise.py@@ -5,7 +5,7 @@ Run denoising process with a FLUX.2 transformer model: Klein (Qwen3 conditioningfrom contextlib import ExitStackfrom functools import partial-from typing import Callable, Iterator, Optional, Tuple+from typing import Any, Callable, Iterator, Optional, Tupleimport torchimport torch.nn.functional as F@@ -22,11 +22,18 @@ from invokeai.app.invocations.fields import (Input,InputField,LatentsField,+ MetadataField,+ WithMetadata,)from invokeai.app.invocations.flux2.flux2_control import Flux2ControlFieldfrom invokeai.app.invocations.latent_noise import validate_noise_tensor_shape+from invokeai.app.invocations.metadata import (+ LatentsMetaOutput,+ build_denoise_metadata,+ serialize_adapter_metadata,+ serialize_lora_metadata,+)from invokeai.app.invocations.model import TransformerField, VAEField-from invokeai.app.invocations.primitives import LatentsOutputfrom invokeai.app.invocations.vae.flux2_vae_encode import Flux2VaeEncodeInvocationfrom invokeai.app.services.shared.invocation_context import InvocationContextfrom invokeai.backend.flux.sampling_utils import clip_timestep_schedule_fractional@@ -77,10 +84,10 @@ FLUX2_MAX_HIDDEN_SIZE = 6144title="FLUX2 Denoise",tags=["image", "flux", "flux2", "klein", "denoise"],category="latents",- version="1.7.0",+ version="1.8.0",classification=Classification.Prototype,)-class Flux2DenoiseInvocation(BaseInvocation):+class Flux2DenoiseInvocation(BaseInvocation, WithMetadata):"""Run denoising process with a FLUX.2 transformer model, Klein or [dev].Regional prompting is supported via per-conditioning masks (single mask is applied@@ -218,13 +225,58 @@ class Flux2DenoiseInvocation(BaseInvocation):return x, init_latents_packed+ def _build_metadata(self) -> MetadataField:+ updates: dict[str, Any] = {+ "generation_mode": (+ "flux2_inpaint"+ if getattr(self, "denoise_mask", None) is not None+ else ("flux2_img2img" if getattr(self, "latents", None) is not None else "flux2_txt2img")+ ),+ "width": self.width,+ "height": self.height,+ "steps": self.num_steps,+ "scheduler": self.scheduler,+ "guidance": self.guidance,+ "cfg_scale": self.cfg_scale,+ "denoising_start": self.denoising_start,+ "denoising_end": self.denoising_end,+ "add_noise": self.add_noise,+ "model": self.transformer.transformer,+ }++ if self.vae is not None:+ updates["vae"] = self.vae.vae++ updates["loras"] = serialize_lora_metadata(getattr(self.transformer, "loras", None))+ updates["controlnets"] = serialize_adapter_metadata(self.control)++ if (+ self.noise is not None+ and self.noise.seed is not None+ and (self.latents is None or getattr(self, "add_noise", True))+ ):+ updates["seed"] = self.noise.seed+ elif self.seed is not None:+ updates["seed"] = self.seed+ elif self.latents and self.latents.seed is not None:+ updates["seed"] = self.latents.seed++ return build_denoise_metadata(getattr(self, "metadata", None), updates)+@torch.no_grad()- def invoke(self, context: InvocationContext) -> LatentsOutput:+ def invoke(self, context: InvocationContext) -> LatentsMetaOutput: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)+ return LatentsMetaOutput.build(+ latents_name=name,+ latents=latents,+ seed=None,+ metadata=self._build_metadata(),+ width=self.width,+ height=self.height,+ )def _run_diffusion(self, context: InvocationContext) -> torch.Tensor:inference_dtype = torch.bfloat16diff --git a/invokeai/app/invocations/flux3/flux3_denoise.py b/invokeai/app/invocations/flux3/flux3_denoise.pyindex a325b048cc..377efe1e7d 100644--- a/invokeai/app/invocations/flux3/flux3_denoise.py+++ b/invokeai/app/invocations/flux3/flux3_denoise.py@@ -1,6 +1,6 @@from collections.abc import Iteratorfrom contextlib import ExitStack-from typing import Callable, Optional+from typing import Any, Callable, Optionalimport torchimport torchvision.transforms as tv_transforms@@ -15,9 +15,15 @@ from invokeai.app.invocations.fields import (Input,InputField,LatentsField,+ MetadataField,+ WithMetadata,+)+from invokeai.app.invocations.metadata import (+ LatentsMetaOutput,+ build_denoise_metadata,+ serialize_lora_metadata,)from invokeai.app.invocations.model import TransformerField, VAEField-from invokeai.app.invocations.primitives import LatentsOutputfrom invokeai.app.services.shared.invocation_context import InvocationContextfrom invokeai.backend.flux.sampling_utils import clip_timestep_schedule_fractionalfrom invokeai.backend.flux2.latent_norm import bn_denormalize, bn_normalize, read_vae_bn_stats@@ -48,10 +54,10 @@ from invokeai.backend.util.devices import TorchDevicetitle="Denoise - FLUX.3",tags=["image", "flux3", "flux", "denoise"],category="latents",- version="1.0.0",+ version="1.1.0",classification=Classification.Prototype,)-class Flux3DenoiseInvocation(BaseInvocation):+class Flux3DenoiseInvocation(BaseInvocation, WithMetadata):"""Run the denoising process with a FLUX.3 Image transformer (Klein or Klein Base).Klein is step-distilled (a flow map) and samples without CFG; Klein Base takes CFG with a negative@@ -104,11 +110,40 @@ class Flux3DenoiseInvocation(BaseInvocation):title="Reference Images",)+ def _build_metadata(self) -> MetadataField:+ updates: dict[str, Any] = {+ "generation_mode": (+ "flux3_inpaint"+ if getattr(self, "denoise_mask", None) is not None+ else ("flux3_img2img" if getattr(self, "latents", None) is not None else "flux3_txt2img")+ ),+ "width": self.width,+ "height": self.height,+ "steps": self.steps,+ "cfg_scale": self.cfg_scale,+ "scheduler": "euler",+ "denoising_start": self.denoising_start,+ "denoising_end": self.denoising_end,+ "add_noise": self.add_noise,+ "seed": self.seed,+ "model": self.transformer.transformer,+ "vae": self.vae.vae,+ }+ updates["loras"] = serialize_lora_metadata(getattr(self.transformer, "loras", None))+ return build_denoise_metadata(getattr(self, "metadata", None), updates)+@torch.no_grad()- def invoke(self, context: InvocationContext) -> LatentsOutput:+ def invoke(self, context: InvocationContext) -> LatentsMetaOutput:latents = self._run_diffusion(context).detach().to("cpu")name = context.tensors.save(tensor=latents)- return LatentsOutput.build(latents_name=name, latents=latents, seed=None)+ return LatentsMetaOutput.build(+ latents_name=name,+ latents=latents,+ seed=None,+ metadata=self._build_metadata(),+ width=self.width,+ height=self.height,+ )def _run_diffusion(self, context: InvocationContext) -> torch.Tensor:device = TorchDevice.choose_torch_device()diff --git a/invokeai/app/invocations/ideogram4/ideogram4_denoise.py b/invokeai/app/invocations/ideogram4/ideogram4_denoise.pyindex 7573274a15..f9fa58827d 100644--- a/invokeai/app/invocations/ideogram4/ideogram4_denoise.py+++ b/invokeai/app/invocations/ideogram4/ideogram4_denoise.py@@ -1,6 +1,6 @@import refrom contextlib import ExitStack-from typing import Literal, Optional+from typing import Any, Literal, Optionalimport torch@@ -10,9 +10,16 @@ from invokeai.app.invocations.fields import (Ideogram4ConditioningField,Input,InputField,+ LatentsField,+ MetadataField,+ WithMetadata,+)+from invokeai.app.invocations.metadata import (+ LatentsMetaOutput,+ build_denoise_metadata,+ serialize_lora_metadata,)from invokeai.app.invocations.model import TransformerField-from invokeai.app.invocations.primitives import LatentsOutputfrom invokeai.app.services.shared.invocation_context import InvocationContextfrom invokeai.backend.ideogram4 import run_ideogram4_denoisefrom invokeai.backend.ideogram4.modeling_ideogram4 import Ideogram4Transformer, compute_dtype_of@@ -104,10 +111,10 @@ def _effective_guidance_schedule(title="Denoise - Ideogram 4",tags=["image", "ideogram4"],category="latents",- version="1.2.0",+ version="1.3.0",classification=Classification.Prototype,)-class Ideogram4DenoiseInvocation(BaseInvocation):+class Ideogram4DenoiseInvocation(BaseInvocation, WithMetadata):"""Runs the Ideogram 4 dual-branch flow-matching denoising loop (text-to-image)."""transformer: TransformerField = InputField(@@ -153,8 +160,44 @@ class Ideogram4DenoiseInvocation(BaseInvocation):description="Override the logit-normal schedule mean (resolution-adjusted internally). Empty = use the preset.",)+ def _build_metadata(self) -> MetadataField:+ preset = PRESETS[self.sampler_preset]+ # guidance_schedule is in loop-index order (index 0 = polish step, -1 = main weight).+ effective_guidance = (+ self.guidance_scale if self.guidance_scale is not None else float(preset.guidance_schedule[-1])+ )+ updates: dict[str, Any] = {+ "generation_mode": "ideogram4_txt2img",+ "width": self.width,+ "height": self.height,+ "steps": self.steps if self.steps is not None else preset.num_steps,+ "cfg_scale": effective_guidance,+ "guidance": effective_guidance,+ "ideogram4_sampler_preset": self.sampler_preset,+ "seed": self.seed,+ }+ if getattr(self, "transformer", None) is not None:+ updates["model"] = self.transformer.transformer+ if self.steps is not None:+ updates["ideogram4_steps"] = self.steps+ if self.guidance_scale is not None:+ updates["ideogram4_guidance_scale"] = self.guidance_scale+ if self.mu is not None:+ updates["ideogram4_mu"] = self.mu+ if getattr(self, "unconditional_transformer", None) is not None:+ updates["ideogram4_unconditional_model"] = self.unconditional_transformer.transformer++ updates["loras"] = serialize_lora_metadata(+ getattr(self.transformer, "loras", None),+ getattr(self.unconditional_transformer, "loras", None)+ if self.unconditional_transformer is not None+ else None,+ )++ return build_denoise_metadata(getattr(self, "metadata", None), updates)+@torch.no_grad()- def invoke(self, context: InvocationContext) -> LatentsOutput:+ def invoke(self, context: InvocationContext) -> LatentsMetaOutput:device = TorchDevice.choose_torch_device()preset = PRESETS[self.sampler_preset]@@ -203,7 +246,12 @@ class Ideogram4DenoiseInvocation(BaseInvocation):packed = packed.detach().to("cpu")name = context.tensors.save(tensor=packed)- return LatentsOutput.build(latents_name=name, latents=packed, seed=None)+ return LatentsMetaOutput(+ latents=LatentsField(latents_name=name, seed=self.seed),+ width=self.width,+ height=self.height,+ metadata=self._build_metadata(),+ )def _estimate_working_memory(self, num_text_tokens: int) -> int:"""Activation headroom to reserve, in bytes, so the cache does not fill VRAM with weights.diff --git a/invokeai/app/invocations/krea2/krea2_denoise.py b/invokeai/app/invocations/krea2/krea2_denoise.pyindex f738c51fdb..f6319b4ca0 100644--- a/invokeai/app/invocations/krea2/krea2_denoise.py+++ b/invokeai/app/invocations/krea2/krea2_denoise.py@@ -22,11 +22,15 @@ from invokeai.app.invocations.fields import (Krea2ConditioningField,Krea2StyleReferenceField,LatentsField,- WithBoard,+ MetadataField,WithMetadata,)+from invokeai.app.invocations.metadata import (+ LatentsMetaOutput,+ build_denoise_metadata,+ serialize_lora_metadata,+)from invokeai.app.invocations.model import LoRAField, TransformerField-from invokeai.app.invocations.primitives import LatentsOutputfrom invokeai.app.services.shared.invocation_context import InvocationContextfrom invokeai.backend.krea2.attention import (Krea2RegionalPromptingState,@@ -130,10 +134,10 @@ class _Krea2StepBenchmark:title="Denoise - Krea-2",tags=["image", "krea2", "krea-2"],category="image",- version="1.4.0",+ version="1.5.0",classification=Classification.Prototype,)-class Krea2DenoiseInvocation(BaseInvocation, WithMetadata, WithBoard):+class Krea2DenoiseInvocation(BaseInvocation, WithMetadata):"""Run the denoising process with a Krea-2 model."""# If latents is provided, this means we are doing image-to-image.@@ -218,12 +222,47 @@ class Krea2DenoiseInvocation(BaseInvocation, WithMetadata, WithBoard):raise ValueError("shift must be finite.")return value+ def _build_metadata(self) -> MetadataField:+ updates: dict[str, Any] = {+ "generation_mode": (+ "krea2_inpaint"+ if getattr(self, "denoise_mask", None) is not None+ else ("krea2_img2img" if getattr(self, "latents", None) is not None else "krea2_txt2img")+ ),+ "width": self.width,+ "height": self.height,+ "steps": self.steps,+ "cfg_scale": self.cfg_scale,+ "denoising_start": self.denoising_start,+ "denoising_end": self.denoising_end,+ "seed": self.seed,+ "model": self.transformer.transformer,+ }+ if self.shift is not None:+ updates["shift"] = self.shift+ if getattr(self, "style_reference", None) is not None and self.style_reference.style_strength > 0:+ updates["krea2_style_strength"] = self.style_reference.style_strength++ loras = serialize_lora_metadata(getattr(self.transformer, "loras", None))+ updates["loras"] = loras+ if getattr(self, "reference_latents", None) is not None and self._reference_latent_fields() and loras:+ updates["krea2_reference_kv_cache"] = self.reference_kv_cache++ return build_denoise_metadata(getattr(self, "metadata", None), updates)+@torch.no_grad()- def invoke(self, context: InvocationContext) -> LatentsOutput:+ def invoke(self, context: InvocationContext) -> LatentsMetaOutput: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)+ return LatentsMetaOutput.build(+ latents_name=name,+ latents=latents,+ seed=None,+ metadata=self._build_metadata(),+ width=self.width,+ height=self.height,+ )def _prep_inpaint_mask(self, context: InvocationContext, latents: torch.Tensor) -> torch.Tensor | None:if self.denoise_mask is None:diff --git a/invokeai/app/invocations/ltx2/ltx2_denoise.py b/invokeai/app/invocations/ltx2/ltx2_denoise.pyindex d00798bcc6..2f94b7a589 100644--- a/invokeai/app/invocations/ltx2/ltx2_denoise.py+++ b/invokeai/app/invocations/ltx2/ltx2_denoise.py@@ -1,14 +1,13 @@"""LTX-2 denoise: joint video and audio sampling from one transformer."""from contextlib import nullcontext-from typing import Literal+from typing import Any, Literalimport torchfrom tqdm import tqdmfrom invokeai.app.invocations.baseinvocation import (BaseInvocation,- BaseInvocationOutput,Classification,invocation,invocation_output,@@ -22,7 +21,14 @@ from invokeai.app.invocations.fields import (LTX2ConditioningField,LTX2FullVideoConditioningField,LTX2VideoConditioningField,+ MetadataField,OutputField,+ WithMetadata,+)+from invokeai.app.invocations.metadata import (+ MetadataOutput,+ build_denoise_metadata,+ serialize_lora_metadata,)from invokeai.app.invocations.model import LTX2TransformerFieldfrom invokeai.app.services.shared.invocation_context import InvocationContext@@ -71,7 +77,7 @@ LTX2_SCHEDULE_LABELS: dict[str, str] = {@invocation_output("ltx2_denoise_output")-class LTX2DenoiseOutput(BaseInvocationOutput):+class LTX2DenoiseOutput(MetadataOutput):"""Joint video and audio latents from one LTX-2 denoise run."""video_latents: LatentsField = OutputField(description="Video latents [1, 128, T_lat, H/32, W/32].")@@ -86,10 +92,10 @@ class LTX2DenoiseOutput(BaseInvocationOutput):title="Denoise - LTX-2",tags=["ltx", "ltx2", "video", "audio", "denoise"],category="latents",- version="1.5.0",+ version="1.6.0",classification=Classification.Prototype,)-class LTX2DenoiseInvocation(BaseInvocation):+class LTX2DenoiseInvocation(BaseInvocation, WithMetadata):"""Generates LTX-2 video and audio latents together.One transformer forward produces both modalities at every step, so the soundtrack is generated@@ -394,6 +400,45 @@ class LTX2DenoiseInvocation(BaseInvocation):)return context.tensors.load(self.video_conditioning.latents_name)+ def _build_metadata(self) -> MetadataField:+ if (+ getattr(self, "video_conditioning", None) is not None+ and getattr(self, "keyframe_conditioning", None) is not None+ ):+ gen_mode = "ltx2_flf2v"+ elif getattr(self, "keyframe_conditioning", None) is not None:+ gen_mode = "ltx2_lf2v"+ elif getattr(self, "video_conditioning", None) is not None:+ gen_mode = "ltx2_i2v"+ elif getattr(self, "audio_conditioning", None) is not None:+ gen_mode = "ltx2_a2v"+ elif getattr(self, "full_video_conditioning", None) is not None:+ gen_mode = "ltx2_v2a"+ else:+ gen_mode = "ltx2_t2v"+ updates: dict[str, Any] = {+ "generation_mode": gen_mode,+ "width": self.width,+ "height": self.height,+ "num_frames": self.num_frames,+ "fps": round(self.fps),+ "steps": self.steps,+ "cfg_scale": self.cfg_scale,+ "ltx2_audio_cfg_scale": self.audio_cfg_scale,+ "ltx2_stg_scale": self.stg_scale,+ "ltx2_modality_scale": self.modality_scale,+ "ltx2_guidance_rescale": self.guidance_rescale,+ "ltx2_schedule": self.schedule,+ "seed": self.seed,+ "model": self.transformer.transformer,+ }+ if self.latents is not None:+ updates["ltx2_noise_scale"] = self.noise_scale++ updates["loras"] = serialize_lora_metadata(getattr(self.transformer, "loras", None))++ return build_denoise_metadata(getattr(self, "metadata", None), updates)+@torch.no_grad()def invoke(self, context: InvocationContext) -> LTX2DenoiseOutput:# The canvas is checked by the fields themselves (`multiple_of`), so a bad one never@@ -646,4 +691,5 @@ class LTX2DenoiseInvocation(BaseInvocation):width=self.width,height=self.height,num_frames=self.num_frames,+ metadata=self._build_metadata(),)diff --git a/invokeai/app/invocations/metadata.py b/invokeai/app/invocations/metadata.pyindex b05cd14743..ea44aea284 100644--- a/invokeai/app/invocations/metadata.py+++ b/invokeai/app/invocations/metadata.py@@ -1,5 +1,8 @@-from typing import Any, Literal, Optional, Union+import json+from collections.abc import Hashable+from typing import Any, Literal, Optional, Sequence, Union+import torchfrom pydantic import BaseModel, ConfigDict, Fieldfrom invokeai.app.invocations.baseinvocation import (@@ -9,17 +12,33 @@ from invokeai.app.invocations.baseinvocation import (invocation,invocation_output,)+from invokeai.app.invocations.constants import LATENT_SCALE_FACTORfrom invokeai.app.invocations.fields import (FieldDescriptions,ImageField,InputField,+ LatentsField,MetadataField,OutputField,+ TensorField,UIType,VideoField,)-from invokeai.app.invocations.model import ModelIdentifierField-from invokeai.app.invocations.primitives import StringOutput+from invokeai.app.invocations.metadata_constants import (+ CORE_MODEL_LABELS as CORE_MODEL_LABELS,+)+from invokeai.app.invocations.metadata_constants import (+ CUSTOM_LABEL as CUSTOM_LABEL,+)+from invokeai.app.invocations.model import (+ ModelIdentifierField,+ PiDDecoderField,+ TransformerField,+ UNetField,+ VAEField,+ WanTransformerField,+)+from invokeai.app.invocations.primitives import LatentsOutput, StringOutputfrom invokeai.app.services.shared.invocation_context import InvocationContextfrom invokeai.app.util.controlnet_utils import CONTROLNET_MODE_VALUES, CONTROLNET_RESIZE_VALUESfrom invokeai.version.invokeai_version import __version__@@ -35,6 +54,14 @@ class LoRAMetadataField(BaseModel):model: ModelIdentifierField = Field(description=FieldDescriptions.lora_model)weight: float = Field(description=FieldDescriptions.lora_weight)+ target: Optional[Literal["high", "low", "both"]] = Field(+ default=None,+ description="Target expert for dual-expert models (e.g., Wan 2.2 A14B): 'high', 'low', or 'both'",+ )+ low_noise_weight: Optional[float] = Field(+ default=None,+ description="Weight for the low-noise expert when target is 'both' and it differs from the high-noise weight",+ )class IPAdapterMetadataField(BaseModel):@@ -87,15 +114,161 @@ class MetadataItemOutput(BaseInvocationOutput):item: MetadataItemField = OutputField(description="Metadata Item")-@invocation("metadata_item", title="Metadata Item", tags=["metadata"], category="metadata", version="1.0.1")+_SUBMODEL_WRAPPER_ATTRS: tuple[str, ...] = (+ "vae",+ "text_encoder",+ "unet",+ "transformer",+ "decoder",+ "vocoder",+ "latent_upsampler",+)++_WAN_TRANSFORMER_DICT_KEYS: frozenset[str] = frozenset(+ {"transformer", "transformer_low_noise", "loras", "loras_low_noise", "boundary_ratio"}+)++_PRESERVE_TRUTHY_FIELDS: tuple[str, ...] = ("loras", "loras_low_noise", "seamless_axes", "skipped_layers")+_PRESERVE_NOT_NONE_FIELDS: tuple[str, ...] = (+ "transformer_low_noise",+ "boundary_ratio",+ "variant",+ "adaln_overlay",+ "processor",+ "connectors",+ "vision_tower",+ "freeu_config",+)++# (primary_key, allowed_keys, preserve_when_custom_keys)+_WRAPPER_DICT_SPECS: tuple[tuple[str, frozenset[str], tuple[str, ...]], ...] = (+ (+ "text_encoder",+ frozenset({"tokenizer", "processor", "text_encoder", "vision_tower", "connectors", "loras", "skipped_layers"}),+ ("loras", "processor", "connectors", "vision_tower", "skipped_layers"),+ ),+ ("clip", frozenset({"tokenizer", "clip", "loras", "skipped_layers"}), ("loras", "skipped_layers")),+ ("vae", frozenset({"vae", "seamless_axes"}), ("seamless_axes",)),+ (+ "transformer",+ frozenset({"transformer", "loras", "variant", "adaln_overlay"}),+ ("loras", "variant", "adaln_overlay"),+ ),+ (+ "unet",+ frozenset({"unet", "scheduler", "loras", "seamless_axes", "freeu_config"}),+ ("loras", "seamless_axes", "freeu_config"),+ ),+ ("decoder", frozenset({"decoder"}), ()),+ ("vocoder", frozenset({"vocoder"}), ()),+ ("latent_upsampler", frozenset({"latent_upsampler"}), ()),+)+++def _is_model_identifier_value(val: Any) -> bool:+ return isinstance(val, ModelIdentifierField) or (isinstance(val, dict) and "key" in val)+++def _has_preservable_wrapper_fields(val: Any, keys: Optional[Sequence[str]] = None) -> bool:+ if isinstance(val, dict):+ check_keys = keys if keys is not None else (*_PRESERVE_TRUTHY_FIELDS, *_PRESERVE_NOT_NONE_FIELDS)+ for k in check_keys:+ if k not in val:+ continue+ v = val[k]+ if k in _PRESERVE_NOT_NONE_FIELDS:+ if v is not None:+ return True+ elif v:+ return True+ return False++ for attr in _PRESERVE_TRUTHY_FIELDS:+ if getattr(val, attr, None):+ return True+ for attr in _PRESERVE_NOT_NONE_FIELDS:+ if getattr(val, attr, None) is not None:+ return True+ return False+++def unwrap_metadata_value(val: Any, label: Optional[str] = None) -> Any:+ """Unwrap model loader submodel fields (VAEField, encoder fields, UNetField, TransformerField, PiDDecoderField)+ into their inner ModelIdentifierField (or ModelIdentifierField-shaped dict) when stored in metadata.++ For core model labels (e.g. 'model', 'vae', 'clip_l_model'), wrappers are always unwrapped so gallery recall+ can find the top-level 'key'. For custom labels (e.g. user-named labels or CUSTOM_LABEL), outer wrappers with+ LoRAs or non-default submodel/routing/config fields are preserved so user modifications are not discarded.+ """+ is_custom = label not in CORE_MODEL_LABELS+ if isinstance(val, UNetField):+ if is_custom and _has_preservable_wrapper_fields(val):+ return val+ return val.unet+ if isinstance(val, (TransformerField, WanTransformerField)):+ if is_custom and _has_preservable_wrapper_fields(val):+ return val+ if isinstance(val, WanTransformerField) and label == "wan_transformer_low_noise":+ return val.transformer_low_noise+ return val.transformer+ if isinstance(val, VAEField):+ if is_custom and _has_preservable_wrapper_fields(val):+ return val+ return val.vae+ if isinstance(val, PiDDecoderField):+ return val.decoder+ if isinstance(val, BaseModel) and not isinstance(val, ModelIdentifierField):+ for attr in ("text_encoder", "clip", "transformer", "unet", "vae", "decoder", "vocoder", "latent_upsampler"):+ if hasattr(val, attr):+ if is_custom and _has_preservable_wrapper_fields(val):+ return val+ inner = getattr(val, attr)+ if _is_model_identifier_value(inner):+ return inner+ elif isinstance(val, dict) and "key" not in val and "image_name" not in val and "video_name" not in val:+ keys = set(val.keys())+ if keys.issubset(_WAN_TRANSFORMER_DICT_KEYS) and "transformer" in val:+ if is_custom and _has_preservable_wrapper_fields(+ val, ("loras", "loras_low_noise", "transformer_low_noise", "boundary_ratio")+ ):+ return val+ if label == "wan_transformer_low_noise":+ inner = val.get("transformer_low_noise")+ if inner is None:+ return None+ if _is_model_identifier_value(inner):+ return inner+ return val+ inner = val["transformer"]+ if _is_model_identifier_value(inner):+ return inner+ for primary_key, allowed_keys, preserve_keys in _WRAPPER_DICT_SPECS:+ if primary_key in val and keys.issubset(allowed_keys):+ if is_custom and _has_preservable_wrapper_fields(val, preserve_keys):+ return val+ inner = val[primary_key]+ if _is_model_identifier_value(inner):+ return inner+ return val+++@invocation("metadata_item", title="Metadata Item", tags=["metadata"], category="metadata", version="1.1.0")class MetadataItemInvocation(BaseInvocation):"""Used to create an arbitrary metadata item. Provide "label" and make a connection to "value" to store that data as the value."""label: str = InputField(description=FieldDescriptions.metadata_item_label)value: Any = InputField(description=FieldDescriptions.metadata_item_value, ui_type=UIType.Any)+ def _validate_invoke_fields(self) -> None:+ if "value" not in self.model_fields_set:+ super()._validate_invoke_fields()+ elif self.label is None:+ super()._validate_invoke_fields()+def invoke(self, context: InvocationContext) -> MetadataItemOutput:- return MetadataItemOutput(item=MetadataItemField(label=self.label, value=self.value))+ return MetadataItemOutput(+ item=MetadataItemField(label=self.label, value=unwrap_metadata_value(self.value, label=self.label))+ )@invocation_output("metadata_output")@@ -103,7 +276,29 @@ class MetadataOutput(BaseInvocationOutput):metadata: MetadataField = OutputField(description="Metadata Dict")-@invocation("metadata", title="Metadata", tags=["metadata"], category="metadata", version="1.0.1")+@invocation_output("latents_meta_output")+class LatentsMetaOutput(LatentsOutput, MetadataOutput):+ """Base class for invocations that output latents with metadata"""++ @classmethod+ def build(+ cls,+ latents_name: str,+ latents: torch.Tensor,+ seed: Optional[int] = None,+ metadata: Optional[MetadataField] = None,+ width: Optional[int] = None,+ height: Optional[int] = None,+ ) -> "LatentsMetaOutput":+ return cls(+ latents=LatentsField(latents_name=latents_name, seed=seed),+ width=width if width is not None else latents.shape[-1] * LATENT_SCALE_FACTOR,+ height=height if height is not None else latents.shape[-2] * LATENT_SCALE_FACTOR,+ metadata=metadata or MetadataField.model_validate({}),+ )+++@invocation("metadata", title="Metadata", tags=["metadata"], category="metadata", version="1.1.0")class MetadataInvocation(BaseInvocation):"""Takes a MetadataItem or collection of MetadataItems and outputs a MetadataDict."""@@ -114,13 +309,13 @@ class MetadataInvocation(BaseInvocation):def invoke(self, context: InvocationContext) -> MetadataOutput:if isinstance(self.items, MetadataItemField):# single metadata item- data = {self.items.label: self.items.value}+ data = {self.items.label: self.items.value} if self.items.value is not None else {}else:# collection of metadata items- data = {item.label: item.value for item in self.items}+ data = {item.label: item.value for item in self.items if item.value is not None}# add app version- data.update({"app_version": __version__})+ data.update({"app_version": __version__, "metadata_version": CORE_METADATA_VERSION})return MetadataOutput(metadata=MetadataField.model_validate(data))@@ -237,7 +432,297 @@ class MiniMaxH3ReferenceMetadataField(BaseModel):# other 1.x, ignoring unknown keys); a major bump renames, removes or retypes one. A record# without the key predates versioning and is read with the same rules. Documented, with the# field table, in docs/development/Architecture/media-metadata.-CORE_METADATA_VERSION = "1.2.0"+CORE_METADATA_VERSION = "1.3.0"+++def _serialize_lora_entry(+ lora_model: Any,+ weight: float,+ target: Optional[Literal["high", "low", "both"]] = None,+ low_noise_weight: Optional[float] = None,+) -> dict[str, Any]:+ if isinstance(lora_model, ModelIdentifierField):+ return LoRAMetadataField(+ model=lora_model,+ weight=weight,+ target=target,+ low_noise_weight=low_noise_weight,+ ).model_dump(exclude_none=True, exclude={"id", "type", "is_intermediate", "use_cache"})+ entry: dict[str, Any] = {"model": lora_model, "weight": weight}+ if target is not None:+ entry["target"] = target+ if low_noise_weight is not None:+ entry["low_noise_weight"] = low_noise_weight+ return entry+++def _lora_dedup_key(lora: Any) -> Any:+ """Return a hashable deduplication key for ModelIdentifierField, dict, or fallback LoRA values."""+ if isinstance(lora, dict):+ key = lora.get("key")+ if key is not None:+ return key+ return json.dumps(lora, sort_keys=True, default=str)+ key = getattr(lora, "key", None)+ if key is not None:+ return key+ return lora if isinstance(lora, Hashable) else id(lora)+++def serialize_lora_metadata(*lora_lists: Optional[Sequence[Any]]) -> list[dict[str, Any]]:+ """Serialize and deduplicate LoRA field sequences into metadata dictionaries."""+ seen: set[tuple[Any, float]] = set()+ result: list[dict[str, Any]] = []+ for lora_list in lora_lists:+ if not lora_list:+ continue+ for item in lora_list:+ key = _lora_dedup_key(item.lora)+ ident = (key, item.weight)+ if ident in seen:+ continue+ seen.add(ident)+ result.append(_serialize_lora_entry(item.lora, item.weight))+ return result+++def serialize_wan_lora_metadata(+ high_loras: Optional[Sequence[Any]],+ low_loras: Optional[Sequence[Any]],+) -> list[dict[str, Any]]:+ """Serialize Wan high/low expert LoRA lists into one metadata entry per unique LoRA key."""+ high_by_key: dict[Any, Any] = {}+ for item in high_loras or ():+ key = _lora_dedup_key(item.lora)+ if key not in high_by_key:+ high_by_key[key] = item++ low_by_key: dict[Any, Any] = {}+ for item in low_loras or ():+ key = _lora_dedup_key(item.lora)+ if key not in low_by_key:+ low_by_key[key] = item++ result: list[dict[str, Any]] = []+ for key, high_item in high_by_key.items():+ low_item = low_by_key.get(key)+ if low_item is None:+ result.append(_serialize_lora_entry(high_item.lora, high_item.weight, target="high"))+ elif high_item.weight == low_item.weight:+ result.append(_serialize_lora_entry(high_item.lora, high_item.weight, target="both"))+ else:+ result.append(+ _serialize_lora_entry(+ high_item.lora,+ high_item.weight,+ target="both",+ low_noise_weight=low_item.weight,+ )+ )++ for key, low_item in low_by_key.items():+ if key not in high_by_key:+ result.append(_serialize_lora_entry(low_item.lora, low_item.weight, target="low"))++ return result+++def serialize_adapter_metadata(item_or_items: Any) -> list[Any]:+ """Normalize a single adapter field or list of adapter fields into serialized metadata dicts."""+ if item_or_items is None:+ return []+ items = item_or_items if isinstance(item_or_items, list) else [item_or_items]+ return [+ item.model_dump(exclude_none=True, exclude={"id", "type", "is_intermediate", "use_cache"})+ if hasattr(item, "model_dump")+ else item+ for item in items+ ]+++def serialize_ip_adapter_ref_images(+ ip_adapter: Any,+ context: Optional[Any] = None,+ default_width: int = 1024,+ default_height: int = 1024,+) -> list[dict[str, Any]]:+ """Serialize IP-Adapter inputs into v7 GenerateReferenceImage metadata entries (`ref_images`)."""+ if ip_adapter is None:+ return []+ items = ip_adapter if isinstance(ip_adapter, list) else [ip_adapter]+ ref_images: list[dict[str, Any]] = []+ idx = 0+ for item in items:+ raw_image = item.get("image") if isinstance(item, dict) else getattr(item, "image", None)+ if raw_image is None:+ raw_image_name = item.get("image_name") if isinstance(item, dict) else getattr(item, "image_name", None)+ if raw_image_name:+ raw_image = {"image_name": raw_image_name}+ else:+ continue+ img_list = raw_image if isinstance(raw_image, list) else [raw_image]+ ip_adapter_model = (+ item.get("ip_adapter_model") if isinstance(item, dict) else getattr(item, "ip_adapter_model", None)+ )+ image_encoder_model = (+ item.get("image_encoder_model") if isinstance(item, dict) else getattr(item, "image_encoder_model", None)+ )+ if hasattr(ip_adapter_model, "model_dump"):+ model_dict = ip_adapter_model.model_dump(exclude_none=True, exclude={"id", "is_intermediate", "use_cache"})+ elif isinstance(ip_adapter_model, dict):+ model_dict = dict(ip_adapter_model)+ model_dict.setdefault("type", "ip_adapter")+ else:+ model_dict = {}++ explicit_cvm = (+ item.get("clip_vision_model") if isinstance(item, dict) else getattr(item, "clip_vision_model", None)+ )+ if explicit_cvm in ("ViT-H", "ViT-G", "ViT-L"):+ clip_vision_model = explicit_cvm+ else:+ enc_name = (+ image_encoder_model.get("name", "")+ if isinstance(image_encoder_model, dict)+ else getattr(image_encoder_model, "name", "")+ ) or ""+ enc_lower = str(enc_name).lower()+ if "vit-l" in enc_lower or "large" in enc_lower:+ clip_vision_model = "ViT-L"+ elif "sdxl" in enc_lower or "vit-g" in enc_lower:+ clip_vision_model = "ViT-G"+ else:+ clip_vision_model = "ViT-H"++ method = (item.get("method") if isinstance(item, dict) else getattr(item, "method", None)) or "full"+ has_weight = ("weight" in item) if isinstance(item, dict) else hasattr(item, "weight")+ has_strength = ("strength" in item) if isinstance(item, dict) else hasattr(item, "strength")+ if has_weight:+ raw_weight = item["weight"] if isinstance(item, dict) else item.weight+ elif has_strength:+ raw_weight = item["strength"] if isinstance(item, dict) else item.strength+ if raw_weight is not None and float(raw_weight) <= 0.0:+ continue+ else:+ raw_weight = 1.0+ if isinstance(raw_weight, (list, tuple)):+ weight: Union[float, list[float]] = [float(w) for w in raw_weight]+ else:+ weight = float(raw_weight)+ begin_step_percent = float(+ item.get("begin_step_percent", 0.0) if isinstance(item, dict) else getattr(item, "begin_step_percent", 0.0)+ )+ end_step_percent = float(+ item.get("end_step_percent", 1.0) if isinstance(item, dict) else getattr(item, "end_step_percent", 1.0)+ )++ raw_mask = item.get("mask") if isinstance(item, dict) else getattr(item, "mask", None)+ serialized_mask = None+ if raw_mask is not None:+ # Ephemeral tensor masks (TensorField) are runtime-only and must not be serialized into metadata.+ is_tensor_mask = (+ isinstance(raw_mask, TensorField)+ or getattr(raw_mask, "tensor_name", None) is not None+ or (isinstance(raw_mask, dict) and "tensor_name" in raw_mask)+ )+ if not is_tensor_mask:+ if hasattr(raw_mask, "model_dump"):+ serialized_mask = raw_mask.model_dump(exclude_none=True)+ elif isinstance(raw_mask, dict):+ serialized_mask = dict(raw_mask)+ else:+ serialized_mask = raw_mask++ for img in img_list:+ img_name = img.get("image_name") if isinstance(img, dict) else getattr(img, "image_name", None)+ if not img_name:+ continue+ img_width, img_height = int(default_width), int(default_height)+ if context is not None:+ try:+ dto = context.images.get_dto(img_name)+ dto_w = getattr(dto, "width", None)+ dto_h = getattr(dto, "height", None)+ if isinstance(dto_w, int) and dto_w > 0 and isinstance(dto_h, int) and dto_h > 0:+ img_width, img_height = int(dto_w), int(dto_h)+ except Exception:+ pass+ idx += 1+ config_entry: dict[str, Any] = {+ "type": "ip_adapter",+ "image": {+ "original": {+ "image": {+ "image_name": img_name,+ "width": img_width,+ "height": img_height,+ }+ }+ },+ "model": model_dict,+ "clipVisionModel": clip_vision_model,+ "method": method,+ "weight": weight,+ "beginEndStepPct": [begin_step_percent, end_step_percent],+ }+ if serialized_mask is not None:+ config_entry["mask"] = serialized_mask+ ref_images.append(+ {+ "id": f"ip_adapter_{idx}",+ "isEnabled": True,+ "config": config_entry,+ }+ )+ return ref_images+++def _ref_image_dedup_key(entry: Any) -> Optional[tuple[Any, Any, Any]]:+ if not isinstance(entry, dict):+ return None+ cfg = entry.get("config")+ if not isinstance(cfg, dict):+ return None+ cfg_type = cfg.get("type")+ img = cfg.get("image")+ image_name = None+ if isinstance(img, dict):+ crop = img.get("crop")+ orig = img.get("original")+ if isinstance(crop, dict) and isinstance(crop.get("image"), dict):+ image_name = crop["image"].get("image_name")+ if not image_name and isinstance(orig, dict) and isinstance(orig.get("image"), dict):+ image_name = orig["image"].get("image_name")+ if not image_name:+ image_name = img.get("image_name")+ if not image_name:+ return None+ model = cfg.get("model")+ model_key = model.get("key") if isinstance(model, dict) else getattr(model, "key", None)+ return (cfg_type, image_name, model_key)+++def build_denoise_metadata(existing: Optional[MetadataField], updates: dict[str, Any]) -> MetadataField:+ """Build a new MetadataField by copying existing metadata and merging denoise updates without mutating input."""+ md: dict[str, Any] = {} if existing is None else existing.root.copy()+ existing_gen_mode = md.get("generation_mode")+ md.update(updates)+ if existing_gen_mode is not None and "generation_mode" in updates:+ md["generation_mode"] = existing_gen_mode++ # Denoise execution lists must be authoritative to the executing denoise node.+ authoritative_lists = ("loras", "controlnets", "t2iAdapters", "ref_images")+ for key in authoritative_lists:+ if key in updates:+ md[key] = updates[key]+ if key == "controlnets":+ md.pop("control_layers", None)+ elif key == "ref_images":+ md.pop("ipAdapters", None)++ md["app_version"] = __version__+ md.setdefault("metadata_version", CORE_METADATA_VERSION)+ return MetadataField.model_validate(md)@invocation(@@ -245,7 +730,7 @@ CORE_METADATA_VERSION = "1.2.0"title="Core Metadata",tags=["metadata"],category="metadata",- version="2.9.0",+ version="2.10.0",classification=Classification.Internal,)class CoreMetadataInvocation(BaseInvocation):@@ -261,7 +746,9 @@ class CoreMetadataInvocation(BaseInvocation):height: Optional[int] = InputField(default=None, description="The height parameter")seed: Optional[int] = InputField(default=None, description="The seed used for noise generation")rand_device: Optional[str] = InputField(default=None, description="The device used for random number generation")- cfg_scale: Optional[float] = InputField(default=None, description="The classifier-free guidance scale parameter")+ cfg_scale: Optional[float | list[float]] = InputField(+ default=None, description="The classifier-free guidance scale parameter (scalar or per-step schedule)"+ )cfg_rescale_multiplier: Optional[float] = InputField(default=None, description=FieldDescriptions.cfg_rescale_multiplier)diff --git a/invokeai/app/invocations/metadata_constants.py b/invokeai/app/invocations/metadata_constants.pynew file mode 100644index 0000000000..c279649c79--- /dev/null+++ b/invokeai/app/invocations/metadata_constants.py@@ -0,0 +1,245 @@+from enum import Enum+from typing import Literal++__all__ = [+ "CUSTOM_LABEL",+ "MetadataType",+ "CORE_METADATA_REGISTRY",+ "CORE_STRING_LABELS",+ "CORE_INTEGER_LABELS",+ "CORE_FLOAT_LABELS",+ "CORE_BOOL_LABELS",+ "CORE_SCHEDULER_LABELS",+ "CORE_MODEL_LABELS_TUPLE",+ "CORE_MAIN_MODEL_LABELS_TUPLE",+ "CORE_SDXL_MODEL_LABELS_TUPLE",+ "CORE_VAE_LABELS_TUPLE",+ "CORE_LABELS_TUPLE",+ "CORE_LABELS",+ "CORE_LABELS_STRING",+ "CORE_LABELS_INTEGER",+ "CORE_LABELS_FLOAT",+ "CORE_LABELS_BOOL",+ "CORE_LABELS_SCHEDULER",+ "CORE_LABELS_MODEL",+ "CORE_LABELS_MAIN_MODEL",+ "CORE_LABELS_SDXL_MODEL",+ "CORE_LABELS_VAE",+ "CORE_MODEL_LABELS",+]+++class MetadataType(str, Enum):+ """Element type for a metadata key; applies to both scalars ``T`` and ``list[T]`` collections+ (e.g. ``positive_prompts`` as ``STRING``, ``moss_image_uncond_skip_layers`` as ``INTEGER``, ``cfg_scale`` as ``FLOAT``).+ """++ STRING = "string"+ INTEGER = "integer"+ FLOAT = "float"+ BOOLEAN = "boolean"+ SCHEDULER = "scheduler"+ MODEL = "model"+ VAE = "vae"+++T = MetadataType++CUSTOM_LABEL: str = "* CUSTOM LABEL *"++# Single canonical registry of all core metadata keys and their allowed value types.+# Order is intentionally human-curated:+# 1. Primary generation keys (generation_mode, prompts, dimensions, seed, cfg, steps, scheduler, model, vae)+# 2. Common feature extensions and denoise parameters+# 3. Architecture-specific keys grouped alphabetically by model prefix+CORE_METADATA_REGISTRY: tuple[tuple[str, MetadataType | tuple[MetadataType, ...]], ...] = (+ # 1. Primary generation keys+ ("generation_mode", T.STRING),+ ("positive_prompt", T.STRING),+ ("positive_prompts", T.STRING),+ ("positive_style_prompt", T.STRING),+ ("negative_prompt", T.STRING),+ ("negative_prompts", T.STRING),+ ("negative_style_prompt", T.STRING),+ ("width", T.INTEGER),+ ("height", T.INTEGER),+ ("seed", T.INTEGER),+ ("rand_device", T.STRING),+ ("cfg_scale", T.FLOAT),+ ("cfg_rescale_multiplier", T.FLOAT),+ ("steps", T.INTEGER),+ ("scheduler", T.SCHEDULER),+ ("clip_skip", T.INTEGER),+ ("model", T.MODEL),+ ("vae", T.VAE),+ # 2. Common feature extensions and denoise parameters+ ("seamless_x", T.BOOLEAN),+ ("seamless_y", T.BOOLEAN),+ ("guidance", T.FLOAT),+ ("cfg_scale_start_step", T.INTEGER),+ ("cfg_scale_end_step", T.INTEGER),+ ("denoising_start", T.FLOAT),+ ("denoising_end", T.FLOAT),+ ("strength", T.FLOAT),+ ("init_image", T.STRING),+ ("add_noise", T.BOOLEAN),+ ("shift", T.FLOAT),+ ("dype_preset", T.STRING),+ ("dype_scale", T.FLOAT),+ ("dype_exponent", T.FLOAT),+ ("freeu_s1", T.FLOAT),+ ("freeu_s2", T.FLOAT),+ ("freeu_b1", T.FLOAT),+ ("freeu_b2", T.FLOAT),+ ("hidiffusion", T.BOOLEAN),+ ("hidiffusion_raunet", T.BOOLEAN),+ ("hidiffusion_window_attn", T.BOOLEAN),+ ("hidiffusion_auto_ratios", T.BOOLEAN),+ ("hidiffusion_t1_ratio", T.FLOAT),+ ("hidiffusion_t2_ratio", T.FLOAT),+ ("hrf_enabled", T.BOOLEAN),+ ("hrf_method", T.STRING),+ ("hrf_strength", T.FLOAT),+ ("refiner_model", T.MODEL),+ ("refiner_cfg_scale", T.FLOAT),+ ("refiner_steps", T.INTEGER),+ ("refiner_scheduler", T.SCHEDULER),+ ("refiner_positive_aesthetic_score", T.FLOAT),+ ("refiner_negative_aesthetic_score", T.FLOAT),+ ("refiner_start", T.FLOAT),+ ("pid_mode", T.STRING),+ ("pid_steps", T.INTEGER),+ ("pid_decoder", T.MODEL),+ ("gemma2_encoder", T.MODEL),+ ("tile_width", T.INTEGER),+ ("tile_height", T.INTEGER),+ ("tile_overlap", T.INTEGER),+ ("num_frames", T.INTEGER),+ ("fps", (T.INTEGER, T.FLOAT)),+ ("source_video_start_frame", T.INTEGER),+ ("source_video_end_frame", T.INTEGER),+ ("t5_encoder", T.MODEL),+ ("t5_encoder_model", T.MODEL),+ ("clip_embed_model", T.MODEL),+ ("clip_l_model", T.MODEL),+ ("clip_g_model", T.MODEL),+ ("mistral_encoder", T.MODEL),+ ("mistral_encoder_model", T.MODEL),+ ("qwen3_encoder", T.MODEL),+ ("qwen3_encoder_model", T.MODEL),+ ("qwen3_source", T.MODEL),+ ("qwen3_5_encoder", T.MODEL),+ ("qwen3_vl_encoder", T.MODEL),+ ("qwen3_vl_vision_tower", T.MODEL),+ ("qwen_vl_encoder", T.MODEL),+ ("glm_encoder", T.MODEL),+ # 3. Architecture-specific keys (grouped alphabetically by model prefix)+ # Anima+ ("anima_inpaint_adapter", T.MODEL),+ ("anima_inpaint_adapter_weight", T.FLOAT),+ # Flux+ ("flux3_caption", T.STRING),+ ("flux3_prompt_upsampler", T.MODEL),+ # Ideogram+ ("ideogram4_caption", T.STRING),+ ("ideogram4_color_palette", T.STRING),+ ("ideogram4_guidance_scale", T.FLOAT),+ ("ideogram4_mu", T.FLOAT),+ ("ideogram4_sampler_preset", T.STRING),+ ("ideogram4_steps", T.INTEGER),+ ("ideogram4_unconditional_model", T.MODEL),+ # Krea+ ("krea2_rebalance_enabled", T.BOOLEAN),+ ("krea2_rebalance_multiplier", T.FLOAT),+ ("krea2_rebalance_weights", T.STRING),+ ("krea2_reference_kv_cache", T.BOOLEAN),+ ("krea2_seed_variance_enabled", T.BOOLEAN),+ ("krea2_seed_variance_randomize_percent", T.INTEGER),+ ("krea2_seed_variance_strength", T.FLOAT),+ ("krea2_style_strength", T.FLOAT),+ # LTX-Video+ ("ltx2_audio_cfg_scale", T.FLOAT),+ ("ltx2_base_height", T.INTEGER),+ ("ltx2_base_width", T.INTEGER),+ ("ltx2_component_source", T.MODEL),+ ("ltx2_conditioning_role", T.STRING),+ ("ltx2_context_frames", T.INTEGER),+ ("ltx2_guidance_rescale", T.FLOAT),+ ("ltx2_modality_scale", T.FLOAT),+ ("ltx2_noise_scale", T.FLOAT),+ ("ltx2_schedule", T.STRING),+ ("ltx2_stg_scale", T.FLOAT),+ ("ltx2_text_encoder_model", T.MODEL),+ ("ltx2_two_stage", T.BOOLEAN),+ # MiniMax H3+ ("minimax_h3_component_source", T.MODEL),+ ("minimax_h3_hybrid_base_model", T.MODEL),+ ("minimax_h3_hybrid_start_block", T.INTEGER),+ ("minimax_h3_text_encoder_model", T.MODEL),+ ("minimax_h3_transformer_model", T.MODEL),+ # Moss Image+ ("moss_image_layout_prompt", T.STRING),+ ("moss_image_uncond_skip_layers", T.INTEGER),+ # Qwen Image+ ("qwen_image_2_1_prefix_kv_cache", T.BOOLEAN),+ ("qwen_image_component_source", T.MODEL),+ ("qwen_image_quantization", T.STRING),+ ("qwen_image_qwen_vl_encoder", T.MODEL),+ ("qwen_image_shift", (T.STRING, T.FLOAT)),+ ("qwen_image_vae", T.VAE),+ # Wan+ ("wan_component_source", T.MODEL),+ ("wan_guidance_scale_low_noise", T.FLOAT),+ ("wan_t5_encoder_model", T.MODEL),+ ("wan_transformer_low_noise", T.MODEL),+ # Z-Image+ ("z_image_seed_variance_enabled", T.BOOLEAN),+ ("z_image_seed_variance_randomize_percent", T.INTEGER),+ ("z_image_seed_variance_strength", T.FLOAT),+ ("z_image_shift", (T.STRING, T.FLOAT)),+)+++def _filter_labels(target: MetadataType) -> tuple[str, ...]:+ return tuple(+ label+ for label, types in CORE_METADATA_REGISTRY+ if types == target or (isinstance(types, tuple) and target in types)+ )+++CORE_STRING_LABELS: tuple[str, ...] = (CUSTOM_LABEL, *_filter_labels(T.STRING))+CORE_INTEGER_LABELS: tuple[str, ...] = (CUSTOM_LABEL, *_filter_labels(T.INTEGER))+CORE_FLOAT_LABELS: tuple[str, ...] = (CUSTOM_LABEL, *_filter_labels(T.FLOAT))+CORE_BOOL_LABELS: tuple[str, ...] = (CUSTOM_LABEL, *_filter_labels(T.BOOLEAN))+CORE_SCHEDULER_LABELS: tuple[str, ...] = (CUSTOM_LABEL, *_filter_labels(T.SCHEDULER))+CORE_MODEL_LABELS_TUPLE: tuple[str, ...] = (CUSTOM_LABEL, *_filter_labels(T.MODEL))+CORE_MAIN_MODEL_LABELS_TUPLE: tuple[str, ...] = (CUSTOM_LABEL, "model", "refiner_model")+CORE_SDXL_MODEL_LABELS_TUPLE: tuple[str, ...] = (CUSTOM_LABEL, "model")+CORE_VAE_LABELS_TUPLE: tuple[str, ...] = (CUSTOM_LABEL, *_filter_labels(T.VAE))++CORE_LABELS_TUPLE: tuple[str, ...] = (CUSTOM_LABEL, *(label for label, _ in CORE_METADATA_REGISTRY))++CORE_LABELS = Literal[CORE_LABELS_TUPLE]+CORE_LABELS_STRING = Literal[CORE_STRING_LABELS]+CORE_LABELS_INTEGER = Literal[CORE_INTEGER_LABELS]+CORE_LABELS_FLOAT = Literal[CORE_FLOAT_LABELS]+CORE_LABELS_BOOL = Literal[CORE_BOOL_LABELS]+CORE_LABELS_SCHEDULER = Literal[CORE_SCHEDULER_LABELS]+CORE_LABELS_MODEL = Literal[CORE_MODEL_LABELS_TUPLE]+CORE_LABELS_MAIN_MODEL = Literal[CORE_MAIN_MODEL_LABELS_TUPLE]+CORE_LABELS_SDXL_MODEL = Literal[CORE_SDXL_MODEL_LABELS_TUPLE]+CORE_LABELS_VAE = Literal[CORE_VAE_LABELS_TUPLE]++CORE_MODEL_LABELS: set[str] = {+ label+ for label, types in CORE_METADATA_REGISTRY+ if types in (T.MODEL, T.VAE) or (isinstance(types, tuple) and any(t in (T.MODEL, T.VAE) for t in types))+}++# Module-level sanity assertions+_all_labels = [label for label, _ in CORE_METADATA_REGISTRY]+assert len(_all_labels) == len(set(_all_labels)), "Duplicate label detected in CORE_METADATA_REGISTRY"+for _lbl, _t in CORE_METADATA_REGISTRY:+ _t_seq = _t if isinstance(_t, tuple) else (_t,)+ assert all(isinstance(x, MetadataType) for x in _t_seq), f"Invalid MetadataType in {_lbl}"diff --git a/invokeai/app/invocations/metadata_linked.py b/invokeai/app/invocations/metadata_linked.pyindex 59a694ff57..b6eea79192 100644--- a/invokeai/app/invocations/metadata_linked.py+++ b/invokeai/app/invocations/metadata_linked.py@@ -3,7 +3,7 @@# Thanks to @skunworkxdark for the original implementation!import copy-from typing import Any, Dict, Literal, Optional, TypeVar, Union+from typing import Any, Callable, Dict, Optional, TypeVar, Unionfrom pydantic import model_validator@@ -22,11 +22,50 @@ from invokeai.app.invocations.fields import (InputField,MetadataField,OutputField,+ TensorField,UIType,WithMetadata,)from invokeai.app.invocations.flux.flux_denoise import FluxDenoiseInvocation-from invokeai.app.invocations.metadata import LoRAMetadataField, MetadataOutput+from invokeai.app.invocations.metadata import (+ LatentsMetaOutput,+ MetadataOutput,+ build_denoise_metadata,+ unwrap_metadata_value,+)+from invokeai.app.invocations.metadata_constants import (+ CORE_LABELS as CORE_LABELS,+)+from invokeai.app.invocations.metadata_constants import (+ CORE_LABELS_BOOL as CORE_LABELS_BOOL,+)+from invokeai.app.invocations.metadata_constants import (+ CORE_LABELS_FLOAT as CORE_LABELS_FLOAT,+)+from invokeai.app.invocations.metadata_constants import (+ CORE_LABELS_INTEGER as CORE_LABELS_INTEGER,+)+from invokeai.app.invocations.metadata_constants import (+ CORE_LABELS_MAIN_MODEL as CORE_LABELS_MAIN_MODEL,+)+from invokeai.app.invocations.metadata_constants import (+ CORE_LABELS_MODEL as CORE_LABELS_MODEL,+)+from invokeai.app.invocations.metadata_constants import (+ CORE_LABELS_SCHEDULER as CORE_LABELS_SCHEDULER,+)+from invokeai.app.invocations.metadata_constants import (+ CORE_LABELS_SDXL_MODEL as CORE_LABELS_SDXL_MODEL,+)+from invokeai.app.invocations.metadata_constants import (+ CORE_LABELS_STRING as CORE_LABELS_STRING,+)+from invokeai.app.invocations.metadata_constants import (+ CORE_LABELS_VAE as CORE_LABELS_VAE,+)+from invokeai.app.invocations.metadata_constants import (+ CUSTOM_LABEL as CUSTOM_LABEL,+)from invokeai.app.invocations.model import (CLIPField,LoRAField,@@ -37,6 +76,7 @@ from invokeai.app.invocations.model import (UNetField,VAEField,VAEOutput,+ WanTransformerField,)from invokeai.app.invocations.primitives import (BooleanCollectionOutput,@@ -45,7 +85,6 @@ from invokeai.app.invocations.primitives import (FloatOutput,IntegerCollectionOutput,IntegerOutput,- LatentsOutput,StringCollectionOutput,StringOutput,)@@ -54,84 +93,20 @@ from invokeai.app.invocations.sd.controlnet import ControlField, ControlNetInvocfrom invokeai.app.invocations.sd.denoise_latents import DenoiseLatentsInvocationfrom invokeai.app.invocations.sd.ip_adapter import IPAdapterField, IPAdapterInvocationfrom invokeai.app.invocations.sd.t2i_adapter import T2IAdapterField, T2IAdapterInvocation+from invokeai.app.invocations.wan.wan_lora_loader import (+ WanLoRALoaderOutput,+ WanLoRATarget,+ _assert_is_wan_lora,+ _assert_lora_variant_matches_main,+ _correct_inert_low_routing,+ _resolve_target,+)from invokeai.app.invocations.z_image.z_image_denoise import ZImageDenoiseInvocationfrom invokeai.app.services.shared.invocation_context import InvocationContextfrom invokeai.backend.model_manager.taxonomy import BaseModelType, ModelType, SubModelTypefrom invokeai.backend.stable_diffusion.schedulers.schedulers import SCHEDULER_NAME_VALUESfrom invokeai.version import __version__-CUSTOM_LABEL: str = "* CUSTOM LABEL *"--CORE_LABELS = Literal[- f"{CUSTOM_LABEL}",- "positive_prompt",- "positive_style_prompt",- "negative_prompt",- "negative_style_prompt",- "width",- "height",- "seed",- "cfg_scale",- "cfg_rescale_multiplier",- "steps",- "scheduler",- "clip_skip",- "model",- "vae",- "seamless_x",- "seamless_y",- "guidance",- "cfg_scale_start_step",- "cfg_scale_end_step",-]--CORE_LABELS_STRING = Literal[- f"{CUSTOM_LABEL}",- "positive_prompt",- "positive_style_prompt",- "negative_prompt",- "negative_style_prompt",-]--CORE_LABELS_INTEGER = Literal[- f"{CUSTOM_LABEL}",- "width",- "height",- "seed",- "steps",- "clip_skip",- "cfg_scale_start_step",- "cfg_scale_end_step",-]--CORE_LABELS_FLOAT = Literal[- f"{CUSTOM_LABEL}",- "cfg_scale",- "cfg_rescale_multiplier",- "guidance",-]--CORE_LABELS_BOOL = Literal[- f"{CUSTOM_LABEL}",- "seamless_x",- "seamless_y",-]--CORE_LABELS_SCHEDULER = Literal[- f"{CUSTOM_LABEL}",- "scheduler",-]--CORE_LABELS_MODEL = Literal[- f"{CUSTOM_LABEL}",- "model",-]--CORE_LABELS_VAE = Literal[- f"{CUSTOM_LABEL}",- "vae",-]-T = TypeVar("T")@@ -210,18 +185,35 @@ def extract_model_key(Model key"""- if label in metadata:- if "key" in metadata[label]:- if context.models.exists(metadata[label]["key"]):- return metadata[label]["key"]- if "name" in metadata[label]:- search_model = context.models.search_by_attrs(name=metadata[label]["name"], type=model_type)- if len(search_model) > 0:- return search_model[0].key- if "model_name" in metadata[label]:- search_model = context.models.search_by_attrs(name=metadata[label]["model_name"], type=model_type)- if len(search_model) > 0:- return search_model[0].key+ if label in metadata and isinstance(metadata[label], dict):+ entry = metadata[label]+ if "key" in entry:+ key = entry["key"]+ if key is not None and context.models.exists(key):+ get_config = getattr(context.models, "get_config", None)+ if callable(get_config):+ cfg = get_config(key)+ cfg_type = getattr(cfg, "type", None)+ if isinstance(cfg_type, (ModelType, str)) and cfg_type != model_type:+ _warn(+ context,+ f"Metadata label '{label}' references model '{key}' of type '{cfg_type}', "+ f"expected '{model_type}'; ignoring key.",+ )+ else:+ return key+ else:+ return key+ search_by_attrs = getattr(context.models, "search_by_attrs", None)+ if callable(search_by_attrs):+ if "name" in entry:+ search_model = search_by_attrs(name=entry["name"], type=model_type)+ if len(search_model) > 0:+ return search_model[0].key+ if "model_name" in entry:+ search_model = search_by_attrs(name=entry["model_name"], type=model_type)+ if len(search_model) > 0:+ return search_model[0].keyreturn default_key@@ -252,7 +244,7 @@ def get_model(title="Metadata Item Linked",tags=["metadata"],category="metadata",- version="1.0.1",+ version="1.1.0",classification=Classification.Beta,)class MetadataItemLinkedInvocation(BaseInvocation, WithMetadata):@@ -272,12 +264,19 @@ class MetadataItemLinkedInvocation(BaseInvocation, WithMetadata):_validate_custom_label = model_validator(mode="after")(validate_custom_label)- def invoke(self, context: InvocationContext) -> MetadataOutput:- k = self.custom_label if self.label == CUSTOM_LABEL else self.label- v = self.value.vae if isinstance(self.value, VAEField) else self.value+ def _validate_invoke_fields(self) -> None:+ # Upstream optional output ports (e.g. anima_model_loader.qwen3_5_encoder or sd3_model_loader.t5_encoder)+ # resolve to None when the selected model omits that submodel; allow value=None and skip it in invoke().+ if "value" not in self.model_fields_set:+ super()._validate_invoke_fields()- data: Dict[str, Any] = {} if self.metadata is None else self.metadata.root- data.update({str(k): v})+ def invoke(self, context: InvocationContext) -> MetadataOutput:+ data: Dict[str, Any] = {} if self.metadata is None else dict(self.metadata.root)+ if self.value is not None:+ k = self.custom_label if self.label == CUSTOM_LABEL else self.label+ v = unwrap_metadata_value(self.value, label=k)+ if v is not None:+ data.update({str(k): v})data.update({"app_version": __version__})return MetadataOutput(metadata=MetadataField.model_validate(data))@@ -305,12 +304,96 @@ class MetadataFromImageInvocation(BaseInvocation):return MetadataOutput(metadata=MetadataField.model_validate(data))+def _coerce_str(val: Any) -> Optional[str]:+ if val is None or isinstance(val, (dict, list)):+ return None+ return str(val)+++def _coerce_int(val: Any) -> Optional[int]:+ if val is None or isinstance(val, bool):+ return None+ if isinstance(val, (int, float, str)):+ try:+ return int(val)+ except (ValueError, TypeError, OverflowError):+ return None+ return None+++def _coerce_float(val: Any) -> Optional[float]:+ if val is None or isinstance(val, bool):+ return None+ if isinstance(val, (int, float, str)):+ try:+ return float(val)+ except (ValueError, TypeError):+ return None+ return None+++def _coerce_bool(val: Any) -> Optional[bool]:+ if val is None:+ return None+ if isinstance(val, bool):+ return val+ if isinstance(val, (int, float)):+ return bool(val)+ if isinstance(val, str):+ lowered = val.strip().lower()+ if lowered in ("true", "1", "yes"):+ return True+ if lowered in ("false", "0", "no"):+ return False+ return None+++def _extract_scalar_metadata(+ metadata: Optional[MetadataField],+ label: str,+ custom_label: Optional[str],+ default_value: T,+ coerce: Callable[[Any], Optional[T]],+) -> T:+ data: Dict[str, Any] = {} if metadata is None else metadata.root+ raw = data.get(str(custom_label if label == CUSTOM_LABEL else label))+ if isinstance(raw, list):+ if not raw:+ return default_value+ raw = raw[0]+ coerced = coerce(raw)+ return default_value if coerced is None else coerced+++def _extract_collection_metadata(+ metadata: Optional[MetadataField],+ label: str,+ custom_label: Optional[str],+ default_value: list[T],+ coerce: Callable[[Any], Optional[T]],+) -> list[T]:+ data: Dict[str, Any] = {} if metadata is None else metadata.root+ raw = data.get(str(custom_label if label == CUSTOM_LABEL else label))+ if raw is None:+ return default_value+ if isinstance(raw, list):+ result: list[T] = []+ for item in raw:+ coerced = coerce(item)+ if coerced is None:+ return default_value+ result.append(coerced)+ return result+ coerced = coerce(raw)+ return default_value if coerced is None else [coerced]++@invocation("metadata_to_string",title="Metadata To String",tags=["metadata"],category="metadata",- version="1.0.0",+ version="1.1.0",classification=Classification.Beta,)class MetadataToStringInvocation(BaseInvocation, WithMetadata):@@ -331,10 +414,11 @@ class MetadataToStringInvocation(BaseInvocation, WithMetadata):_validate_custom_label = model_validator(mode="after")(validate_custom_label)def invoke(self, context: InvocationContext) -> StringOutput:- data: Dict[str, Any] = {} if self.metadata is None else self.metadata.root- output = data.get(str(self.custom_label if self.label == CUSTOM_LABEL else self.label), self.default_value)-- return StringOutput(value=str(output))+ return StringOutput(+ value=_extract_scalar_metadata(+ self.metadata, self.label, self.custom_label, self.default_value, _coerce_str+ )+ )@invocation(@@ -342,7 +426,7 @@ class MetadataToStringInvocation(BaseInvocation, WithMetadata):title="Metadata To Integer",tags=["metadata"],category="metadata",- version="1.0.0",+ version="1.1.0",classification=Classification.Beta,)class MetadataToIntegerInvocation(BaseInvocation, WithMetadata):@@ -363,10 +447,11 @@ class MetadataToIntegerInvocation(BaseInvocation, WithMetadata):_validate_custom_label = model_validator(mode="after")(validate_custom_label)def invoke(self, context: InvocationContext) -> IntegerOutput:- data: Dict[str, Any] = {} if self.metadata is None else self.metadata.root- output = data.get(str(self.custom_label if self.label == CUSTOM_LABEL else self.label), self.default_value)-- return IntegerOutput(value=int(output))+ return IntegerOutput(+ value=_extract_scalar_metadata(+ self.metadata, self.label, self.custom_label, self.default_value, _coerce_int+ )+ )@invocation(@@ -374,7 +459,7 @@ class MetadataToIntegerInvocation(BaseInvocation, WithMetadata):title="Metadata To Float",tags=["metadata"],category="metadata",- version="1.1.0",+ version="1.2.0",classification=Classification.Beta,)class MetadataToFloatInvocation(BaseInvocation, WithMetadata):@@ -395,10 +480,11 @@ class MetadataToFloatInvocation(BaseInvocation, WithMetadata):_validate_custom_label = model_validator(mode="after")(validate_custom_label)def invoke(self, context: InvocationContext) -> FloatOutput:- data: Dict[str, Any] = {} if self.metadata is None else self.metadata.root- output = data.get(str(self.custom_label if self.label == CUSTOM_LABEL else self.label), self.default_value)-- return FloatOutput(value=float(output))+ return FloatOutput(+ value=_extract_scalar_metadata(+ self.metadata, self.label, self.custom_label, self.default_value, _coerce_float+ )+ )@invocation(@@ -406,7 +492,7 @@ class MetadataToFloatInvocation(BaseInvocation, WithMetadata):title="Metadata To Bool",tags=["metadata"],category="metadata",- version="1.0.0",+ version="1.1.0",classification=Classification.Beta,)class MetadataToBoolInvocation(BaseInvocation, WithMetadata):@@ -427,10 +513,11 @@ class MetadataToBoolInvocation(BaseInvocation, WithMetadata):_validate_custom_label = model_validator(mode="after")(validate_custom_label)def invoke(self, context: InvocationContext) -> BooleanOutput:- data: Dict[str, Any] = {} if self.metadata is None else self.metadata.root- output = data.get(str(self.custom_label if self.label == CUSTOM_LABEL else self.label), self.default_value)-- return BooleanOutput(value=bool(output))+ return BooleanOutput(+ value=_extract_scalar_metadata(+ self.metadata, self.label, self.custom_label, self.default_value, _coerce_bool+ )+ )@invocation(@@ -438,7 +525,7 @@ class MetadataToBoolInvocation(BaseInvocation, WithMetadata):title="Metadata To Scheduler",tags=["metadata"],category="metadata",- version="1.0.1",+ version="1.1.0",classification=Classification.Beta,)class MetadataToSchedulerInvocation(BaseInvocation, WithMetadata):@@ -503,13 +590,13 @@ class MetadataToSDXLModelOutput(BaseInvocationOutput):title="Metadata To Model",tags=["metadata"],category="metadata",- version="1.3.0",+ version="1.4.0",classification=Classification.Beta,)class MetadataToModelInvocation(BaseInvocation, WithMetadata):"""Extracts a Model value of a label from metadata"""- label: CORE_LABELS_MODEL = InputField(+ label: CORE_LABELS_MAIN_MODEL = InputField(default="model",description=FieldDescriptions.metadata_item_label,input=Input.Direct,@@ -557,13 +644,13 @@ class MetadataToModelInvocation(BaseInvocation, WithMetadata):title="Metadata To SDXL Model",tags=["metadata"],category="metadata",- version="1.3.0",+ version="1.4.0",classification=Classification.Beta,)class MetadataToSDXLModelInvocation(BaseInvocation, WithMetadata):"""Extracts a SDXL Model value of a label from metadata"""- label: CORE_LABELS_MODEL = InputField(+ label: CORE_LABELS_SDXL_MODEL = InputField(default="model",description=FieldDescriptions.metadata_item_label,input=Input.Direct,@@ -614,80 +701,24 @@ class MetadataToSDXLModelInvocation(BaseInvocation, WithMetadata):)-@invocation_output("latents_meta_output")-class LatentsMetaOutput(LatentsOutput, MetadataOutput):- """Latents + metadata"""--@invocation("denoise_latents_meta",title=f"{DenoiseLatentsInvocation.UIConfig.title} + Metadata",tags=["latents", "denoise", "txt2img", "t2i", "t2l", "img2img", "i2i", "l2l"],category="metadata",- version="1.4.0",+ version="1.6.0",+ classification=Classification.Deprecated,)-class DenoiseLatentsMetaInvocation(DenoiseLatentsInvocation, WithMetadata):+class DenoiseLatentsMetaInvocation(DenoiseLatentsInvocation):def invoke(self, context: InvocationContext) -> LatentsMetaOutput:- def _to_json(obj: Union[Any, list[Any]]):- if not isinstance(obj, list):- obj = [obj]-- return [- item.model_dump(exclude_none=True, exclude={"id", "type", "is_intermediate", "use_cache"})- for item in obj- ]-- def _loras_to_json(obj: Union[Any, list[Any]]):- if not isinstance(obj, list):- obj = [obj]-- output: list[dict[str, Any]] = []- for item in obj:- output.append(- LoRAMetadataField(- model=item.lora,- weight=item.weight,- ).model_dump(exclude_none=True, exclude={"id", "type", "is_intermediate", "use_cache"})- )- return output-obj = super().invoke(context)-- md: Dict[str, Any] = {} if self.metadata is None else self.metadata.root- md.update({"width": obj.width})- md.update({"height": obj.height})- md.update({"steps": self.steps})- md.update({"cfg_scale": self.cfg_scale})- md.update({"cfg_rescale_multiplier": self.cfg_rescale_multiplier})- md.update({"denoising_start": self.denoising_start})- md.update({"denoising_end": self.denoising_end})- md.update({"scheduler": self.scheduler})- md.update({"model": self.unet.unet})- md.update({"hidiffusion": self.hidiffusion})- md.update({"hidiffusion_raunet": self.hidiffusion_raunet})- md.update({"hidiffusion_window_attn": self.hidiffusion_window_attn})- md.update({"hidiffusion_auto_ratios": self.hidiffusion_auto_ratios})- md.update({"hidiffusion_t1_ratio": None if self.hidiffusion_auto_ratios else self.hidiffusion_t1_ratio})- md.update({"hidiffusion_t2_ratio": None if self.hidiffusion_auto_ratios else self.hidiffusion_t2_ratio})- if isinstance(self.control, ControlField) or (isinstance(self.control, list) and len(self.control) > 0):- md.update({"controlnets": _to_json(self.control)})- if isinstance(self.ip_adapter, IPAdapterField) or (- isinstance(self.ip_adapter, list) and len(self.ip_adapter) > 0- ):- md.update({"ipAdapters": _to_json(self.ip_adapter)})- if isinstance(self.t2i_adapter, T2IAdapterField) or (- isinstance(self.t2i_adapter, list) and len(self.t2i_adapter) > 0- ):- md.update({"t2iAdapters": _to_json(self.t2i_adapter)})- if len(self.unet.loras) > 0:- md.update({"loras": _loras_to_json(self.unet.loras)})- if self.noise is not None:- md.update({"seed": self.noise.seed})-- params = obj.__dict__.copy()- del params["type"]-- return LatentsMetaOutput(**params, metadata=MetadataField.model_validate(md))+ metadata = getattr(obj, "metadata", None) or self._build_metadata(obj.width, obj.height)+ return LatentsMetaOutput(+ latents=obj.latents,+ width=obj.width,+ height=obj.height,+ metadata=metadata,+ )@invocation(@@ -695,53 +726,21 @@ class DenoiseLatentsMetaInvocation(DenoiseLatentsInvocation, WithMetadata):title=f"{FluxDenoiseInvocation.UIConfig.title} + Metadata",tags=["flux", "latents", "denoise", "txt2img", "t2i", "t2l", "img2img", "i2i", "l2l"],category="metadata",- version="1.0.1",+ version="1.2.0",+ classification=Classification.Deprecated,)-class FluxDenoiseLatentsMetaInvocation(FluxDenoiseInvocation, WithMetadata):+class FluxDenoiseLatentsMetaInvocation(FluxDenoiseInvocation):"""Run denoising process with a FLUX transformer model + metadata."""def invoke(self, context: InvocationContext) -> LatentsMetaOutput:- def _loras_to_json(obj: Union[Any, list[Any]]):- if not isinstance(obj, list):- obj = [obj]-- output: list[dict[str, Any]] = []- for item in obj:- output.append(- LoRAMetadataField(- model=item.lora,- weight=item.weight,- ).model_dump(exclude_none=True, exclude={"id", "type", "is_intermediate", "use_cache"})- )- return output-obj = super().invoke(context)-- md: Dict[str, Any] = {} if self.metadata is None else self.metadata.root- md.update({"width": obj.width})- md.update({"height": obj.height})- md.update({"steps": self.num_steps})- md.update({"guidance": self.guidance})- md.update({"denoising_start": self.denoising_start})- md.update({"denoising_end": self.denoising_end})- md.update({"model": self.transformer.transformer})- md.update(- {- "seed": self.noise.seed- if self.noise is not None and self.noise.seed is not None and (self.latents is None or self.add_noise)- else self.seed- }+ metadata = getattr(obj, "metadata", None) or self._build_metadata()+ return LatentsMetaOutput(+ latents=obj.latents,+ width=obj.width,+ height=obj.height,+ metadata=metadata,)- md.update({"cfg_scale": self.cfg_scale})- md.update({"cfg_scale_start_step": self.cfg_scale_start_step})- md.update({"cfg_scale_end_step": self.cfg_scale_end_step})- if len(self.transformer.loras) > 0:- md.update({"loras": _loras_to_json(self.transformer.loras)})-- params = obj.__dict__.copy()- del params["type"]-- return LatentsMetaOutput(**params, metadata=MetadataField.model_validate(md))@invocation(@@ -749,51 +748,21 @@ class FluxDenoiseLatentsMetaInvocation(FluxDenoiseInvocation, WithMetadata):title=f"{ZImageDenoiseInvocation.UIConfig.title} + Metadata",tags=["z-image", "latents", "denoise", "txt2img", "t2i", "t2l", "img2img", "i2i", "l2l"],category="metadata",- version="1.1.0",+ version="1.2.0",+ classification=Classification.Deprecated,)-class ZImageDenoiseMetaInvocation(ZImageDenoiseInvocation, WithMetadata):+class ZImageDenoiseMetaInvocation(ZImageDenoiseInvocation):"""Run denoising process with a Z-Image transformer model + metadata."""def invoke(self, context: InvocationContext) -> LatentsMetaOutput:- def _loras_to_json(obj: Union[Any, list[Any]]):- if not isinstance(obj, list):- obj = [obj]-- output: list[dict[str, Any]] = []- for item in obj:- output.append(- LoRAMetadataField(- model=item.lora,- weight=item.weight,- ).model_dump(exclude_none=True, exclude={"id", "type", "is_intermediate", "use_cache"})- )- return output-obj = super().invoke(context)-- md: Dict[str, Any] = {} if self.metadata is None else self.metadata.root- md.update({"width": obj.width})- md.update({"height": obj.height})- md.update({"steps": self.steps})- md.update({"guidance": self.guidance_scale})- md.update({"denoising_start": self.denoising_start})- md.update({"denoising_end": self.denoising_end})- md.update({"scheduler": self.scheduler})- md.update({"model": self.transformer.transformer})- md.update(- {- "seed": self.noise.seed- if self.noise is not None and self.noise.seed is not None and (self.latents is None or self.add_noise)- else self.seed- }+ metadata = getattr(obj, "metadata", None) or self._build_metadata()+ return LatentsMetaOutput(+ latents=obj.latents,+ width=obj.width,+ height=obj.height,+ metadata=metadata,)- if len(self.transformer.loras) > 0:- md.update({"loras": _loras_to_json(self.transformer.loras)})-- params = obj.__dict__.copy()- del params["type"]-- return LatentsMetaOutput(**params, metadata=MetadataField.model_validate(md))@invocation(@@ -801,10 +770,10 @@ class ZImageDenoiseMetaInvocation(ZImageDenoiseInvocation, WithMetadata):title=f"{AnimaDenoiseInvocation.UIConfig.title} + Metadata",tags=["anima", "latents", "denoise", "txt2img", "t2i", "t2l", "img2img", "i2i", "l2l"],category="metadata",- version="1.1.0",- classification=Classification.Prototype,+ version="1.2.0",+ classification=Classification.Deprecated,)-class AnimaDenoiseMetaInvocation(AnimaDenoiseInvocation, WithMetadata):+class AnimaDenoiseMetaInvocation(AnimaDenoiseInvocation):"""Run denoising process with an Anima transformer model + metadata."""# Anima loads its VAE and text encoder as standalone models, so - unlike SD/FLUX, where they come out of@@ -825,51 +794,21 @@ class AnimaDenoiseMetaInvocation(AnimaDenoiseInvocation, WithMetadata):)def invoke(self, context: InvocationContext) -> LatentsMetaOutput:- def _loras_to_json(obj: Union[Any, list[Any]]):- if not isinstance(obj, list):- obj = [obj]-- output: list[dict[str, Any]] = []- for item in obj:- output.append(- LoRAMetadataField(- model=item.lora,- weight=item.weight,- ).model_dump(exclude_none=True, exclude={"id", "type", "is_intermediate", "use_cache"})- )- return output-obj = super().invoke(context)-- md: Dict[str, Any] = {} if self.metadata is None else self.metadata.root- md.update({"width": obj.width})- md.update({"height": obj.height})- md.update({"steps": self.steps})- # Anima's CFG value is recorded as `cfg_scale`, matching what the Anima graph builder writes and what- # the UI's CFGScale recall handler reads - not as `guidance`, which is FLUX's guidance-embeds scale.- md.update({"cfg_scale": self.guidance_scale})- md.update({"denoising_start": self.denoising_start})- md.update({"denoising_end": self.denoising_end})- md.update({"scheduler": self.scheduler})- md.update({"model": self.transformer.transformer})- md.update(- {- "seed": self.noise.seed- if self.noise is not None and self.noise.seed is not None and (self.latents is None or self.add_noise)- else self.seed- }- )+ metadata = getattr(obj, "metadata", None) or self._build_metadata()+ extra: dict[str, Any] = {}if self.vae is not None:- md.update({"vae": self.vae.vae})+ extra["vae"] = self.vae.vaeif self.qwen3_encoder is not None:- md.update({"qwen3_encoder": self.qwen3_encoder.text_encoder})- if len(self.transformer.loras) > 0:- md.update({"loras": _loras_to_json(self.transformer.loras)})-- params = obj.__dict__.copy()- del params["type"]-- return LatentsMetaOutput(**params, metadata=MetadataField.model_validate(md))+ extra["qwen3_encoder"] = self.qwen3_encoder.text_encoder+ if extra:+ metadata = build_denoise_metadata(metadata, extra)+ return LatentsMetaOutput(+ latents=obj.latents,+ width=obj.width,+ height=obj.height,+ metadata=metadata,+ )@invocation(@@ -877,7 +816,7 @@ class AnimaDenoiseMetaInvocation(AnimaDenoiseInvocation, WithMetadata):title="Metadata To VAE",tags=["metadata"],category="metadata",- version="1.2.1",+ version="1.3.0",classification=Classification.Beta,)class MetadataToVAEInvocation(BaseInvocation, WithMetadata):@@ -1135,6 +1074,371 @@ class MetadataToSDXLLorasInvocation(BaseInvocation, WithMetadata):return output+@invocation(+ "metadata_to_wan_loras",+ title="Metadata To Wan LoRAs",+ tags=["metadata", "wan"],+ category="metadata",+ version="1.0.0",+ classification=Classification.Beta,+)+class MetadataToWanLorasInvocation(BaseInvocation, WithMetadata):+ """Extracts Wan 2.2 LoRAs from metadata and applies them to a Wan transformer"""++ transformer: Optional[WanTransformerField] = InputField(+ default=None,+ description=FieldDescriptions.transformer,+ input=Input.Connection,+ title="Wan Transformer",+ )+ custom_label: str = InputField(+ default="loras",+ description=FieldDescriptions.metadata_item_label,+ input=Input.Direct,+ )++ def invoke(self, context: InvocationContext) -> WanLoRALoaderOutput:+ if self.transformer is None:+ return WanLoRALoaderOutput()++ output_transformer = self.transformer.model_copy(deep=True)+ metadata = {} if self.metadata is None else self.metadata.root+ key = self.custom_label.strip() or "loras"+ raw_loras = metadata.get(key) or []+ if not raw_loras or not isinstance(raw_loras, list):+ return WanLoRALoaderOutput(transformer=output_transformer)++ main_config = context.models.get_config(self.transformer.transformer)++ for entry in raw_loras:+ if not isinstance(entry, dict):+ _warn(context, f"Skipping invalid Wan LoRA metadata entry: {entry}")+ continue+ model_key = extract_model_key(entry, "model", "", ModelType.LoRA, context) or extract_model_key(+ entry, "lora", "", ModelType.LoRA, context+ )+ if not model_key or not context.models.exists(model_key):+ _warn(context, f"Could not resolve Wan LoRA model from metadata: {entry}")+ continue++ lora_config = context.models.get_config(model_key)+ _assert_is_wan_lora(lora_config, model_key)+ _assert_lora_variant_matches_main(lora_config, main_config, model_key)+ lora_model = ModelIdentifierField.from_config(lora_config)++ raw_target = entry.get("target")+ target: WanLoRATarget = raw_target if raw_target in ("high", "low", "both") else "auto"+ lora_expert = getattr(lora_config, "expert", None)+ to_primary, to_low_noise = _resolve_target(target, lora_expert)+ to_primary, to_low_noise = _correct_inert_low_routing(+ context, main_config, model_key, to_primary, to_low_noise+ )++ if "weight" in entry:+ parsed_high_weight = _coerce_float(entry["weight"])+ if parsed_high_weight is None:+ _warn(context, f"Invalid weight {entry['weight']!r} for Wan LoRA '{model_key}'; skipping entry.")+ continue+ high_weight = parsed_high_weight+ else:+ high_weight = 1.0++ low_weight_raw = entry.get("low_noise_weight")+ low_weight = high_weight+ if low_weight_raw is not None and (target == "both" or (to_primary and to_low_noise)):+ parsed_low_weight = _coerce_float(low_weight_raw)+ if parsed_low_weight is None:+ _warn(+ context,+ f"Invalid low_noise_weight {low_weight_raw!r} for Wan LoRA '{model_key}'; "+ f"falling back to weight {high_weight}.",+ )+ else:+ low_weight = parsed_low_weight++ if to_primary and not any(item.lora.key == model_key for item in output_transformer.loras):+ output_transformer.loras.append(LoRAField(lora=lora_model, weight=high_weight))+ if to_low_noise and not any(item.lora.key == model_key for item in output_transformer.loras_low_noise):+ output_transformer.loras_low_noise.append(LoRAField(lora=lora_model, weight=low_weight))++ return WanLoRALoaderOutput(transformer=output_transformer)+++def _resolve_ref_image_field(img_container: Any) -> Optional[dict[str, Any]]:+ if isinstance(img_container, dict):+ crop = img_container.get("crop")+ if isinstance(crop, dict) and isinstance(crop.get("image"), dict) and crop["image"].get("image_name"):+ return {"image_name": crop["image"]["image_name"]}+ orig = img_container.get("original")+ if isinstance(orig, dict) and isinstance(orig.get("image"), dict) and orig["image"].get("image_name"):+ return {"image_name": orig["image"]["image_name"]}+ if img_container.get("image_name"):+ return {"image_name": img_container["image_name"]}+ return None+++def _warn(context: InvocationContext, msg: str) -> None:+ logger = getattr(context, "logger", None)+ if logger is not None:+ logger.warning(msg)+++def _extract_canvas_control_layer_image(entity: dict[str, Any]) -> Optional[dict[str, Any]]:+ for obj in entity.get("objects") or []:+ if isinstance(obj, dict) and obj.get("type") == "image":+ obj_img = obj.get("image")+ if isinstance(obj_img, dict) and obj_img.get("image_name"):+ return {"image_name": obj_img["image_name"]}+ if obj.get("image_name"):+ return {"image_name": obj["image_name"]}+ return None+++def _extract_controlnets_from_metadata(data: dict[str, Any]) -> list[dict[str, Any]]:+ result: list[dict[str, Any]] = []+ if "controlnets" in data:+ for item in data.get("controlnets") or []:+ if not isinstance(item, dict):+ continue+ img = item.get("image") or ({"image_name": item["image_name"]} if item.get("image_name") else None)+ if img is None or ("control_model" not in item and "model" not in item):+ continue+ normalized = dict(item)+ normalized["image"] = img+ result.append(normalized)+ return result+ if not result:+ raw_control_layers = data.get("control_layers")+ if isinstance(raw_control_layers, list):+ for item in raw_control_layers:+ if not isinstance(item, dict) or item.get("type") != "controlnet":+ continue+ img = (+ item.get("processed_image")+ or item.get("image")+ or ({"image_name": item["image_name"]} if item.get("image_name") else None)+ )+ model = item.get("control_model") or item.get("model")+ if img is None or not model:+ continue+ result.append(+ {+ "image": img,+ "control_model": model,+ "control_weight": item.get("control_weight", item.get("weight", 1.0)),+ "begin_step_percent": item.get("begin_step_percent", 0.0),+ "end_step_percent": item.get("end_step_percent", 1.0),+ "control_mode": item.get("control_mode", "balanced"),+ "resize_mode": item.get("resize_mode", "just_resize"),+ }+ )+ if not result:+ canvas_v2 = data.get("canvas_v2_metadata")+ control_layers = canvas_v2.get("controlLayers") if isinstance(canvas_v2, dict) else None+ entities = (+ control_layers+ if isinstance(control_layers, list)+ else (control_layers.get("entities", []) if isinstance(control_layers, dict) else [])+ )+ for entity in entities:+ if not isinstance(entity, dict) or entity.get("isEnabled", True) is False:+ continue+ adapter = entity.get("controlAdapter")+ if not isinstance(adapter, dict) or adapter.get("type") != "controlnet":+ continue+ model = adapter.get("model")+ img = _extract_canvas_control_layer_image(entity)+ if not model or img is None:+ continue+ begin_end = adapter.get("beginEndStepPct") or [0.0, 1.0]+ result.append(+ {+ "image": img,+ "control_model": model,+ "control_weight": adapter.get("weight", 1.0),+ "begin_step_percent": begin_end[0] if len(begin_end) > 0 else 0.0,+ "end_step_percent": begin_end[1] if len(begin_end) > 1 else 1.0,+ "control_mode": adapter.get("controlMode", "balanced"),+ "resize_mode": "just_resize",+ }+ )+ return result+++def _extract_ip_adapters_from_metadata(data: dict[str, Any]) -> list[dict[str, Any]]:+ result: list[dict[str, Any]] = []+ if "ref_images" in data:+ ref_images = data.get("ref_images")+ if isinstance(ref_images, list):+ for entry in ref_images:+ if not isinstance(entry, dict) or entry.get("isEnabled", True) is False:+ continue+ cfg = entry.get("config")+ if not isinstance(cfg, dict) or cfg.get("type") != "ip_adapter":+ continue+ img = _resolve_ref_image_field(cfg.get("image"))+ model = cfg.get("model")+ if img is None or not model:+ continue+ begin_end = cfg.get("beginEndStepPct") or [0.0, 1.0]+ raw_weight = cfg.get("weight", 1.0)+ if isinstance(raw_weight, (list, tuple)):+ weight: Union[float, list[float]] = [float(w) for w in raw_weight]+ else:+ weight = float(raw_weight)+ res_entry: dict[str, Any] = {+ "image": img,+ "ip_adapter_model": model,+ "weight": weight,+ "begin_step_percent": begin_end[0] if len(begin_end) > 0 else 0.0,+ "end_step_percent": begin_end[1] if len(begin_end) > 1 else 1.0,+ "clip_vision_model": cfg.get("clipVisionModel", "ViT-H"),+ "method": cfg.get("method", "full"),+ }+ if cfg.get("mask") is not None:+ res_entry["mask"] = cfg["mask"]+ result.append(res_entry)+ return result+ if not result:+ canvas_v2 = data.get("canvas_v2_metadata")+ ref_imgs = canvas_v2.get("referenceImages") if isinstance(canvas_v2, dict) else None+ entities = (+ ref_imgs+ if isinstance(ref_imgs, list)+ else (ref_imgs.get("entities", []) if isinstance(ref_imgs, dict) else [])+ )+ for entity in entities:+ if not isinstance(entity, dict) or entity.get("isEnabled", True) is False:+ continue+ ipa_cfg = entity.get("ipAdapter") or entity.get("config")+ if not isinstance(ipa_cfg, dict):+ continue+ if "type" in ipa_cfg and ipa_cfg.get("type") != "ip_adapter":+ continue+ img = _resolve_ref_image_field(ipa_cfg.get("image"))+ model = ipa_cfg.get("model")+ if img is None or not model:+ continue+ begin_end = ipa_cfg.get("beginEndStepPct") or [0.0, 1.0]+ raw_weight = ipa_cfg.get("weight", 1.0)+ if isinstance(raw_weight, (list, tuple)):+ weight: Union[float, list[float]] = [float(w) for w in raw_weight]+ else:+ weight = float(raw_weight)+ entry = {+ "image": img,+ "ip_adapter_model": model,+ "weight": weight,+ "begin_step_percent": begin_end[0] if len(begin_end) > 0 else 0.0,+ "end_step_percent": begin_end[1] if len(begin_end) > 1 else 1.0,+ "clip_vision_model": ipa_cfg.get("clipVisionModel", "ViT-H"),+ "method": ipa_cfg.get("method", "full"),+ }+ if ipa_cfg.get("mask") is not None:+ entry["mask"] = ipa_cfg["mask"]+ result.append(entry)+ if not result:+ for x in data.get("ipAdapters") or []:+ if not isinstance(x, dict):+ continue+ raw_img = x.get("image")+ if raw_img is None:+ continue+ img_list = raw_img if isinstance(raw_img, list) else [raw_img]+ cvm = x.get("clip_vision_model") or x.get("clipVisionModel")+ if cvm not in ("ViT-H", "ViT-G", "ViT-L"):+ enc = x.get("image_encoder_model")+ enc_name = str(enc.get("name", "") if isinstance(enc, dict) else getattr(enc, "name", "")).lower()+ if "vit-l" in enc_name or "large" in enc_name:+ cvm = "ViT-L"+ elif "sdxl" in enc_name or "vit-g" in enc_name:+ cvm = "ViT-G"+ else:+ cvm = "ViT-H"+ raw_weight = x.get("weight", 1.0)+ if isinstance(raw_weight, (list, tuple)):+ weight: Union[float, list[float]] = [float(w) for w in raw_weight]+ else:+ weight = float(raw_weight)+ for img in img_list:+ normalized = dict(x)+ normalized["image"] = img+ normalized["weight"] = weight+ normalized["clip_vision_model"] = cvm+ normalized["method"] = x.get("method") or "full"+ result.append(normalized)+ return result+++def _extract_t2i_adapters_from_metadata(data: dict[str, Any]) -> list[dict[str, Any]]:+ result: list[dict[str, Any]] = []+ if "t2iAdapters" in data:+ for item in data.get("t2iAdapters") or []:+ if not isinstance(item, dict):+ continue+ img = item.get("image") or ({"image_name": item["image_name"]} if item.get("image_name") else None)+ if img is None or ("t2i_adapter_model" not in item and "model" not in item):+ continue+ normalized = dict(item)+ normalized["image"] = img+ result.append(normalized)+ return result+ if not result:+ raw_control_layers = data.get("control_layers")+ if isinstance(raw_control_layers, list):+ for item in raw_control_layers:+ if not isinstance(item, dict) or item.get("type") != "t2i_adapter":+ continue+ img = (+ item.get("processed_image")+ or item.get("image")+ or ({"image_name": item["image_name"]} if item.get("image_name") else None)+ )+ model = item.get("t2i_adapter_model") or item.get("model")+ if img is None or not model:+ continue+ result.append(+ {+ "image": img,+ "t2i_adapter_model": model,+ "weight": item.get("weight", 1.0),+ "begin_step_percent": item.get("begin_step_percent", 0.0),+ "end_step_percent": item.get("end_step_percent", 1.0),+ "resize_mode": item.get("resize_mode", "just_resize"),+ }+ )+ if not result:+ canvas_v2 = data.get("canvas_v2_metadata")+ control_layers = canvas_v2.get("controlLayers") if isinstance(canvas_v2, dict) else None+ entities = (+ control_layers+ if isinstance(control_layers, list)+ else (control_layers.get("entities", []) if isinstance(control_layers, dict) else [])+ )+ for entity in entities:+ if not isinstance(entity, dict) or entity.get("isEnabled", True) is False:+ continue+ adapter = entity.get("controlAdapter")+ if not isinstance(adapter, dict) or adapter.get("type") != "t2i_adapter":+ continue+ model = adapter.get("model")+ img = _extract_canvas_control_layer_image(entity)+ if not model or img is None:+ continue+ begin_end = adapter.get("beginEndStepPct") or [0.0, 1.0]+ result.append(+ {+ "image": img,+ "t2i_adapter_model": model,+ "weight": adapter.get("weight", 1.0),+ "begin_step_percent": begin_end[0] if len(begin_end) > 0 else 0.0,+ "end_step_percent": begin_end[1] if len(begin_end) > 1 else 1.0,+ "resize_mode": "just_resize",+ }+ )+ return result++@invocation_output("md_control_list_output")class MDControlListOutput(BaseInvocationOutput):# Outputs@@ -1149,7 +1453,7 @@ class MDControlListOutput(BaseInvocationOutput):title="Metadata To ControlNets",tags=["metadata"],category="metadata",- version="1.2.0",+ version="1.3.0",classification=Classification.Beta,)class MetadataToControlnetsInvocation(BaseInvocation, WithMetadata):@@ -1163,11 +1467,7 @@ class MetadataToControlnetsInvocation(BaseInvocation, WithMetadata):def invoke(self, context: InvocationContext) -> MDControlListOutput:data = {} if self.metadata is None else self.metadata.root- key = "controlnets"- if key in data:- md_controls = data[key]- else:- md_controls = []+ md_controls = _extract_controlnets_from_metadata(data)controls: Optional[Union[ControlField, list[ControlField]]]@@ -1177,17 +1477,33 @@ class MetadataToControlnetsInvocation(BaseInvocation, WithMetadata):controls = []for x in md_controls:- model_key = extract_model_key(x, "control_model", "", ModelType.ControlNet, context)- model = get_model(model_key, context)+ model_key = extract_model_key(x, "control_model", "", ModelType.ControlNet, context) or extract_model_key(+ x, "model", "", ModelType.ControlNet, context+ )+ if not model_key:+ _warn(context, f"Could not resolve ControlNet model from metadata: {x}")+ continue+ try:+ model = get_model(model_key, context)+ except Exception as e:+ _warn(context, f"Could not load ControlNet model '{model_key}': {e}")+ continue+ if model.base not in (+ BaseModelType.StableDiffusion1,+ BaseModelType.StableDiffusion2,+ BaseModelType.StableDiffusionXL,+ ):+ _warn(context, f"Unsupported ControlNet base model '{model.base}' for SD ControlNet")+ continuecn = ControlNetInvocation(image=x["image"],control_model=model,- control_weight=x["control_weight"],- begin_step_percent=x["begin_step_percent"],- end_step_percent=x["end_step_percent"],- control_mode=x["control_mode"],- resize_mode=x["resize_mode"],+ control_weight=x.get("control_weight", x.get("weight", 1.0)),+ begin_step_percent=x.get("begin_step_percent", 0.0),+ end_step_percent=x.get("end_step_percent", 1.0),+ control_mode=x.get("control_mode", "balanced"),+ resize_mode=x.get("resize_mode", "just_resize"),)i = cn.invoke(context)@@ -1209,7 +1525,7 @@ class MDIPAdapterListOutput(BaseInvocationOutput):title="Metadata To IP-Adapters",tags=["metadata"],category="metadata",- version="1.2.0",+ version="1.3.0",classification=Classification.Beta,)class MetadataToIPAdaptersInvocation(BaseInvocation, WithMetadata):@@ -1224,11 +1540,7 @@ class MetadataToIPAdaptersInvocation(BaseInvocation, WithMetadata):def invoke(self, context: InvocationContext) -> MDIPAdapterListOutput:data = {} if self.metadata is None else self.metadata.root- key = "ipAdapters"- if key in data:- md_adapters = data[key]- else:- md_adapters = []+ md_adapters = _extract_ip_adapters_from_metadata(data)adapters: Optional[Union[IPAdapterField, list[IPAdapterField]]]@@ -1238,17 +1550,42 @@ class MetadataToIPAdaptersInvocation(BaseInvocation, WithMetadata):adapters = []for x in md_adapters:- model_key = extract_model_key(x, "ip_adapter_model", "", ModelType.IPAdapter, context)- model = get_model(model_key, context)+ model_key = extract_model_key(x, "ip_adapter_model", "", ModelType.IPAdapter, context) or extract_model_key(+ x, "model", "", ModelType.IPAdapter, context+ )+ if not model_key:+ _warn(context, f"Could not resolve IP-Adapter model from metadata: {x}")+ continue+ try:+ model = get_model(model_key, context)+ except Exception as e:+ _warn(context, f"Could not load IP-Adapter model '{model_key}': {e}")+ continue+ if model.base not in (BaseModelType.StableDiffusion1, BaseModelType.StableDiffusionXL):+ _warn(context, f"Unsupported IP-Adapter base model '{model.base}' for SD IP-Adapter")+ continue++ raw_mask = x.get("mask")+ mask_field: Optional[TensorField] = None+ if raw_mask is not None:+ if isinstance(raw_mask, TensorField):+ mask_field = raw_mask+ elif isinstance(raw_mask, dict) and "tensor_name" in raw_mask:+ mask_field = TensorField.model_validate(raw_mask)ipa = IPAdapterInvocation(image=x["image"],ip_adapter_model=model,- weight=x["weight"],- begin_step_percent=x["begin_step_percent"],- end_step_percent=x["end_step_percent"],+ clip_vision_model=x.get("clip_vision_model", "ViT-H"),+ method=x.get("method", "full"),+ weight=x.get("weight", 1.0),+ begin_step_percent=x.get("begin_step_percent", 0.0),+ end_step_percent=x.get("end_step_percent", 1.0),+ mask=mask_field,)i = ipa.invoke(context)+ if mask_field is not None and getattr(i.ip_adapter, "mask", None) is None:+ i.ip_adapter.mask = mask_fieldadapters = append_list(IPAdapterField, i.ip_adapter, adapters)@@ -1268,7 +1605,7 @@ class MDT2IAdapterListOutput(BaseInvocationOutput):title="Metadata To T2I-Adapters",tags=["metadata"],category="metadata",- version="1.2.0",+ version="1.3.0",classification=Classification.Beta,)class MetadataToT2IAdaptersInvocation(BaseInvocation, WithMetadata):@@ -1283,11 +1620,7 @@ class MetadataToT2IAdaptersInvocation(BaseInvocation, WithMetadata):def invoke(self, context: InvocationContext) -> MDT2IAdapterListOutput:data = {} if self.metadata is None else self.metadata.root- key = "t2iAdapters"- if key in data:- md_adapters = data[key]- else:- md_adapters = []+ md_adapters = _extract_t2i_adapters_from_metadata(data)adapters: Optional[Union[T2IAdapterField, list[T2IAdapterField]]]@@ -1297,16 +1630,28 @@ class MetadataToT2IAdaptersInvocation(BaseInvocation, WithMetadata):adapters = []for x in md_adapters:- model_key = extract_model_key(x, "t2i_adapter_model", "", ModelType.T2IAdapter, context)- model = get_model(model_key, context)+ model_key = extract_model_key(+ x, "t2i_adapter_model", "", ModelType.T2IAdapter, context+ ) or extract_model_key(x, "model", "", ModelType.T2IAdapter, context)+ if not model_key:+ _warn(context, f"Could not resolve T2I-Adapter model from metadata: {x}")+ continue+ try:+ model = get_model(model_key, context)+ except Exception as e:+ _warn(context, f"Could not load T2I-Adapter model '{model_key}': {e}")+ continue+ if model.base not in (BaseModelType.StableDiffusion1, BaseModelType.StableDiffusionXL):+ _warn(context, f"Unsupported T2I-Adapter base model '{model.base}' for SD T2I-Adapter")+ continuet2i = T2IAdapterInvocation(image=x["image"],t2i_adapter_model=model,- weight=x["weight"],- begin_step_percent=x["begin_step_percent"],- end_step_percent=x["end_step_percent"],- resize_mode=x["resize_mode"],+ weight=x.get("weight", 1.0),+ begin_step_percent=x.get("begin_step_percent", 0.0),+ end_step_percent=x.get("end_step_percent", 1.0),+ resize_mode=x.get("resize_mode", "just_resize"),)i = t2i.invoke(context)@@ -1320,7 +1665,7 @@ class MetadataToT2IAdaptersInvocation(BaseInvocation, WithMetadata):title="Metadata To String Collection",tags=["metadata"],category="metadata",- version="1.0.0",+ version="1.1.0",classification=Classification.Beta,)class MetadataToStringCollectionInvocation(BaseInvocation, WithMetadata):@@ -1343,10 +1688,11 @@ class MetadataToStringCollectionInvocation(BaseInvocation, WithMetadata):_validate_custom_label = model_validator(mode="after")(validate_custom_label)def invoke(self, context: InvocationContext) -> StringCollectionOutput:- data: Dict[str, Any] = {} if self.metadata is None else self.metadata.root- output = data.get(str(self.custom_label if self.label == CUSTOM_LABEL else self.label), self.default_value)-- return StringCollectionOutput(collection=output)+ return StringCollectionOutput(+ collection=_extract_collection_metadata(+ self.metadata, self.label, self.custom_label, self.default_value, _coerce_str+ )+ )@invocation(@@ -1354,7 +1700,7 @@ class MetadataToStringCollectionInvocation(BaseInvocation, WithMetadata):title="Metadata To Integer Collection",tags=["metadata"],category="metadata",- version="1.0.0",+ version="1.1.0",classification=Classification.Beta,)class MetadataToIntegerCollectionInvocation(BaseInvocation, WithMetadata):@@ -1375,10 +1721,11 @@ class MetadataToIntegerCollectionInvocation(BaseInvocation, WithMetadata):_validate_custom_label = model_validator(mode="after")(validate_custom_label)def invoke(self, context: InvocationContext) -> IntegerCollectionOutput:- data: Dict[str, Any] = {} if self.metadata is None else self.metadata.root- output = data.get(str(self.custom_label if self.label == CUSTOM_LABEL else self.label), self.default_value)-- return IntegerCollectionOutput(collection=output)+ return IntegerCollectionOutput(+ collection=_extract_collection_metadata(+ self.metadata, self.label, self.custom_label, self.default_value, _coerce_int+ )+ )@invocation(@@ -1386,7 +1733,7 @@ class MetadataToIntegerCollectionInvocation(BaseInvocation, WithMetadata):title="Metadata To Float Collection",tags=["metadata"],category="metadata",- version="1.0.0",+ version="1.1.0",classification=Classification.Beta,)class MetadataToFloatCollectionInvocation(BaseInvocation, WithMetadata):@@ -1407,10 +1754,11 @@ class MetadataToFloatCollectionInvocation(BaseInvocation, WithMetadata):_validate_custom_label = model_validator(mode="after")(validate_custom_label)def invoke(self, context: InvocationContext) -> FloatCollectionOutput:- data: Dict[str, Any] = {} if self.metadata is None else self.metadata.root- output = data.get(str(self.custom_label if self.label == CUSTOM_LABEL else self.label), self.default_value)-- return FloatCollectionOutput(collection=output)+ return FloatCollectionOutput(+ collection=_extract_collection_metadata(+ self.metadata, self.label, self.custom_label, self.default_value, _coerce_float+ )+ )@invocation(@@ -1418,7 +1766,7 @@ class MetadataToFloatCollectionInvocation(BaseInvocation, WithMetadata):title="Metadata To Bool Collection",tags=["metadata"],category="metadata",- version="1.0.0",+ version="1.1.0",classification=Classification.Beta,)class MetadataToBoolCollectionInvocation(BaseInvocation, WithMetadata):@@ -1439,7 +1787,8 @@ class MetadataToBoolCollectionInvocation(BaseInvocation, WithMetadata):_validate_custom_label = model_validator(mode="after")(validate_custom_label)def invoke(self, context: InvocationContext) -> BooleanCollectionOutput:- data: Dict[str, Any] = {} if self.metadata is None else self.metadata.root- output = data.get(str(self.custom_label if self.label == CUSTOM_LABEL else self.label), self.default_value)-- return BooleanCollectionOutput(collection=output)+ return BooleanCollectionOutput(+ collection=_extract_collection_metadata(+ self.metadata, self.label, self.custom_label, self.default_value, _coerce_bool+ )+ )diff --git a/invokeai/app/invocations/minimax_h3/minimax_h3_denoise.py b/invokeai/app/invocations/minimax_h3/minimax_h3_denoise.pyindex 2be13c40f5..a5ac5186f9 100644--- a/invokeai/app/invocations/minimax_h3/minimax_h3_denoise.py+++ b/invokeai/app/invocations/minimax_h3/minimax_h3_denoise.py@@ -7,7 +7,7 @@ guidance-distilled: no negative prompt, no CFG, one forward per step."""from contextlib import ExitStack-from typing import Literal, get_args+from typing import Any, Literal, get_argsimport torchfrom PIL import Image@@ -15,7 +15,6 @@ from tqdm import tqdmfrom invokeai.app.invocations.baseinvocation import (BaseInvocation,- BaseInvocationOutput,Classification,invocation,invocation_output,@@ -25,10 +24,17 @@ from invokeai.app.invocations.fields import (Input,InputField,LatentsField,+ MetadataField,MiniMaxH3ConditioningField,MiniMaxH3FrameConditioningField,MiniMaxH3ReferenceConditioningField,OutputField,+ WithMetadata,+)+from invokeai.app.invocations.metadata import (+ MetadataOutput,+ build_denoise_metadata,+ serialize_lora_metadata,)from invokeai.app.invocations.model import MiniMaxH3TransformerFieldfrom invokeai.app.services.session_processor.session_processor_common import CanceledException@@ -117,7 +123,7 @@ MINIMAX_H3_NUM_FRAMES_LABELS: dict[str, str] = {@invocation_output("minimax_h3_denoise_output")-class MiniMaxH3DenoiseOutput(BaseInvocationOutput):+class MiniMaxH3DenoiseOutput(MetadataOutput):"""Joint video + audio latents from one MiniMax H3 denoise run."""video_latents: LatentsField = OutputField(description="5D video latents [1, 24, T_lat, H/16, W/16].")@@ -134,10 +140,10 @@ class MiniMaxH3DenoiseOutput(BaseInvocationOutput):title="Denoise - MiniMax H3",tags=["latents", "video", "audio", "minimax"],category="latents",- version="1.4.0",+ version="1.5.0",classification=Classification.Prototype,)-class MiniMaxH3DenoiseInvocation(BaseInvocation):+class MiniMaxH3DenoiseInvocation(BaseInvocation, WithMetadata):"""Run the MiniMax H3 joint audio-video denoising loop."""transformer: MiniMaxH3TransformerField = InputField(@@ -315,6 +321,47 @@ class MiniMaxH3DenoiseInvocation(BaseInvocation):device=device,)+ def _build_metadata(self) -> MetadataField:+ existing = getattr(self, "metadata", None)+ existing_mode = existing.root.get("generation_mode") if isinstance(existing, MetadataField) else None+ if int(self.num_frames) == 5:+ gen_mode = "minimax_h3_txt2img"+ elif existing_mode == "minimax_h3_extend_video":+ gen_mode = "minimax_h3_extend_video"+ elif getattr(self, "reference_conditioning", None) is not None:+ gen_mode = "minimax_h3_ref2v"+ elif getattr(self, "frame_conditioning", None) is not None:+ anchors = set(getattr(self.frame_conditioning, "keyframe_anchors", []) or [])+ if "first" in anchors and "last" in anchors:+ gen_mode = "minimax_h3_flf2v"+ elif "last" in anchors and "first" not in anchors:+ gen_mode = "minimax_h3_lf2v"+ else:+ gen_mode = "minimax_h3_i2v"+ else:+ gen_mode = "minimax_h3_t2v"+ updates: dict[str, Any] = {+ "generation_mode": gen_mode,+ "width": self.width,+ "height": self.height,+ "num_frames": int(self.num_frames),+ "fps": MINIMAX_H3_FPS,+ "steps": self.steps,+ "seed": self.seed,+ "model": (+ self.transformer.adaln_overlay.overlay+ if getattr(self.transformer, "adaln_overlay", None) is not None+ else self.transformer.transformer+ ),+ }+ if getattr(self.transformer, "adaln_overlay", None) is not None:+ updates["minimax_h3_hybrid_base_model"] = self.transformer.transformer+ updates["minimax_h3_hybrid_start_block"] = self.transformer.adaln_overlay.start_block++ updates["loras"] = serialize_lora_metadata(getattr(self.transformer, "loras", None))++ return build_denoise_metadata(getattr(self, "metadata", None), updates)+@torch.no_grad()def invoke(self, context: InvocationContext) -> MiniMaxH3DenoiseOutput:# The field is a choice list of grid-aligned strings; validate anyway so a hand-authored graph that@@ -609,6 +656,7 @@ class MiniMaxH3DenoiseInvocation(BaseInvocation):width=self.width,height=self.height,num_frames=num_frames,+ metadata=self._build_metadata(),)def _materialize_adaln_overlay(diff --git a/invokeai/app/invocations/moss_image/moss_image_denoise.py b/invokeai/app/invocations/moss_image/moss_image_denoise.pyindex 8b5e04dc6e..36a2d43fb9 100644--- a/invokeai/app/invocations/moss_image/moss_image_denoise.py+++ b/invokeai/app/invocations/moss_image/moss_image_denoise.py@@ -1,7 +1,7 @@import copyfrom collections.abc import Iteratorfrom contextlib import ExitStack-from typing import Optional+from typing import Any, Optionalimport torchimport torchvision.transforms as tv_transforms@@ -14,11 +14,17 @@ from invokeai.app.invocations.fields import (Input,InputField,LatentsField,+ MetadataField,MossImageConditioningField,+ WithMetadata,+)+from invokeai.app.invocations.metadata import (+ LatentsMetaOutput,+ build_denoise_metadata,+ serialize_lora_metadata,)from invokeai.app.invocations.model import TransformerField, VAEFieldfrom invokeai.app.invocations.moss_image.moss_image_lora_loader import require_moss_image_lora-from invokeai.app.invocations.primitives import LatentsOutputfrom invokeai.app.services.shared.invocation_context import InvocationContextfrom invokeai.backend.ernie_image.sampling_utils import patchify_latentsfrom invokeai.backend.model_manager.taxonomy import BaseModelType@@ -44,10 +50,10 @@ MOSS_IMAGE_RAW_LATENT_SCALE = 8title="Denoise - MOSS-Image",tags=["image", "moss_image", "moss-image"],category="image",- version="1.1.0",+ version="1.2.0",classification=Classification.Prototype,)-class MossImageDenoiseInvocation(BaseInvocation):+class MossImageDenoiseInvocation(BaseInvocation, WithMetadata):"""Run the MOSS-Image denoising loop.Takes and returns latents in the FLUX.2 VAE's raw layout, so the FLUX.2 VAE encode and decode nodes work on either@@ -93,11 +99,41 @@ class MossImageDenoiseInvocation(BaseInvocation):default=[22], description=FieldDescriptions.moss_image_uncond_skip_layers, title="Uncond Skip Layers")+ def _build_metadata(self) -> MetadataField:+ updates: dict[str, Any] = {+ "generation_mode": (+ "moss_image_inpaint"+ if getattr(self, "denoise_mask", None) is not None+ else ("moss_image_img2img" if getattr(self, "latents", None) is not None else "moss_image_txt2img")+ ),+ "width": self.width,+ "height": self.height,+ "steps": self.steps,+ "cfg_scale": self.cfg_scale,+ "denoising_start": self.denoising_start,+ "denoising_end": self.denoising_end,+ "seed": self.seed,+ "model": self.transformer.transformer,+ "moss_image_uncond_skip_layers": list(self.uncond_skip_layers),+ }+ if getattr(self, "vae", None) is not None:+ updates["vae"] = self.vae.vae+ updates["loras"] = serialize_lora_metadata(getattr(self.transformer, "loras", None))++ return build_denoise_metadata(getattr(self, "metadata", None), updates)+@torch.no_grad()- def invoke(self, context: InvocationContext) -> LatentsOutput:+ def invoke(self, context: InvocationContext) -> LatentsMetaOutput:latents = self._run_diffusion(context)name = context.tensors.save(tensor=latents)- return LatentsOutput.build(latents_name=name, latents=latents, seed=None)+ return LatentsMetaOutput.build(+ latents_name=name,+ latents=latents,+ seed=None,+ metadata=self._build_metadata(),+ width=self.width,+ height=self.height,+ )def _run_diffusion(self, context: InvocationContext) -> torch.Tensor:use_cfg = self.cfg_scale > 1.0diff --git a/invokeai/app/invocations/qwen_image/qwen_image_denoise.py b/invokeai/app/invocations/qwen_image/qwen_image_denoise.pyindex 93ac1d0c9e..1119eb19cd 100644--- a/invokeai/app/invocations/qwen_image/qwen_image_denoise.py+++ b/invokeai/app/invocations/qwen_image/qwen_image_denoise.py@@ -1,7 +1,7 @@import mathfrom contextlib import ExitStackfrom pathlib import Path-from typing import TYPE_CHECKING, Callable, ClassVar, Iterator, Optional, TypeAlias+from typing import TYPE_CHECKING, Any, Callable, ClassVar, Iterator, Optional, TypeAliasimport torchimport torchvision.transforms as tv_transforms@@ -19,12 +19,17 @@ from invokeai.app.invocations.fields import (Input,InputField,LatentsField,+ MetadataField,QwenImageConditioningField,- WithBoard,WithMetadata,)+from invokeai.app.invocations.metadata import (+ LatentsMetaOutput,+ build_denoise_metadata,+ serialize_adapter_metadata,+ serialize_lora_metadata,+)from invokeai.app.invocations.model import TransformerField, VAEField-from invokeai.app.invocations.primitives import LatentsOutputfrom invokeai.app.invocations.qwen_image.qwen_image_control import QwenImageControlFieldfrom invokeai.app.invocations.vae.qwen_image_image_to_latents import QwenImageImageToLatentsInvocationfrom invokeai.app.services.shared.invocation_context import InvocationContext@@ -79,10 +84,10 @@ ControlNet run beside it."""title="Denoise - Qwen Image",tags=["image", "qwen_image"],category="image",- version="1.1.1",+ version="1.2.0",classification=Classification.Prototype,)-class QwenImageDenoiseInvocation(BaseInvocation, WithMetadata, WithBoard):+class QwenImageDenoiseInvocation(BaseInvocation, WithMetadata):"""Run the denoising process with a Qwen Image model."""# If latents is provided, this means we are doing image-to-image.@@ -133,13 +138,46 @@ class QwenImageDenoiseInvocation(BaseInvocation, WithMetadata, WithBoard):input=Input.Connection,)+ def _build_metadata(self) -> MetadataField:+ updates: dict[str, Any] = {+ "generation_mode": (+ "qwen_image_inpaint"+ if getattr(self, "denoise_mask", None) is not None+ else ("qwen_image_img2img" if getattr(self, "latents", None) is not None else "qwen_image_txt2img")+ ),+ "width": self.width,+ "height": self.height,+ "steps": self.steps,+ "cfg_scale": self.cfg_scale,+ "denoising_start": self.denoising_start,+ "denoising_end": self.denoising_end,+ "seed": self.seed,+ "model": self.transformer.transformer,+ "qwen_image_shift": self.shift if self.shift is not None else "auto",+ }+ if self.vae is not None:+ updates["vae"] = self.vae.vae+ updates["qwen_image_vae"] = self.vae.vae++ updates["loras"] = serialize_lora_metadata(getattr(self.transformer, "loras", None))+ updates["controlnets"] = serialize_adapter_metadata(self.control)++ return build_denoise_metadata(getattr(self, "metadata", None), updates)+@torch.no_grad()- def invoke(self, context: InvocationContext) -> LatentsOutput:+ def invoke(self, context: InvocationContext) -> LatentsMetaOutput: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)+ return LatentsMetaOutput.build(+ latents_name=name,+ latents=latents,+ seed=None,+ metadata=self._build_metadata(),+ width=self.width,+ height=self.height,+ )@staticmethoddef _schedule(diff --git a/invokeai/app/invocations/qwen_image_2_1/qwen_image_2_1_denoise.py b/invokeai/app/invocations/qwen_image_2_1/qwen_image_2_1_denoise.pyindex 03525cfac9..024472f00f 100644--- a/invokeai/app/invocations/qwen_image_2_1/qwen_image_2_1_denoise.py+++ b/invokeai/app/invocations/qwen_image_2_1/qwen_image_2_1_denoise.py@@ -2,7 +2,7 @@ import itertoolsimport mathfrom collections.abc import Iteratorfrom contextlib import ExitStack-from typing import Optional+from typing import Any, Optionalimport torchimport torchvision.transforms as tv_transforms@@ -19,10 +19,13 @@ from invokeai.app.invocations.fields import (LatentsField,MetadataField,QwenImage21ConditioningField,- WithBoard,WithMetadata,)-from invokeai.app.invocations.metadata_linked import LatentsMetaOutput+from invokeai.app.invocations.metadata import (+ LatentsMetaOutput,+ build_denoise_metadata,+ serialize_lora_metadata,+)from invokeai.app.invocations.model import TransformerFieldfrom invokeai.app.services.shared.invocation_context import InvocationContextfrom invokeai.backend.flux.sampling_utils import clip_timestep_schedule_fractional@@ -201,10 +204,10 @@ def unpack_latents(latents: torch.Tensor, height: int, width: int) -> torch.Tenstitle="Denoise - Qwen-Image-2.1",tags=["image", "qwen_image_2_1", "qwen-image-2.1"],category="image",- version="1.2.0",+ version="1.3.0",classification=Classification.Prototype,)-class QwenImage21DenoiseInvocation(BaseInvocation, WithMetadata, WithBoard):+class QwenImage21DenoiseInvocation(BaseInvocation, WithMetadata):"""Run the denoising process with a Qwen-Image-2.1 model."""latents: Optional[LatentsField] = InputField(@@ -252,6 +255,30 @@ class QwenImage21DenoiseInvocation(BaseInvocation, WithMetadata, WithBoard):raise ValueError("cfg_scale values must be finite.")return value+ def _build_metadata(self, *, used_prefix_cache: Optional[bool] = None) -> MetadataField:+ updates: dict[str, Any] = {+ "generation_mode": (+ "qwen_image_2_1_inpaint"+ if getattr(self, "denoise_mask", None) is not None+ else (+ "qwen_image_2_1_img2img" if getattr(self, "latents", None) is not None else "qwen_image_2_1_txt2img"+ )+ ),+ "width": self.width,+ "height": self.height,+ "steps": self.steps,+ "cfg_scale": self.cfg_scale,+ "denoising_start": self.denoising_start,+ "denoising_end": self.denoising_end,+ "seed": self.seed,+ "model": self.transformer.transformer,+ }+ if used_prefix_cache is not None:+ updates[PREFIX_CACHE_METADATA_KEY] = used_prefix_cache+ updates["loras"] = serialize_lora_metadata(getattr(self.transformer, "loras", None))++ return build_denoise_metadata(getattr(self, "metadata", None), updates)+@torch.no_grad()def invoke(self, context: InvocationContext) -> LatentsMetaOutput:latents, used_prefix_cache = self._run_diffusion(context)@@ -259,14 +286,12 @@ class QwenImage21DenoiseInvocation(BaseInvocation, WithMetadata, WithBoard):# The two modes sample visibly differently in bf16, and which one runs depends on the card's memory: the# image's metadata has to say, or nothing tells why one graph and seed give another image on another card.# A graph routes this output to the node that saves the image.- metadata = dict(self.metadata.root) if self.metadata is not None else {}- metadata[PREFIX_CACHE_METADATA_KEY] = used_prefix_cache# `LatentsOutput.build` assumes 8x latents; these are 16x, so report the requested size directly.return LatentsMetaOutput(latents=LatentsField(latents_name=name, seed=self.seed),width=self.width,height=self.height,- metadata=MetadataField.model_validate(metadata),+ metadata=self._build_metadata(used_prefix_cache=used_prefix_cache),)def _load_conditioning(diff --git a/invokeai/app/invocations/sd/denoise_latents.py b/invokeai/app/invocations/sd/denoise_latents.pyindex 8aa5078980..af79920116 100644--- a/invokeai/app/invocations/sd/denoise_latents.py+++ b/invokeai/app/invocations/sd/denoise_latents.py@@ -29,10 +29,18 @@ from invokeai.app.invocations.fields import (Input,InputField,LatentsField,+ MetadataField,UIType,+ WithMetadata,+)+from invokeai.app.invocations.metadata import (+ LatentsMetaOutput,+ build_denoise_metadata,+ serialize_adapter_metadata,+ serialize_ip_adapter_ref_images,+ serialize_lora_metadata,)from invokeai.app.invocations.model import ModelIdentifierField, UNetField-from invokeai.app.invocations.primitives import LatentsOutputfrom invokeai.app.invocations.sd.controlnet import ControlFieldfrom invokeai.app.invocations.sd.ip_adapter import IPAdapterFieldfrom invokeai.app.invocations.sd.t2i_adapter import T2IAdapterField@@ -146,9 +154,9 @@ def get_scheduler(title="Denoise - SD1.5, SDXL",tags=["latents", "denoise", "txt2img", "t2i", "t2l", "img2img", "i2i", "l2l"],category="latents",- version="1.8.0",+ version="1.9.0",)-class DenoiseLatentsInvocation(BaseInvocation):+class DenoiseLatentsInvocation(BaseInvocation, WithMetadata):"""Denoises noisy latents to decodable images"""positive_conditioning: Union[ConditioningField, list[ConditioningField]] = InputField(@@ -932,7 +940,54 @@ class DenoiseLatentsInvocation(BaseInvocation):return seed, noise, latents- def invoke(self, context: InvocationContext) -> LatentsOutput:+ def _build_metadata(self, width: int, height: int, context: Optional[InvocationContext] = None) -> MetadataField:+ suffix = (+ "inpaint"+ if getattr(self, "denoise_mask", None) is not None+ else ("img2img" if getattr(self, "latents", None) is not None else "txt2img")+ )+ prefix = "sdxl_" if getattr(self.unet.unet, "base", None) == BaseModelType.StableDiffusionXL else ""+ updates: dict[str, Any] = {+ "generation_mode": f"{prefix}{suffix}",+ "width": width,+ "height": height,+ "cfg_scale": self.cfg_scale,+ "steps": self.steps,+ "scheduler": self.scheduler,+ "denoising_start": self.denoising_start,+ "denoising_end": self.denoising_end,+ "cfg_rescale_multiplier": self.cfg_rescale_multiplier,+ "model": self.unet.unet,+ "seamless_x": "x" in (getattr(self.unet, "seamless_axes", []) or []),+ "seamless_y": "y" in (getattr(self.unet, "seamless_axes", []) or []),+ "hidiffusion": self.hidiffusion,+ "hidiffusion_raunet": self.hidiffusion_raunet,+ "hidiffusion_window_attn": self.hidiffusion_window_attn,+ "hidiffusion_auto_ratios": self.hidiffusion_auto_ratios,+ "hidiffusion_t1_ratio": None if self.hidiffusion_auto_ratios else self.hidiffusion_t1_ratio,+ "hidiffusion_t2_ratio": None if self.hidiffusion_auto_ratios else self.hidiffusion_t2_ratio,+ }+ if getattr(self.unet, "freeu_config", None) is not None:+ updates["freeu_s1"] = self.unet.freeu_config.s1+ updates["freeu_s2"] = self.unet.freeu_config.s2+ updates["freeu_b1"] = self.unet.freeu_config.b1+ updates["freeu_b2"] = self.unet.freeu_config.b2++ updates["loras"] = serialize_lora_metadata(getattr(self.unet, "loras", None))+ updates["controlnets"] = serialize_adapter_metadata(self.control)+ updates["ref_images"] = serialize_ip_adapter_ref_images(+ getattr(self, "ip_adapter", None), context=context, default_width=width, default_height=height+ )+ updates["t2iAdapters"] = serialize_adapter_metadata(getattr(self, "t2i_adapter", None))++ if self.noise and self.noise.seed is not None:+ updates["seed"] = self.noise.seed+ elif self.latents and self.latents.seed is not None:+ updates["seed"] = self.latents.seed++ return build_denoise_metadata(getattr(self, "metadata", None), updates)++ def invoke(self, context: InvocationContext) -> LatentsMetaOutput:self.validate_hidiffusion_ratio_order()if os.environ.get("USE_MODULAR_DENOISE", False):return self._new_invoke(context)@@ -941,7 +996,7 @@ class DenoiseLatentsInvocation(BaseInvocation):@torch.no_grad()@SilenceWarnings() # This quenches the NSFW nag from diffusers.- def _new_invoke(self, context: InvocationContext) -> LatentsOutput:+ def _new_invoke(self, context: InvocationContext) -> LatentsMetaOutput:ext_manager = ExtensionsManager(is_canceled=context.util.is_canceled)device = TorchDevice.choose_torch_device()@@ -1110,11 +1165,20 @@ class DenoiseLatentsInvocation(BaseInvocation):TorchDevice.empty_cache()name = context.tensors.save(tensor=result_latents)- return LatentsOutput.build(latents_name=name, latents=result_latents, seed=None)+ width = result_latents.shape[-1] * LATENT_SCALE_FACTOR+ height = result_latents.shape[-2] * LATENT_SCALE_FACTOR+ return LatentsMetaOutput.build(+ latents_name=name,+ latents=result_latents,+ seed=None,+ metadata=self._build_metadata(width, height, context),+ width=width,+ height=height,+ )@torch.no_grad()@SilenceWarnings() # This quenches the NSFW nag from diffusers.- def _old_invoke(self, context: InvocationContext) -> LatentsOutput:+ def _old_invoke(self, context: InvocationContext) -> LatentsMetaOutput:device = TorchDevice.choose_torch_device()seed, noise, latents = self.prepare_noise_and_latents(context, self.noise, self.latents)@@ -1290,4 +1354,13 @@ class DenoiseLatentsInvocation(BaseInvocation):TorchDevice.empty_cache()name = context.tensors.save(tensor=result_latents)- return LatentsOutput.build(latents_name=name, latents=result_latents, seed=None)+ width = result_latents.shape[-1] * LATENT_SCALE_FACTOR+ height = result_latents.shape[-2] * LATENT_SCALE_FACTOR+ return LatentsMetaOutput.build(+ latents_name=name,+ latents=result_latents,+ seed=None,+ metadata=self._build_metadata(width, height, context),+ width=width,+ height=height,+ )diff --git a/invokeai/app/invocations/sd/tiled_multi_diffusion_denoise_latents.py b/invokeai/app/invocations/sd/tiled_multi_diffusion_denoise_latents.pyindex 0fd2f9a805..01cd119184 100644--- a/invokeai/app/invocations/sd/tiled_multi_diffusion_denoise_latents.py+++ b/invokeai/app/invocations/sd/tiled_multi_diffusion_denoise_latents.py@@ -1,6 +1,6 @@import copyfrom contextlib import ExitStack, nullcontext-from typing import Iterator+from typing import Any, Iterator, Optionalimport torchfrom diffusers.models.unets.unet_2d_condition import UNet2DConditionModel@@ -15,10 +15,18 @@ from invokeai.app.invocations.fields import (Input,InputField,LatentsField,+ MetadataField,UIType,+ WithMetadata,+)+from invokeai.app.invocations.metadata import (+ LatentsMetaOutput,+ build_denoise_metadata,+ serialize_adapter_metadata,+ serialize_ip_adapter_ref_images,+ serialize_lora_metadata,)from invokeai.app.invocations.model import UNetField-from invokeai.app.invocations.primitives import LatentsOutputfrom invokeai.app.invocations.sd.controlnet import ControlFieldfrom invokeai.app.invocations.sd.denoise_latents import DenoiseLatentsInvocation, get_schedulerfrom invokeai.app.services.shared.invocation_context import InvocationContext@@ -59,9 +67,9 @@ def crop_controlnet_data(control_data: ControlNetData, latent_region: TBLR) -> Ctitle="Tiled Multi-Diffusion Denoise - SD1.5, SDXL",tags=["upscale", "denoise"],category="latents",- version="1.0.1",+ version="1.1.0",)-class TiledMultiDiffusionDenoiseLatents(BaseInvocation):+class TiledMultiDiffusionDenoiseLatents(BaseInvocation, WithMetadata):"""Tiled Multi-Diffusion denoising.This node handles automatically tiling the input image, and is primarily intended for global refinement of images@@ -166,8 +174,51 @@ class TiledMultiDiffusionDenoiseLatents(BaseInvocation):requires_safety_checker=False,)+ def _build_metadata(self, width: int, height: int, context: Optional[InvocationContext] = None) -> MetadataField:+ suffix = (+ "inpaint"+ if getattr(self, "denoise_mask", None) is not None+ else ("img2img" if getattr(self, "latents", None) is not None else "txt2img")+ )+ prefix = "sdxl_" if getattr(self.unet.unet, "base", None) == BaseModelType.StableDiffusionXL else ""+ updates: dict[str, Any] = {+ "generation_mode": f"{prefix}{suffix}",+ "width": width,+ "height": height,+ "cfg_scale": self.cfg_scale,+ "steps": self.steps,+ "scheduler": self.scheduler,+ "denoising_start": self.denoising_start,+ "denoising_end": self.denoising_end,+ "cfg_rescale_multiplier": self.cfg_rescale_multiplier,+ "model": self.unet.unet,+ "seamless_x": "x" in (getattr(self.unet, "seamless_axes", []) or []),+ "seamless_y": "y" in (getattr(self.unet, "seamless_axes", []) or []),+ "tile_width": self.tile_width,+ "tile_height": self.tile_height,+ "tile_overlap": self.tile_overlap,+ }+ if getattr(self.unet, "freeu_config", None) is not None:+ updates["freeu_s1"] = self.unet.freeu_config.s1+ updates["freeu_s2"] = self.unet.freeu_config.s2+ updates["freeu_b1"] = self.unet.freeu_config.b1+ updates["freeu_b2"] = self.unet.freeu_config.b2++ updates["loras"] = serialize_lora_metadata(getattr(self.unet, "loras", None))+ updates["controlnets"] = serialize_adapter_metadata(self.control)+ updates["ref_images"] = serialize_ip_adapter_ref_images(+ getattr(self, "ip_adapter", None), context=context, default_width=width, default_height=height+ )++ if self.noise and self.noise.seed is not None:+ updates["seed"] = self.noise.seed+ elif self.latents and self.latents.seed is not None:+ updates["seed"] = self.latents.seed++ return build_denoise_metadata(getattr(self, "metadata", None), updates)+@torch.no_grad()- def invoke(self, context: InvocationContext) -> LatentsOutput:+ def invoke(self, context: InvocationContext) -> LatentsMetaOutput:# Convert tile image-space dimensions to latent-space dimensions.latent_tile_height = self.tile_height // LATENT_SCALE_FACTORlatent_tile_width = self.tile_width // LATENT_SCALE_FACTOR@@ -302,4 +353,13 @@ class TiledMultiDiffusionDenoiseLatents(BaseInvocation):TorchDevice.empty_cache()name = context.tensors.save(tensor=result_latents)- return LatentsOutput.build(latents_name=name, latents=result_latents, seed=None)+ width = result_latents.shape[-1] * LATENT_SCALE_FACTOR+ height = result_latents.shape[-2] * LATENT_SCALE_FACTOR+ return LatentsMetaOutput.build(+ latents_name=name,+ latents=result_latents,+ seed=None,+ metadata=self._build_metadata(width, height, context),+ width=width,+ height=height,+ )diff --git a/invokeai/app/invocations/sd3/sd3_denoise.py b/invokeai/app/invocations/sd3/sd3_denoise.pyindex e84064a3fd..db0e9403c4 100644--- a/invokeai/app/invocations/sd3/sd3_denoise.py+++ b/invokeai/app/invocations/sd3/sd3_denoise.py@@ -1,5 +1,5 @@from contextlib import ExitStack-from typing import Callable, Optional, Tuple+from typing import Any, Callable, Optional, Tupleimport torchimport torchvision.transforms as tv_transforms@@ -15,13 +15,17 @@ from invokeai.app.invocations.fields import (Input,InputField,LatentsField,+ MetadataField,SD3ConditioningField,- WithBoard,WithMetadata,)from invokeai.app.invocations.latent_noise import validate_noise_tensor_shape+from invokeai.app.invocations.metadata import (+ LatentsMetaOutput,+ build_denoise_metadata,+ serialize_lora_metadata,+)from invokeai.app.invocations.model import TransformerField-from invokeai.app.invocations.primitives import LatentsOutputfrom invokeai.app.invocations.text_encoder.sd3_text_encoder import SD3_T5_MAX_SEQ_LENfrom invokeai.app.services.shared.invocation_context import InvocationContextfrom invokeai.backend.flux.sampling_utils import clip_timestep_schedule_fractional@@ -116,9 +120,9 @@ def _delta_fits(layer: BaseLayerPatch, weight: torch.Tensor) -> bool:title="Denoise - SD3",tags=["image", "sd3"],category="latents",- version="1.3.0",+ version="1.4.0",)-class SD3DenoiseInvocation(BaseInvocation, WithMetadata, WithBoard):+class SD3DenoiseInvocation(BaseInvocation, WithMetadata):"""Run denoising process with a SD3 model."""# If latents is provided, this means we are doing image-to-image.@@ -149,13 +153,50 @@ class SD3DenoiseInvocation(BaseInvocation, WithMetadata, WithBoard):steps: int = InputField(default=10, gt=0, description=FieldDescriptions.steps)seed: int = InputField(default=0, description="Randomness seed for reproducibility.")+ def _build_metadata(self) -> MetadataField:+ updates: dict[str, Any] = {+ "generation_mode": (+ "sd3_inpaint"+ if getattr(self, "denoise_mask", None) is not None+ else ("sd3_img2img" if getattr(self, "latents", None) is not None else "sd3_txt2img")+ ),+ "width": self.width,+ "height": self.height,+ "steps": self.steps,+ "cfg_scale": self.cfg_scale,+ "denoising_start": self.denoising_start,+ "denoising_end": self.denoising_end,+ "model": self.transformer.transformer,+ }+ updates["loras"] = serialize_lora_metadata(getattr(self.transformer, "loras", None))++ if (+ self.noise is not None+ and self.noise.seed is not None+ and (self.latents is None or getattr(self, "add_noise", True))+ ):+ updates["seed"] = self.noise.seed+ elif self.seed is not None:+ updates["seed"] = self.seed+ elif self.latents and self.latents.seed is not None:+ updates["seed"] = self.latents.seed++ return build_denoise_metadata(getattr(self, "metadata", None), updates)+@torch.no_grad()- def invoke(self, context: InvocationContext) -> LatentsOutput:+ def invoke(self, context: InvocationContext) -> LatentsMetaOutput: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)+ return LatentsMetaOutput.build(+ latents_name=name,+ latents=latents,+ seed=None,+ metadata=self._build_metadata(),+ width=self.width,+ height=self.height,+ )def _prep_inpaint_mask(self, context: InvocationContext, latents: torch.Tensor) -> torch.Tensor | None:"""Prepare the inpaint mask.diff --git a/invokeai/app/invocations/wan/wan_denoise.py b/invokeai/app/invocations/wan/wan_denoise.pyindex 6468a8dae3..28fd7e005d 100644--- a/invokeai/app/invocations/wan/wan_denoise.py+++ b/invokeai/app/invocations/wan/wan_denoise.py@@ -38,11 +38,17 @@ from invokeai.app.invocations.fields import (Input,InputField,LatentsField,+ MetadataField,WanConditioningField,WanRefImageConditioningField,+ WithMetadata,+)+from invokeai.app.invocations.metadata import (+ LatentsMetaOutput,+ build_denoise_metadata,+ serialize_wan_lora_metadata,)from invokeai.app.invocations.model import LoRAField, WanTransformerField-from invokeai.app.invocations.primitives import LatentsOutputfrom invokeai.app.services.shared.invocation_context import InvocationContextfrom invokeai.backend.model_manager.taxonomy import BaseModelType, WanVariantTypefrom invokeai.backend.patches.layer_patcher import LayerPatcher, PatchSpec@@ -342,10 +348,10 @@ class _ExpertSwapper:title="Denoise - Wan 2.2",tags=["image", "wan"],category="image",- version="1.0.0",+ version="1.1.0",classification=Classification.Prototype,)-class WanDenoiseInvocation(BaseInvocation):+class WanDenoiseInvocation(BaseInvocation, WithMetadata):"""Run the denoising process with a Wan 2.2 model.Drives the flow-matching schedule the model ships with (UniPC with flow@@ -416,12 +422,49 @@ class WanDenoiseInvocation(BaseInvocation):steps: int = InputField(default=40, gt=0, description="Number of denoising steps.")seed: int = InputField(default=0, description="Randomness seed for reproducibility.")+ def _build_metadata(self) -> MetadataField:+ updates: dict[str, Any] = {+ "generation_mode": (+ "wan_inpaint"+ if getattr(self, "denoise_mask", None) is not None+ else ("wan_img2img" if getattr(self, "latents", None) is not None else "wan_txt2img")+ ),+ "width": self.width,+ "height": self.height,+ "steps": self.steps,+ "cfg_scale": self.guidance_scale,+ "guidance": self.guidance_scale,+ "denoising_start": self.denoising_start,+ "denoising_end": self.denoising_end,+ "add_noise": self.add_noise,+ "seed": self.seed,+ "model": self.transformer.transformer,+ }+ if self.guidance_scale_low_noise is not None and self.guidance_scale_low_noise >= 1.0:+ updates["wan_guidance_scale_low_noise"] = self.guidance_scale_low_noise+ if getattr(self.transformer, "transformer_low_noise", None) is not None:+ updates["wan_transformer_low_noise"] = self.transformer.transformer_low_noise++ updates["loras"] = serialize_wan_lora_metadata(+ getattr(self.transformer, "loras", None),+ getattr(self.transformer, "loras_low_noise", None),+ )++ return build_denoise_metadata(getattr(self, "metadata", None), updates)+@torch.no_grad()- def invoke(self, context: InvocationContext) -> LatentsOutput:+ def invoke(self, context: InvocationContext) -> LatentsMetaOutput: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)+ return LatentsMetaOutput.build(+ latents_name=name,+ latents=latents,+ seed=None,+ metadata=self._build_metadata(),+ width=self.width,+ height=self.height,+ )def _run_diffusion(self, context: InvocationContext) -> torch.Tensor:if self.denoising_start >= self.denoising_end:diff --git a/invokeai/app/invocations/wan/wan_video_denoise.py b/invokeai/app/invocations/wan/wan_video_denoise.pyindex 2f031f1158..9ad068364d 100644--- a/invokeai/app/invocations/wan/wan_video_denoise.py+++ b/invokeai/app/invocations/wan/wan_video_denoise.py@@ -12,7 +12,7 @@ LoRA iteration) live in ``wan_denoise`` and are imported here."""from contextlib import ExitStack-from typing import Callable, Iterable, Optional+from typing import Any, Callable, Iterable, Optionalimport torchfrom tqdm import tqdm@@ -22,11 +22,18 @@ from invokeai.app.invocations.fields import (FieldDescriptions,Input,InputField,+ LatentsField,+ MetadataField,WanConditioningField,WanRefImageConditioningField,+ WithMetadata,+)+from invokeai.app.invocations.metadata import (+ LatentsMetaOutput,+ build_denoise_metadata,+ serialize_wan_lora_metadata,)from invokeai.app.invocations.model import WanTransformerField-from invokeai.app.invocations.primitives import LatentsOutputfrom invokeai.app.invocations.wan.wan_denoise import (WAN_MAX_RESIDENT_TRANSFORMER_BYTES,WanDenoiseInvocation,@@ -72,10 +79,10 @@ PREVIEW_LATENT_WINDOW = 2title="Denoise Video - Wan 2.2",tags=["video", "wan"],category="latents",- version="1.0.0",+ version="1.1.0",classification=Classification.Prototype,)-class WanVideoDenoiseInvocation(BaseInvocation):+class WanVideoDenoiseInvocation(BaseInvocation, WithMetadata):"""Run the Wan 2.2 denoising loop on a multi-frame latent tensor.The output is a 5D ``[1, C, T_lat, H/8, W/8]`` latent tensor ready for@@ -152,8 +159,31 @@ class WanVideoDenoiseInvocation(BaseInvocation):steps: int = InputField(default=40, gt=0, description="Number of denoising steps.")seed: int = InputField(default=0, description="Randomness seed for reproducibility.")+ def _build_metadata(self) -> MetadataField:+ updates: dict[str, Any] = {+ "generation_mode": "wan_i2v" if getattr(self, "ref_image", None) is not None else "wan_t2v",+ "width": self.width,+ "height": self.height,+ "num_frames": self.num_frames,+ "steps": self.steps,+ "cfg_scale": self.guidance_scale,+ "seed": self.seed,+ "model": self.transformer.transformer,+ }+ if self.guidance_scale_low_noise is not None and self.guidance_scale_low_noise >= 1.0:+ updates["wan_guidance_scale_low_noise"] = self.guidance_scale_low_noise+ if getattr(self.transformer, "transformer_low_noise", None) is not None:+ updates["wan_transformer_low_noise"] = self.transformer.transformer_low_noise++ updates["loras"] = serialize_wan_lora_metadata(+ getattr(self.transformer, "loras", None),+ getattr(self.transformer, "loras_low_noise", None),+ )++ return build_denoise_metadata(getattr(self, "metadata", None), updates)+@torch.no_grad()- def invoke(self, context: InvocationContext) -> LatentsOutput:+ def invoke(self, context: InvocationContext) -> LatentsMetaOutput:latents = self._run_diffusion(context)# Keep the 5D shape (B, C, T, H, W) — wan_latents_to_video expects it.latents = latents.detach().to("cpu")@@ -161,12 +191,11 @@ class WanVideoDenoiseInvocation(BaseInvocation):# LatentsOutput.build uses latents.size()[3] / [2] for width / height.# For 5D the spatial dims are at indices 4 / 3 instead of 3 / 2, so we# call the constructor directly with the actual H/W from the inputs.- from invokeai.app.invocations.fields import LatentsField-- return LatentsOutput(+ return LatentsMetaOutput(latents=LatentsField(latents_name=name, seed=self.seed),width=self.width,height=self.height,+ metadata=self._build_metadata(),)def _run_diffusion(self, context: InvocationContext) -> torch.Tensor:diff --git a/invokeai/app/invocations/z_image/z_image_denoise.py b/invokeai/app/invocations/z_image/z_image_denoise.pyindex aa46e028ba..453112c1af 100644--- a/invokeai/app/invocations/z_image/z_image_denoise.py+++ b/invokeai/app/invocations/z_image/z_image_denoise.py@@ -1,6 +1,6 @@import mathfrom contextlib import ExitStack-from typing import Callable, Iterator, Optional+from typing import Any, Callable, Iterator, Optionalimport torchimport torchvision.transforms as tv_transforms@@ -17,11 +17,18 @@ from invokeai.app.invocations.fields import (Input,InputField,LatentsField,+ MetadataField,+ WithMetadata,ZImageConditioningField,)from invokeai.app.invocations.latent_noise import validate_noise_tensor_shape+from invokeai.app.invocations.metadata import (+ LatentsMetaOutput,+ build_denoise_metadata,+ serialize_adapter_metadata,+ serialize_lora_metadata,+)from invokeai.app.invocations.model import TransformerField, VAEField-from invokeai.app.invocations.primitives import LatentsOutputfrom invokeai.app.invocations.vae.z_image_image_to_latents import ZImageImageToLatentsInvocationfrom invokeai.app.invocations.z_image.z_image_control import ZImageControlFieldfrom invokeai.app.services.shared.invocation_context import InvocationContext@@ -69,10 +76,10 @@ Z_IMAGE_SHIFT_FIT = ShiftFit(base_seq_len=256, max_seq_len=4096, base_shift=0.5,title="Denoise - Z-Image",tags=["image", "z-image"],category="latents",- version="1.6.1",+ version="1.7.0",classification=Classification.Prototype,)-class ZImageDenoiseInvocation(BaseInvocation):+class ZImageDenoiseInvocation(BaseInvocation, WithMetadata):"""Run the denoising process with a Z-Image model.Supports regional prompting by connecting multiple conditioning inputs with masks.@@ -145,13 +152,58 @@ class ZImageDenoiseInvocation(BaseInvocation):ui_choice_labels=ZIMAGE_SCHEDULER_LABELS,)+ def _build_metadata(self) -> MetadataField:+ updates: dict[str, Any] = {+ "generation_mode": (+ "z_image_inpaint"+ if getattr(self, "denoise_mask", None) is not None+ else ("z_image_img2img" if getattr(self, "latents", None) is not None else "z_image_txt2img")+ ),+ "width": self.width,+ "height": self.height,+ "steps": self.steps,+ "cfg_scale": self.guidance_scale,+ "guidance": self.guidance_scale,+ "z_image_shift": self.shift if self.shift is not None else "auto",+ "scheduler": self.scheduler,+ "denoising_start": self.denoising_start,+ "denoising_end": self.denoising_end,+ "add_noise": self.add_noise,+ "model": self.transformer.transformer,+ }+ if self.vae is not None:+ updates["vae"] = self.vae.vae++ updates["loras"] = serialize_lora_metadata(getattr(self.transformer, "loras", None))+ updates["controlnets"] = serialize_adapter_metadata(self.control)++ if (+ self.noise is not None+ and self.noise.seed is not None+ and (self.latents is None or getattr(self, "add_noise", True))+ ):+ updates["seed"] = self.noise.seed+ elif self.seed is not None:+ updates["seed"] = self.seed+ elif self.latents and self.latents.seed is not None:+ updates["seed"] = self.latents.seed++ return build_denoise_metadata(getattr(self, "metadata", None), updates)+@torch.no_grad()- def invoke(self, context: InvocationContext) -> LatentsOutput:+ def invoke(self, context: InvocationContext) -> LatentsMetaOutput: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)+ return LatentsMetaOutput.build(+ latents_name=name,+ latents=latents,+ seed=None,+ metadata=self._build_metadata(),+ width=self.width,+ height=self.height,+ )def _prep_inpaint_mask(self, context: InvocationContext, latents: torch.Tensor) -> torch.Tensor | None:"""Prepare the inpaint mask."""diff --git a/invokeai/app/services/workflow_records/default_workflows/Audio to Video - LTX-2.json b/invokeai/app/services/workflow_records/default_workflows/Audio to Video - LTX-2.jsonindex e68121ce6b..a1fb4f9da9 100644--- a/invokeai/app/services/workflow_records/default_workflows/Audio to Video - LTX-2.json+++ b/invokeai/app/services/workflow_records/default_workflows/Audio to Video - LTX-2.json@@ -289,7 +289,7 @@"type": "invocation","data": {"id": "denoise_latents",- "version": "1.5.0",+ "version": "1.6.0","nodePack": "invokeai","label": "","notes": "The four guidance scales here are the released Dev recipe (CFG 3 arrives over an edge, Audio CFG 7, STG 1, modality 3). Each scale away from its off value (1, or 0 for STG) costs one extra model evaluation per step.",@@ -427,7 +427,7 @@"type": "invocation","data": {"id": "core_metadata",- "version": "2.9.0",+ "version": "2.10.0","nodePack": "invokeai","label": "","notes": "Recorded on the output. The prompt, seed, model, canvas, frame count, steps, CFG and frame rate arrive over edges from the nodes that set them. They are the requested values: on the Distilled checkpoint the run itself takes 8 unguided steps whatever Steps and CFG say.",diff --git a/invokeai/app/services/workflow_records/default_workflows/Extend Video - LTX-2.json b/invokeai/app/services/workflow_records/default_workflows/Extend Video - LTX-2.jsonindex 8035107d84..563caaee13 100644--- a/invokeai/app/services/workflow_records/default_workflows/Extend Video - LTX-2.json+++ b/invokeai/app/services/workflow_records/default_workflows/Extend Video - LTX-2.json@@ -235,7 +235,7 @@"type": "invocation","data": {"id": "denoise_latents",- "version": "1.5.0",+ "version": "1.6.0","nodePack": "invokeai","label": "","notes": "num_frames is the GENERATED clip's length and must exceed context_frames -- at or below it the output would be all replay. width/height must match the Extend Conditioning node's.",@@ -579,7 +579,7 @@"type": "invocation","data": {"id": "core_metadata",- "version": "2.9.0",+ "version": "2.10.0","nodePack": "invokeai","label": "","notes": "Recorded on the output. The prompt, seed, model, canvas, frame count and steps arrive over edges from the nodes that set them. The frame rate is recorded as 24 and CFG as 3 whatever the source and the Denoise node say: the join delivers the source's own frame rate, and edit this node if you change CFG.",diff --git a/invokeai/app/services/workflow_records/default_workflows/Extend Video - MiniMax H3.json b/invokeai/app/services/workflow_records/default_workflows/Extend Video - MiniMax H3.jsonindex 450aafe657..081492ccc1 100644--- a/invokeai/app/services/workflow_records/default_workflows/Extend Video - MiniMax H3.json+++ b/invokeai/app/services/workflow_records/default_workflows/Extend Video - MiniMax H3.json@@ -287,7 +287,7 @@"type": "invocation","data": {"id": "9d3b9faf-405b-7e6f-bf4d-5c6a7f8e9d04",- "version": "1.4.0",+ "version": "1.5.0","nodePack": "invokeai","label": "","notes": "",@@ -338,7 +338,7 @@"type": "invocation","data": {"id": "9e2b5033-4c5d-4e7f-a081-9c0d1e2f3a04",- "version": "2.9.0",+ "version": "2.10.0","nodePack": "invokeai","label": "Core Metadata","notes": "Everything except the generation mode arrives over an edge from the node that used the value, so the record cannot go stale.",diff --git a/invokeai/app/services/workflow_records/default_workflows/Extend Video - Wan 2.2 Lightning w_ Concept LoRAs.json b/invokeai/app/services/workflow_records/default_workflows/Extend Video - Wan 2.2 Lightning w_ Concept LoRAs.jsonindex dca5f9b4af..05e696e3ef 100644--- a/invokeai/app/services/workflow_records/default_workflows/Extend Video - Wan 2.2 Lightning w_ Concept LoRAs.json+++ b/invokeai/app/services/workflow_records/default_workflows/Extend Video - Wan 2.2 Lightning w_ Concept LoRAs.json@@ -221,7 +221,7 @@"type": "invocation","data": {"id": "4d3b9faf-c05b-7e6f-bf4d-5c6a7f8e9dab",- "version": "1.0.0",+ "version": "1.1.0","nodePack": "invokeai","label": "","notes": "",diff --git a/invokeai/app/services/workflow_records/default_workflows/Extend Video - Wan 2.2 Lightning.json b/invokeai/app/services/workflow_records/default_workflows/Extend Video - Wan 2.2 Lightning.jsonindex 78521df385..1a92dc6065 100644--- a/invokeai/app/services/workflow_records/default_workflows/Extend Video - Wan 2.2 Lightning.json+++ b/invokeai/app/services/workflow_records/default_workflows/Extend Video - Wan 2.2 Lightning.json@@ -221,7 +221,7 @@"type": "invocation","data": {"id": "4d3b9faf-c05b-7e6f-bf4d-5c6a7f8e9dab",- "version": "1.0.0",+ "version": "1.1.0","nodePack": "invokeai","label": "","notes": "",diff --git a/invokeai/app/services/workflow_records/default_workflows/Extend Video to Image - LTX-2.json b/invokeai/app/services/workflow_records/default_workflows/Extend Video to Image - LTX-2.jsonindex 4b14175122..0e2ee18e22 100644--- a/invokeai/app/services/workflow_records/default_workflows/Extend Video to Image - LTX-2.json+++ b/invokeai/app/services/workflow_records/default_workflows/Extend Video to Image - LTX-2.json@@ -239,7 +239,7 @@"type": "invocation","data": {"id": "denoise_latents",- "version": "1.5.0",+ "version": "1.6.0","nodePack": "invokeai","label": "","notes": "num_frames is the GENERATED clip's length and must exceed context_frames -- at or below it the output would be all replay. width/height must match the Extend Conditioning node's.",@@ -583,7 +583,7 @@"type": "invocation","data": {"id": "core_metadata",- "version": "2.9.0",+ "version": "2.10.0","nodePack": "invokeai","label": "","notes": "Recorded on the output. The prompt, seed, model, canvas, frame count and steps arrive over edges from the nodes that set them. The frame rate is recorded as 24 and CFG as 3 whatever the source and the Denoise node say: the join delivers the source's own frame rate, and edit this node if you change CFG.",diff --git a/invokeai/app/services/workflow_records/default_workflows/Extend Video to Image - Wan 2.2 Lightning.json b/invokeai/app/services/workflow_records/default_workflows/Extend Video to Image - Wan 2.2 Lightning.jsonindex e464845cbf..5cd00fa55f 100644--- a/invokeai/app/services/workflow_records/default_workflows/Extend Video to Image - Wan 2.2 Lightning.json+++ b/invokeai/app/services/workflow_records/default_workflows/Extend Video to Image - Wan 2.2 Lightning.json@@ -718,7 +718,7 @@"type": "invocation","data": {"id": "4d3b9faf-c05b-7e6f-bf4d-5c6a7f8e9dab",- "version": "1.0.0",+ "version": "1.1.0","nodePack": "invokeai","label": "","notes": "",diff --git a/invokeai/app/services/workflow_records/default_workflows/First Frame to Video - LTX-2.json b/invokeai/app/services/workflow_records/default_workflows/First Frame to Video - LTX-2.jsonindex ee67634681..d399ede28d 100644--- a/invokeai/app/services/workflow_records/default_workflows/First Frame to Video - LTX-2.json+++ b/invokeai/app/services/workflow_records/default_workflows/First Frame to Video - LTX-2.json@@ -285,7 +285,7 @@"type": "invocation","data": {"id": "denoise_latents",- "version": "1.5.0",+ "version": "1.6.0","nodePack": "invokeai","label": "","notes": "The four guidance scales here are the released Dev recipe (CFG 3 arrives over an edge, Audio CFG 7, STG 1, modality 3). Each scale away from its off value (1, or 0 for STG) costs one extra model evaluation per step.",@@ -423,7 +423,7 @@"type": "invocation","data": {"id": "core_metadata",- "version": "2.9.0",+ "version": "2.10.0","nodePack": "invokeai","label": "","notes": "Recorded on the output. The prompt, seed, model, canvas, frame count, steps, CFG and frame rate arrive over edges from the nodes that set them. They are the requested values: on the Distilled checkpoint the run itself takes 8 unguided steps whatever Steps and CFG say.",diff --git a/invokeai/app/services/workflow_records/default_workflows/First Frame to Video - MiniMax H3.json b/invokeai/app/services/workflow_records/default_workflows/First Frame to Video - MiniMax H3.jsonindex f581adfada..94ee4b997d 100644--- a/invokeai/app/services/workflow_records/default_workflows/First Frame to Video - MiniMax H3.json+++ b/invokeai/app/services/workflow_records/default_workflows/First Frame to Video - MiniMax H3.json@@ -279,7 +279,7 @@"type": "invocation","data": {"id": "9d3b9faf-405b-7e6f-bf4d-5c6a7f8e9d04",- "version": "1.4.0",+ "version": "1.5.0","nodePack": "invokeai","label": "","notes": "",@@ -330,7 +330,7 @@"type": "invocation","data": {"id": "9e2b5033-4c5d-4e7f-a081-9c0d1e2f3a04",- "version": "2.9.0",+ "version": "2.10.0","nodePack": "invokeai","label": "Core Metadata","notes": "Everything except the generation mode arrives over an edge from the node that used the value, so the record cannot go stale.",diff --git a/invokeai/app/services/workflow_records/default_workflows/First and Last Frame to Video - LTX-2.json b/invokeai/app/services/workflow_records/default_workflows/First and Last Frame to Video - LTX-2.jsonindex 8db2f95398..9010af49a3 100644--- a/invokeai/app/services/workflow_records/default_workflows/First and Last Frame to Video - LTX-2.json+++ b/invokeai/app/services/workflow_records/default_workflows/First and Last Frame to Video - LTX-2.json@@ -289,7 +289,7 @@"type": "invocation","data": {"id": "denoise_latents",- "version": "1.5.0",+ "version": "1.6.0","nodePack": "invokeai","label": "","notes": "The four guidance scales here are the released Dev recipe (CFG 3 arrives over an edge, Audio CFG 7, STG 1, modality 3). Each scale away from its off value (1, or 0 for STG) costs one extra model evaluation per step.",@@ -427,7 +427,7 @@"type": "invocation","data": {"id": "core_metadata",- "version": "2.9.0",+ "version": "2.10.0","nodePack": "invokeai","label": "","notes": "Recorded on the output. The prompt, seed, model, canvas, frame count, steps, CFG and frame rate arrive over edges from the nodes that set them. They are the requested values: on the Distilled checkpoint the run itself takes 8 unguided steps whatever Steps and CFG say.",diff --git a/invokeai/app/services/workflow_records/default_workflows/First and Last Frame to Video - MiniMax H3.json b/invokeai/app/services/workflow_records/default_workflows/First and Last Frame to Video - MiniMax H3.jsonindex 52bb8db2bf..5bbcf7bb6b 100644--- a/invokeai/app/services/workflow_records/default_workflows/First and Last Frame to Video - MiniMax H3.json+++ b/invokeai/app/services/workflow_records/default_workflows/First and Last Frame to Video - MiniMax H3.json@@ -283,7 +283,7 @@"type": "invocation","data": {"id": "9d3b9faf-405b-7e6f-bf4d-5c6a7f8e9d04",- "version": "1.4.0",+ "version": "1.5.0","nodePack": "invokeai","label": "","notes": "",@@ -334,7 +334,7 @@"type": "invocation","data": {"id": "9e2b5033-4c5d-4e7f-a081-9c0d1e2f3a04",- "version": "2.9.0",+ "version": "2.10.0","nodePack": "invokeai","label": "Core Metadata","notes": "Everything except the generation mode arrives over an edge from the node that used the value, so the record cannot go stale.",diff --git a/invokeai/app/services/workflow_records/default_workflows/Image to Video - Wan 2.2 Lightning w_ Concept LoRAs.json b/invokeai/app/services/workflow_records/default_workflows/Image to Video - Wan 2.2 Lightning w_ Concept LoRAs.jsonindex 4257150ed8..0549c9f5ce 100644--- a/invokeai/app/services/workflow_records/default_workflows/Image to Video - Wan 2.2 Lightning w_ Concept LoRAs.json+++ b/invokeai/app/services/workflow_records/default_workflows/Image to Video - Wan 2.2 Lightning w_ Concept LoRAs.json@@ -221,7 +221,7 @@"type": "invocation","data": {"id": "4d3b9faf-c05b-7e6f-bf4d-5c6a7f8e9dab",- "version": "1.0.0",+ "version": "1.1.0","nodePack": "invokeai","label": "","notes": "",diff --git a/invokeai/app/services/workflow_records/default_workflows/Image to Video - Wan 2.2 Lightning.json b/invokeai/app/services/workflow_records/default_workflows/Image to Video - Wan 2.2 Lightning.jsonindex 5457edeb2c..2c21187fa7 100644--- a/invokeai/app/services/workflow_records/default_workflows/Image to Video - Wan 2.2 Lightning.json+++ b/invokeai/app/services/workflow_records/default_workflows/Image to Video - Wan 2.2 Lightning.json@@ -221,7 +221,7 @@"type": "invocation","data": {"id": "4d3b9faf-c05b-7e6f-bf4d-5c6a7f8e9dab",- "version": "1.0.0",+ "version": "1.1.0","nodePack": "invokeai","label": "","notes": "",diff --git a/invokeai/app/services/workflow_records/default_workflows/Image to Video - Wan 2.2 TI2V-5B (Low Quality).json b/invokeai/app/services/workflow_records/default_workflows/Image to Video - Wan 2.2 TI2V-5B (Low Quality).jsonindex 349c9862c5..7c0a2101b5 100644--- a/invokeai/app/services/workflow_records/default_workflows/Image to Video - Wan 2.2 TI2V-5B (Low Quality).json+++ b/invokeai/app/services/workflow_records/default_workflows/Image to Video - Wan 2.2 TI2V-5B (Low Quality).json@@ -220,7 +220,7 @@"type": "invocation","data": {"id": "4d3b9faf-c05b-7e6f-bf4d-5c6a7f8e9dab",- "version": "1.0.0",+ "version": "1.1.0","nodePack": "invokeai","label": "","notes": "",diff --git a/invokeai/app/services/workflow_records/default_workflows/Interpolate 2 Images to Video - Wan 2.2 Lightning.json b/invokeai/app/services/workflow_records/default_workflows/Interpolate 2 Images to Video - Wan 2.2 Lightning.jsonindex b7fb034b50..c4df983941 100644--- a/invokeai/app/services/workflow_records/default_workflows/Interpolate 2 Images to Video - Wan 2.2 Lightning.json+++ b/invokeai/app/services/workflow_records/default_workflows/Interpolate 2 Images to Video - Wan 2.2 Lightning.json@@ -678,7 +678,7 @@"type": "invocation","data": {"id": "4d3b9faf-c05b-7e6f-bf4d-5c6a7f8e9dab",- "version": "1.0.0",+ "version": "1.1.0","nodePack": "invokeai","label": "","notes": "",diff --git a/invokeai/app/services/workflow_records/default_workflows/Last Frame to Video - LTX-2.json b/invokeai/app/services/workflow_records/default_workflows/Last Frame to Video - LTX-2.jsonindex fe80eee6ab..f6c40a76d2 100644--- a/invokeai/app/services/workflow_records/default_workflows/Last Frame to Video - LTX-2.json+++ b/invokeai/app/services/workflow_records/default_workflows/Last Frame to Video - LTX-2.json@@ -285,7 +285,7 @@"type": "invocation","data": {"id": "denoise_latents",- "version": "1.5.0",+ "version": "1.6.0","nodePack": "invokeai","label": "","notes": "The four guidance scales here are the released Dev recipe (CFG 3 arrives over an edge, Audio CFG 7, STG 1, modality 3). Each scale away from its off value (1, or 0 for STG) costs one extra model evaluation per step.",@@ -423,7 +423,7 @@"type": "invocation","data": {"id": "core_metadata",- "version": "2.9.0",+ "version": "2.10.0","nodePack": "invokeai","label": "","notes": "Recorded on the output. The prompt, seed, model, canvas, frame count, steps, CFG and frame rate arrive over edges from the nodes that set them. They are the requested values: on the Distilled checkpoint the run itself takes 8 unguided steps whatever Steps and CFG say.",diff --git a/invokeai/app/services/workflow_records/default_workflows/Last Frame to Video - MiniMax H3.json b/invokeai/app/services/workflow_records/default_workflows/Last Frame to Video - MiniMax H3.jsonindex f9884ecef1..7526f93d04 100644--- a/invokeai/app/services/workflow_records/default_workflows/Last Frame to Video - MiniMax H3.json+++ b/invokeai/app/services/workflow_records/default_workflows/Last Frame to Video - MiniMax H3.json@@ -279,7 +279,7 @@"type": "invocation","data": {"id": "9d3b9faf-405b-7e6f-bf4d-5c6a7f8e9d04",- "version": "1.4.0",+ "version": "1.5.0","nodePack": "invokeai","label": "","notes": "",@@ -330,7 +330,7 @@"type": "invocation","data": {"id": "9e2b5033-4c5d-4e7f-a081-9c0d1e2f3a04",- "version": "2.9.0",+ "version": "2.10.0","nodePack": "invokeai","label": "Core Metadata","notes": "Everything except the generation mode arrives over an edge from the node that used the value, so the record cannot go stale.",diff --git a/invokeai/app/services/workflow_records/default_workflows/Reference to Video - MiniMax H3.json b/invokeai/app/services/workflow_records/default_workflows/Reference to Video - MiniMax H3.jsonindex cd1b27a12a..7905978e4f 100644--- a/invokeai/app/services/workflow_records/default_workflows/Reference to Video - MiniMax H3.json+++ b/invokeai/app/services/workflow_records/default_workflows/Reference to Video - MiniMax H3.json@@ -323,7 +323,7 @@"type": "invocation","data": {"id": "9d3b9faf-405b-7e6f-bf4d-5c6a7f8e9d04",- "version": "1.4.0",+ "version": "1.5.0","nodePack": "invokeai","label": "","notes": "",@@ -380,7 +380,7 @@"type": "invocation","data": {"id": "9e2b5033-4c5d-4e7f-a081-9c0d1e2f3a04",- "version": "2.9.0",+ "version": "2.10.0","nodePack": "invokeai","label": "Core Metadata","notes": "Everything except the generation mode arrives over an edge from the node that used the value, so the record cannot go stale.",diff --git a/invokeai/app/services/workflow_records/default_workflows/Text to Video - LTX-2 Two-Stage.json b/invokeai/app/services/workflow_records/default_workflows/Text to Video - LTX-2 Two-Stage.jsonindex dfa949aac7..60c8c180e7 100644--- a/invokeai/app/services/workflow_records/default_workflows/Text to Video - LTX-2 Two-Stage.json+++ b/invokeai/app/services/workflow_records/default_workflows/Text to Video - LTX-2 Two-Stage.json@@ -293,7 +293,7 @@"type": "invocation","data": {"id": "denoise_latents",- "version": "1.5.0",+ "version": "1.6.0","nodePack": "invokeai","label": "","notes": "The four guidance scales here are the released Dev recipe (CFG 3 arrives over an edge, Audio CFG 7, STG 1, modality 3). Each scale away from its off value (1, or 0 for STG) costs one extra model evaluation per step.",@@ -431,7 +431,7 @@"type": "invocation","data": {"id": "core_metadata",- "version": "2.9.0",+ "version": "2.10.0","nodePack": "invokeai","label": "","notes": "Recorded on the output. The prompt, seed, model, canvas, frame count, steps, CFG and frame rate arrive over edges from the nodes that set them. They are the requested values: on the Distilled checkpoint the run itself takes 8 unguided steps whatever Steps and CFG say.",@@ -868,7 +868,7 @@"type": "invocation","data": {"id": "refine_latents",- "version": "1.5.0",+ "version": "1.6.0","nodePack": "invokeai","label": "","notes": "The refine pass: enters the schedule partway down (Noise Scale) and samples its tail over the upscaled latent and the base pass's audio, re-noising both so they stay on one trajectory. It runs at four times the base pass's tokens, so it dominates the render time -- which is why it gets its own, smaller step budget: keep it between 2 and the base pass's Steps. Keep its guidance scales equal to the base pass's.",diff --git a/invokeai/app/services/workflow_records/default_workflows/Text to Video - LTX-2 w_ LoRA Collection.json b/invokeai/app/services/workflow_records/default_workflows/Text to Video - LTX-2 w_ LoRA Collection.jsonindex b60051202e..6004c2c15c 100644--- a/invokeai/app/services/workflow_records/default_workflows/Text to Video - LTX-2 w_ LoRA Collection.json+++ b/invokeai/app/services/workflow_records/default_workflows/Text to Video - LTX-2 w_ LoRA Collection.json@@ -297,7 +297,7 @@"type": "invocation","data": {"id": "denoise_latents",- "version": "1.5.0",+ "version": "1.6.0","nodePack": "invokeai","label": "","notes": "The four guidance scales here are the released Dev recipe (CFG 3 arrives over an edge, Audio CFG 7, STG 1, modality 3). Each scale away from its off value (1, or 0 for STG) costs one extra model evaluation per step.",@@ -435,7 +435,7 @@"type": "invocation","data": {"id": "core_metadata",- "version": "2.9.0",+ "version": "2.10.0","nodePack": "invokeai","label": "","notes": "Recorded on the output. The prompt, seed, model, canvas, frame count, steps, CFG and frame rate arrive over edges from the nodes that set them. They are the requested values: on the Distilled checkpoint the run itself takes 8 unguided steps whatever Steps and CFG say.",diff --git a/invokeai/app/services/workflow_records/default_workflows/Text to Video - LTX-2.json b/invokeai/app/services/workflow_records/default_workflows/Text to Video - LTX-2.jsonindex 6e66c047a8..2af0861d1f 100644--- a/invokeai/app/services/workflow_records/default_workflows/Text to Video - LTX-2.json+++ b/invokeai/app/services/workflow_records/default_workflows/Text to Video - LTX-2.json@@ -289,7 +289,7 @@"type": "invocation","data": {"id": "denoise_latents",- "version": "1.5.0",+ "version": "1.6.0","nodePack": "invokeai","label": "","notes": "The four guidance scales here are the released Dev recipe (CFG 3 arrives over an edge, Audio CFG 7, STG 1, modality 3). Each scale away from its off value (1, or 0 for STG) costs one extra model evaluation per step.",@@ -427,7 +427,7 @@"type": "invocation","data": {"id": "core_metadata",- "version": "2.9.0",+ "version": "2.10.0","nodePack": "invokeai","label": "","notes": "Recorded on the output. The prompt, seed, model, canvas, frame count, steps, CFG and frame rate arrive over edges from the nodes that set them. They are the requested values: on the Distilled checkpoint the run itself takes 8 unguided steps whatever Steps and CFG say.",diff --git a/invokeai/app/services/workflow_records/default_workflows/Text to Video - MiniMax H3.json b/invokeai/app/services/workflow_records/default_workflows/Text to Video - MiniMax H3.jsonindex 056ac76a84..19ab7bec7a 100644--- a/invokeai/app/services/workflow_records/default_workflows/Text to Video - MiniMax H3.json+++ b/invokeai/app/services/workflow_records/default_workflows/Text to Video - MiniMax H3.json@@ -283,7 +283,7 @@"type": "invocation","data": {"id": "9d3b9faf-405b-7e6f-bf4d-5c6a7f8e9d04",- "version": "1.4.0",+ "version": "1.5.0","nodePack": "invokeai","label": "","notes": "",@@ -334,7 +334,7 @@"type": "invocation","data": {"id": "9e2b5033-4c5d-4e7f-a081-9c0d1e2f3a04",- "version": "2.9.0",+ "version": "2.10.0","nodePack": "invokeai","label": "Core Metadata","notes": "Everything except the generation mode arrives over an edge from the node that used the value, so the record cannot go stale.",diff --git a/invokeai/app/services/workflow_records/default_workflows/Text to Video - Wan 2.2 Lightning w_ Concept LoRAs.json b/invokeai/app/services/workflow_records/default_workflows/Text to Video - Wan 2.2 Lightning w_ Concept LoRAs.jsonindex 612a810df7..ca618e5685 100644--- a/invokeai/app/services/workflow_records/default_workflows/Text to Video - Wan 2.2 Lightning w_ Concept LoRAs.json+++ b/invokeai/app/services/workflow_records/default_workflows/Text to Video - Wan 2.2 Lightning w_ Concept LoRAs.json@@ -221,7 +221,7 @@"type": "invocation","data": {"id": "4d3b9faf-c05b-7e6f-bf4d-5c6a7f8e9dab",- "version": "1.0.0",+ "version": "1.1.0","nodePack": "invokeai","label": "","notes": "",diff --git a/invokeai/app/services/workflow_records/default_workflows/Text to Video - Wan 2.2 Lightning.json b/invokeai/app/services/workflow_records/default_workflows/Text to Video - Wan 2.2 Lightning.jsonindex 8d2ee5107a..dafa56827f 100644--- a/invokeai/app/services/workflow_records/default_workflows/Text to Video - Wan 2.2 Lightning.json+++ b/invokeai/app/services/workflow_records/default_workflows/Text to Video - Wan 2.2 Lightning.json@@ -221,7 +221,7 @@"type": "invocation","data": {"id": "4d3b9faf-c05b-7e6f-bf4d-5c6a7f8e9dab",- "version": "1.0.0",+ "version": "1.1.0","nodePack": "invokeai","label": "","notes": "",diff --git a/invokeai/app/services/workflow_records/default_workflows/Text to Video - Wan 2.2 TI2V-5B (Low Quality).json b/invokeai/app/services/workflow_records/default_workflows/Text to Video - Wan 2.2 TI2V-5B (Low Quality).jsonindex ad36852401..86a4e56b96 100644--- a/invokeai/app/services/workflow_records/default_workflows/Text to Video - Wan 2.2 TI2V-5B (Low Quality).json+++ b/invokeai/app/services/workflow_records/default_workflows/Text to Video - Wan 2.2 TI2V-5B (Low Quality).json@@ -220,7 +220,7 @@"type": "invocation","data": {"id": "4d3b9faf-c05b-7e6f-bf4d-5c6a7f8e9dab",- "version": "1.0.0",+ "version": "1.1.0","nodePack": "invokeai","label": "","notes": "",diff --git a/invokeai/app/services/workflow_records/default_workflows/Video to Audio - LTX-2.json b/invokeai/app/services/workflow_records/default_workflows/Video to Audio - LTX-2.jsonindex 9b73ff31b3..2b1131bedc 100644--- a/invokeai/app/services/workflow_records/default_workflows/Video to Audio - LTX-2.json+++ b/invokeai/app/services/workflow_records/default_workflows/Video to Audio - LTX-2.json@@ -250,7 +250,7 @@"type": "invocation","data": {"id": "denoise_latents",- "version": "1.5.0",+ "version": "1.6.0","nodePack": "invokeai","label": "","notes": "The four guidance scales here are the released Dev recipe (CFG 3 arrives over an edge, Audio CFG 7, STG 1, modality 3). Each scale away from its off value (1, or 0 for STG) costs one extra model evaluation per step.",@@ -388,7 +388,7 @@"type": "invocation","data": {"id": "core_metadata",- "version": "2.9.0",+ "version": "2.10.0","nodePack": "invokeai","label": "","notes": "Recorded on the output. The prompt, seed, model, canvas, frame count, steps, CFG and frame rate arrive over edges from the nodes that set them. They are the requested values: on the Distilled checkpoint the run itself takes 8 unguided steps whatever Steps and CFG say.",diff --git a/invokeai/app/services/workflow_records/default_workflows/Wan 2.2 Image to Image.json b/invokeai/app/services/workflow_records/default_workflows/Wan 2.2 Image to Image.jsonindex f3bebb7faa..091b53d152 100644--- a/invokeai/app/services/workflow_records/default_workflows/Wan 2.2 Image to Image.json+++ b/invokeai/app/services/workflow_records/default_workflows/Wan 2.2 Image to Image.json@@ -174,7 +174,7 @@"data": {"id": "4d3b9faf-c05b-7e6f-bf4d-5c6a7f8e9dab","type": "wan_denoise",- "version": "1.0.0",+ "version": "1.1.0","label": "","notes": "","isOpen": true,diff --git a/invokeai/app/services/workflow_records/default_workflows/Wan 2.2 Text to Image.json b/invokeai/app/services/workflow_records/default_workflows/Wan 2.2 Text to Image.jsonindex 3352d09a1f..ab05b9a418 100644--- a/invokeai/app/services/workflow_records/default_workflows/Wan 2.2 Text to Image.json+++ b/invokeai/app/services/workflow_records/default_workflows/Wan 2.2 Text to Image.json@@ -147,7 +147,7 @@"data": {"id": "4d3b9faf-c05b-7e6f-bf4d-5c6a7f8e9dab","type": "wan_denoise",- "version": "1.0.0",+ "version": "1.1.0","label": "","notes": "","isOpen": true,diff --git a/invokeai/frontend/api/openapi.json b/invokeai/frontend/api/openapi.jsonindex fb68442724..115d5abf3f 100644--- a/invokeai/frontend/api/openapi.json+++ b/invokeai/frontend/api/openapi.json@@ -19627,6 +19627,22 @@"description": "Run the denoising process with an Anima model.\n\nUses rectified flow sampling with shift=3.0 and the Cosmos Predict2 DiT\nbackbone with integrated LLM Adapter for text conditioning.\n\nSupports txt2img, img2img (via latents input), and inpainting (via denoise_mask).","node_pack": "invokeai","properties": {+ "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",@@ -19925,15 +19941,15 @@"tags": ["image", "anima"],"title": "Denoise - Anima","type": "object",- "version": "1.9.0",+ "version": "1.10.0","output": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"}},"AnimaDenoiseMetaInvocation": {"category": "metadata","class": "invocation",- "classification": "prototype",+ "classification": "deprecated","description": "Run denoising process with an Anima transformer model + metadata.","node_pack": "invokeai","properties": {@@ -20285,7 +20301,7 @@"tags": ["anima", "latents", "denoise", "txt2img", "t2i", "t2l", "img2img", "i2i", "l2l"],"title": "Denoise - Anima + Metadata","type": "object",- "version": "1.1.0",+ "version": "1.2.0","output": {"$ref": "#/components/schemas/LatentsMetaOutput"}@@ -27310,22 +27326,6 @@"description": "Run the denoising process with a CogView4 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": [{@@ -27559,9 +27559,9 @@"tags": ["image", "cogview4"],"title": "Denoise - CogView4","type": "object",- "version": "1.1.0",+ "version": "1.2.0","output": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"}},"CogView4ImageToLatentsInvocation": {@@ -31995,12 +31995,18 @@{"type": "number"},+ {+ "items": {+ "type": "number"+ },+ "type": "array"+ },{"type": "null"}],"default": null,- "description": "The classifier-free guidance scale parameter",+ "description": "The classifier-free guidance scale parameter (scalar or per-step schedule)","field_kind": "input","input": "any","orig_default": null,@@ -32852,7 +32858,7 @@"tags": ["metadata"],"title": "Core Metadata","type": "object",- "version": "2.9.0",+ "version": "2.10.0","output": {"$ref": "#/components/schemas/MetadataOutput"}@@ -33913,6 +33919,22 @@"description": "Denoises noisy latents to decodable images","node_pack": "invokeai","properties": {+ "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",@@ -34309,15 +34331,15 @@"tags": ["latents", "denoise", "txt2img", "t2i", "t2l", "img2img", "i2i", "l2l"],"title": "Denoise - SD1.5, SDXL","type": "object",- "version": "1.8.0",+ "version": "1.9.0","output": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"}},"DenoiseLatentsMetaInvocation": {"category": "metadata","class": "invocation",- "classification": "stable",+ "classification": "deprecated","node_pack": "invokeai","properties": {"metadata": {@@ -34732,7 +34754,7 @@"tags": ["latents", "denoise", "txt2img", "t2i", "t2l", "img2img", "i2i", "l2l"],"title": "Denoise - SD1.5, SDXL + Metadata","type": "object",- "version": "1.4.0",+ "version": "1.6.0","output": {"$ref": "#/components/schemas/LatentsMetaOutput"}@@ -35750,6 +35772,22 @@"description": "Run the ERNIE-Image denoising loop and emit packed latents.","node_pack": "invokeai","properties": {+ "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",@@ -35953,9 +35991,9 @@"tags": ["latents", "denoise", "ernie-image"],"title": "Denoise - ERNIE-Image","type": "object",- "version": "1.1.0",+ "version": "1.2.0","output": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"}},"ErnieImageLoRACollectionLoader": {@@ -39488,6 +39526,22 @@"description": "Run denoising process with a FLUX.2 transformer model, Klein or [dev].\n\nRegional prompting is supported via per-conditioning masks (single mask is applied\nto every transformer block via `joint_attention_kwargs`). FLUX.2 [dev] takes the\nFun-ControlNet-Union through `control`; Klein takes no ControlNet, and IP-Adapters\nare not supported. Regional masking is skipped when reference images are attached.","node_pack": "invokeai","properties": {+ "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",@@ -39794,9 +39848,9 @@"tags": ["image", "flux", "flux2", "klein", "denoise"],"title": "FLUX2 Denoise","type": "object",- "version": "1.7.0",+ "version": "1.8.0","output": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"}},"Flux2DevLoRACollectionLoader": {@@ -41340,6 +41394,22 @@"description": "Run the denoising process with a FLUX.3 Image transformer (Klein or Klein Base).\n\nKlein is step-distilled (a flow map) and samples without CFG; Klein Base takes CFG with a negative\nconditioning. Reference images condition an edit: describe the result in the prompt and refer to them as\n<ref_image_0>, <ref_image_1>, ... in the order they are connected.","node_pack": "invokeai","properties": {+ "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",@@ -41583,9 +41653,9 @@"tags": ["image", "flux3", "flux", "denoise"],"title": "Denoise - FLUX.3","type": "object",- "version": "1.0.0",+ "version": "1.1.0","output": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"}},"Flux3LayoutPromptInvocation": {@@ -42691,6 +42761,22 @@"description": "Run denoising process with a FLUX transformer model.","node_pack": "invokeai","properties": {+ "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",@@ -43178,15 +43264,15 @@"tags": ["image", "flux"],"title": "FLUX Denoise","type": "object",- "version": "4.6.0",+ "version": "4.7.0","output": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"}},"FluxDenoiseLatentsMetaInvocation": {"category": "metadata","class": "invocation",- "classification": "stable",+ "classification": "deprecated","description": "Run denoising process with a FLUX transformer model + metadata.","node_pack": "invokeai","properties": {@@ -43693,7 +43779,7 @@"tags": ["flux", "latents", "denoise", "txt2img", "t2i", "t2l", "img2img", "i2i", "l2l"],"title": "FLUX Denoise + Metadata","type": "object",- "version": "1.0.1",+ "version": "1.2.0","output": {"$ref": "#/components/schemas/LatentsMetaOutput"}@@ -48591,6 +48677,9 @@{"$ref": "#/components/schemas/MetadataToVAEInvocation"},+ {+ "$ref": "#/components/schemas/MetadataToWanLorasInvocation"+ },{"$ref": "#/components/schemas/MiniMaxH3DenoiseInvocation"},@@ -51908,6 +51997,22 @@"description": "Runs the Ideogram 4 dual-branch flow-matching denoising loop (text-to-image).","node_pack": "invokeai","properties": {+ "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",@@ -52092,9 +52197,9 @@"tags": ["image", "ideogram4"],"title": "Denoise - Ideogram 4","type": "object",- "version": "1.2.0",+ "version": "1.3.0","output": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"}},"Ideogram4LatentsToImageInvocation": {@@ -59445,6 +59550,9 @@{"$ref": "#/components/schemas/MetadataToVAEInvocation"},+ {+ "$ref": "#/components/schemas/MetadataToWanLorasInvocation"+ },{"$ref": "#/components/schemas/MiniMaxH3DenoiseInvocation"},@@ -61189,6 +61297,9 @@{"$ref": "#/components/schemas/MetadataToVAEInvocation"},+ {+ "$ref": "#/components/schemas/MetadataToWanLorasInvocation"+ },{"$ref": "#/components/schemas/MiniMaxH3DenoiseInvocation"},@@ -61688,7 +61799,7 @@"$ref": "#/components/schemas/MaskOutput"},"anima_denoise": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"},"anima_denoise_meta": {"$ref": "#/components/schemas/LatentsMetaOutput"@@ -61772,7 +61883,7 @@"$ref": "#/components/schemas/CLIPSkipInvocationOutput"},"cogview4_denoise": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"},"cogview4_i2l": {"$ref": "#/components/schemas/LatentsOutput"@@ -61847,7 +61958,7 @@"$ref": "#/components/schemas/StringOutput"},"denoise_latents": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"},"denoise_latents_meta": {"$ref": "#/components/schemas/LatentsMetaOutput"@@ -61865,7 +61976,7 @@"$ref": "#/components/schemas/StringCollectionOutput"},"ernie_image_denoise": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"},"ernie_image_lora_collection_loader": {"$ref": "#/components/schemas/ErnieImageLoRACollectionLoaderOutput"@@ -61928,7 +62039,7 @@"$ref": "#/components/schemas/Flux2ControlOutput"},"flux2_denoise": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"},"flux2_dev_lora_collection_loader": {"$ref": "#/components/schemas/Flux2DevLoRALoaderOutput"@@ -61964,7 +62075,7 @@"$ref": "#/components/schemas/LatentsOutput"},"flux3_denoise": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"},"flux3_layout_prompt": {"$ref": "#/components/schemas/StringOutput"@@ -61991,7 +62102,7 @@"$ref": "#/components/schemas/FluxControlNetOutput"},"flux_denoise": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"},"flux_denoise_meta": {"$ref": "#/components/schemas/LatentsMetaOutput"@@ -62069,7 +62180,7 @@"$ref": "#/components/schemas/StringOutput"},"ideogram4_denoise": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"},"ideogram4_l2i": {"$ref": "#/components/schemas/ImageOutput"@@ -62225,7 +62336,7 @@"$ref": "#/components/schemas/Krea2ConditioningOutput"},"krea2_denoise": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"},"krea2_lora_collection_loader": {"$ref": "#/components/schemas/Krea2LoRALoaderOutput"@@ -62410,6 +62521,9 @@"metadata_to_vae": {"$ref": "#/components/schemas/VAEOutput"},+ "metadata_to_wan_loras": {+ "$ref": "#/components/schemas/WanLoRALoaderOutput"+ },"minimax_h3_denoise": {"$ref": "#/components/schemas/MiniMaxH3DenoiseOutput"},@@ -62456,7 +62570,7 @@"$ref": "#/components/schemas/ModelIdentifierOutput"},"moss_image_denoise": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"},"moss_image_layout_prompt": {"$ref": "#/components/schemas/StringOutput"@@ -62534,7 +62648,7 @@"$ref": "#/components/schemas/QwenImageControlOutput"},"qwen_image_denoise": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"},"qwen_image_i2l": {"$ref": "#/components/schemas/LatentsOutput"@@ -62588,7 +62702,7 @@"$ref": "#/components/schemas/SchedulerOutput"},"sd3_denoise": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"},"sd3_i2l": {"$ref": "#/components/schemas/LatentsOutput"@@ -62711,7 +62825,7 @@"$ref": "#/components/schemas/TileToPropertiesOutput"},"tiled_multi_diffusion_denoise_latents": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"},"tomask": {"$ref": "#/components/schemas/ImageOutput"@@ -62735,7 +62849,7 @@"$ref": "#/components/schemas/ImageOutput"},"wan_denoise": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"},"wan_i2l": {"$ref": "#/components/schemas/LatentsOutput"@@ -62768,7 +62882,7 @@"$ref": "#/components/schemas/IdealSizeOutput"},"wan_video_denoise": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"},"workflow_return": {"$ref": "#/components/schemas/WorkflowReturnOutput"@@ -62783,7 +62897,7 @@"$ref": "#/components/schemas/ZImageControlOutput"},"z_image_denoise": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"},"z_image_denoise_meta": {"$ref": "#/components/schemas/LatentsMetaOutput"@@ -63058,6 +63172,7 @@"metadata_to_string_collection","metadata_to_t2i_adapters","metadata_to_vae",+ "metadata_to_wan_loras","minimax_h3_denoise","minimax_h3_frame_conditioning","minimax_h3_hybrid_overlay",@@ -63989,6 +64104,9 @@{"$ref": "#/components/schemas/MetadataToVAEInvocation"},+ {+ "$ref": "#/components/schemas/MetadataToWanLorasInvocation"+ },{"$ref": "#/components/schemas/MiniMaxH3DenoiseInvocation"},@@ -65315,6 +65433,9 @@{"$ref": "#/components/schemas/MetadataToVAEInvocation"},+ {+ "$ref": "#/components/schemas/MetadataToWanLorasInvocation"+ },{"$ref": "#/components/schemas/MiniMaxH3DenoiseInvocation"},@@ -68056,22 +68177,6 @@"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": [{@@ -68390,9 +68495,9 @@"tags": ["image", "krea2", "krea-2"],"title": "Denoise - Krea-2","type": "object",- "version": "1.4.0",+ "version": "1.5.0","output": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"}},"Krea2LoRACollectionLoader": {@@ -69734,6 +69839,22 @@"description": "Generates LTX-2 video and audio latents together.\n\nOne transformer forward produces both modalities at every step, so the soundtrack is generated\nwith the picture rather than dubbed onto it. Wire an image conditioning to start the clip from\na frame.\n\nThe guidance-distilled checkpoint runs a fixed eight-step schedule with no guidance at all: its\nstep count and guidance scales below are ignored, and the negative prompt never reaches it.","node_pack": "invokeai","properties": {+ "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",@@ -70090,7 +70211,7 @@"tags": ["ltx", "ltx2", "video", "audio", "denoise"],"title": "Denoise - LTX-2","type": "object",- "version": "1.5.0",+ "version": "1.6.0","output": {"$ref": "#/components/schemas/LTX2DenoiseOutput"}@@ -70099,6 +70220,19 @@"class": "output","description": "Joint video and audio latents from one LTX-2 denoise run.","properties": {+ "metadata": {+ "$ref": "#/components/schemas/MetadataField",+ "description": "Metadata Dict",+ "field_kind": "output",+ "ui_hidden": false+ },+ "type": {+ "const": "ltx2_denoise_output",+ "default": "ltx2_denoise_output",+ "field_kind": "node_attribute",+ "title": "type",+ "type": "string"+ },"video_latents": {"$ref": "#/components/schemas/LatentsField","description": "Video latents [1, 128, T_lat, H/32, W/32].",@@ -70131,16 +70265,19 @@"title": "Num Frames","type": "integer","ui_hidden": false- },- "type": {- "const": "ltx2_denoise_output",- "default": "ltx2_denoise_output",- "field_kind": "node_attribute",- "title": "type",- "type": "string"}},- "required": ["output_meta", "video_latents", "audio_latents", "width", "height", "num_frames", "type", "type"],+ "required": [+ "output_meta",+ "metadata",+ "type",+ "video_latents",+ "audio_latents",+ "width",+ "height",+ "num_frames",+ "type"+ ],"title": "LTX2DenoiseOutput","type": "object"},@@ -72556,7 +72693,7 @@},"LatentsMetaOutput": {"class": "output",- "description": "Latents + metadata",+ "description": "Base class for invocations that output latents with metadata","properties": {"metadata": {"$ref": "#/components/schemas/MetadataField",@@ -73517,6 +73654,33 @@"description": "The weight at which the LoRA is applied to each model","title": "Weight","type": "number"+ },+ "target": {+ "anyOf": [+ {+ "enum": ["high", "low", "both"],+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Target expert for dual-expert models (e.g., Wan 2.2 A14B): 'high', 'low', or 'both'",+ "title": "Target"+ },+ "low_noise_weight": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Weight for the low-noise expert when target is 'both' and it differs from the high-noise weight",+ "title": "Low Noise Weight"}},"required": ["model", "weight"],@@ -90742,7 +90906,7 @@"tags": ["metadata"],"title": "Metadata","type": "object",- "version": "1.0.1",+ "version": "1.1.0","output": {"$ref": "#/components/schemas/MetadataOutput"}@@ -90837,7 +91001,7 @@"tags": ["metadata"],"title": "Metadata Item","type": "object",- "version": "1.0.1",+ "version": "1.1.0","output": {"$ref": "#/components/schemas/MetadataItemOutput"}@@ -90894,13 +91058,17 @@"description": "Label for this metadata item","enum": ["* CUSTOM LABEL *",+ "generation_mode","positive_prompt",+ "positive_prompts","positive_style_prompt","negative_prompt",+ "negative_prompts","negative_style_prompt","width","height","seed",+ "rand_device","cfg_scale","cfg_rescale_multiplier","steps",@@ -90912,7 +91080,115 @@"seamless_y","guidance","cfg_scale_start_step",- "cfg_scale_end_step"+ "cfg_scale_end_step",+ "denoising_start",+ "denoising_end",+ "strength",+ "init_image",+ "add_noise",+ "shift",+ "dype_preset",+ "dype_scale",+ "dype_exponent",+ "freeu_s1",+ "freeu_s2",+ "freeu_b1",+ "freeu_b2",+ "hidiffusion",+ "hidiffusion_raunet",+ "hidiffusion_window_attn",+ "hidiffusion_auto_ratios",+ "hidiffusion_t1_ratio",+ "hidiffusion_t2_ratio",+ "hrf_enabled",+ "hrf_method",+ "hrf_strength",+ "refiner_model",+ "refiner_cfg_scale",+ "refiner_steps",+ "refiner_scheduler",+ "refiner_positive_aesthetic_score",+ "refiner_negative_aesthetic_score",+ "refiner_start",+ "pid_mode",+ "pid_steps",+ "pid_decoder",+ "gemma2_encoder",+ "tile_width",+ "tile_height",+ "tile_overlap",+ "num_frames",+ "fps",+ "source_video_start_frame",+ "source_video_end_frame",+ "t5_encoder",+ "t5_encoder_model",+ "clip_embed_model",+ "clip_l_model",+ "clip_g_model",+ "mistral_encoder",+ "mistral_encoder_model",+ "qwen3_encoder",+ "qwen3_encoder_model",+ "qwen3_source",+ "qwen3_5_encoder",+ "qwen3_vl_encoder",+ "qwen3_vl_vision_tower",+ "qwen_vl_encoder",+ "glm_encoder",+ "anima_inpaint_adapter",+ "anima_inpaint_adapter_weight",+ "flux3_caption",+ "flux3_prompt_upsampler",+ "ideogram4_caption",+ "ideogram4_color_palette",+ "ideogram4_guidance_scale",+ "ideogram4_mu",+ "ideogram4_sampler_preset",+ "ideogram4_steps",+ "ideogram4_unconditional_model",+ "krea2_rebalance_enabled",+ "krea2_rebalance_multiplier",+ "krea2_rebalance_weights",+ "krea2_reference_kv_cache",+ "krea2_seed_variance_enabled",+ "krea2_seed_variance_randomize_percent",+ "krea2_seed_variance_strength",+ "krea2_style_strength",+ "ltx2_audio_cfg_scale",+ "ltx2_base_height",+ "ltx2_base_width",+ "ltx2_component_source",+ "ltx2_conditioning_role",+ "ltx2_context_frames",+ "ltx2_guidance_rescale",+ "ltx2_modality_scale",+ "ltx2_noise_scale",+ "ltx2_schedule",+ "ltx2_stg_scale",+ "ltx2_text_encoder_model",+ "ltx2_two_stage",+ "minimax_h3_component_source",+ "minimax_h3_hybrid_base_model",+ "minimax_h3_hybrid_start_block",+ "minimax_h3_text_encoder_model",+ "minimax_h3_transformer_model",+ "moss_image_layout_prompt",+ "moss_image_uncond_skip_layers",+ "qwen_image_2_1_prefix_kv_cache",+ "qwen_image_component_source",+ "qwen_image_quantization",+ "qwen_image_qwen_vl_encoder",+ "qwen_image_shift",+ "qwen_image_vae",+ "wan_component_source",+ "wan_guidance_scale_low_noise",+ "wan_t5_encoder_model",+ "wan_transformer_low_noise",+ "z_image_seed_variance_enabled",+ "z_image_seed_variance_randomize_percent",+ "z_image_seed_variance_strength",+ "z_image_shift"],"field_kind": "input","input": "direct",@@ -90965,7 +91241,7 @@"tags": ["metadata"],"title": "Metadata Item Linked","type": "object",- "version": "1.0.1",+ "version": "1.1.0","output": {"$ref": "#/components/schemas/MetadataOutput"}@@ -91063,7 +91339,23 @@"label": {"default": "* CUSTOM LABEL *","description": "Label for this metadata item",- "enum": ["* CUSTOM LABEL *", "seamless_x", "seamless_y"],+ "enum": [+ "* CUSTOM LABEL *",+ "seamless_x",+ "seamless_y",+ "add_noise",+ "hidiffusion",+ "hidiffusion_raunet",+ "hidiffusion_window_attn",+ "hidiffusion_auto_ratios",+ "hrf_enabled",+ "krea2_rebalance_enabled",+ "krea2_reference_kv_cache",+ "krea2_seed_variance_enabled",+ "ltx2_two_stage",+ "qwen_image_2_1_prefix_kv_cache",+ "z_image_seed_variance_enabled"+ ],"field_kind": "input","input": "direct","orig_default": "* CUSTOM LABEL *",@@ -91119,7 +91411,7 @@"tags": ["metadata"],"title": "Metadata To Bool Collection","type": "object",- "version": "1.0.0",+ "version": "1.1.0","output": {"$ref": "#/components/schemas/BooleanCollectionOutput"}@@ -91174,7 +91466,23 @@"label": {"default": "* CUSTOM LABEL *","description": "Label for this metadata item",- "enum": ["* CUSTOM LABEL *", "seamless_x", "seamless_y"],+ "enum": [+ "* CUSTOM LABEL *",+ "seamless_x",+ "seamless_y",+ "add_noise",+ "hidiffusion",+ "hidiffusion_raunet",+ "hidiffusion_window_attn",+ "hidiffusion_auto_ratios",+ "hrf_enabled",+ "krea2_rebalance_enabled",+ "krea2_reference_kv_cache",+ "krea2_seed_variance_enabled",+ "ltx2_two_stage",+ "qwen_image_2_1_prefix_kv_cache",+ "z_image_seed_variance_enabled"+ ],"field_kind": "input","input": "direct","orig_default": "* CUSTOM LABEL *",@@ -91227,7 +91535,7 @@"tags": ["metadata"],"title": "Metadata To Bool","type": "object",- "version": "1.0.0",+ "version": "1.1.0","output": {"$ref": "#/components/schemas/BooleanOutput"}@@ -91313,7 +91621,7 @@"tags": ["metadata"],"title": "Metadata To ControlNets","type": "object",- "version": "1.2.0",+ "version": "1.3.0","output": {"$ref": "#/components/schemas/MDControlListOutput"}@@ -91368,7 +91676,45 @@"label": {"default": "* CUSTOM LABEL *","description": "Label for this metadata item",- "enum": ["* CUSTOM LABEL *", "cfg_scale", "cfg_rescale_multiplier", "guidance"],+ "enum": [+ "* CUSTOM LABEL *",+ "cfg_scale",+ "cfg_rescale_multiplier",+ "guidance",+ "denoising_start",+ "denoising_end",+ "strength",+ "shift",+ "dype_scale",+ "dype_exponent",+ "freeu_s1",+ "freeu_s2",+ "freeu_b1",+ "freeu_b2",+ "hidiffusion_t1_ratio",+ "hidiffusion_t2_ratio",+ "hrf_strength",+ "refiner_cfg_scale",+ "refiner_positive_aesthetic_score",+ "refiner_negative_aesthetic_score",+ "refiner_start",+ "fps",+ "anima_inpaint_adapter_weight",+ "ideogram4_guidance_scale",+ "ideogram4_mu",+ "krea2_rebalance_multiplier",+ "krea2_seed_variance_strength",+ "krea2_style_strength",+ "ltx2_audio_cfg_scale",+ "ltx2_guidance_rescale",+ "ltx2_modality_scale",+ "ltx2_noise_scale",+ "ltx2_stg_scale",+ "qwen_image_shift",+ "wan_guidance_scale_low_noise",+ "z_image_seed_variance_strength",+ "z_image_shift"+ ],"field_kind": "input","input": "direct","orig_default": "* CUSTOM LABEL *",@@ -91424,7 +91770,7 @@"tags": ["metadata"],"title": "Metadata To Float Collection","type": "object",- "version": "1.0.0",+ "version": "1.1.0","output": {"$ref": "#/components/schemas/FloatCollectionOutput"}@@ -91479,7 +91825,45 @@"label": {"default": "* CUSTOM LABEL *","description": "Label for this metadata item",- "enum": ["* CUSTOM LABEL *", "cfg_scale", "cfg_rescale_multiplier", "guidance"],+ "enum": [+ "* CUSTOM LABEL *",+ "cfg_scale",+ "cfg_rescale_multiplier",+ "guidance",+ "denoising_start",+ "denoising_end",+ "strength",+ "shift",+ "dype_scale",+ "dype_exponent",+ "freeu_s1",+ "freeu_s2",+ "freeu_b1",+ "freeu_b2",+ "hidiffusion_t1_ratio",+ "hidiffusion_t2_ratio",+ "hrf_strength",+ "refiner_cfg_scale",+ "refiner_positive_aesthetic_score",+ "refiner_negative_aesthetic_score",+ "refiner_start",+ "fps",+ "anima_inpaint_adapter_weight",+ "ideogram4_guidance_scale",+ "ideogram4_mu",+ "krea2_rebalance_multiplier",+ "krea2_seed_variance_strength",+ "krea2_style_strength",+ "ltx2_audio_cfg_scale",+ "ltx2_guidance_rescale",+ "ltx2_modality_scale",+ "ltx2_noise_scale",+ "ltx2_stg_scale",+ "qwen_image_shift",+ "wan_guidance_scale_low_noise",+ "z_image_seed_variance_strength",+ "z_image_shift"+ ],"field_kind": "input","input": "direct","orig_default": "* CUSTOM LABEL *",@@ -91532,7 +91916,7 @@"tags": ["metadata"],"title": "Metadata To Float","type": "object",- "version": "1.1.0",+ "version": "1.2.0","output": {"$ref": "#/components/schemas/FloatOutput"}@@ -91619,7 +92003,7 @@"tags": ["metadata"],"title": "Metadata To IP-Adapters","type": "object",- "version": "1.2.0",+ "version": "1.3.0","output": {"$ref": "#/components/schemas/MDIPAdapterListOutput"}@@ -91682,7 +92066,24 @@"steps","clip_skip","cfg_scale_start_step",- "cfg_scale_end_step"+ "cfg_scale_end_step",+ "refiner_steps",+ "pid_steps",+ "tile_width",+ "tile_height",+ "tile_overlap",+ "num_frames",+ "fps",+ "source_video_start_frame",+ "source_video_end_frame",+ "ideogram4_steps",+ "krea2_seed_variance_randomize_percent",+ "ltx2_base_height",+ "ltx2_base_width",+ "ltx2_context_frames",+ "minimax_h3_hybrid_start_block",+ "moss_image_uncond_skip_layers",+ "z_image_seed_variance_randomize_percent"],"field_kind": "input","input": "direct",@@ -91739,7 +92140,7 @@"tags": ["metadata"],"title": "Metadata To Integer Collection","type": "object",- "version": "1.0.0",+ "version": "1.1.0","output": {"$ref": "#/components/schemas/IntegerCollectionOutput"}@@ -91802,7 +92203,24 @@"steps","clip_skip","cfg_scale_start_step",- "cfg_scale_end_step"+ "cfg_scale_end_step",+ "refiner_steps",+ "pid_steps",+ "tile_width",+ "tile_height",+ "tile_overlap",+ "num_frames",+ "fps",+ "source_video_start_frame",+ "source_video_end_frame",+ "ideogram4_steps",+ "krea2_seed_variance_randomize_percent",+ "ltx2_base_height",+ "ltx2_base_width",+ "ltx2_context_frames",+ "minimax_h3_hybrid_start_block",+ "moss_image_uncond_skip_layers",+ "z_image_seed_variance_randomize_percent"],"field_kind": "input","input": "direct",@@ -91856,7 +92274,7 @@"tags": ["metadata"],"title": "Metadata To Integer","type": "object",- "version": "1.0.0",+ "version": "1.1.0","output": {"$ref": "#/components/schemas/IntegerOutput"}@@ -92132,7 +92550,7 @@"label": {"default": "model","description": "Label for this metadata item",- "enum": ["* CUSTOM LABEL *", "model"],+ "enum": ["* CUSTOM LABEL *", "model", "refiner_model"],"field_kind": "input","input": "direct","orig_default": "model",@@ -92185,7 +92603,7 @@"tags": ["metadata"],"title": "Metadata To Model","type": "object",- "version": "1.3.0",+ "version": "1.4.0","output": {"$ref": "#/components/schemas/MetadataToModelOutput"}@@ -92460,7 +92878,7 @@"tags": ["metadata"],"title": "Metadata To SDXL Model","type": "object",- "version": "1.3.0",+ "version": "1.4.0","output": {"$ref": "#/components/schemas/MetadataToSDXLModelOutput"}@@ -92573,7 +92991,7 @@"label": {"default": "scheduler","description": "Label for this metadata item",- "enum": ["* CUSTOM LABEL *", "scheduler"],+ "enum": ["* CUSTOM LABEL *", "scheduler", "refiner_scheduler"],"field_kind": "input","input": "direct","orig_default": "scheduler",@@ -92654,7 +93072,7 @@"tags": ["metadata"],"title": "Metadata To Scheduler","type": "object",- "version": "1.0.1",+ "version": "1.1.0","output": {"$ref": "#/components/schemas/SchedulerOutput"}@@ -92711,10 +93129,29 @@"description": "Label for this metadata item","enum": ["* CUSTOM LABEL *",+ "generation_mode","positive_prompt",+ "positive_prompts","positive_style_prompt","negative_prompt",- "negative_style_prompt"+ "negative_prompts",+ "negative_style_prompt",+ "rand_device",+ "init_image",+ "dype_preset",+ "hrf_method",+ "pid_mode",+ "flux3_caption",+ "ideogram4_caption",+ "ideogram4_color_palette",+ "ideogram4_sampler_preset",+ "krea2_rebalance_weights",+ "ltx2_conditioning_role",+ "ltx2_schedule",+ "moss_image_layout_prompt",+ "qwen_image_quantization",+ "qwen_image_shift",+ "z_image_shift"],"field_kind": "input","input": "direct",@@ -92771,7 +93208,7 @@"tags": ["metadata"],"title": "Metadata To String Collection","type": "object",- "version": "1.0.0",+ "version": "1.1.0","output": {"$ref": "#/components/schemas/StringCollectionOutput"}@@ -92828,10 +93265,29 @@"description": "Label for this metadata item","enum": ["* CUSTOM LABEL *",+ "generation_mode","positive_prompt",+ "positive_prompts","positive_style_prompt","negative_prompt",- "negative_style_prompt"+ "negative_prompts",+ "negative_style_prompt",+ "rand_device",+ "init_image",+ "dype_preset",+ "hrf_method",+ "pid_mode",+ "flux3_caption",+ "ideogram4_caption",+ "ideogram4_color_palette",+ "ideogram4_sampler_preset",+ "krea2_rebalance_weights",+ "ltx2_conditioning_role",+ "ltx2_schedule",+ "moss_image_layout_prompt",+ "qwen_image_quantization",+ "qwen_image_shift",+ "z_image_shift"],"field_kind": "input","input": "direct",@@ -92885,7 +93341,7 @@"tags": ["metadata"],"title": "Metadata To String","type": "object",- "version": "1.0.0",+ "version": "1.1.0","output": {"$ref": "#/components/schemas/StringOutput"}@@ -92972,7 +93428,7 @@"tags": ["metadata"],"title": "Metadata To T2I-Adapters","type": "object",- "version": "1.2.0",+ "version": "1.3.0","output": {"$ref": "#/components/schemas/MDT2IAdapterListOutput"}@@ -93024,64 +93480,155 @@"title": "Use Cache","type": "boolean"},- "label": {- "default": "vae",- "description": "Label for this metadata item",- "enum": ["* CUSTOM LABEL *", "vae"],- "field_kind": "input",- "input": "direct",- "orig_default": "vae",- "orig_required": false,- "title": "Label",- "type": "string"- },- "custom_label": {+ "label": {+ "default": "vae",+ "description": "Label for this metadata item",+ "enum": ["* CUSTOM LABEL *", "vae", "qwen_image_vae"],+ "field_kind": "input",+ "input": "direct",+ "orig_default": "vae",+ "orig_required": false,+ "title": "Label",+ "type": "string"+ },+ "custom_label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Label for this metadata item",+ "field_kind": "input",+ "input": "direct",+ "orig_default": null,+ "orig_required": false,+ "title": "Custom Label"+ },+ "default_value": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/VAEField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "The default VAE to use if not found in the metadata",+ "field_kind": "input",+ "input": "any",+ "orig_required": true+ },+ "type": {+ "const": "metadata_to_vae",+ "default": "metadata_to_vae",+ "field_kind": "node_attribute",+ "title": "type",+ "type": "string"+ }+ },+ "required": ["type", "id"],+ "tags": ["metadata"],+ "title": "Metadata To VAE",+ "type": "object",+ "version": "1.3.0",+ "output": {+ "$ref": "#/components/schemas/VAEOutput"+ }+ },+ "MetadataToWanLorasInvocation": {+ "category": "metadata",+ "class": "invocation",+ "classification": "beta",+ "description": "Extracts Wan 2.2 LoRAs from metadata and applies them to a Wan transformer",+ "node_pack": "invokeai",+ "properties": {+ "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"+ },+ "transformer": {"anyOf": [{- "type": "string"+ "$ref": "#/components/schemas/WanTransformerField"},{"type": "null"}],"default": null,- "description": "Label for this metadata item",+ "description": "Transformer","field_kind": "input",- "input": "direct",+ "input": "connection","orig_default": null,"orig_required": false,- "title": "Custom Label"+ "title": "Wan Transformer"},- "default_value": {- "anyOf": [- {- "$ref": "#/components/schemas/VAEField"- },- {- "type": "null"- }- ],- "default": null,- "description": "The default VAE to use if not found in the metadata",+ "custom_label": {+ "default": "loras",+ "description": "Label for this metadata item","field_kind": "input",- "input": "any",- "orig_required": true+ "input": "direct",+ "orig_default": "loras",+ "orig_required": false,+ "title": "Custom Label",+ "type": "string"},"type": {- "const": "metadata_to_vae",- "default": "metadata_to_vae",+ "const": "metadata_to_wan_loras",+ "default": "metadata_to_wan_loras","field_kind": "node_attribute","title": "type","type": "string"}},"required": ["type", "id"],- "tags": ["metadata"],- "title": "Metadata To VAE",+ "tags": ["metadata", "wan"],+ "title": "Metadata To Wan LoRAs","type": "object",- "version": "1.2.1",+ "version": "1.0.0","output": {- "$ref": "#/components/schemas/VAEOutput"+ "$ref": "#/components/schemas/WanLoRALoaderOutput"}},"MiniMaxH3AdaLNOverlayField": {@@ -93153,6 +93700,22 @@"description": "Run the MiniMax H3 joint audio-video denoising loop.","node_pack": "invokeai","properties": {+ "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",@@ -93347,7 +93910,7 @@"tags": ["latents", "video", "audio", "minimax"],"title": "Denoise - MiniMax H3","type": "object",- "version": "1.4.0",+ "version": "1.5.0","output": {"$ref": "#/components/schemas/MiniMaxH3DenoiseOutput"}@@ -93356,6 +93919,19 @@"class": "output","description": "Joint video + audio latents from one MiniMax H3 denoise run.","properties": {+ "metadata": {+ "$ref": "#/components/schemas/MetadataField",+ "description": "Metadata Dict",+ "field_kind": "output",+ "ui_hidden": false+ },+ "type": {+ "const": "minimax_h3_denoise_output",+ "default": "minimax_h3_denoise_output",+ "field_kind": "node_attribute",+ "title": "type",+ "type": "string"+ },"video_latents": {"$ref": "#/components/schemas/LatentsField","description": "5D video latents [1, 24, T_lat, H/16, W/16].",@@ -93388,16 +93964,19 @@"title": "Num Frames","type": "integer","ui_hidden": false- },- "type": {- "const": "minimax_h3_denoise_output",- "default": "minimax_h3_denoise_output",- "field_kind": "node_attribute",- "title": "type",- "type": "string"}},- "required": ["output_meta", "video_latents", "audio_latents", "width", "height", "num_frames", "type", "type"],+ "required": [+ "output_meta",+ "metadata",+ "type",+ "video_latents",+ "audio_latents",+ "width",+ "height",+ "num_frames",+ "type"+ ],"title": "MiniMaxH3DenoiseOutput","type": "object"},@@ -100203,6 +100782,22 @@"description": "Run the MOSS-Image denoising loop.\n\nTakes and returns latents in the FLUX.2 VAE's raw layout, so the FLUX.2 VAE encode and decode nodes work on either\nside. The schedule is the model's own shifted Euler schedule; with CFG the negative branch skips the transformer\nblocks in `uncond_skip_layers`, as the reference pipeline does. The transformer's LoRAs apply to both branches: merged\ninto the weights where the build allows it, beside them as sidecars on GGUF, int8 and FP8 Storage builds.","node_pack": "invokeai","properties": {+ "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",@@ -100426,9 +101021,9 @@"tags": ["image", "moss_image", "moss-image"],"title": "Denoise - MOSS-Image","type": "object",- "version": "1.1.0",+ "version": "1.2.0","output": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"}},"MossImageLayoutPromptInvocation": {@@ -106871,22 +107466,6 @@"description": "Run the denoising process with a Qwen-Image-2.1 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": [{@@ -107130,7 +107709,7 @@"tags": ["image", "qwen_image_2_1", "qwen-image-2.1"],"title": "Denoise - Qwen-Image-2.1","type": "object",- "version": "1.2.0",+ "version": "1.3.0","output": {"$ref": "#/components/schemas/LatentsMetaOutput"}@@ -108200,22 +108779,6 @@"description": "Run the denoising process with a Qwen Image 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": [{@@ -108499,9 +109062,9 @@"tags": ["image", "qwen_image"],"title": "Denoise - Qwen Image","type": "object",- "version": "1.1.1",+ "version": "1.2.0","output": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"}},"QwenImageImageToLatentsInvocation": {@@ -111325,22 +111888,6 @@"description": "Run denoising process with a SD3 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": [{@@ -111574,9 +112121,9 @@"tags": ["image", "sd3"],"title": "Denoise - SD3","type": "object",- "version": "1.3.0",+ "version": "1.4.0","output": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"}},"SD3ImageToLatentsInvocation": {@@ -121108,6 +121655,22 @@"description": "Tiled Multi-Diffusion denoising.\n\nThis node handles automatically tiling the input image, and is primarily intended for global refinement of images\nin tiled upscaling workflows. Future Multi-Diffusion nodes should allow the user to specify custom regions with\ndifferent parameters for each region to harness the full power of Multi-Diffusion.\n\nThis node has a similar interface to the `DenoiseLatents` node, but it has a reduced feature set (no IP-Adapter,\nT2I-Adapter, masking, etc.).","node_pack": "invokeai","properties": {+ "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",@@ -121391,9 +121954,9 @@"tags": ["upscale", "denoise"],"title": "Tiled Multi-Diffusion Denoise - SD1.5, SDXL","type": "object",- "version": "1.0.1",+ "version": "1.1.0","output": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"}},"TinyAutoencoder_Checkpoint_FLUX_Config": {@@ -128107,6 +128670,22 @@"description": "Run the denoising process with a Wan 2.2 model.\n\nDrives the flow-matching schedule the model ships with (UniPC with flow\nsigmas for the Wan 2.2 reference repos; see ``_build_scheduler``). CFG is\nsupported when negative conditioning is provided and ``guidance_scale != 1.0``.\n\nFor Wan 2.2 A14B the high-noise expert handles timesteps at and above\n``boundary_ratio * num_train_timesteps``; the low-noise expert handles\ntimesteps below. Both experts share the model cache; only the active one is\nGPU-resident at any time.","node_pack": "invokeai","properties": {+ "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",@@ -128347,9 +128926,9 @@"tags": ["image", "wan"],"title": "Denoise - Wan 2.2","type": "object",- "version": "1.0.0",+ "version": "1.1.0","output": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"}},"WanI2VIdealDimensionsInvocation": {@@ -129943,6 +130522,22 @@"description": "Run the Wan 2.2 denoising loop on a multi-frame latent tensor.\n\nThe output is a 5D ``[1, C, T_lat, H/8, W/8]`` latent tensor ready for\n:class:`WanLatentsToVideoInvocation` to VAE-decode and encode as MP4.\n\nMirrors :class:`WanDenoiseInvocation` for the per-step logic (CFG, MoE\nexpert swap at the boundary timestep, LoRA patching, scheduler selection).\nDifferences from the image denoise:\n\n* The noise tensor has a real temporal dim built from ``num_frames``.\n* The I2V condition is built across all latent frames (frame 0\n conditioned, rest zero) via\n :func:`encode_reference_image_to_video_condition` upstream \u2014 the\n ``ref_image`` field on this node carries a tensor of shape\n ``[1, 20, T_lat, H_lat, W_lat]`` instead of ``[1, 20, 1, ...]``.\n* No ``denoising_start`` / ``denoising_end`` / initial-latents inputs.\n The image denoise node uses those for img2img (noise injection on an\n existing latent), but image-conditioned video generation flows through\n the reference-frame conditioning mechanism instead \u2014 the first frame\n drives subsequent frames at every step, so a partial-schedule run from\n an initial latent has no analogue here. Run the schedule from t=1\n to t=0 every time. The base ``WanDenoiseInvocation`` still handles\n the img2img case for stills.","node_pack": "invokeai","properties": {+ "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",@@ -130128,9 +130723,9 @@"tags": ["video", "wan"],"title": "Denoise Video - Wan 2.2","type": "object",- "version": "1.0.0",+ "version": "1.1.0","output": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"}},"WildcardChanges": {@@ -132962,6 +133557,22 @@"description": "Run the denoising process with a Z-Image model.\n\nSupports regional prompting by connecting multiple conditioning inputs with masks.","node_pack": "invokeai","properties": {+ "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",@@ -133261,15 +133872,15 @@"tags": ["image", "z-image"],"title": "Denoise - Z-Image","type": "object",- "version": "1.6.1",+ "version": "1.7.0","output": {- "$ref": "#/components/schemas/LatentsOutput"+ "$ref": "#/components/schemas/LatentsMetaOutput"}},"ZImageDenoiseMetaInvocation": {"category": "metadata","class": "invocation",- "classification": "stable",+ "classification": "deprecated","description": "Run denoising process with a Z-Image transformer model + metadata.","node_pack": "invokeai","properties": {@@ -133588,7 +134199,7 @@"tags": ["z-image", "latents", "denoise", "txt2img", "t2i", "t2l", "img2img", "i2i", "l2l"],"title": "Denoise - Z-Image + Metadata","type": "object",- "version": "1.1.0",+ "version": "1.2.0","output": {"$ref": "#/components/schemas/LatentsMetaOutput"}diff --git a/invokeai/frontend/api/schema.ts b/invokeai/frontend/api/schema.tsindex 7d30d99848..531e7fea64 100644--- a/invokeai/frontend/api/schema.ts+++ b/invokeai/frontend/api/schema.ts@@ -5071,6 +5071,11 @@ export type components = {* Supports txt2img, img2img (via latents input), and inpainting (via denoise_mask).*/AnimaDenoiseInvocation: {+ /**+ * @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.@@ -8941,11 +8946,6 @@ export type components = {* @description Run the denoising process with a CogView4 model.*/CogView4DenoiseInvocation: {- /**- * @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@@ -11411,10 +11411,10 @@ export type components = {rand_device?: string | null;/*** Cfg Scale- * @description The classifier-free guidance scale parameter+ * @description The classifier-free guidance scale parameter (scalar or per-step schedule)* @default null*/- cfg_scale?: number | null;+ cfg_scale?: number | number[] | null;/*** Cfg Rescale Multiplier* @description Rescale multiplier for CFG guidance, used for models trained with zero-terminal SNR@@ -12235,6 +12235,11 @@ export type components = {* @description Denoises noisy latents to decodable images*/DenoiseLatentsInvocation: {+ /**+ * @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.@@ -13170,6 +13175,11 @@ export type components = {* @description Run the ERNIE-Image denoising loop and emit packed latents.*/ErnieImageDenoiseInvocation: {+ /**+ * @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.@@ -15146,6 +15156,11 @@ export type components = {* are not supported. Regional masking is skipped when reference images are attached.*/Flux2DenoiseInvocation: {+ /**+ * @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.@@ -16076,6 +16091,11 @@ export type components = {* <ref_image_0>, <ref_image_1>, ... in the order they are connected.*/Flux3DenoiseInvocation: {+ /**+ * @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.@@ -16791,6 +16811,11 @@ export type components = {* @description Run denoising process with a FLUX transformer model.*/FluxDenoiseInvocation: {+ /**+ * @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.@@ -19423,7 +19448,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"]["AnimaDenoiseMetaInvocation"] | components["schemas"]["AnimaIPAdapterInvocation"] | 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"]["AtlasCloudImageGenerationInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BooleanLogicInvocation"] | 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"]["ClarityInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["CollectionCartesianInvocation"] | components["schemas"]["CollectionConcatInvocation"] | components["schemas"]["CollectionZipInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ContrastDehazeInvocation"] | 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"]["ErnieImageDenoiseInvocation"] | components["schemas"]["ErnieImageLoRACollectionLoader"] | components["schemas"]["ErnieImageLoRALoaderInvocation"] | components["schemas"]["ErnieImageModelLoaderInvocation"] | components["schemas"]["ErnieImagePromptEnhancerInvocation"] | components["schemas"]["ErnieImageTextEncoderInvocation"] | components["schemas"]["ErnieImageVaeDecodeInvocation"] | 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"]["Flux2ControlInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2DevLoRACollectionLoader"] | components["schemas"]["Flux2DevLoRALoaderInvocation"] | components["schemas"]["Flux2DevModelLoaderInvocation"] | components["schemas"]["Flux2DevTextEncoderInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2PiDDecodeInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["Flux3DenoiseInvocation"] | components["schemas"]["Flux3LayoutPromptInvocation"] | components["schemas"]["Flux3LoRACollectionLoader"] | components["schemas"]["Flux3LoRALoaderInvocation"] | components["schemas"]["Flux3ModelLoaderInvocation"] | components["schemas"]["Flux3PromptUpsamplerInvocation"] | components["schemas"]["Flux3TextEncoderInvocation"] | 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"]["FluxPiDDecodeInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["ForInvocation"] | components["schemas"]["ForReturnInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["Gemma2EncoderLoaderInvocation"] | 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"]["Ideogram4LoRACollectionLoader"] | components["schemas"]["Ideogram4LoRALoaderInvocation"] | 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"]["Krea2StyleReferenceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LTX2AudioConditioningInvocation"] | components["schemas"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2DurationInvocation"] | components["schemas"]["LTX2ExtendConditioningInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentUpsampleInvocation"] | components["schemas"]["LTX2LatentsToVideoInvocation"] | components["schemas"]["LTX2LoRACollectionLoader"] | components["schemas"]["LTX2LoRALoaderInvocation"] | components["schemas"]["LTX2ModelLoaderInvocation"] | components["schemas"]["LTX2TextEncoderInvocation"] | components["schemas"]["LTX2VideoConditioningInvocation"] | 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"]["MiniMaxH3DenoiseInvocation"] | components["schemas"]["MiniMaxH3FrameConditioningInvocation"] | components["schemas"]["MiniMaxH3HybridOverlayInvocation"] | components["schemas"]["MiniMaxH3IdealDimensionsInvocation"] | components["schemas"]["MiniMaxH3ImageReferenceInvocation"] | components["schemas"]["MiniMaxH3LatentsToImageInvocation"] | components["schemas"]["MiniMaxH3LatentsToVideoInvocation"] | components["schemas"]["MiniMaxH3LoRACollectionLoader"] | components["schemas"]["MiniMaxH3LoRALoaderInvocation"] | components["schemas"]["MiniMaxH3ModelLoaderInvocation"] | components["schemas"]["MiniMaxH3ReferenceConditioningInvocation"] | components["schemas"]["MiniMaxH3TextEncoderInvocation"] | components["schemas"]["MiniMaxH3VideoReferenceInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MossImageDenoiseInvocation"] | components["schemas"]["MossImageLayoutPromptInvocation"] | components["schemas"]["MossImageLoRACollectionLoader"] | components["schemas"]["MossImageLoRALoaderInvocation"] | components["schemas"]["MossImageModelLoaderInvocation"] | components["schemas"]["MossImageTextEncoderInvocation"] | 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"]["PiDDecoderLoaderInvocation"] | components["schemas"]["PiDUpscaleInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImage21DenoiseInvocation"] | components["schemas"]["QwenImage21ImageToLatentsInvocation"] | components["schemas"]["QwenImage21LatentsToImageInvocation"] | components["schemas"]["QwenImage21LoRACollectionLoader"] | components["schemas"]["QwenImage21LoRALoaderInvocation"] | components["schemas"]["QwenImage21ModelLoaderInvocation"] | components["schemas"]["QwenImage21TextEncoderInvocation"] | components["schemas"]["QwenImageControlInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImagePiDDecodeInvocation"] | 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"]["SD3LoRACollectionLoader"] | components["schemas"]["SD3LoRALoaderInvocation"] | components["schemas"]["SD3PiDDecodeInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLPiDDecodeInvocation"] | 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"]["StateEmptyInvocation"] | components["schemas"]["StateGetInvocation"] | components["schemas"]["StateMergeInvocation"] | components["schemas"]["StateSetInvocation"] | 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"]["TextLLMWithPresetInvocation"] | components["schemas"]["TextureInvocation"] | 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"]["ZImagePiDDecodeInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];+ [key: string]: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaDenoiseMetaInvocation"] | components["schemas"]["AnimaIPAdapterInvocation"] | 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"]["AtlasCloudImageGenerationInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BooleanLogicInvocation"] | 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"]["ClarityInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["CollectionCartesianInvocation"] | components["schemas"]["CollectionConcatInvocation"] | components["schemas"]["CollectionZipInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ContrastDehazeInvocation"] | 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"]["ErnieImageDenoiseInvocation"] | components["schemas"]["ErnieImageLoRACollectionLoader"] | components["schemas"]["ErnieImageLoRALoaderInvocation"] | components["schemas"]["ErnieImageModelLoaderInvocation"] | components["schemas"]["ErnieImagePromptEnhancerInvocation"] | components["schemas"]["ErnieImageTextEncoderInvocation"] | components["schemas"]["ErnieImageVaeDecodeInvocation"] | 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"]["Flux2ControlInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2DevLoRACollectionLoader"] | components["schemas"]["Flux2DevLoRALoaderInvocation"] | components["schemas"]["Flux2DevModelLoaderInvocation"] | components["schemas"]["Flux2DevTextEncoderInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2PiDDecodeInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["Flux3DenoiseInvocation"] | components["schemas"]["Flux3LayoutPromptInvocation"] | components["schemas"]["Flux3LoRACollectionLoader"] | components["schemas"]["Flux3LoRALoaderInvocation"] | components["schemas"]["Flux3ModelLoaderInvocation"] | components["schemas"]["Flux3PromptUpsamplerInvocation"] | components["schemas"]["Flux3TextEncoderInvocation"] | 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"]["FluxPiDDecodeInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["ForInvocation"] | components["schemas"]["ForReturnInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["Gemma2EncoderLoaderInvocation"] | 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"]["Ideogram4LoRACollectionLoader"] | components["schemas"]["Ideogram4LoRALoaderInvocation"] | 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"]["Krea2StyleReferenceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LTX2AudioConditioningInvocation"] | components["schemas"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2DurationInvocation"] | components["schemas"]["LTX2ExtendConditioningInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentUpsampleInvocation"] | components["schemas"]["LTX2LatentsToVideoInvocation"] | components["schemas"]["LTX2LoRACollectionLoader"] | components["schemas"]["LTX2LoRALoaderInvocation"] | components["schemas"]["LTX2ModelLoaderInvocation"] | components["schemas"]["LTX2TextEncoderInvocation"] | components["schemas"]["LTX2VideoConditioningInvocation"] | 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"]["MetadataToWanLorasInvocation"] | components["schemas"]["MiniMaxH3DenoiseInvocation"] | components["schemas"]["MiniMaxH3FrameConditioningInvocation"] | components["schemas"]["MiniMaxH3HybridOverlayInvocation"] | components["schemas"]["MiniMaxH3IdealDimensionsInvocation"] | components["schemas"]["MiniMaxH3ImageReferenceInvocation"] | components["schemas"]["MiniMaxH3LatentsToImageInvocation"] | components["schemas"]["MiniMaxH3LatentsToVideoInvocation"] | components["schemas"]["MiniMaxH3LoRACollectionLoader"] | components["schemas"]["MiniMaxH3LoRALoaderInvocation"] | components["schemas"]["MiniMaxH3ModelLoaderInvocation"] | components["schemas"]["MiniMaxH3ReferenceConditioningInvocation"] | components["schemas"]["MiniMaxH3TextEncoderInvocation"] | components["schemas"]["MiniMaxH3VideoReferenceInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MossImageDenoiseInvocation"] | components["schemas"]["MossImageLayoutPromptInvocation"] | components["schemas"]["MossImageLoRACollectionLoader"] | components["schemas"]["MossImageLoRALoaderInvocation"] | components["schemas"]["MossImageModelLoaderInvocation"] | components["schemas"]["MossImageTextEncoderInvocation"] | 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"]["PiDDecoderLoaderInvocation"] | components["schemas"]["PiDUpscaleInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImage21DenoiseInvocation"] | components["schemas"]["QwenImage21ImageToLatentsInvocation"] | components["schemas"]["QwenImage21LatentsToImageInvocation"] | components["schemas"]["QwenImage21LoRACollectionLoader"] | components["schemas"]["QwenImage21LoRALoaderInvocation"] | components["schemas"]["QwenImage21ModelLoaderInvocation"] | components["schemas"]["QwenImage21TextEncoderInvocation"] | components["schemas"]["QwenImageControlInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImagePiDDecodeInvocation"] | 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"]["SD3LoRACollectionLoader"] | components["schemas"]["SD3LoRALoaderInvocation"] | components["schemas"]["SD3PiDDecodeInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLPiDDecodeInvocation"] | 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"]["StateEmptyInvocation"] | components["schemas"]["StateGetInvocation"] | components["schemas"]["StateMergeInvocation"] | components["schemas"]["StateSetInvocation"] | 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"]["TextLLMWithPresetInvocation"] | components["schemas"]["TextureInvocation"] | 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"]["ZImagePiDDecodeInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];};/*** Edges@@ -20781,6 +20806,11 @@ export type components = {* @description Runs the Ideogram 4 dual-branch flow-matching denoising loop (text-to-image).*/Ideogram4DenoiseInvocation: {+ /**+ * @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.@@ -24509,7 +24539,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"]["AnimaDenoiseMetaInvocation"] | components["schemas"]["AnimaIPAdapterInvocation"] | 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"]["AtlasCloudImageGenerationInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BooleanLogicInvocation"] | 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"]["ClarityInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["CollectionCartesianInvocation"] | components["schemas"]["CollectionConcatInvocation"] | components["schemas"]["CollectionZipInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ContrastDehazeInvocation"] | 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"]["ErnieImageDenoiseInvocation"] | components["schemas"]["ErnieImageLoRACollectionLoader"] | components["schemas"]["ErnieImageLoRALoaderInvocation"] | components["schemas"]["ErnieImageModelLoaderInvocation"] | components["schemas"]["ErnieImagePromptEnhancerInvocation"] | components["schemas"]["ErnieImageTextEncoderInvocation"] | components["schemas"]["ErnieImageVaeDecodeInvocation"] | 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"]["Flux2ControlInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2DevLoRACollectionLoader"] | components["schemas"]["Flux2DevLoRALoaderInvocation"] | components["schemas"]["Flux2DevModelLoaderInvocation"] | components["schemas"]["Flux2DevTextEncoderInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2PiDDecodeInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["Flux3DenoiseInvocation"] | components["schemas"]["Flux3LayoutPromptInvocation"] | components["schemas"]["Flux3LoRACollectionLoader"] | components["schemas"]["Flux3LoRALoaderInvocation"] | components["schemas"]["Flux3ModelLoaderInvocation"] | components["schemas"]["Flux3PromptUpsamplerInvocation"] | components["schemas"]["Flux3TextEncoderInvocation"] | 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"]["FluxPiDDecodeInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["ForInvocation"] | components["schemas"]["ForReturnInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["Gemma2EncoderLoaderInvocation"] | 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"]["Ideogram4LoRACollectionLoader"] | components["schemas"]["Ideogram4LoRALoaderInvocation"] | 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"]["Krea2StyleReferenceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LTX2AudioConditioningInvocation"] | components["schemas"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2DurationInvocation"] | components["schemas"]["LTX2ExtendConditioningInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentUpsampleInvocation"] | components["schemas"]["LTX2LatentsToVideoInvocation"] | components["schemas"]["LTX2LoRACollectionLoader"] | components["schemas"]["LTX2LoRALoaderInvocation"] | components["schemas"]["LTX2ModelLoaderInvocation"] | components["schemas"]["LTX2TextEncoderInvocation"] | components["schemas"]["LTX2VideoConditioningInvocation"] | 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"]["MiniMaxH3DenoiseInvocation"] | components["schemas"]["MiniMaxH3FrameConditioningInvocation"] | components["schemas"]["MiniMaxH3HybridOverlayInvocation"] | components["schemas"]["MiniMaxH3IdealDimensionsInvocation"] | components["schemas"]["MiniMaxH3ImageReferenceInvocation"] | components["schemas"]["MiniMaxH3LatentsToImageInvocation"] | components["schemas"]["MiniMaxH3LatentsToVideoInvocation"] | components["schemas"]["MiniMaxH3LoRACollectionLoader"] | components["schemas"]["MiniMaxH3LoRALoaderInvocation"] | components["schemas"]["MiniMaxH3ModelLoaderInvocation"] | components["schemas"]["MiniMaxH3ReferenceConditioningInvocation"] | components["schemas"]["MiniMaxH3TextEncoderInvocation"] | components["schemas"]["MiniMaxH3VideoReferenceInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MossImageDenoiseInvocation"] | components["schemas"]["MossImageLayoutPromptInvocation"] | components["schemas"]["MossImageLoRACollectionLoader"] | components["schemas"]["MossImageLoRALoaderInvocation"] | components["schemas"]["MossImageModelLoaderInvocation"] | components["schemas"]["MossImageTextEncoderInvocation"] | 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"]["PiDDecoderLoaderInvocation"] | components["schemas"]["PiDUpscaleInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImage21DenoiseInvocation"] | components["schemas"]["QwenImage21ImageToLatentsInvocation"] | components["schemas"]["QwenImage21LatentsToImageInvocation"] | components["schemas"]["QwenImage21LoRACollectionLoader"] | components["schemas"]["QwenImage21LoRALoaderInvocation"] | components["schemas"]["QwenImage21ModelLoaderInvocation"] | components["schemas"]["QwenImage21TextEncoderInvocation"] | components["schemas"]["QwenImageControlInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImagePiDDecodeInvocation"] | 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"]["SD3LoRACollectionLoader"] | components["schemas"]["SD3LoRALoaderInvocation"] | components["schemas"]["SD3PiDDecodeInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLPiDDecodeInvocation"] | 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"]["StateEmptyInvocation"] | components["schemas"]["StateGetInvocation"] | components["schemas"]["StateMergeInvocation"] | components["schemas"]["StateSetInvocation"] | 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"]["TextLLMWithPresetInvocation"] | components["schemas"]["TextureInvocation"] | 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"]["ZImagePiDDecodeInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];+ invocation: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaDenoiseMetaInvocation"] | components["schemas"]["AnimaIPAdapterInvocation"] | 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"]["AtlasCloudImageGenerationInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BooleanLogicInvocation"] | 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"]["ClarityInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["CollectionCartesianInvocation"] | components["schemas"]["CollectionConcatInvocation"] | components["schemas"]["CollectionZipInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ContrastDehazeInvocation"] | 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"]["ErnieImageDenoiseInvocation"] | components["schemas"]["ErnieImageLoRACollectionLoader"] | components["schemas"]["ErnieImageLoRALoaderInvocation"] | components["schemas"]["ErnieImageModelLoaderInvocation"] | components["schemas"]["ErnieImagePromptEnhancerInvocation"] | components["schemas"]["ErnieImageTextEncoderInvocation"] | components["schemas"]["ErnieImageVaeDecodeInvocation"] | 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"]["Flux2ControlInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2DevLoRACollectionLoader"] | components["schemas"]["Flux2DevLoRALoaderInvocation"] | components["schemas"]["Flux2DevModelLoaderInvocation"] | components["schemas"]["Flux2DevTextEncoderInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2PiDDecodeInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["Flux3DenoiseInvocation"] | components["schemas"]["Flux3LayoutPromptInvocation"] | components["schemas"]["Flux3LoRACollectionLoader"] | components["schemas"]["Flux3LoRALoaderInvocation"] | components["schemas"]["Flux3ModelLoaderInvocation"] | components["schemas"]["Flux3PromptUpsamplerInvocation"] | components["schemas"]["Flux3TextEncoderInvocation"] | 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"]["FluxPiDDecodeInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["ForInvocation"] | components["schemas"]["ForReturnInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["Gemma2EncoderLoaderInvocation"] | 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"]["Ideogram4LoRACollectionLoader"] | components["schemas"]["Ideogram4LoRALoaderInvocation"] | 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"]["Krea2StyleReferenceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LTX2AudioConditioningInvocation"] | components["schemas"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2DurationInvocation"] | components["schemas"]["LTX2ExtendConditioningInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentUpsampleInvocation"] | components["schemas"]["LTX2LatentsToVideoInvocation"] | components["schemas"]["LTX2LoRACollectionLoader"] | components["schemas"]["LTX2LoRALoaderInvocation"] | components["schemas"]["LTX2ModelLoaderInvocation"] | components["schemas"]["LTX2TextEncoderInvocation"] | components["schemas"]["LTX2VideoConditioningInvocation"] | 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"]["MetadataToWanLorasInvocation"] | components["schemas"]["MiniMaxH3DenoiseInvocation"] | components["schemas"]["MiniMaxH3FrameConditioningInvocation"] | components["schemas"]["MiniMaxH3HybridOverlayInvocation"] | components["schemas"]["MiniMaxH3IdealDimensionsInvocation"] | components["schemas"]["MiniMaxH3ImageReferenceInvocation"] | components["schemas"]["MiniMaxH3LatentsToImageInvocation"] | components["schemas"]["MiniMaxH3LatentsToVideoInvocation"] | components["schemas"]["MiniMaxH3LoRACollectionLoader"] | components["schemas"]["MiniMaxH3LoRALoaderInvocation"] | components["schemas"]["MiniMaxH3ModelLoaderInvocation"] | components["schemas"]["MiniMaxH3ReferenceConditioningInvocation"] | components["schemas"]["MiniMaxH3TextEncoderInvocation"] | components["schemas"]["MiniMaxH3VideoReferenceInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MossImageDenoiseInvocation"] | components["schemas"]["MossImageLayoutPromptInvocation"] | components["schemas"]["MossImageLoRACollectionLoader"] | components["schemas"]["MossImageLoRALoaderInvocation"] | components["schemas"]["MossImageModelLoaderInvocation"] | components["schemas"]["MossImageTextEncoderInvocation"] | 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"]["PiDDecoderLoaderInvocation"] | components["schemas"]["PiDUpscaleInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImage21DenoiseInvocation"] | components["schemas"]["QwenImage21ImageToLatentsInvocation"] | components["schemas"]["QwenImage21LatentsToImageInvocation"] | components["schemas"]["QwenImage21LoRACollectionLoader"] | components["schemas"]["QwenImage21LoRALoaderInvocation"] | components["schemas"]["QwenImage21ModelLoaderInvocation"] | components["schemas"]["QwenImage21TextEncoderInvocation"] | components["schemas"]["QwenImageControlInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImagePiDDecodeInvocation"] | 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"]["SD3LoRACollectionLoader"] | components["schemas"]["SD3LoRALoaderInvocation"] | components["schemas"]["SD3PiDDecodeInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLPiDDecodeInvocation"] | 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"]["StateEmptyInvocation"] | components["schemas"]["StateGetInvocation"] | components["schemas"]["StateMergeInvocation"] | components["schemas"]["StateSetInvocation"] | 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"]["TextLLMWithPresetInvocation"] | components["schemas"]["TextureInvocation"] | 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"]["ZImagePiDDecodeInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];/*** Invocation Source Id* @description The ID of the prepared invocation's source node@@ -24591,7 +24621,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"]["AnimaDenoiseMetaInvocation"] | components["schemas"]["AnimaIPAdapterInvocation"] | 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"]["AtlasCloudImageGenerationInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BooleanLogicInvocation"] | 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"]["ClarityInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["CollectionCartesianInvocation"] | components["schemas"]["CollectionConcatInvocation"] | components["schemas"]["CollectionZipInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ContrastDehazeInvocation"] | 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"]["ErnieImageDenoiseInvocation"] | components["schemas"]["ErnieImageLoRACollectionLoader"] | components["schemas"]["ErnieImageLoRALoaderInvocation"] | components["schemas"]["ErnieImageModelLoaderInvocation"] | components["schemas"]["ErnieImagePromptEnhancerInvocation"] | components["schemas"]["ErnieImageTextEncoderInvocation"] | components["schemas"]["ErnieImageVaeDecodeInvocation"] | 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"]["Flux2ControlInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2DevLoRACollectionLoader"] | components["schemas"]["Flux2DevLoRALoaderInvocation"] | components["schemas"]["Flux2DevModelLoaderInvocation"] | components["schemas"]["Flux2DevTextEncoderInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2PiDDecodeInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["Flux3DenoiseInvocation"] | components["schemas"]["Flux3LayoutPromptInvocation"] | components["schemas"]["Flux3LoRACollectionLoader"] | components["schemas"]["Flux3LoRALoaderInvocation"] | components["schemas"]["Flux3ModelLoaderInvocation"] | components["schemas"]["Flux3PromptUpsamplerInvocation"] | components["schemas"]["Flux3TextEncoderInvocation"] | 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"]["FluxPiDDecodeInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["ForInvocation"] | components["schemas"]["ForReturnInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["Gemma2EncoderLoaderInvocation"] | 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"]["Ideogram4LoRACollectionLoader"] | components["schemas"]["Ideogram4LoRALoaderInvocation"] | 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"]["Krea2StyleReferenceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LTX2AudioConditioningInvocation"] | components["schemas"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2DurationInvocation"] | components["schemas"]["LTX2ExtendConditioningInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentUpsampleInvocation"] | components["schemas"]["LTX2LatentsToVideoInvocation"] | components["schemas"]["LTX2LoRACollectionLoader"] | components["schemas"]["LTX2LoRALoaderInvocation"] | components["schemas"]["LTX2ModelLoaderInvocation"] | components["schemas"]["LTX2TextEncoderInvocation"] | components["schemas"]["LTX2VideoConditioningInvocation"] | 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"]["MiniMaxH3DenoiseInvocation"] | components["schemas"]["MiniMaxH3FrameConditioningInvocation"] | components["schemas"]["MiniMaxH3HybridOverlayInvocation"] | components["schemas"]["MiniMaxH3IdealDimensionsInvocation"] | components["schemas"]["MiniMaxH3ImageReferenceInvocation"] | components["schemas"]["MiniMaxH3LatentsToImageInvocation"] | components["schemas"]["MiniMaxH3LatentsToVideoInvocation"] | components["schemas"]["MiniMaxH3LoRACollectionLoader"] | components["schemas"]["MiniMaxH3LoRALoaderInvocation"] | components["schemas"]["MiniMaxH3ModelLoaderInvocation"] | components["schemas"]["MiniMaxH3ReferenceConditioningInvocation"] | components["schemas"]["MiniMaxH3TextEncoderInvocation"] | components["schemas"]["MiniMaxH3VideoReferenceInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MossImageDenoiseInvocation"] | components["schemas"]["MossImageLayoutPromptInvocation"] | components["schemas"]["MossImageLoRACollectionLoader"] | components["schemas"]["MossImageLoRALoaderInvocation"] | components["schemas"]["MossImageModelLoaderInvocation"] | components["schemas"]["MossImageTextEncoderInvocation"] | 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"]["PiDDecoderLoaderInvocation"] | components["schemas"]["PiDUpscaleInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImage21DenoiseInvocation"] | components["schemas"]["QwenImage21ImageToLatentsInvocation"] | components["schemas"]["QwenImage21LatentsToImageInvocation"] | components["schemas"]["QwenImage21LoRACollectionLoader"] | components["schemas"]["QwenImage21LoRALoaderInvocation"] | components["schemas"]["QwenImage21ModelLoaderInvocation"] | components["schemas"]["QwenImage21TextEncoderInvocation"] | components["schemas"]["QwenImageControlInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImagePiDDecodeInvocation"] | 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"]["SD3LoRACollectionLoader"] | components["schemas"]["SD3LoRALoaderInvocation"] | components["schemas"]["SD3PiDDecodeInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLPiDDecodeInvocation"] | 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"]["StateEmptyInvocation"] | components["schemas"]["StateGetInvocation"] | components["schemas"]["StateMergeInvocation"] | components["schemas"]["StateSetInvocation"] | 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"]["TextLLMWithPresetInvocation"] | components["schemas"]["TextureInvocation"] | 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"]["ZImagePiDDecodeInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];+ invocation: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaDenoiseMetaInvocation"] | components["schemas"]["AnimaIPAdapterInvocation"] | 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"]["AtlasCloudImageGenerationInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BooleanLogicInvocation"] | 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"]["ClarityInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["CollectionCartesianInvocation"] | components["schemas"]["CollectionConcatInvocation"] | components["schemas"]["CollectionZipInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ContrastDehazeInvocation"] | 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"]["ErnieImageDenoiseInvocation"] | components["schemas"]["ErnieImageLoRACollectionLoader"] | components["schemas"]["ErnieImageLoRALoaderInvocation"] | components["schemas"]["ErnieImageModelLoaderInvocation"] | components["schemas"]["ErnieImagePromptEnhancerInvocation"] | components["schemas"]["ErnieImageTextEncoderInvocation"] | components["schemas"]["ErnieImageVaeDecodeInvocation"] | 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"]["Flux2ControlInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2DevLoRACollectionLoader"] | components["schemas"]["Flux2DevLoRALoaderInvocation"] | components["schemas"]["Flux2DevModelLoaderInvocation"] | components["schemas"]["Flux2DevTextEncoderInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2PiDDecodeInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["Flux3DenoiseInvocation"] | components["schemas"]["Flux3LayoutPromptInvocation"] | components["schemas"]["Flux3LoRACollectionLoader"] | components["schemas"]["Flux3LoRALoaderInvocation"] | components["schemas"]["Flux3ModelLoaderInvocation"] | components["schemas"]["Flux3PromptUpsamplerInvocation"] | components["schemas"]["Flux3TextEncoderInvocation"] | 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"]["FluxPiDDecodeInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["ForInvocation"] | components["schemas"]["ForReturnInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["Gemma2EncoderLoaderInvocation"] | 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"]["Ideogram4LoRACollectionLoader"] | components["schemas"]["Ideogram4LoRALoaderInvocation"] | 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"]["Krea2StyleReferenceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LTX2AudioConditioningInvocation"] | components["schemas"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2DurationInvocation"] | components["schemas"]["LTX2ExtendConditioningInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentUpsampleInvocation"] | components["schemas"]["LTX2LatentsToVideoInvocation"] | components["schemas"]["LTX2LoRACollectionLoader"] | components["schemas"]["LTX2LoRALoaderInvocation"] | components["schemas"]["LTX2ModelLoaderInvocation"] | components["schemas"]["LTX2TextEncoderInvocation"] | components["schemas"]["LTX2VideoConditioningInvocation"] | 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"]["MetadataToWanLorasInvocation"] | components["schemas"]["MiniMaxH3DenoiseInvocation"] | components["schemas"]["MiniMaxH3FrameConditioningInvocation"] | components["schemas"]["MiniMaxH3HybridOverlayInvocation"] | components["schemas"]["MiniMaxH3IdealDimensionsInvocation"] | components["schemas"]["MiniMaxH3ImageReferenceInvocation"] | components["schemas"]["MiniMaxH3LatentsToImageInvocation"] | components["schemas"]["MiniMaxH3LatentsToVideoInvocation"] | components["schemas"]["MiniMaxH3LoRACollectionLoader"] | components["schemas"]["MiniMaxH3LoRALoaderInvocation"] | components["schemas"]["MiniMaxH3ModelLoaderInvocation"] | components["schemas"]["MiniMaxH3ReferenceConditioningInvocation"] | components["schemas"]["MiniMaxH3TextEncoderInvocation"] | components["schemas"]["MiniMaxH3VideoReferenceInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MossImageDenoiseInvocation"] | components["schemas"]["MossImageLayoutPromptInvocation"] | components["schemas"]["MossImageLoRACollectionLoader"] | components["schemas"]["MossImageLoRALoaderInvocation"] | components["schemas"]["MossImageModelLoaderInvocation"] | components["schemas"]["MossImageTextEncoderInvocation"] | 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"]["PiDDecoderLoaderInvocation"] | components["schemas"]["PiDUpscaleInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImage21DenoiseInvocation"] | components["schemas"]["QwenImage21ImageToLatentsInvocation"] | components["schemas"]["QwenImage21LatentsToImageInvocation"] | components["schemas"]["QwenImage21LoRACollectionLoader"] | components["schemas"]["QwenImage21LoRALoaderInvocation"] | components["schemas"]["QwenImage21ModelLoaderInvocation"] | components["schemas"]["QwenImage21TextEncoderInvocation"] | components["schemas"]["QwenImageControlInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImagePiDDecodeInvocation"] | 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"]["SD3LoRACollectionLoader"] | components["schemas"]["SD3LoRALoaderInvocation"] | components["schemas"]["SD3PiDDecodeInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLPiDDecodeInvocation"] | 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"]["StateEmptyInvocation"] | components["schemas"]["StateGetInvocation"] | components["schemas"]["StateMergeInvocation"] | components["schemas"]["StateSetInvocation"] | 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"]["TextLLMWithPresetInvocation"] | components["schemas"]["TextureInvocation"] | 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"]["ZImagePiDDecodeInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];/*** Invocation Source Id* @description The ID of the prepared invocation's source node@@ -24635,7 +24665,7 @@ export type components = {add: components["schemas"]["IntegerOutput"];alibabacloud_image_generation: components["schemas"]["ImageCollectionOutput"];alpha_mask_to_tensor: components["schemas"]["MaskOutput"];- anima_denoise: components["schemas"]["LatentsOutput"];+ anima_denoise: components["schemas"]["LatentsMetaOutput"];anima_denoise_meta: components["schemas"]["LatentsMetaOutput"];anima_i2l: components["schemas"]["LatentsOutput"];anima_ip_adapter: components["schemas"]["AnimaIPAdapterOutput"];@@ -24663,7 +24693,7 @@ export type components = {canvas_v2_mask_and_crop: components["schemas"]["ImageOutput"];clarity: components["schemas"]["ImageOutput"];clip_skip: components["schemas"]["CLIPSkipInvocationOutput"];- cogview4_denoise: components["schemas"]["LatentsOutput"];+ cogview4_denoise: components["schemas"]["LatentsMetaOutput"];cogview4_i2l: components["schemas"]["LatentsOutput"];cogview4_l2i: components["schemas"]["ImageOutput"];cogview4_model_loader: components["schemas"]["CogView4ModelLoaderOutput"];@@ -24688,13 +24718,13 @@ export type components = {crop_latents: components["schemas"]["LatentsOutput"];cv_inpaint: components["schemas"]["ImageOutput"];decode_watermark: components["schemas"]["StringOutput"];- denoise_latents: components["schemas"]["LatentsOutput"];+ denoise_latents: components["schemas"]["LatentsMetaOutput"];denoise_latents_meta: components["schemas"]["LatentsMetaOutput"];depth_anything_depth_estimation: components["schemas"]["ImageOutput"];div: components["schemas"]["IntegerOutput"];dw_openpose_detection: components["schemas"]["ImageOutput"];dynamic_prompt: components["schemas"]["StringCollectionOutput"];- ernie_image_denoise: components["schemas"]["LatentsOutput"];+ ernie_image_denoise: components["schemas"]["LatentsMetaOutput"];ernie_image_lora_collection_loader: components["schemas"]["ErnieImageLoRACollectionLoaderOutput"];ernie_image_lora_loader: components["schemas"]["ErnieImageLoRALoaderOutput"];ernie_image_model_loader: components["schemas"]["ErnieImageModelLoaderOutput"];@@ -24715,7 +24745,7 @@ export type components = {float_range: components["schemas"]["FloatCollectionOutput"];float_to_int: components["schemas"]["IntegerOutput"];flux2_control: components["schemas"]["Flux2ControlOutput"];- flux2_denoise: components["schemas"]["LatentsOutput"];+ flux2_denoise: components["schemas"]["LatentsMetaOutput"];flux2_dev_lora_collection_loader: components["schemas"]["Flux2DevLoRALoaderOutput"];flux2_dev_lora_loader: components["schemas"]["Flux2DevLoRALoaderOutput"];flux2_dev_model_loader: components["schemas"]["Flux2DevModelLoaderOutput"];@@ -24727,7 +24757,7 @@ export type components = {flux2_pid_decode: components["schemas"]["ImageOutput"];flux2_vae_decode: components["schemas"]["ImageOutput"];flux2_vae_encode: components["schemas"]["LatentsOutput"];- flux3_denoise: components["schemas"]["LatentsOutput"];+ flux3_denoise: components["schemas"]["LatentsMetaOutput"];flux3_layout_prompt: components["schemas"]["StringOutput"];flux3_lora_collection_loader: components["schemas"]["Flux3LoRALoaderOutput"];flux3_lora_loader: components["schemas"]["Flux3LoRALoaderOutput"];@@ -24736,7 +24766,7 @@ export type components = {flux3_text_encoder: components["schemas"]["Flux3ConditioningOutput"];flux_control_lora_loader: components["schemas"]["FluxControlLoRALoaderOutput"];flux_controlnet: components["schemas"]["FluxControlNetOutput"];- flux_denoise: components["schemas"]["LatentsOutput"];+ flux_denoise: components["schemas"]["LatentsMetaOutput"];flux_denoise_meta: components["schemas"]["LatentsMetaOutput"];flux_fill: components["schemas"]["FluxFillOutput"];flux_ip_adapter: components["schemas"]["IPAdapterOutput"];@@ -24762,7 +24792,7 @@ export type components = {i2l: components["schemas"]["LatentsOutput"];ideal_size: components["schemas"]["IdealSizeOutput"];ideogram4_caption_builder: components["schemas"]["StringOutput"];- ideogram4_denoise: components["schemas"]["LatentsOutput"];+ ideogram4_denoise: components["schemas"]["LatentsMetaOutput"];ideogram4_l2i: components["schemas"]["ImageOutput"];ideogram4_lora_collection_loader: components["schemas"]["Ideogram4LoRACollectionLoaderOutput"];ideogram4_lora_loader: components["schemas"]["Ideogram4LoRALoaderOutput"];@@ -24814,7 +24844,7 @@ export type components = {ip_adapter: components["schemas"]["IPAdapterOutput"];iterate: components["schemas"]["IterateInvocationOutput"];krea2_conditioning_rebalance: components["schemas"]["Krea2ConditioningOutput"];- krea2_denoise: components["schemas"]["LatentsOutput"];+ krea2_denoise: components["schemas"]["LatentsMetaOutput"];krea2_lora_collection_loader: components["schemas"]["Krea2LoRALoaderOutput"];krea2_lora_loader: components["schemas"]["Krea2LoRALoaderOutput"];krea2_model_loader: components["schemas"]["Krea2ModelLoaderOutput"];@@ -24876,6 +24906,7 @@ export type components = {metadata_to_string_collection: components["schemas"]["StringCollectionOutput"];metadata_to_t2i_adapters: components["schemas"]["MDT2IAdapterListOutput"];metadata_to_vae: components["schemas"]["VAEOutput"];+ metadata_to_wan_loras: components["schemas"]["WanLoRALoaderOutput"];minimax_h3_denoise: components["schemas"]["MiniMaxH3DenoiseOutput"];minimax_h3_frame_conditioning: components["schemas"]["MiniMaxH3FrameConditioningOutput"];minimax_h3_hybrid_overlay: components["schemas"]["MiniMaxH3HybridOverlayOutput"];@@ -24891,7 +24922,7 @@ export type components = {minimax_h3_video_reference: components["schemas"]["MiniMaxH3ReferenceMediaOutput"];mlsd_detection: components["schemas"]["ImageOutput"];model_identifier: components["schemas"]["ModelIdentifierOutput"];- moss_image_denoise: components["schemas"]["LatentsOutput"];+ moss_image_denoise: components["schemas"]["LatentsMetaOutput"];moss_image_layout_prompt: components["schemas"]["StringOutput"];moss_image_lora_collection_loader: components["schemas"]["MossImageLoRALoaderOutput"];moss_image_lora_loader: components["schemas"]["MossImageLoRALoaderOutput"];@@ -24917,7 +24948,7 @@ export type components = {qwen_image_2_1_model_loader: components["schemas"]["QwenImage21ModelLoaderOutput"];qwen_image_2_1_text_encoder: components["schemas"]["QwenImage21ConditioningOutput"];qwen_image_control: components["schemas"]["QwenImageControlOutput"];- qwen_image_denoise: components["schemas"]["LatentsOutput"];+ qwen_image_denoise: components["schemas"]["LatentsMetaOutput"];qwen_image_i2l: components["schemas"]["LatentsOutput"];qwen_image_l2i: components["schemas"]["ImageOutput"];qwen_image_lora_collection_loader: components["schemas"]["QwenImageLoRALoaderOutput"];@@ -24935,7 +24966,7 @@ export type components = {save_image: components["schemas"]["ImageOutput"];save_image_to_file: components["schemas"]["ImageOutput"];scheduler: components["schemas"]["SchedulerOutput"];- sd3_denoise: components["schemas"]["LatentsOutput"];+ sd3_denoise: components["schemas"]["LatentsMetaOutput"];sd3_i2l: components["schemas"]["LatentsOutput"];sd3_l2i: components["schemas"]["ImageOutput"];sd3_lora_collection_loader: components["schemas"]["SD3LoRACollectionLoaderOutput"];@@ -24976,7 +25007,7 @@ export type components = {text_llm_with_preset: components["schemas"]["StringOutput"];texture: components["schemas"]["ImageOutput"];tile_to_properties: components["schemas"]["TileToPropertiesOutput"];- tiled_multi_diffusion_denoise_latents: components["schemas"]["LatentsOutput"];+ tiled_multi_diffusion_denoise_latents: components["schemas"]["LatentsMetaOutput"];tomask: components["schemas"]["ImageOutput"];unsharp_mask: components["schemas"]["ImageOutput"];unsharp_mask_oklab: components["schemas"]["ImageOutput"];@@ -24984,7 +25015,7 @@ export type components = {video: components["schemas"]["VideoOutput"];video_concat: components["schemas"]["VideoOutput"];video_frame_extract: components["schemas"]["ImageOutput"];- wan_denoise: components["schemas"]["LatentsOutput"];+ wan_denoise: components["schemas"]["LatentsMetaOutput"];wan_i2l: components["schemas"]["LatentsOutput"];wan_i2v_ideal_dimensions: components["schemas"]["IdealSizeOutput"];wan_l2i: components["schemas"]["ImageOutput"];@@ -24995,12 +25026,12 @@ export type components = {wan_ref_image_encoder: components["schemas"]["WanRefImageOutput"];wan_text_encoder: components["schemas"]["WanConditioningOutput"];wan_ti2v_ideal_dimensions: components["schemas"]["IdealSizeOutput"];- wan_video_denoise: components["schemas"]["LatentsOutput"];+ wan_video_denoise: components["schemas"]["LatentsMetaOutput"];workflow_return: components["schemas"]["WorkflowReturnOutput"];workflow_return_get: components["schemas"]["WorkflowReturnGetOutput"];workflow_return_value: components["schemas"]["WorkflowReturnValueOutput"];z_image_control: components["schemas"]["ZImageControlOutput"];- z_image_denoise: components["schemas"]["LatentsOutput"];+ z_image_denoise: components["schemas"]["LatentsMetaOutput"];z_image_denoise_meta: components["schemas"]["LatentsMetaOutput"];z_image_i2l: components["schemas"]["LatentsOutput"];z_image_l2i: components["schemas"]["ImageOutput"];@@ -25063,7 +25094,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"]["AnimaDenoiseMetaInvocation"] | components["schemas"]["AnimaIPAdapterInvocation"] | 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"]["AtlasCloudImageGenerationInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BooleanLogicInvocation"] | 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"]["ClarityInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["CollectionCartesianInvocation"] | components["schemas"]["CollectionConcatInvocation"] | components["schemas"]["CollectionZipInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ContrastDehazeInvocation"] | 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"]["ErnieImageDenoiseInvocation"] | components["schemas"]["ErnieImageLoRACollectionLoader"] | components["schemas"]["ErnieImageLoRALoaderInvocation"] | components["schemas"]["ErnieImageModelLoaderInvocation"] | components["schemas"]["ErnieImagePromptEnhancerInvocation"] | components["schemas"]["ErnieImageTextEncoderInvocation"] | components["schemas"]["ErnieImageVaeDecodeInvocation"] | 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"]["Flux2ControlInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2DevLoRACollectionLoader"] | components["schemas"]["Flux2DevLoRALoaderInvocation"] | components["schemas"]["Flux2DevModelLoaderInvocation"] | components["schemas"]["Flux2DevTextEncoderInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2PiDDecodeInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["Flux3DenoiseInvocation"] | components["schemas"]["Flux3LayoutPromptInvocation"] | components["schemas"]["Flux3LoRACollectionLoader"] | components["schemas"]["Flux3LoRALoaderInvocation"] | components["schemas"]["Flux3ModelLoaderInvocation"] | components["schemas"]["Flux3PromptUpsamplerInvocation"] | components["schemas"]["Flux3TextEncoderInvocation"] | 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"]["FluxPiDDecodeInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["ForInvocation"] | components["schemas"]["ForReturnInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["Gemma2EncoderLoaderInvocation"] | 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"]["Ideogram4LoRACollectionLoader"] | components["schemas"]["Ideogram4LoRALoaderInvocation"] | 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"]["Krea2StyleReferenceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LTX2AudioConditioningInvocation"] | components["schemas"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2DurationInvocation"] | components["schemas"]["LTX2ExtendConditioningInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentUpsampleInvocation"] | components["schemas"]["LTX2LatentsToVideoInvocation"] | components["schemas"]["LTX2LoRACollectionLoader"] | components["schemas"]["LTX2LoRALoaderInvocation"] | components["schemas"]["LTX2ModelLoaderInvocation"] | components["schemas"]["LTX2TextEncoderInvocation"] | components["schemas"]["LTX2VideoConditioningInvocation"] | 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"]["MiniMaxH3DenoiseInvocation"] | components["schemas"]["MiniMaxH3FrameConditioningInvocation"] | components["schemas"]["MiniMaxH3HybridOverlayInvocation"] | components["schemas"]["MiniMaxH3IdealDimensionsInvocation"] | components["schemas"]["MiniMaxH3ImageReferenceInvocation"] | components["schemas"]["MiniMaxH3LatentsToImageInvocation"] | components["schemas"]["MiniMaxH3LatentsToVideoInvocation"] | components["schemas"]["MiniMaxH3LoRACollectionLoader"] | components["schemas"]["MiniMaxH3LoRALoaderInvocation"] | components["schemas"]["MiniMaxH3ModelLoaderInvocation"] | components["schemas"]["MiniMaxH3ReferenceConditioningInvocation"] | components["schemas"]["MiniMaxH3TextEncoderInvocation"] | components["schemas"]["MiniMaxH3VideoReferenceInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MossImageDenoiseInvocation"] | components["schemas"]["MossImageLayoutPromptInvocation"] | components["schemas"]["MossImageLoRACollectionLoader"] | components["schemas"]["MossImageLoRALoaderInvocation"] | components["schemas"]["MossImageModelLoaderInvocation"] | components["schemas"]["MossImageTextEncoderInvocation"] | 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"]["PiDDecoderLoaderInvocation"] | components["schemas"]["PiDUpscaleInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImage21DenoiseInvocation"] | components["schemas"]["QwenImage21ImageToLatentsInvocation"] | components["schemas"]["QwenImage21LatentsToImageInvocation"] | components["schemas"]["QwenImage21LoRACollectionLoader"] | components["schemas"]["QwenImage21LoRALoaderInvocation"] | components["schemas"]["QwenImage21ModelLoaderInvocation"] | components["schemas"]["QwenImage21TextEncoderInvocation"] | components["schemas"]["QwenImageControlInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImagePiDDecodeInvocation"] | 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"]["SD3LoRACollectionLoader"] | components["schemas"]["SD3LoRALoaderInvocation"] | components["schemas"]["SD3PiDDecodeInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLPiDDecodeInvocation"] | 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"]["StateEmptyInvocation"] | components["schemas"]["StateGetInvocation"] | components["schemas"]["StateMergeInvocation"] | components["schemas"]["StateSetInvocation"] | 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"]["TextLLMWithPresetInvocation"] | components["schemas"]["TextureInvocation"] | 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"]["ZImagePiDDecodeInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];+ invocation: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaDenoiseMetaInvocation"] | components["schemas"]["AnimaIPAdapterInvocation"] | 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"]["AtlasCloudImageGenerationInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BooleanLogicInvocation"] | 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"]["ClarityInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["CollectionCartesianInvocation"] | components["schemas"]["CollectionConcatInvocation"] | components["schemas"]["CollectionZipInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ContrastDehazeInvocation"] | 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"]["ErnieImageDenoiseInvocation"] | components["schemas"]["ErnieImageLoRACollectionLoader"] | components["schemas"]["ErnieImageLoRALoaderInvocation"] | components["schemas"]["ErnieImageModelLoaderInvocation"] | components["schemas"]["ErnieImagePromptEnhancerInvocation"] | components["schemas"]["ErnieImageTextEncoderInvocation"] | components["schemas"]["ErnieImageVaeDecodeInvocation"] | 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"]["Flux2ControlInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2DevLoRACollectionLoader"] | components["schemas"]["Flux2DevLoRALoaderInvocation"] | components["schemas"]["Flux2DevModelLoaderInvocation"] | components["schemas"]["Flux2DevTextEncoderInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2PiDDecodeInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["Flux3DenoiseInvocation"] | components["schemas"]["Flux3LayoutPromptInvocation"] | components["schemas"]["Flux3LoRACollectionLoader"] | components["schemas"]["Flux3LoRALoaderInvocation"] | components["schemas"]["Flux3ModelLoaderInvocation"] | components["schemas"]["Flux3PromptUpsamplerInvocation"] | components["schemas"]["Flux3TextEncoderInvocation"] | 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"]["FluxPiDDecodeInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["ForInvocation"] | components["schemas"]["ForReturnInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["Gemma2EncoderLoaderInvocation"] | 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"]["Ideogram4LoRACollectionLoader"] | components["schemas"]["Ideogram4LoRALoaderInvocation"] | 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"]["Krea2StyleReferenceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LTX2AudioConditioningInvocation"] | components["schemas"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2DurationInvocation"] | components["schemas"]["LTX2ExtendConditioningInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentUpsampleInvocation"] | components["schemas"]["LTX2LatentsToVideoInvocation"] | components["schemas"]["LTX2LoRACollectionLoader"] | components["schemas"]["LTX2LoRALoaderInvocation"] | components["schemas"]["LTX2ModelLoaderInvocation"] | components["schemas"]["LTX2TextEncoderInvocation"] | components["schemas"]["LTX2VideoConditioningInvocation"] | 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"]["MetadataToWanLorasInvocation"] | components["schemas"]["MiniMaxH3DenoiseInvocation"] | components["schemas"]["MiniMaxH3FrameConditioningInvocation"] | components["schemas"]["MiniMaxH3HybridOverlayInvocation"] | components["schemas"]["MiniMaxH3IdealDimensionsInvocation"] | components["schemas"]["MiniMaxH3ImageReferenceInvocation"] | components["schemas"]["MiniMaxH3LatentsToImageInvocation"] | components["schemas"]["MiniMaxH3LatentsToVideoInvocation"] | components["schemas"]["MiniMaxH3LoRACollectionLoader"] | components["schemas"]["MiniMaxH3LoRALoaderInvocation"] | components["schemas"]["MiniMaxH3ModelLoaderInvocation"] | components["schemas"]["MiniMaxH3ReferenceConditioningInvocation"] | components["schemas"]["MiniMaxH3TextEncoderInvocation"] | components["schemas"]["MiniMaxH3VideoReferenceInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MossImageDenoiseInvocation"] | components["schemas"]["MossImageLayoutPromptInvocation"] | components["schemas"]["MossImageLoRACollectionLoader"] | components["schemas"]["MossImageLoRALoaderInvocation"] | components["schemas"]["MossImageModelLoaderInvocation"] | components["schemas"]["MossImageTextEncoderInvocation"] | 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"]["PiDDecoderLoaderInvocation"] | components["schemas"]["PiDUpscaleInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImage21DenoiseInvocation"] | components["schemas"]["QwenImage21ImageToLatentsInvocation"] | components["schemas"]["QwenImage21LatentsToImageInvocation"] | components["schemas"]["QwenImage21LoRACollectionLoader"] | components["schemas"]["QwenImage21LoRALoaderInvocation"] | components["schemas"]["QwenImage21ModelLoaderInvocation"] | components["schemas"]["QwenImage21TextEncoderInvocation"] | components["schemas"]["QwenImageControlInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImagePiDDecodeInvocation"] | 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"]["SD3LoRACollectionLoader"] | components["schemas"]["SD3LoRALoaderInvocation"] | components["schemas"]["SD3PiDDecodeInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLPiDDecodeInvocation"] | 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"]["StateEmptyInvocation"] | components["schemas"]["StateGetInvocation"] | components["schemas"]["StateMergeInvocation"] | components["schemas"]["StateSetInvocation"] | 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"]["TextLLMWithPresetInvocation"] | components["schemas"]["TextureInvocation"] | 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"]["ZImagePiDDecodeInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];/*** Invocation Source Id* @description The ID of the prepared invocation's source node@@ -25168,7 +25199,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"]["AnimaDenoiseMetaInvocation"] | components["schemas"]["AnimaIPAdapterInvocation"] | 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"]["AtlasCloudImageGenerationInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BooleanLogicInvocation"] | 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"]["ClarityInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["CollectionCartesianInvocation"] | components["schemas"]["CollectionConcatInvocation"] | components["schemas"]["CollectionZipInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ContrastDehazeInvocation"] | 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"]["ErnieImageDenoiseInvocation"] | components["schemas"]["ErnieImageLoRACollectionLoader"] | components["schemas"]["ErnieImageLoRALoaderInvocation"] | components["schemas"]["ErnieImageModelLoaderInvocation"] | components["schemas"]["ErnieImagePromptEnhancerInvocation"] | components["schemas"]["ErnieImageTextEncoderInvocation"] | components["schemas"]["ErnieImageVaeDecodeInvocation"] | 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"]["Flux2ControlInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2DevLoRACollectionLoader"] | components["schemas"]["Flux2DevLoRALoaderInvocation"] | components["schemas"]["Flux2DevModelLoaderInvocation"] | components["schemas"]["Flux2DevTextEncoderInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2PiDDecodeInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["Flux3DenoiseInvocation"] | components["schemas"]["Flux3LayoutPromptInvocation"] | components["schemas"]["Flux3LoRACollectionLoader"] | components["schemas"]["Flux3LoRALoaderInvocation"] | components["schemas"]["Flux3ModelLoaderInvocation"] | components["schemas"]["Flux3PromptUpsamplerInvocation"] | components["schemas"]["Flux3TextEncoderInvocation"] | 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"]["FluxPiDDecodeInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["ForInvocation"] | components["schemas"]["ForReturnInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["Gemma2EncoderLoaderInvocation"] | 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"]["Ideogram4LoRACollectionLoader"] | components["schemas"]["Ideogram4LoRALoaderInvocation"] | 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"]["Krea2StyleReferenceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LTX2AudioConditioningInvocation"] | components["schemas"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2DurationInvocation"] | components["schemas"]["LTX2ExtendConditioningInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentUpsampleInvocation"] | components["schemas"]["LTX2LatentsToVideoInvocation"] | components["schemas"]["LTX2LoRACollectionLoader"] | components["schemas"]["LTX2LoRALoaderInvocation"] | components["schemas"]["LTX2ModelLoaderInvocation"] | components["schemas"]["LTX2TextEncoderInvocation"] | components["schemas"]["LTX2VideoConditioningInvocation"] | 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"]["MiniMaxH3DenoiseInvocation"] | components["schemas"]["MiniMaxH3FrameConditioningInvocation"] | components["schemas"]["MiniMaxH3HybridOverlayInvocation"] | components["schemas"]["MiniMaxH3IdealDimensionsInvocation"] | components["schemas"]["MiniMaxH3ImageReferenceInvocation"] | components["schemas"]["MiniMaxH3LatentsToImageInvocation"] | components["schemas"]["MiniMaxH3LatentsToVideoInvocation"] | components["schemas"]["MiniMaxH3LoRACollectionLoader"] | components["schemas"]["MiniMaxH3LoRALoaderInvocation"] | components["schemas"]["MiniMaxH3ModelLoaderInvocation"] | components["schemas"]["MiniMaxH3ReferenceConditioningInvocation"] | components["schemas"]["MiniMaxH3TextEncoderInvocation"] | components["schemas"]["MiniMaxH3VideoReferenceInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MossImageDenoiseInvocation"] | components["schemas"]["MossImageLayoutPromptInvocation"] | components["schemas"]["MossImageLoRACollectionLoader"] | components["schemas"]["MossImageLoRALoaderInvocation"] | components["schemas"]["MossImageModelLoaderInvocation"] | components["schemas"]["MossImageTextEncoderInvocation"] | 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"]["PiDDecoderLoaderInvocation"] | components["schemas"]["PiDUpscaleInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImage21DenoiseInvocation"] | components["schemas"]["QwenImage21ImageToLatentsInvocation"] | components["schemas"]["QwenImage21LatentsToImageInvocation"] | components["schemas"]["QwenImage21LoRACollectionLoader"] | components["schemas"]["QwenImage21LoRALoaderInvocation"] | components["schemas"]["QwenImage21ModelLoaderInvocation"] | components["schemas"]["QwenImage21TextEncoderInvocation"] | components["schemas"]["QwenImageControlInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImagePiDDecodeInvocation"] | 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"]["SD3LoRACollectionLoader"] | components["schemas"]["SD3LoRALoaderInvocation"] | components["schemas"]["SD3PiDDecodeInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLPiDDecodeInvocation"] | 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"]["StateEmptyInvocation"] | components["schemas"]["StateGetInvocation"] | components["schemas"]["StateMergeInvocation"] | components["schemas"]["StateSetInvocation"] | 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"]["TextLLMWithPresetInvocation"] | components["schemas"]["TextureInvocation"] | 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"]["ZImagePiDDecodeInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];+ invocation: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaDenoiseMetaInvocation"] | components["schemas"]["AnimaIPAdapterInvocation"] | 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"]["AtlasCloudImageGenerationInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BooleanLogicInvocation"] | 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"]["ClarityInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["CollectionCartesianInvocation"] | components["schemas"]["CollectionConcatInvocation"] | components["schemas"]["CollectionZipInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ContrastDehazeInvocation"] | 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"]["ErnieImageDenoiseInvocation"] | components["schemas"]["ErnieImageLoRACollectionLoader"] | components["schemas"]["ErnieImageLoRALoaderInvocation"] | components["schemas"]["ErnieImageModelLoaderInvocation"] | components["schemas"]["ErnieImagePromptEnhancerInvocation"] | components["schemas"]["ErnieImageTextEncoderInvocation"] | components["schemas"]["ErnieImageVaeDecodeInvocation"] | 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"]["Flux2ControlInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2DevLoRACollectionLoader"] | components["schemas"]["Flux2DevLoRALoaderInvocation"] | components["schemas"]["Flux2DevModelLoaderInvocation"] | components["schemas"]["Flux2DevTextEncoderInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2PiDDecodeInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["Flux3DenoiseInvocation"] | components["schemas"]["Flux3LayoutPromptInvocation"] | components["schemas"]["Flux3LoRACollectionLoader"] | components["schemas"]["Flux3LoRALoaderInvocation"] | components["schemas"]["Flux3ModelLoaderInvocation"] | components["schemas"]["Flux3PromptUpsamplerInvocation"] | components["schemas"]["Flux3TextEncoderInvocation"] | 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"]["FluxPiDDecodeInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["ForInvocation"] | components["schemas"]["ForReturnInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["Gemma2EncoderLoaderInvocation"] | 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"]["Ideogram4LoRACollectionLoader"] | components["schemas"]["Ideogram4LoRALoaderInvocation"] | 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"]["Krea2StyleReferenceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LTX2AudioConditioningInvocation"] | components["schemas"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2DurationInvocation"] | components["schemas"]["LTX2ExtendConditioningInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentUpsampleInvocation"] | components["schemas"]["LTX2LatentsToVideoInvocation"] | components["schemas"]["LTX2LoRACollectionLoader"] | components["schemas"]["LTX2LoRALoaderInvocation"] | components["schemas"]["LTX2ModelLoaderInvocation"] | components["schemas"]["LTX2TextEncoderInvocation"] | components["schemas"]["LTX2VideoConditioningInvocation"] | 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"]["MetadataToWanLorasInvocation"] | components["schemas"]["MiniMaxH3DenoiseInvocation"] | components["schemas"]["MiniMaxH3FrameConditioningInvocation"] | components["schemas"]["MiniMaxH3HybridOverlayInvocation"] | components["schemas"]["MiniMaxH3IdealDimensionsInvocation"] | components["schemas"]["MiniMaxH3ImageReferenceInvocation"] | components["schemas"]["MiniMaxH3LatentsToImageInvocation"] | components["schemas"]["MiniMaxH3LatentsToVideoInvocation"] | components["schemas"]["MiniMaxH3LoRACollectionLoader"] | components["schemas"]["MiniMaxH3LoRALoaderInvocation"] | components["schemas"]["MiniMaxH3ModelLoaderInvocation"] | components["schemas"]["MiniMaxH3ReferenceConditioningInvocation"] | components["schemas"]["MiniMaxH3TextEncoderInvocation"] | components["schemas"]["MiniMaxH3VideoReferenceInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MossImageDenoiseInvocation"] | components["schemas"]["MossImageLayoutPromptInvocation"] | components["schemas"]["MossImageLoRACollectionLoader"] | components["schemas"]["MossImageLoRALoaderInvocation"] | components["schemas"]["MossImageModelLoaderInvocation"] | components["schemas"]["MossImageTextEncoderInvocation"] | 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"]["PiDDecoderLoaderInvocation"] | components["schemas"]["PiDUpscaleInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImage21DenoiseInvocation"] | components["schemas"]["QwenImage21ImageToLatentsInvocation"] | components["schemas"]["QwenImage21LatentsToImageInvocation"] | components["schemas"]["QwenImage21LoRACollectionLoader"] | components["schemas"]["QwenImage21LoRALoaderInvocation"] | components["schemas"]["QwenImage21ModelLoaderInvocation"] | components["schemas"]["QwenImage21TextEncoderInvocation"] | components["schemas"]["QwenImageControlInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImagePiDDecodeInvocation"] | 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"]["SD3LoRACollectionLoader"] | components["schemas"]["SD3LoRALoaderInvocation"] | components["schemas"]["SD3PiDDecodeInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLPiDDecodeInvocation"] | 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"]["StateEmptyInvocation"] | components["schemas"]["StateGetInvocation"] | components["schemas"]["StateMergeInvocation"] | components["schemas"]["StateSetInvocation"] | 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"]["TextLLMWithPresetInvocation"] | components["schemas"]["TextureInvocation"] | 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"]["ZImagePiDDecodeInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];/*** Invocation Source Id* @description The ID of the prepared invocation's source node@@ -26653,11 +26684,6 @@ export type components = {* @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@@ -27624,6 +27650,11 @@ export type components = {* step count and guidance scales below are ignored, and the negative prompt never reaches it.*/LTX2DenoiseInvocation: {+ /**+ * @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.@@ -27790,6 +27821,14 @@ export type components = {* @description Joint video and audio latents from one LTX-2 denoise run.*/LTX2DenoiseOutput: {+ /** @description Metadata Dict */+ metadata: components["schemas"]["MetadataField"];+ /**+ * type+ * @default ltx2_denoise_output+ * @constant+ */+ type: "ltx2_denoise_output";/** @description Video latents [1, 128, T_lat, H/32, W/32]. */video_latents: components["schemas"]["LatentsField"];/** @description Packed audio latents [1, T_audio, 128]. */@@ -27809,12 +27848,6 @@ export type components = {* @description Pixel-frame count of the video latents.*/num_frames: number;- /**- * type- * @default ltx2_denoise_output- * @constant- */- type: "ltx2_denoise_output";};/*** LTX2DurationHead_Checkpoint_Config@@ -29246,7 +29279,7 @@ export type components = {};/*** LatentsMetaOutput- * @description Latents + metadata+ * @description Base class for invocations that output latents with metadata*/LatentsMetaOutput: {/** @description Metadata Dict */@@ -29736,6 +29769,18 @@ export type components = {* @description The weight at which the LoRA is applied to each model*/weight: number;+ /**+ * Target+ * @description Target expert for dual-expert models (e.g., Wan 2.2 A14B): 'high', 'low', or 'both'+ * @default null+ */+ target?: ("high" | "low" | "both") | null;+ /**+ * Low Noise Weight+ * @description Weight for the low-noise expert when target is 'both' and it differs from the high-noise weight+ * @default null+ */+ low_noise_weight?: number | null;};/*** LoRARecallParameter@@ -39066,7 +39111,7 @@ export type components = {* @default * CUSTOM LABEL ** @enum {string}*/- label?: "* CUSTOM LABEL *" | "positive_prompt" | "positive_style_prompt" | "negative_prompt" | "negative_style_prompt" | "width" | "height" | "seed" | "cfg_scale" | "cfg_rescale_multiplier" | "steps" | "scheduler" | "clip_skip" | "model" | "vae" | "seamless_x" | "seamless_y" | "guidance" | "cfg_scale_start_step" | "cfg_scale_end_step";+ label?: "* CUSTOM LABEL *" | "generation_mode" | "positive_prompt" | "positive_prompts" | "positive_style_prompt" | "negative_prompt" | "negative_prompts" | "negative_style_prompt" | "width" | "height" | "seed" | "rand_device" | "cfg_scale" | "cfg_rescale_multiplier" | "steps" | "scheduler" | "clip_skip" | "model" | "vae" | "seamless_x" | "seamless_y" | "guidance" | "cfg_scale_start_step" | "cfg_scale_end_step" | "denoising_start" | "denoising_end" | "strength" | "init_image" | "add_noise" | "shift" | "dype_preset" | "dype_scale" | "dype_exponent" | "freeu_s1" | "freeu_s2" | "freeu_b1" | "freeu_b2" | "hidiffusion" | "hidiffusion_raunet" | "hidiffusion_window_attn" | "hidiffusion_auto_ratios" | "hidiffusion_t1_ratio" | "hidiffusion_t2_ratio" | "hrf_enabled" | "hrf_method" | "hrf_strength" | "refiner_model" | "refiner_cfg_scale" | "refiner_steps" | "refiner_scheduler" | "refiner_positive_aesthetic_score" | "refiner_negative_aesthetic_score" | "refiner_start" | "pid_mode" | "pid_steps" | "pid_decoder" | "gemma2_encoder" | "tile_width" | "tile_height" | "tile_overlap" | "num_frames" | "fps" | "source_video_start_frame" | "source_video_end_frame" | "t5_encoder" | "t5_encoder_model" | "clip_embed_model" | "clip_l_model" | "clip_g_model" | "mistral_encoder" | "mistral_encoder_model" | "qwen3_encoder" | "qwen3_encoder_model" | "qwen3_source" | "qwen3_5_encoder" | "qwen3_vl_encoder" | "qwen3_vl_vision_tower" | "qwen_vl_encoder" | "glm_encoder" | "anima_inpaint_adapter" | "anima_inpaint_adapter_weight" | "flux3_caption" | "flux3_prompt_upsampler" | "ideogram4_caption" | "ideogram4_color_palette" | "ideogram4_guidance_scale" | "ideogram4_mu" | "ideogram4_sampler_preset" | "ideogram4_steps" | "ideogram4_unconditional_model" | "krea2_rebalance_enabled" | "krea2_rebalance_multiplier" | "krea2_rebalance_weights" | "krea2_reference_kv_cache" | "krea2_seed_variance_enabled" | "krea2_seed_variance_randomize_percent" | "krea2_seed_variance_strength" | "krea2_style_strength" | "ltx2_audio_cfg_scale" | "ltx2_base_height" | "ltx2_base_width" | "ltx2_component_source" | "ltx2_conditioning_role" | "ltx2_context_frames" | "ltx2_guidance_rescale" | "ltx2_modality_scale" | "ltx2_noise_scale" | "ltx2_schedule" | "ltx2_stg_scale" | "ltx2_text_encoder_model" | "ltx2_two_stage" | "minimax_h3_component_source" | "minimax_h3_hybrid_base_model" | "minimax_h3_hybrid_start_block" | "minimax_h3_text_encoder_model" | "minimax_h3_transformer_model" | "moss_image_layout_prompt" | "moss_image_uncond_skip_layers" | "qwen_image_2_1_prefix_kv_cache" | "qwen_image_component_source" | "qwen_image_quantization" | "qwen_image_qwen_vl_encoder" | "qwen_image_shift" | "qwen_image_vae" | "wan_component_source" | "wan_guidance_scale_low_noise" | "wan_t5_encoder_model" | "wan_transformer_low_noise" | "z_image_seed_variance_enabled" | "z_image_seed_variance_randomize_percent" | "z_image_seed_variance_strength" | "z_image_shift";/*** Custom Label* @description Label for this metadata item@@ -39144,7 +39189,7 @@ export type components = {* @default * CUSTOM LABEL ** @enum {string}*/- label?: "* CUSTOM LABEL *" | "seamless_x" | "seamless_y";+ label?: "* CUSTOM LABEL *" | "seamless_x" | "seamless_y" | "add_noise" | "hidiffusion" | "hidiffusion_raunet" | "hidiffusion_window_attn" | "hidiffusion_auto_ratios" | "hrf_enabled" | "krea2_rebalance_enabled" | "krea2_reference_kv_cache" | "krea2_seed_variance_enabled" | "ltx2_two_stage" | "qwen_image_2_1_prefix_kv_cache" | "z_image_seed_variance_enabled";/*** Custom Label* @description Label for this metadata item@@ -39197,7 +39242,7 @@ export type components = {* @default * CUSTOM LABEL ** @enum {string}*/- label?: "* CUSTOM LABEL *" | "seamless_x" | "seamless_y";+ label?: "* CUSTOM LABEL *" | "seamless_x" | "seamless_y" | "add_noise" | "hidiffusion" | "hidiffusion_raunet" | "hidiffusion_window_attn" | "hidiffusion_auto_ratios" | "hrf_enabled" | "krea2_rebalance_enabled" | "krea2_reference_kv_cache" | "krea2_seed_variance_enabled" | "ltx2_two_stage" | "qwen_image_2_1_prefix_kv_cache" | "z_image_seed_variance_enabled";/*** Custom Label* @description Label for this metadata item@@ -39289,7 +39334,7 @@ export type components = {* @default * CUSTOM LABEL ** @enum {string}*/- label?: "* CUSTOM LABEL *" | "cfg_scale" | "cfg_rescale_multiplier" | "guidance";+ label?: "* CUSTOM LABEL *" | "cfg_scale" | "cfg_rescale_multiplier" | "guidance" | "denoising_start" | "denoising_end" | "strength" | "shift" | "dype_scale" | "dype_exponent" | "freeu_s1" | "freeu_s2" | "freeu_b1" | "freeu_b2" | "hidiffusion_t1_ratio" | "hidiffusion_t2_ratio" | "hrf_strength" | "refiner_cfg_scale" | "refiner_positive_aesthetic_score" | "refiner_negative_aesthetic_score" | "refiner_start" | "fps" | "anima_inpaint_adapter_weight" | "ideogram4_guidance_scale" | "ideogram4_mu" | "krea2_rebalance_multiplier" | "krea2_seed_variance_strength" | "krea2_style_strength" | "ltx2_audio_cfg_scale" | "ltx2_guidance_rescale" | "ltx2_modality_scale" | "ltx2_noise_scale" | "ltx2_stg_scale" | "qwen_image_shift" | "wan_guidance_scale_low_noise" | "z_image_seed_variance_strength" | "z_image_shift";/*** Custom Label* @description Label for this metadata item@@ -39342,7 +39387,7 @@ export type components = {* @default * CUSTOM LABEL ** @enum {string}*/- label?: "* CUSTOM LABEL *" | "cfg_scale" | "cfg_rescale_multiplier" | "guidance";+ label?: "* CUSTOM LABEL *" | "cfg_scale" | "cfg_rescale_multiplier" | "guidance" | "denoising_start" | "denoising_end" | "strength" | "shift" | "dype_scale" | "dype_exponent" | "freeu_s1" | "freeu_s2" | "freeu_b1" | "freeu_b2" | "hidiffusion_t1_ratio" | "hidiffusion_t2_ratio" | "hrf_strength" | "refiner_cfg_scale" | "refiner_positive_aesthetic_score" | "refiner_negative_aesthetic_score" | "refiner_start" | "fps" | "anima_inpaint_adapter_weight" | "ideogram4_guidance_scale" | "ideogram4_mu" | "krea2_rebalance_multiplier" | "krea2_seed_variance_strength" | "krea2_style_strength" | "ltx2_audio_cfg_scale" | "ltx2_guidance_rescale" | "ltx2_modality_scale" | "ltx2_noise_scale" | "ltx2_stg_scale" | "qwen_image_shift" | "wan_guidance_scale_low_noise" | "z_image_seed_variance_strength" | "z_image_shift";/*** Custom Label* @description Label for this metadata item@@ -39435,7 +39480,7 @@ export type components = {* @default * CUSTOM LABEL ** @enum {string}*/- label?: "* CUSTOM LABEL *" | "width" | "height" | "seed" | "steps" | "clip_skip" | "cfg_scale_start_step" | "cfg_scale_end_step";+ label?: "* CUSTOM LABEL *" | "width" | "height" | "seed" | "steps" | "clip_skip" | "cfg_scale_start_step" | "cfg_scale_end_step" | "refiner_steps" | "pid_steps" | "tile_width" | "tile_height" | "tile_overlap" | "num_frames" | "fps" | "source_video_start_frame" | "source_video_end_frame" | "ideogram4_steps" | "krea2_seed_variance_randomize_percent" | "ltx2_base_height" | "ltx2_base_width" | "ltx2_context_frames" | "minimax_h3_hybrid_start_block" | "moss_image_uncond_skip_layers" | "z_image_seed_variance_randomize_percent";/*** Custom Label* @description Label for this metadata item@@ -39488,7 +39533,7 @@ export type components = {* @default * CUSTOM LABEL ** @enum {string}*/- label?: "* CUSTOM LABEL *" | "width" | "height" | "seed" | "steps" | "clip_skip" | "cfg_scale_start_step" | "cfg_scale_end_step";+ label?: "* CUSTOM LABEL *" | "width" | "height" | "seed" | "steps" | "clip_skip" | "cfg_scale_start_step" | "cfg_scale_end_step" | "refiner_steps" | "pid_steps" | "tile_width" | "tile_height" | "tile_overlap" | "num_frames" | "fps" | "source_video_start_frame" | "source_video_end_frame" | "ideogram4_steps" | "krea2_seed_variance_randomize_percent" | "ltx2_base_height" | "ltx2_base_width" | "ltx2_context_frames" | "minimax_h3_hybrid_start_block" | "moss_image_uncond_skip_layers" | "z_image_seed_variance_randomize_percent";/*** Custom Label* @description Label for this metadata item@@ -39650,7 +39695,7 @@ export type components = {* @default model* @enum {string}*/- label?: "* CUSTOM LABEL *" | "model";+ label?: "* CUSTOM LABEL *" | "model" | "refiner_model";/*** Custom Label* @description Label for this metadata item@@ -39885,7 +39930,7 @@ export type components = {* @default scheduler* @enum {string}*/- label?: "* CUSTOM LABEL *" | "scheduler";+ label?: "* CUSTOM LABEL *" | "scheduler" | "refiner_scheduler";/*** Custom Label* @description Label for this metadata item@@ -39939,7 +39984,7 @@ export type components = {* @default * CUSTOM LABEL ** @enum {string}*/- label?: "* CUSTOM LABEL *" | "positive_prompt" | "positive_style_prompt" | "negative_prompt" | "negative_style_prompt";+ label?: "* CUSTOM LABEL *" | "generation_mode" | "positive_prompt" | "positive_prompts" | "positive_style_prompt" | "negative_prompt" | "negative_prompts" | "negative_style_prompt" | "rand_device" | "init_image" | "dype_preset" | "hrf_method" | "pid_mode" | "flux3_caption" | "ideogram4_caption" | "ideogram4_color_palette" | "ideogram4_sampler_preset" | "krea2_rebalance_weights" | "ltx2_conditioning_role" | "ltx2_schedule" | "moss_image_layout_prompt" | "qwen_image_quantization" | "qwen_image_shift" | "z_image_shift";/*** Custom Label* @description Label for this metadata item@@ -39992,7 +40037,7 @@ export type components = {* @default * CUSTOM LABEL ** @enum {string}*/- label?: "* CUSTOM LABEL *" | "positive_prompt" | "positive_style_prompt" | "negative_prompt" | "negative_style_prompt";+ label?: "* CUSTOM LABEL *" | "generation_mode" | "positive_prompt" | "positive_prompts" | "positive_style_prompt" | "negative_prompt" | "negative_prompts" | "negative_style_prompt" | "rand_device" | "init_image" | "dype_preset" | "hrf_method" | "pid_mode" | "flux3_caption" | "ideogram4_caption" | "ideogram4_color_palette" | "ideogram4_sampler_preset" | "krea2_rebalance_weights" | "ltx2_conditioning_role" | "ltx2_schedule" | "moss_image_layout_prompt" | "qwen_image_quantization" | "qwen_image_shift" | "z_image_shift";/*** Custom Label* @description Label for this metadata item@@ -40085,7 +40130,7 @@ export type components = {* @default vae* @enum {string}*/- label?: "* CUSTOM LABEL *" | "vae";+ label?: "* CUSTOM LABEL *" | "vae" | "qwen_image_vae";/*** Custom Label* @description Label for this metadata item@@ -40104,6 +40149,52 @@ export type components = {*/type: "metadata_to_vae";};+ /**+ * Metadata To Wan LoRAs+ * @description Extracts Wan 2.2 LoRAs from metadata and applies them to a Wan transformer+ */+ MetadataToWanLorasInvocation: {+ /**+ * @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;+ /**+ * Wan Transformer+ * @description Transformer+ * @default null+ */+ transformer?: components["schemas"]["WanTransformerField"] | null;+ /**+ * Custom Label+ * @description Label for this metadata item+ * @default loras+ */+ custom_label?: string;+ /**+ * type+ * @default metadata_to_wan_loras+ * @constant+ */+ type: "metadata_to_wan_loras";+ };/*** MiniMaxH3AdaLNOverlayField* @description Hybrid AdaLN overlay for MiniMax H3: the AdaLN modulation projections of a second task@@ -40162,6 +40253,11 @@ export type components = {* @description Run the MiniMax H3 joint audio-video denoising loop.*/MiniMaxH3DenoiseInvocation: {+ /**+ * @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.@@ -40245,6 +40341,14 @@ export type components = {* @description Joint video + audio latents from one MiniMax H3 denoise run.*/MiniMaxH3DenoiseOutput: {+ /** @description Metadata Dict */+ metadata: components["schemas"]["MetadataField"];+ /**+ * type+ * @default minimax_h3_denoise_output+ * @constant+ */+ type: "minimax_h3_denoise_output";/** @description 5D video latents [1, 24, T_lat, H/16, W/16]. */video_latents: components["schemas"]["LatentsField"];/** @description Audio latents [2, 32, T_audio] (one item per stereo channel). */@@ -40264,12 +40368,6 @@ export type components = {* @description Pixel-frame count of the video latents.*/num_frames: number;- /**- * type- * @default minimax_h3_denoise_output- * @constant- */- type: "minimax_h3_denoise_output";};/*** MiniMaxH3EncodedReferenceField@@ -42440,6 +42538,11 @@ export type components = {* into the weights where the build allows it, beside them as sidecars on GGUF, int8 and FP8 Storage builds.*/MossImageDenoiseInvocation: {+ /**+ * @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.@@ -46370,11 +46473,6 @@ export type components = {* @description Run the denoising process with a Qwen-Image-2.1 model.*/QwenImage21DenoiseInvocation: {- /**- * @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@@ -47039,11 +47137,6 @@ export type components = {* @description Run the denoising process with a Qwen Image model.*/QwenImageDenoiseInvocation: {- /**- * @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@@ -48706,11 +48799,6 @@ export type components = {* @description Run denoising process with a SD3 model.*/SD3DenoiseInvocation: {- /**- * @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@@ -53807,6 +53895,11 @@ export type components = {* T2I-Adapter, masking, etc.).*/TiledMultiDiffusionDenoiseLatents: {+ /**+ * @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.@@ -57727,6 +57820,11 @@ export type components = {* GPU-resident at any time.*/WanDenoiseInvocation: {+ /**+ * @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.@@ -58834,6 +58932,11 @@ export type components = {* the img2img case for stills.*/WanVideoDenoiseInvocation: {+ /**+ * @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.@@ -60489,6 +60592,11 @@ export type components = {* Supports regional prompting by connecting multiple conditioning inputs with masks.*/ZImageDenoiseInvocation: {+ /**+ * @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.diff --git a/invokeai/frontend/webv2/public/locales/en.json b/invokeai/frontend/webv2/public/locales/en.jsonindex 0ff54a3e2c..dd2b23c524 100644--- a/invokeai/frontend/webv2/public/locales/en.json+++ b/invokeai/frontend/webv2/public/locales/en.json@@ -3130,11 +3130,15 @@"maskBlur": "Mask blur"},"conceptMenu": {+ "clearExpertTarget": "Clear expert target","disable": "Disable","enable": "Enable","openInModelManager": "Open in Model Manager",- "remove": "Remove"+ "remove": "Remove",+ "useSingleWeight": "Use single weight"},+ "conceptHighNoiseWeightNamed": "{{name}} high-noise weight",+ "conceptLowNoiseWeightNamed": "{{name}} low-noise weight","conceptWeight": "{{name}} weight","concepts": "Concepts","conceptsUnsupported": "Concepts are not supported by the selected model.",@@ -3591,8 +3595,15 @@"usingBundledVae": "Using the VAE bundled with the model.","vae": "VAE","vaePrecision": "VAE precision",+ "highNoiseWeight": "High-noise weight",+ "lowNoiseWeight": "Low-noise weight","wanGuidanceLowNoise": "Low-noise guidance","wanGuidanceLowNoiseHelp": "Guidance for the low-noise expert. Reuses the main guidance when unset.",+ "wanLoraTargets": {+ "both": "Both experts",+ "high": "High-noise expert",+ "low": "Low-noise expert"+ },"weight": "Weight","width": "Width","xAxis": "X axis",diff --git a/invokeai/frontend/webv2/src/features/generation/core/canvas/compileCanvasGraph.test.ts b/invokeai/frontend/webv2/src/features/generation/core/canvas/compileCanvasGraph.test.tsindex 96f514a80f..2f1eea752a 100644--- a/invokeai/frontend/webv2/src/features/generation/core/canvas/compileCanvasGraph.test.ts+++ b/invokeai/frontend/webv2/src/features/generation/core/canvas/compileCanvasGraph.test.ts@@ -87,6 +87,13 @@ const ideogram4Model: MainModelConfig = {name: 'Ideogram 4',type: 'main',};+const ernieImageModel: MainModelConfig = {+ base: 'ernie-image',+ format: 'diffusers',+ key: 'ernie-image-model',+ name: 'ERNIE-Image',+ type: 'main',+};const externalModel: GenerateModelConfig = {base: 'external',capabilities: { modes: ['txt2img'], supports_seed: true },@@ -315,6 +322,10 @@ describe('compileCanvasGraph', () => {expect(backendGraph.nodes.denoise_latents?.denoising_start).toBeCloseTo(0.75, 10);});++ it.each([ernieImageModel, ideogram4Model])('rejects img2img for $base, which has no latent space', (model) => {+ expect(() => compile(model, 'img2img')).toThrow(`Canvas generation is not supported for ${model.name}.`);+ });});describe('external image generators', () => {diff --git a/invokeai/frontend/webv2/src/features/generation/core/conceptList.test.ts b/invokeai/frontend/webv2/src/features/generation/core/conceptList.test.tsindex 6e25125e2c..9bb856af86 100644--- a/invokeai/frontend/webv2/src/features/generation/core/conceptList.test.ts+++ b/invokeai/frontend/webv2/src/features/generation/core/conceptList.test.ts@@ -116,6 +116,41 @@ describe('updateConcept', () => {expect(updateConcept(list, 'chalk', { isEnabled: false, weight: 1.25 })).toBe(list);});++ it('preserves target and lowNoiseWeight on weight edits, edits lowNoiseWeight independently, and clears on null', () => {+ const wanLora = lora('wan-dual', 'wan');+ const list: GenerateLora[] = [+ { isEnabled: true, lowNoiseWeight: 0.8, model: wanLora, target: 'both', weight: 0.4 },+ ];++ const toggled = updateConcept(list, 'wan-dual', { isEnabled: false });+ expect(toggled).toEqual([{ isEnabled: false, lowNoiseWeight: 0.8, model: wanLora, target: 'both', weight: 0.4 }]);++ // No-op when weight already matches; preserves array identity.+ expect(updateConcept(list, 'wan-dual', { weight: 0.4 })).toBe(list);+ expect(updateConcept(list, 'wan-dual', { lowNoiseWeight: 0.8 })).toBe(list);++ const editedPrimary = updateConcept(list, 'wan-dual', { weight: 0.9 });+ expect(editedPrimary).toEqual([+ { isEnabled: true, lowNoiseWeight: 0.8, model: wanLora, target: 'both', weight: 0.9 },+ ]);++ const editedLowNoise = updateConcept(editedPrimary, 'wan-dual', { lowNoiseWeight: 0.3 });+ expect(editedLowNoise).toEqual([+ { isEnabled: true, lowNoiseWeight: 0.3, model: wanLora, target: 'both', weight: 0.9 },+ ]);++ const unified = updateConcept(editedLowNoise, 'wan-dual', { lowNoiseWeight: null });+ expect(unified).toEqual([{ isEnabled: true, model: wanLora, target: 'both', weight: 0.9 }]);+ expect('lowNoiseWeight' in unified[0]!).toBe(false);+ expect(updateConcept(unified, 'wan-dual', { lowNoiseWeight: null })).toBe(unified);++ const cleared = updateConcept(editedLowNoise, 'wan-dual', { target: null });+ expect(cleared).toEqual([{ isEnabled: true, model: wanLora, weight: 0.9 }]);+ expect('target' in cleared[0]!).toBe(false);+ expect('lowNoiseWeight' in cleared[0]!).toBe(false);+ expect(updateConcept(cleared, 'wan-dual', { target: null })).toBe(cleared);+ });});describe('removeConcept', () => {diff --git a/invokeai/frontend/webv2/src/features/generation/core/conceptList.ts b/invokeai/frontend/webv2/src/features/generation/core/conceptList.tsindex 46f4088a5f..cd05a12bc1 100644--- a/invokeai/frontend/webv2/src/features/generation/core/conceptList.ts+++ b/invokeai/frontend/webv2/src/features/generation/core/conceptList.ts@@ -1,4 +1,4 @@-import type { GenerateLora, GenerateModelConfig, LoraModelConfig } from './types';+import type { GenerateLora, GenerateModelConfig, LoraModelConfig, WanLoraTarget } from './types';import { getDefaultLoraWeight, isLoraCompatibleWithModel } from './settings';@@ -8,7 +8,14 @@ import { getDefaultLoraWeight, isLoraCompatibleWithModel } from './settings';* the write: a row removed mid-edit still flushes its draft, and that must stay a no-op.*/-export type ConceptUpdate = Partial<Pick<GenerateLora, 'isEnabled' | 'weight'>>;+export interface ConceptUpdate {+ isEnabled?: boolean;+ /** `null` collapses a split low-noise weight back onto the uniform `weight`. */+ lowNoiseWeight?: number | null;+ /** `null` clears any recalled Wan expert routing (along with `lowNoiseWeight`). */+ target?: WanLoraTarget | null;+ weight?: number;+}/** Appends an enabled concept at its default weight unless it is already listed or `mainModel` cannot load it. */export const addConcept = (@@ -23,16 +30,39 @@ export const addConcept = (export const updateConcept = (loras: GenerateLora[], key: string, update: ConceptUpdate): GenerateLora[] => {let didUpdate = false;const next = loras.map((lora) => {+ if (lora.model.key !== key) {+ return lora;+ }++ const nextIsEnabled = update.isEnabled ?? lora.isEnabled;+ const nextWeight = update.weight ?? lora.weight;+ const nextTarget = update.target === undefined ? lora.target : (update.target ?? undefined);+ // Low-noise split weight is only valid when targeted across both Wan experts.+ const nextLowNoiseWeight =+ nextTarget !== 'both'+ ? undefined+ : update.lowNoiseWeight === undefined+ ? lora.lowNoiseWeight+ : (update.lowNoiseWeight ?? undefined);+if (- lora.model.key !== key ||- ((update.isEnabled === undefined || update.isEnabled === lora.isEnabled) &&- (update.weight === undefined || update.weight === lora.weight))+ nextIsEnabled === lora.isEnabled &&+ nextWeight === lora.weight &&+ nextTarget === lora.target &&+ nextLowNoiseWeight === lora.lowNoiseWeight) {return lora;}didUpdate = true;- return { ...lora, ...update };+ const { lowNoiseWeight: _clearedLow, target: _clearedTarget, ...base } = lora;+ return {+ ...base,+ isEnabled: nextIsEnabled,+ weight: nextWeight,+ ...(nextTarget !== undefined ? { target: nextTarget } : {}),+ ...(nextLowNoiseWeight !== undefined ? { lowNoiseWeight: nextLowNoiseWeight } : {}),+ };});return didUpdate ? next : loras;diff --git a/invokeai/frontend/webv2/src/features/generation/core/graph.test.ts b/invokeai/frontend/webv2/src/features/generation/core/graph.test.tsindex 60ff68c9fc..fcfdbc4079 100644--- a/invokeai/frontend/webv2/src/features/generation/core/graph.test.ts+++ b/invokeai/frontend/webv2/src/features/generation/core/graph.test.ts@@ -946,6 +946,77 @@ describe('Krea-2, Ideogram 4 and Wan graphs', () => {expect(getEdge(graph, 'denoise_latents', 'transformer')?.source.node_id).toBe(loader?.id);expect(getEdge(graph, 'pos_cond', 'wan_t5_encoder')?.source.node_id).toBe('model_loader');});++ it('chains wan_lora_loader nodes for targeted Wan A14B LoRAs and records target and low_noise_weight in metadata', () => {+ const wanA14b: MainModelConfig = {+ base: 'wan',+ format: 'diffusers',+ key: 'wan-a14b',+ name: 'Wan 2.2 A14B',+ type: 'main',+ variant: 't2v_a14b',+ };+ const highLora: LoraModelConfig = { base: 'wan', key: 'wan-high', name: 'High', type: 'lora', variant: 'a14b' };+ const dualLora: LoraModelConfig = { base: 'wan', key: 'wan-dual', name: 'Dual', type: 'lora', variant: 'a14b' };+ const graph = compile(wanA14b, {+ loras: [+ { isEnabled: true, model: highLora, target: 'high', weight: 0.9 },+ { isEnabled: true, lowNoiseWeight: 0.4, model: dualLora, target: 'both', weight: 0.8 },+ ],+ });++ expect(getNodeByType(graph, 'wan_lora_collection_loader')).toBeUndefined();+ const loaders = Object.values(graph.nodes).filter((node) => node.type === 'wan_lora_loader');+ expect(loaders).toHaveLength(3);+ expect(+ loaders.map((node) => ({ key: (node.lora as { key: string }).key, target: node.target, weight: node.weight }))+ ).toEqual([+ { key: 'wan-high', target: 'high', weight: 0.9 },+ { key: 'wan-dual', target: 'high', weight: 0.8 },+ { key: 'wan-dual', target: 'low', weight: 0.4 },+ ]);+ expect(getEdge(graph, 'denoise_latents', 'transformer')?.source.node_id).toBe(loaders[2]?.id);+ expect(getNodeByType(graph, 'core_metadata')?.loras).toEqual([+ { model: expect.objectContaining({ key: 'wan-high' }), target: 'high', weight: 0.9 },+ { low_noise_weight: 0.4, model: expect.objectContaining({ key: 'wan-dual' }), target: 'both', weight: 0.8 },+ ]);++ const equalLowNoiseGraph = compile(wanA14b, {+ loras: [{ isEnabled: true, lowNoiseWeight: 0.8, model: dualLora, target: 'both', weight: 0.8 }],+ });+ const equalLoaders = Object.values(equalLowNoiseGraph.nodes).filter((node) => node.type === 'wan_lora_loader');+ expect(equalLoaders).toHaveLength(1);+ expect(equalLoaders[0]).toMatchObject({ target: 'both', weight: 0.8 });+ expect(getNodeByType(equalLowNoiseGraph, 'core_metadata')?.loras).toEqual([+ { model: expect.objectContaining({ key: 'wan-dual' }), target: 'both', weight: 0.8 },+ ]);+ });++ it('emits a single wan_lora_loader node and omits low_noise_weight on single-transformer TI2V-5B even with lowNoiseWeight set', () => {+ const dualLora5b: LoraModelConfig = {+ base: 'wan',+ key: 'wan-5b-dual',+ name: 'Dual 5B',+ type: 'lora',+ variant: '5b',+ };+ const graph = compile(wanDiffusers, {+ loras: [{ isEnabled: true, lowNoiseWeight: 0.4, model: dualLora5b, target: 'both', weight: 0.8 }],+ });+ const loaders = Object.values(graph.nodes).filter((node) => node.type === 'wan_lora_loader');++ expect(getNodeByType(graph, 'wan_lora_collection_loader')).toBeUndefined();+ expect(loaders).toHaveLength(1);+ expect(loaders[0]).toMatchObject({+ lora: expect.objectContaining({ key: 'wan-5b-dual' }),+ target: 'both',+ weight: 0.8,+ });+ expect(getEdge(graph, 'denoise_latents', 'transformer')?.source.node_id).toBe(loaders[0]?.id);+ expect(getNodeByType(graph, 'core_metadata')?.loras).toEqual([+ { model: expect.objectContaining({ key: 'wan-5b-dual' }), target: 'both', weight: 0.8 },+ ]);+ });});describe('Qwen-Image-2.1 graphs', () => {diff --git a/invokeai/frontend/webv2/src/features/generation/core/graph.ts b/invokeai/frontend/webv2/src/features/generation/core/graph.tsindex 2d7545f8e2..073eab8f68 100644--- a/invokeai/frontend/webv2/src/features/generation/core/graph.ts+++ b/invokeai/frontend/webv2/src/features/generation/core/graph.ts@@ -63,6 +63,7 @@ import {addOutputPostprocessors,createId,getActiveCompatibleLoras,+ hasDistinctWanLowNoiseWeight,toModelIdentifier,toGraphContract,} from './graphBuilder';@@ -323,6 +324,60 @@ export const addTransformerLoraCollectionLoader = (return loader;};+/**+ * Use `wan_lora_collection_loader` for ordinary untargeted LoRA sets; when any active LoRA carries a recalled Wan+ * expert target or differing low-noise weight, chain `wan_lora_loader` nodes to preserve exact per-expert targeting.+ */+export const addWanLoraLoaders = (+ graph: BackendGraphContract,+ loras: GenerateLora[],+ modelLoader: BackendInvocationContract,+ model: Pick<MainModelConfig, 'variant'> | null | undefined+): BackendInvocationContract => {+ if (loras.every((lora) => lora.target === undefined && lora.lowNoiseWeight === undefined)) {+ return addTransformerLoraCollectionLoader(graph, loras, 'wan_lora_collection_loader', modelLoader, ['transformer']);+ }++ let source = modelLoader;++ for (const lora of loras) {+ const loraModel = toModelIdentifier(lora.model);++ if (hasDistinctWanLowNoiseWeight(lora, model)) {+ const highLoader = addNode(graph, {+ id: createId('wan_lora_loader'),+ lora: loraModel,+ target: 'high',+ type: 'wan_lora_loader',+ weight: lora.weight,+ });+ addEdge(graph, source, 'transformer', highLoader, 'transformer');++ const lowLoader = addNode(graph, {+ id: createId('wan_lora_loader'),+ lora: loraModel,+ target: 'low',+ type: 'wan_lora_loader',+ weight: lora.lowNoiseWeight,+ });+ addEdge(graph, highLoader, 'transformer', lowLoader, 'transformer');+ source = lowLoader;+ } else {+ const loader = addNode(graph, {+ id: createId('wan_lora_loader'),+ lora: loraModel,+ target: lora.target ?? 'auto',+ type: 'wan_lora_loader',+ weight: lora.weight,+ });+ addEdge(graph, source, 'transformer', loader, 'transformer');+ source = loader;+ }+ }++ return source;+};+const buildSDGraph = (settings: GenerateSettings,model: MainModelConfig,@@ -2062,9 +2117,7 @@ const buildWanGraph = (vae_model: vaeModel ?? undefined,wan_t5_encoder_model: wanT5EncoderModel ?? undefined,});- const loraSource = activeLoras.length- ? addTransformerLoraCollectionLoader(graph, activeLoras, 'wan_lora_collection_loader', modelLoader, ['transformer'])- : modelLoader;+ const loraSource = activeLoras.length ? addWanLoraLoaders(graph, activeLoras, modelLoader, model) : modelLoader;const posCond = addNode(graph, { id: 'pos_cond', type: 'wan_text_encoder' });const negCond = addNode(graph, { id: 'neg_cond', type: 'wan_text_encoder' });const denoise = addNode(graph, {diff --git a/invokeai/frontend/webv2/src/features/generation/core/graphBuilder.ts b/invokeai/frontend/webv2/src/features/generation/core/graphBuilder.tsindex 5df6681799..c42783a5a3 100644--- a/invokeai/frontend/webv2/src/features/generation/core/graphBuilder.ts+++ b/invokeai/frontend/webv2/src/features/generation/core/graphBuilder.ts@@ -5,7 +5,7 @@ import type {GenerationProjectSettings,} from '@features/generation/core/contracts';-import type { GenerateLora, GenerateModelConfig, GenerateSettings } from './types';+import type { GenerateLora, GenerateModelConfig, GenerateSettings, MainModelConfig } from './types';import { coerceSchedulerForGraph } from './baseGenerationPolicies';import { isLoraCompatibleWithModel } from './settings';@@ -128,15 +128,79 @@ export const toModelIdentifier = (...(typeof model.submodel_type === 'string' ? { submodel_type: model.submodel_type } : {}),});+const isSingleTransformerWanModel = (model: Pick<MainModelConfig, 'variant'> | null | undefined): boolean =>+ model?.variant === 'ti2v_5b';++export const hasDistinctWanLowNoiseWeight = (+ lora: Pick<GenerateLora, 'lowNoiseWeight' | 'target' | 'weight'>,+ model: Pick<MainModelConfig, 'variant'> | null | undefined+): lora is Pick<GenerateLora, 'target' | 'weight'> & { lowNoiseWeight: number; target: 'both' } =>+ !isSingleTransformerWanModel(model) &&+ lora.target === 'both' &&+ lora.lowNoiseWeight !== undefined &&+ lora.lowNoiseWeight !== lora.weight;++export const toMetadataLora = (+ lora: Pick<GenerateLora, 'lowNoiseWeight' | 'model' | 'target' | 'weight'>,+ model: Pick<MainModelConfig, 'variant'> | null | undefined+) => ({+ model: toModelIdentifier(lora.model),+ weight: lora.weight,+ ...(lora.target ? { target: lora.target } : {}),+ ...(hasDistinctWanLowNoiseWeight(lora, model) ? { low_noise_weight: lora.lowNoiseWeight } : {}),+});+/*** The LoRAs a graph loads, as metadata records them. Read from the graph rather than the settings, so a record names* only concepts that reached inference; a family whose graph has no LoRA loader loads none.*/-export const getLoadedLoras = (graph: BackendGraphContract) =>- Object.values(graph.nodes)+export const getLoadedLoras = (graph: BackendGraphContract) => {+ const selectorLoras = Object.values(graph.nodes).filter((node) => node.type === 'lora_selector').map((node) => ({ model: node.lora, weight: node.weight }));+ const wanLoaderLoras: Record<string, unknown>[] = [];+ const wanIndexByKey = new Map<string, number>();++ for (const node of Object.values(graph.nodes)) {+ if (node.type !== 'wan_lora_loader' || !node.lora || typeof node.lora !== 'object') {+ continue;+ }++ const loraModel = node.lora as { key?: unknown };+ const key = typeof loraModel.key === 'string' ? loraModel.key : null;+ const target = node.target === 'high' || node.target === 'low' || node.target === 'both' ? node.target : undefined;+ const weight = node.weight as number;+ const existingIndex = key !== null ? wanIndexByKey.get(key) : undefined;++ if (existingIndex !== undefined) {+ const existing = wanLoaderLoras[existingIndex]!;+ if ((existing.target === 'high' && target === 'low') || (existing.target === 'low' && target === 'high')) {+ const highWeight = existing.target === 'high' ? (existing.weight as number) : weight;+ const lowWeight = existing.target === 'low' ? (existing.weight as number) : weight;+ wanLoaderLoras[existingIndex] = {+ model: existing.model,+ weight: highWeight,+ target: 'both',+ ...(lowWeight !== highWeight ? { low_noise_weight: lowWeight } : {}),+ };+ continue;+ }+ }++ if (key !== null) {+ wanIndexByKey.set(key, wanLoaderLoras.length);+ }+ wanLoaderLoras.push({+ model: node.lora,+ weight,+ ...(target !== undefined ? { target } : {}),+ });+ }++ return [...selectorLoras, ...wanLoaderLoras];+};+export const addMetadata = (graph: BackendGraphContract,outputNode: BackendInvocationContract,diff --git a/invokeai/frontend/webv2/src/features/generation/core/settings.test.ts b/invokeai/frontend/webv2/src/features/generation/core/settings.test.tsindex 34f9a578c4..48be79e319 100644--- a/invokeai/frontend/webv2/src/features/generation/core/settings.test.ts+++ b/invokeai/frontend/webv2/src/features/generation/core/settings.test.ts@@ -593,4 +593,29 @@ describe('normalizeGenerateSettings refiner fields', () => {refinerSteps: 20,});});++ it('preserves valid Wan LoRA targets and lowNoiseWeight and strips invalid ones on normalizeGenerateSettings', () => {+ const loraModel = { base: 'wan', key: 'wan-lora', name: 'Wan LoRA', type: 'lora' };+ const normalized = normalizeGenerateSettings({+ ...legacyStoredValues,+ loras: [+ { isEnabled: true, lowNoiseWeight: 0.35, model: loraModel, target: 'both', weight: 0.85 },+ { isEnabled: true, lowNoiseWeight: 0.5, model: loraModel, target: 'high', weight: 0.9 },+ { isEnabled: true, lowNoiseWeight: Number.NaN, model: loraModel, target: 'invalid', weight: 0.7 },+ ],+ });++ expect(normalized?.loras).toEqual([+ { isEnabled: true, lowNoiseWeight: 0.35, model: loraModel, target: 'both', weight: 0.85 },+ { isEnabled: true, model: loraModel, target: 'high', weight: 0.9 },+ { isEnabled: true, model: loraModel, weight: 0.7 },+ ]);+ expect(normalized && isGenerateSettings(normalized)).toBe(true);+ expect(+ isGenerateSettings({+ ...normalized,+ loras: [{ isEnabled: true, lowNoiseWeight: 0.5, model: loraModel, target: 'high', weight: 0.9 }],+ })+ ).toBe(false);+ });});diff --git a/invokeai/frontend/webv2/src/features/generation/core/settings.ts b/invokeai/frontend/webv2/src/features/generation/core/settings.tsindex 61a2d63567..41e5289ce6 100644--- a/invokeai/frontend/webv2/src/features/generation/core/settings.ts+++ b/invokeai/frontend/webv2/src/features/generation/core/settings.ts@@ -21,6 +21,7 @@ import type {QwenImageEncoderQuantization,VaeModelConfig,VaePrecision,+ WanLoraTarget,} from './types';import { sanitizeBatchCount } from './batch';@@ -369,11 +370,52 @@ export {KREA2_REBALANCE_WEIGHT_COUNT,};-const isGenerateLora = (value: unknown): value is GenerateLora =>- isRecord(value) &&- isLoraModelConfig(value.model) &&- hasFiniteNumber(value, 'weight') &&- typeof value.isEnabled === 'boolean';+export const isWanLoraTarget = (value: unknown): value is WanLoraTarget =>+ value === 'high' || value === 'low' || value === 'both';++export const isGenerateLora = (value: unknown): value is GenerateLora => {+ if (+ !isRecord(value) ||+ !isLoraModelConfig(value.model) ||+ !hasFiniteNumber(value, 'weight') ||+ typeof value.isEnabled !== 'boolean'+ ) {+ return false;+ }++ if (value.target !== undefined && !isWanLoraTarget(value.target)) {+ return false;+ }++ if (value.lowNoiseWeight !== undefined && (value.target !== 'both' || !hasFiniteNumber(value, 'lowNoiseWeight'))) {+ return false;+ }++ return true;+};++export const normalizeGenerateLora = (value: unknown): GenerateLora | null => {+ if (+ !isRecord(value) ||+ !isLoraModelConfig(value.model) ||+ !hasFiniteNumber(value, 'weight') ||+ typeof value.isEnabled !== 'boolean'+ ) {+ return null;+ }++ const target = isWanLoraTarget(value.target) ? value.target : undefined;+ const lowNoiseWeight =+ target === 'both' && hasFiniteNumber(value, 'lowNoiseWeight') ? (value.lowNoiseWeight as number) : undefined;++ return {+ isEnabled: value.isEnabled,+ model: value.model,+ weight: value.weight as number,+ ...(target !== undefined ? { target } : {}),+ ...(lowNoiseWeight !== undefined ? { lowNoiseWeight } : {}),+ };+};export const DEFAULT_REFERENCE_IMAGE_LIMIT = 5;@@ -994,7 +1036,7 @@ export const normalizeGenerateSettings = (values: unknown): GenerateSettings | n: getClampedNumber(values, 'hiDiffusionT2Ratio', 0, MAX_HIDIFFUSION_RATIO, 0),...normalizeDynamicPromptsSettings(values),height,- loras: Array.isArray(values.loras) ? values.loras.filter(isGenerateLora) : [],+ loras: Array.isArray(values.loras) ? values.loras.flatMap((entry) => normalizeGenerateLora(entry) ?? []) : [],modelKey: values.modelKey as string,negativePromptEnabled: typeof values.negativePromptEnabled === 'boolean' ? values.negativePromptEnabled : true,negativePrompt: values.negativePrompt as string,diff --git a/invokeai/frontend/webv2/src/features/generation/core/types.ts b/invokeai/frontend/webv2/src/features/generation/core/types.tsindex 99908bf973..8a0bce0293 100644--- a/invokeai/frontend/webv2/src/features/generation/core/types.ts+++ b/invokeai/frontend/webv2/src/features/generation/core/types.ts@@ -93,10 +93,14 @@ export type LoraModelConfig = ModelIdentifierConfig & {variant?: string | null;};+export type WanLoraTarget = 'high' | 'low' | 'both';+export interface GenerateLora {isEnabled: boolean;model: LoraModelConfig;weight: number;+ target?: WanLoraTarget;+ lowNoiseWeight?: number;}export interface ImageWithDims {diff --git a/invokeai/frontend/webv2/src/features/generation/graph.ts b/invokeai/frontend/webv2/src/features/generation/graph.tsindex 7643f9a3f0..8a9cf186c3 100644--- a/invokeai/frontend/webv2/src/features/generation/graph.ts+++ b/invokeai/frontend/webv2/src/features/generation/graph.ts@@ -2,6 +2,7 @@export {addLoraCollectionLoader,addTransformerLoraCollectionLoader,+ addWanLoraLoaders,compileGenerateGraph,FLUX_REDUX_INFLUENCE,resolveGenerateSeed,@@ -12,7 +13,9 @@ export {createId,getActiveCompatibleLoras,getLoadedLoras,+ hasDistinctWanLowNoiseWeight,toGraphContract,+ toMetadataLora,toModelIdentifier,} from './core/graphBuilder';export { detectCanvasMode } from './core/canvas/canvasMode';diff --git a/invokeai/frontend/webv2/src/features/generation/settings.ts b/invokeai/frontend/webv2/src/features/generation/settings.tsindex 9f8fb86582..d66a5e1164 100644--- a/invokeai/frontend/webv2/src/features/generation/settings.ts+++ b/invokeai/frontend/webv2/src/features/generation/settings.ts@@ -16,6 +16,7 @@ export {getGenerateValuesRevertPatch,isAspectRatioLocked,isFluxDypePreset,+ isGenerateLora,isIdeogram4SamplerPreset,isGenerateModelConfig,isLoraCompatibleWithModel,@@ -25,6 +26,7 @@ export {isQwenImageEncoderQuantization,isValidMossImageSkipLayers,isVaeModelConfig,+ isWanLoraTarget,isWanLoraTargetingMain,MAX_FLUX_DYPE_EXPONENT,MAX_FLUX_DYPE_SCALE,@@ -40,6 +42,7 @@ export {MIN_TIMESTEP_SHIFT,MIN_ZIMAGE_SEED_VARIANCE_RANDOMIZE_PERCENT,normalizeDynamicPromptsSettings,+ normalizeGenerateLora,normalizeGenerateSettings,normalizeMossImageSkipLayers,normalizeGenerateWidgetValues,diff --git a/invokeai/frontend/webv2/src/features/generation/ui/shared/ConceptRow.browser.test.tsx b/invokeai/frontend/webv2/src/features/generation/ui/shared/ConceptRow.browser.test.tsxindex 54370ac738..87063ac0b5 100644--- a/invokeai/frontend/webv2/src/features/generation/ui/shared/ConceptRow.browser.test.tsx+++ b/invokeai/frontend/webv2/src/features/generation/ui/shared/ConceptRow.browser.test.tsx@@ -361,4 +361,64 @@ describe('ConceptRow', () => {await expect.poll(() => document.activeElement?.textContent).toBe('Add concept');});++ it.each(['high', 'low', 'both'] as const)(+ 'shows the Wan expert target badge for %s and omits it when untargeted',+ async (target) => {+ const targeted = await render({ ...makeLora({ base: 'wan' }), target });+ expect(targeted.textContent).toContain(`widgets.generate.wanLoraTargets.${target}`);++ const untargeted = await render(makeLora({ base: 'wan' }));+ expect(untargeted.textContent).not.toContain('widgets.generate.wanLoraTargets');+ }+ );++ it('renders independent high-noise and low-noise weight scrubbers when lowNoiseWeight is set', async () => {+ const onUpdate = vi.fn();+ const row = await render(+ { ...makeLora({ base: 'wan' }), lowNoiseWeight: 0.4, target: 'both', weight: 0.8 },+ { onUpdate }+ );+ const sliders = row.querySelectorAll<HTMLElement>('[role="slider"]');++ expect(sliders).toHaveLength(2);+ expect(row.textContent).toContain('widgets.generate.highNoiseWeight');+ expect(row.textContent).toContain('widgets.generate.lowNoiseWeight');++ sliders[0]!.focus();+ await act(() => userEvent.keyboard('{ArrowRight}'));+ await act(() => flushWorkbenchDrafts());+ expect(onUpdate).toHaveBeenLastCalledWith('lora-1', { weight: 0.85 });++ sliders[1]!.focus();+ await act(() => userEvent.keyboard('{ArrowLeft}'));+ await act(() => flushWorkbenchDrafts());+ expect(onUpdate).toHaveBeenLastCalledWith('lora-1', { lowNoiseWeight: 0.35 });+ });++ it('offers Use single weight and Clear expert target actions in the row context menu', async () => {+ const onUpdate = vi.fn();+ const row = await render(+ { ...makeLora({ base: 'wan' }), lowNoiseWeight: 0.4, target: 'both', weight: 0.8 },+ { onUpdate }+ );+ const openMenu = async () => {+ await act(() => userEvent.click(row.querySelector<HTMLElement>('[data-list-primary]')!, { button: 'right' }));+ await expect.poll(() => document.querySelector('[role="menu"]')).not.toBeNull();+ };+ const choose = async (label: string) => {+ const item = [...document.querySelectorAll<HTMLElement>('[role="menuitem"]')].find(+ (candidate) => candidate.textContent === label+ );+ await act(() => userEvent.click(item!));+ };++ await openMenu();+ await choose('widgets.generate.conceptMenu.useSingleWeight');+ expect(onUpdate).toHaveBeenLastCalledWith('lora-1', { lowNoiseWeight: null });++ await openMenu();+ await choose('widgets.generate.conceptMenu.clearExpertTarget');+ expect(onUpdate).toHaveBeenLastCalledWith('lora-1', { lowNoiseWeight: null, target: null });+ });});diff --git a/invokeai/frontend/webv2/src/features/generation/ui/shared/ConceptRow.tsx b/invokeai/frontend/webv2/src/features/generation/ui/shared/ConceptRow.tsxindex 4756d98363..e37da60fc4 100644--- a/invokeai/frontend/webv2/src/features/generation/ui/shared/ConceptRow.tsx+++ b/invokeai/frontend/webv2/src/features/generation/ui/shared/ConceptRow.tsx@@ -14,7 +14,16 @@ import { ListStack } from '@platform/ui/list/ListStack';import { MenuActionItem, MenuContent, useContextMenu } from '@platform/ui/Menu';import { ScrubberField } from '@platform/ui/ScrubberField';import { Tooltip } from '@platform/ui/Tooltip';-import { BoxIcon, ExternalLinkIcon, PowerIcon, PowerOffIcon, RotateCcwIcon, Trash2Icon } from 'lucide-react';+import {+ BoxIcon,+ EqualIcon,+ ExternalLinkIcon,+ PowerIcon,+ PowerOffIcon,+ RotateCcwIcon,+ Trash2Icon,+ XIcon,+} from 'lucide-react';import { createContext, memo, use, useCallback } from 'react';import { useTranslation } from 'react-i18next';@@ -113,6 +122,56 @@ const findControlBeforeList = (slots: ListSlot[]): HTMLElement | null => {const ConceptProjectContext = createContext<string | undefined>(undefined);+interface ConceptWeightFieldProps {+ copyValue: () => string;+ defaultWeight: number;+ disabled: boolean;+ fieldLabel: string;+ label: string;+ onChange: (value: number) => void;+ onReset: () => void;+ resetLabel: string;+ value: number;+}++const ConceptWeightField = ({+ copyValue,+ defaultWeight,+ disabled,+ fieldLabel,+ label,+ onChange,+ onReset,+ resetLabel,+ value,+}: ConceptWeightFieldProps) => (+ // Backed with the widget's surface so the row's hover tint never washes out the track and fill.+ <Box bg="var(--wb-field-surface, var(--chakra-colors-bg-subtle))" rounded="control">+ <GenerateFieldContextMenu+ fieldLabel={fieldLabel}+ copyValue={copyValue}+ isAtDefault={value === defaultWeight}+ resetLabel={resetLabel}+ onReset={onReset}+ >+ <ScrubberField+ defaultValue={defaultWeight}+ disabled={disabled}+ hint="loraWeight"+ inputMax={DEFAULT_LORA_WEIGHT_CONFIG.numberInputMax}+ inputMin={DEFAULT_LORA_WEIGHT_CONFIG.numberInputMin}+ label={label}+ marks={WEIGHT_MARKS}+ max={DEFAULT_LORA_WEIGHT_CONFIG.sliderMax}+ min={DEFAULT_LORA_WEIGHT_CONFIG.sliderMin}+ step={DEFAULT_LORA_WEIGHT_CONFIG.coarseStep}+ value={value}+ onChange={onChange}+ />+ </GenerateFieldContextMenu>+ </Box>+);+/** A short concept list shares its project lifetime with the rows' drafts and menus. */export const ConceptList = ({children,@@ -141,6 +200,10 @@ export const ConceptRow = memo(function ConceptRow(props: ConceptRowProps) {(weight: number) => onUpdate(lora.model.key, { weight }),[lora.model.key, onUpdate]);+ const commitLowNoiseWeight = useCallback(+ (lowNoiseWeight: number) => onUpdate(lora.model.key, { lowNoiseWeight }),+ [lora.model.key, onUpdate]+ );const {draftValue: weight,flushDraftValue,@@ -151,20 +214,48 @@ export const ConceptRow = memo(function ConceptRow(props: ConceptRowProps) {resetKey: projectId,value: lora.weight,});+ const {+ draftValue: lowNoiseWeight,+ flushDraftValue: flushLowNoiseDraftValue,+ replaceDraftValue: replaceLowNoiseDraftValue,+ setDraftValue: setLowNoiseDraftValue,+ } = useDebouncedDraftValue({+ delayMs: 250,+ onCommit: commitLowNoiseWeight,+ resetKey: projectId,+ value: lora.lowNoiseWeight ?? lora.weight,+ });useRegisterDraftFlusher(flushDraftValue);+ useRegisterDraftFlusher(flushLowNoiseDraftValue);const update = useCallback(- (key: string, update: ConceptUpdate) => {- if (update.weight === undefined) {- onUpdate(key, update);- } else {- setDraftValue(update.weight);+ (key: string, nextUpdate: ConceptUpdate) => {+ if (nextUpdate.lowNoiseWeight === null || nextUpdate.target === null) {+ // Discard any queued low-noise commit so a pending timer cannot resurrect cleared routing.+ replaceLowNoiseDraftValue(lora.weight);+ }+ if (nextUpdate.weight !== undefined) {+ setDraftValue(nextUpdate.weight);+ }+ if (typeof nextUpdate.lowNoiseWeight === 'number') {+ setLowNoiseDraftValue(nextUpdate.lowNoiseWeight);+ }+ if (nextUpdate.weight === undefined && typeof nextUpdate.lowNoiseWeight !== 'number') {+ onUpdate(key, nextUpdate);}},- [onUpdate, setDraftValue]+ [lora.weight, onUpdate, replaceLowNoiseDraftValue, setDraftValue, setLowNoiseDraftValue]);// Reset the menu on project changes without remounting/flushing the weight draft into the next project.- return <ConceptRowContent key={projectId} {...props} weight={weight} onUpdate={update} />;+ return (+ <ConceptRowContent+ key={projectId}+ {...props}+ lowNoiseWeight={lora.lowNoiseWeight !== undefined ? lowNoiseWeight : undefined}+ weight={weight}+ onUpdate={update}+ />+ );});const ConceptRowContent = ({@@ -172,22 +263,28 @@ const ConceptRowContent = ({isInstalled = true,issue,lora,+ lowNoiseWeight,models,onRemove,onUpdate,weight,-}: ConceptRowProps & { weight: number }) => {+}: ConceptRowProps & { lowNoiseWeight?: number; weight: number }) => {const { t } = useTranslation();const { key, name, trigger_phrases: triggerPhrases } = lora.model;// A concept that is not installed cannot run either; the row says which of the two it is.const isCompatible = isCompatibleModel && isInstalled;const isActive = lora.isEnabled && isCompatible;+ const isSplitWeight = lowNoiseWeight !== undefined;const defaultWeight = getDefaultLoraWeight(lora.model);const menu = useContextMenu();// Kept through the exit animation: the anchor clears the moment the menu closes.const { release: releaseMenu, value: shownAnchor } = useExitRetainedValue(menu.anchor);const handleToggle = useCallback((isEnabled: boolean) => onUpdate(key, { isEnabled }), [key, onUpdate]);const handleWeightChange = useCallback((weight: number) => onUpdate(key, { weight }), [key, onUpdate]);+ const handleLowNoiseWeightChange = useCallback(+ (nextLowNoiseWeight: number) => onUpdate(key, { lowNoiseWeight: nextLowNoiseWeight }),+ [key, onUpdate]+ );const removeFrom = useCallback((origin: Element | null) => {const neighbour = findNeighbourRow(origin);@@ -203,7 +300,18 @@ const ConceptRowContent = ({[removeFrom]);const handleReset = useCallback(() => onUpdate(key, { weight: defaultWeight }), [defaultWeight, key, onUpdate]);+ const handleResetLowNoise = useCallback(+ () => onUpdate(key, { lowNoiseWeight: defaultWeight }),+ [defaultWeight, key, onUpdate]+ );+ const handleResetRowWeights = useCallback(+ () => onUpdate(key, { weight: defaultWeight, ...(isSplitWeight ? { lowNoiseWeight: defaultWeight } : {}) }),+ [defaultWeight, isSplitWeight, key, onUpdate]+ );+ const handleUseSingleWeight = useCallback(() => onUpdate(key, { lowNoiseWeight: null }), [key, onUpdate]);+ const handleClearTarget = useCallback(() => onUpdate(key, { target: null, lowNoiseWeight: null }), [key, onUpdate]);const copyWeight = useCallback(() => String(weight), [weight]);+ const copyLowNoiseWeight = useCallback(() => String(lowNoiseWeight ?? weight), [lowNoiseWeight, weight]);const { openInModelManager } = models;return (@@ -240,10 +348,15 @@ const ConceptRowContent = ({}// The model type sits under the name, with the trigger phrases beside it on the same line.description={- <Flex align="center" gap="1.5" minW="0">+ <Flex align="center" flexWrap="wrap" gap="1.5" minW="0"><Badge colorPalette={models.getBaseColorPalette(lora.model.base)} flexShrink={0} variant="surface">{models.getBaseLabel(lora.model.base)}</Badge>+ {lora.target ? (+ <Badge colorPalette="accent" flexShrink={0} variant="surface">+ {t(`widgets.generate.wanLoraTargets.${lora.target}`)}+ </Badge>+ ) : null}{isInstalled ? null : (<Badge colorPalette="red" flexShrink={0} variant="solid">{t('widgets.generate.notInstalled')}@@ -262,31 +375,44 @@ const ConceptRowContent = ({</Flex>}detail={- // Backed with the widget's surface so the row's hover tint never washes out the track and fill.- <Box bg="var(--wb-field-surface, var(--chakra-colors-bg-subtle))" rounded="control">- <GenerateFieldContextMenu- fieldLabel={t('widgets.generate.conceptWeightNamed', { name })}- copyValue={copyWeight}- isAtDefault={weight === defaultWeight}- resetLabel={t('widgets.generate.resetToConceptDefault')}- onReset={handleReset}- >- <ScrubberField- defaultValue={defaultWeight}+ isSplitWeight ? (+ <Flex direction="column" gap="1.5">+ <ConceptWeightField+ copyValue={copyWeight}+ defaultWeight={defaultWeight}disabled={!isActive}- hint="loraWeight"- inputMax={DEFAULT_LORA_WEIGHT_CONFIG.numberInputMax}- inputMin={DEFAULT_LORA_WEIGHT_CONFIG.numberInputMin}- label={t('widgets.generate.weight')}- marks={WEIGHT_MARKS}- max={DEFAULT_LORA_WEIGHT_CONFIG.sliderMax}- min={DEFAULT_LORA_WEIGHT_CONFIG.sliderMin}- step={DEFAULT_LORA_WEIGHT_CONFIG.coarseStep}+ fieldLabel={t('widgets.generate.conceptHighNoiseWeightNamed', { name })}+ label={t('widgets.generate.highNoiseWeight')}+ resetLabel={t('widgets.generate.resetToConceptDefault')}value={weight}onChange={handleWeightChange}+ onReset={handleReset}+ />+ <ConceptWeightField+ copyValue={copyLowNoiseWeight}+ defaultWeight={defaultWeight}+ disabled={!isActive}+ fieldLabel={t('widgets.generate.conceptLowNoiseWeightNamed', { name })}+ label={t('widgets.generate.lowNoiseWeight')}+ resetLabel={t('widgets.generate.resetToConceptDefault')}+ value={lowNoiseWeight}+ onChange={handleLowNoiseWeightChange}+ onReset={handleResetLowNoise}/>- </GenerateFieldContextMenu>- </Box>+ </Flex>+ ) : (+ <ConceptWeightField+ copyValue={copyWeight}+ defaultWeight={defaultWeight}+ disabled={!isActive}+ fieldLabel={t('widgets.generate.conceptWeightNamed', { name })}+ label={t('widgets.generate.weight')}+ resetLabel={t('widgets.generate.resetToConceptDefault')}+ value={weight}+ onChange={handleWeightChange}+ onReset={handleReset}+ />+ )}density="snug"leading={@@ -341,11 +467,13 @@ const ConceptRowContent = ({/>) : null}<MenuActionItem- disabled={weight === defaultWeight || !isActive}+ disabled={+ (weight === defaultWeight && (!isSplitWeight || lowNoiseWeight === defaultWeight)) || !isActive+ }icon={RotateCcwIcon}label={t('widgets.generate.resetToConceptDefault')}value="reset-weight"- onSelect={handleReset}+ onSelect={handleResetRowWeights}/><MenuActionItemdisabled={!isCompatible}@@ -356,6 +484,22 @@ const ConceptRowContent = ({value="toggle"onSelect={() => handleToggle(!isActive)}/>+ {isSplitWeight ? (+ <MenuActionItem+ icon={EqualIcon}+ label={t('widgets.generate.conceptMenu.useSingleWeight')}+ value="use-single-weight"+ onSelect={handleUseSingleWeight}+ />+ ) : null}+ {lora.target !== undefined ? (+ <MenuActionItem+ icon={XIcon}+ label={t('widgets.generate.conceptMenu.clearExpertTarget')}+ value="clear-expert-target"+ onSelect={handleClearTarget}+ />+ ) : null}<Menu.Separator /><MenuActionItemicon={Trash2Icon}diff --git a/invokeai/frontend/webv2/src/features/video/core/graph.test.ts b/invokeai/frontend/webv2/src/features/video/core/graph.test.tsindex 4a9c025bb3..3fcd9d6953 100644--- a/invokeai/frontend/webv2/src/features/video/core/graph.test.ts+++ b/invokeai/frontend/webv2/src/features/video/core/graph.test.ts@@ -108,6 +108,99 @@ describe('compileVideoGraph — Wan 2.2', () => {expect(hasEdge(backendGraph, 'negative_prompt', 'value', 'core_metadata', 'negative_prompt')).toBe(true);});+ it('chains wan_lora_loader nodes with expert targets and preserves target/low_noise_weight in metadata', () => {+ const model = wanModel('t2v_a14b');+ const highLora = {+ isEnabled: true,+ model: { base: 'wan', key: 'lit-high', name: 'Wan High', type: 'lora' as const, variant: 'a14b' },+ target: 'high' as const,+ weight: 0.9,+ };+ const lowLora = {+ isEnabled: true,+ model: { base: 'wan', key: 'lit-low', name: 'Wan Low', type: 'lora' as const, variant: 'a14b' },+ target: 'low' as const,+ weight: 0.5,+ };+ const dualLora = {+ isEnabled: true,+ lowNoiseWeight: 0.3,+ model: { base: 'wan', key: 'lit-dual', name: 'Wan Dual', type: 'lora' as const, variant: 'a14b' },+ target: 'both' as const,+ weight: 0.8,+ };+ const untargetedLora = {+ isEnabled: true,+ model: { base: 'wan', key: 'lit-auto', name: 'Wan Auto', type: 'lora' as const, variant: 'a14b' },+ weight: 0.7,+ };++ const { backendGraph } = compileVideoGraph(+ settingsFor(model, { loras: [highLora, lowLora, dualLora, untargetedLora] }),+ model+ );++ expect(nodesOfType(backendGraph, 'wan_lora_collection_loader')).toHaveLength(0);+ const loaders = nodesOfType(backendGraph, 'wan_lora_loader');+ expect(loaders).toHaveLength(5);+ expect(+ loaders.map((node) => ({ key: (node.lora as { key: string }).key, target: node.target, weight: node.weight }))+ ).toEqual([+ { key: 'lit-high', target: 'high', weight: 0.9 },+ { key: 'lit-low', target: 'low', weight: 0.5 },+ { key: 'lit-dual', target: 'high', weight: 0.8 },+ { key: 'lit-dual', target: 'low', weight: 0.3 },+ { key: 'lit-auto', target: 'auto', weight: 0.7 },+ ]);+ expect(hasEdge(backendGraph, 'model_loader', 'transformer', loaders[0]!.id, 'transformer')).toBe(true);+ expect(hasEdge(backendGraph, loaders[4]!.id, 'transformer', 'denoise_latents', 'transformer')).toBe(true);+ expect(nodeOfType(backendGraph, 'core_metadata').loras).toEqual([+ { model: expect.objectContaining({ key: 'lit-high' }), target: 'high', weight: 0.9 },+ { model: expect.objectContaining({ key: 'lit-low' }), target: 'low', weight: 0.5 },+ { low_noise_weight: 0.3, model: expect.objectContaining({ key: 'lit-dual' }), target: 'both', weight: 0.8 },+ { model: expect.objectContaining({ key: 'lit-auto' }), weight: 0.7 },+ ]);++ const equalLowNoise = compileVideoGraph(+ settingsFor(model, {+ loras: [{ ...dualLora, lowNoiseWeight: 0.8, target: 'both', weight: 0.8 }],+ }),+ model+ );+ const equalLoaders = nodesOfType(equalLowNoise.backendGraph, 'wan_lora_loader');+ expect(equalLoaders).toHaveLength(1);+ expect(equalLoaders[0]).toMatchObject({ target: 'both', weight: 0.8 });+ expect(nodeOfType(equalLowNoise.backendGraph, 'core_metadata').loras).toEqual([+ { model: expect.objectContaining({ key: 'lit-dual' }), target: 'both', weight: 0.8 },+ ]);+ });++ it('emits a single wan_lora_loader node and omits low_noise_weight on single-transformer TI2V-5B even with lowNoiseWeight set', () => {+ const model = wanModel('ti2v_5b');+ const dualLora5b = {+ isEnabled: true,+ lowNoiseWeight: 0.4,+ model: { base: 'wan', key: 'lit-5b-dual', name: 'Wan 5B Dual', type: 'lora' as const, variant: '5b' },+ target: 'both' as const,+ weight: 0.8,+ };+ const { backendGraph } = compileVideoGraph(settingsFor(model, { loras: [dualLora5b] }), model);+ const loaders = nodesOfType(backendGraph, 'wan_lora_loader');++ expect(nodesOfType(backendGraph, 'wan_lora_collection_loader')).toHaveLength(0);+ expect(loaders).toHaveLength(1);+ expect(loaders[0]).toMatchObject({+ lora: expect.objectContaining({ key: 'lit-5b-dual' }),+ target: 'both',+ weight: 0.8,+ });+ expect(hasEdge(backendGraph, 'model_loader', 'transformer', loaders[0]!.id, 'transformer')).toBe(true);+ expect(hasEdge(backendGraph, loaders[0]!.id, 'transformer', 'denoise_latents', 'transformer')).toBe(true);+ expect(nodeOfType(backendGraph, 'core_metadata').loras).toEqual([+ { model: expect.objectContaining({ key: 'lit-5b-dual' }), target: 'both', weight: 0.8 },+ ]);+ });+it('wires first-frame conditioning through wan_ref_image_encoder with matching canvas and frames', () => {const model = wanModel('i2v_a14b');const settings = settingsFor(model, { firstFrameImage: FIRST_FRAME, targetResolution: '480p' });diff --git a/invokeai/frontend/webv2/src/features/video/core/graph.ts b/invokeai/frontend/webv2/src/features/video/core/graph.tsindex b57a446623..2a2edfcb8d 100644--- a/invokeai/frontend/webv2/src/features/video/core/graph.ts+++ b/invokeai/frontend/webv2/src/features/video/core/graph.ts@@ -9,10 +9,11 @@ import {addEdge,addNode,addTransformerLoraCollectionLoader,+ addWanLoraLoaders,createId,getActiveCompatibleLoras,toGraphContract,- toModelIdentifier,+ toMetadataLora,} from '@features/generation/graph';import { getCompatibleDiffusersComponentSource } from '@features/generation/settings';@@ -251,9 +252,7 @@ const addVideoMetadata = ({source_video_start_frame: settings.sourceVideo.startFrame,}: {}),- ...(activeLoras.length- ? { loras: activeLoras.map((lora) => ({ model: toModelIdentifier(lora.model), weight: lora.weight })) }- : {}),+ ...(activeLoras.length ? { loras: activeLoras.map((lora) => toMetadataLora(lora, model)) } : {}),...extras,});@@ -297,9 +296,7 @@ const buildWanVideoGraph = (settings: VideoSettings, model: MainModelConfig): Ba});// Wan LoRAs patch transformers; auto routing uses probed high/low tags to place accelerator pairs correctly.const activeLoras = getActiveCompatibleLoras(settings, model);- const loraSource = activeLoras.length- ? addTransformerLoraCollectionLoader(graph, activeLoras, 'wan_lora_collection_loader', modelLoader, ['transformer'])- : modelLoader;+ const loraSource = activeLoras.length ? addWanLoraLoaders(graph, activeLoras, modelLoader, model) : modelLoader;const posCond = addNode(graph, { id: 'pos_cond', type: 'wan_text_encoder' });const negCond = addNode(graph, { id: 'neg_cond', type: 'wan_text_encoder' });const denoise = addNode(graph, {diff --git a/invokeai/frontend/webv2/src/features/video/core/settings.test.ts b/invokeai/frontend/webv2/src/features/video/core/settings.test.tsindex b30a588a25..9c69d160b9 100644--- a/invokeai/frontend/webv2/src/features/video/core/settings.test.ts+++ b/invokeai/frontend/webv2/src/features/video/core/settings.test.ts@@ -494,6 +494,32 @@ describe('references', () => {expect(trimmed?.references.map(named as never)).toEqual(['v0.mp4', 'v1.mp4', 'anchor.mp4']);expect(trimmed?.references.at(-1)).toMatchObject({ fromSourceVideo: true });});++ it('preserves valid Wan LoRA targets and lowNoiseWeight and strips invalid ones on normalizeVideoSettings', () => {+ const loraModel = { base: 'wan', key: 'wan-lora', name: 'Wan LoRA', type: 'lora' };+ const normalized = normalizeVideoSettings(+ createSettings({+ loras: [+ { isEnabled: true, lowNoiseWeight: 0.4, model: loraModel as never, target: 'both', weight: 0.8 },+ { isEnabled: true, lowNoiseWeight: 0.4, model: loraModel as never, target: 'low', weight: 0.6 },+ { isEnabled: true, model: loraModel as never, target: 'bogus' as never, weight: 0.5 },+ ],+ })+ );++ expect(normalized?.loras).toEqual([+ { isEnabled: true, lowNoiseWeight: 0.4, model: loraModel, target: 'both', weight: 0.8 },+ { isEnabled: true, model: loraModel, target: 'low', weight: 0.6 },+ { isEnabled: true, model: loraModel, weight: 0.5 },+ ]);+ expect(isVideoSettings(normalized)).toBe(true);+ expect(+ isVideoSettings({+ ...normalized,+ loras: [{ isEnabled: true, lowNoiseWeight: 0.4, model: loraModel, target: 'low', weight: 0.6 }],+ })+ ).toBe(false);+ });});describe('anchorReferenceConditioning', () => {diff --git a/invokeai/frontend/webv2/src/features/video/core/settings.ts b/invokeai/frontend/webv2/src/features/video/core/settings.tsindex 6562eda695..5852b5e9f1 100644--- a/invokeai/frontend/webv2/src/features/video/core/settings.ts+++ b/invokeai/frontend/webv2/src/features/video/core/settings.ts@@ -4,7 +4,7 @@ import {DEFAULT_DYNAMIC_PROMPTS_SETTINGS,DEFAULT_NEGATIVE_PROMPT_HEIGHT_PX,DEFAULT_POSITIVE_PROMPT_HEIGHT_PX,- isLoraModelConfig,+ isGenerateLora,isMainModelConfig,isModelIdentifierConfig,isVaeModelConfig,@@ -13,6 +13,7 @@ import {MIN_NEGATIVE_PROMPT_HEIGHT_PX,MIN_POSITIVE_PROMPT_HEIGHT_PX,normalizeDynamicPromptsSettings,+ normalizeGenerateLora,sanitizeBatchCount,} from '@features/generation/settings';import { isSeedMode } from '@platform/core/seed';@@ -237,11 +238,7 @@ const sanitizeVideoReferences = (value: unknown, sourceVideoName?: string): Videreturn result;};-const isVideoLora = (value: unknown): value is GenerateLora =>- isRecord(value) &&- isLoraModelConfig(value.model) &&- hasFiniteNumber(value, 'weight') &&- typeof value.isEnabled === 'boolean';+const isVideoLora = isGenerateLora;const getStringArray = (value: unknown): string[] =>Array.isArray(value) ? value.filter((entry): entry is string => typeof entry === 'string') : [];@@ -327,7 +324,7 @@ export const normalizeVideoSettings = (values: unknown): VideoSettings | null =>(!firstFrameImage || !isConditioningClipExcludingFrames(values.conditioningClip))? values.conditioningClip: null;- const loras = Array.isArray(values.loras) ? values.loras.filter(isVideoLora) : [];+ const loras = Array.isArray(values.loras) ? values.loras.flatMap((entry) => normalizeGenerateLora(entry) ?? []) : [];const acceleratorLoraKeys = getStringArray(values.acceleratorLoraKeys);// Clear acceleration when any required accelerator LoRA disappears instead of claiming an inactive fast path.const acceleratorEnabled =diff --git a/invokeai/frontend/webv2/src/features/video/ui/videoComparators.ts b/invokeai/frontend/webv2/src/features/video/ui/videoComparators.tsindex df91b5d038..3ff29178e5 100644--- a/invokeai/frontend/webv2/src/features/video/ui/videoComparators.ts+++ b/invokeai/frontend/webv2/src/features/video/ui/videoComparators.ts@@ -17,6 +17,8 @@ export const areVideoLorasEquivalent = (left: VideoWidgetValues['loras'], right:lora.model.name === right[index]?.model.name &&lora.model.hash === right[index]?.model.hash &&lora.weight === right[index]?.weight &&+ lora.target === right[index]?.target &&+ lora.lowNoiseWeight === right[index]?.lowNoiseWeight &&lora.isEnabled === right[index]?.isEnabled);diff --git a/invokeai/frontend/webv2/src/workbench/canvas-operations/saveCanvasToGallery.test.ts b/invokeai/frontend/webv2/src/workbench/canvas-operations/saveCanvasToGallery.test.tsindex 7e6884a4fa..a6c423bd7a 100644--- a/invokeai/frontend/webv2/src/workbench/canvas-operations/saveCanvasToGallery.test.ts+++ b/invokeai/frontend/webv2/src/workbench/canvas-operations/saveCanvasToGallery.test.ts@@ -1,5 +1,10 @@import type { GalleryBoard, GalleryBoardAction } from '@features/gallery/contracts';-import type { GenerateModelConfig, GenerateWidgetValues, MainModelConfig } from '@features/generation/contracts';+import type {+ GenerateLora,+ GenerateModelConfig,+ GenerateWidgetValues,+ MainModelConfig,+} from '@features/generation/contracts';import type { CanvasDocumentContractV3 } from '@workbench/canvas-engine/contracts';import type { CanvasEngine } from '@workbench/canvas-engine/engine';import type { RasterCompositeExportResult } from '@workbench/canvas-engine/exportRasterComposite';@@ -595,6 +600,125 @@ describe('saveCanvasToGallery', () => {await expect(save).resolves.toEqual({ status: 'stale' });expect(harness.uploadImage).not.toHaveBeenCalled();});++ it('forwards optional Wan LoRA target and distinct low_noise_weight for dual-expert models and omits low_noise_weight on ti2v_5b', async () => {+ const wanA14b: MainModelConfig = {+ base: 'wan',+ key: 'wan-a14b',+ name: 'Wan A14B',+ type: 'main',+ variant: 't2v_a14b',+ };+ const wan5b: MainModelConfig = {+ base: 'wan',+ key: 'wan-5b',+ name: 'Wan TI2V 5B',+ type: 'main',+ variant: 'ti2v_5b',+ };+ const loras: GenerateLora[] = [+ {+ isEnabled: true,+ model: { base: 'wan', key: 'lora-plain', name: 'Plain', type: 'lora' },+ weight: 0.7,+ },+ {+ isEnabled: true,+ model: { base: 'wan', key: 'lora-high', name: 'High', type: 'lora' },+ target: 'high',+ weight: 0.9,+ },+ {+ isEnabled: false,+ lowNoiseWeight: 0.4,+ model: { base: 'wan', key: 'lora-dual', name: 'Dual', type: 'lora' },+ target: 'both',+ weight: 0.8,+ },+ {+ isEnabled: true,+ lowNoiseWeight: 0.8,+ model: { base: 'wan', key: 'lora-equal', name: 'Equal', type: 'lora' },+ target: 'both',+ weight: 0.8,+ },+ ];+ const harness = createHarness({+ project: createProject('board-1', { loras, model: wanA14b, modelKey: wanA14b.key }),+ });++ await expect(+ saveCanvasToGallery({+ engine: harness.engine,+ getProject: harness.getProject,+ project: harness.project,+ region: 'canvas',+ scopedDefaults: {},+ uploadImage: harness.uploadImage,+ })+ ).resolves.toEqual({ boardId: 'board-1', imageName: 'saved.png', status: 'saved' });++ const a14bMetadata = harness.uploadImage.mock.calls[0]?.[1]?.metadata as Record<string, unknown>;+ expect(a14bMetadata.loras).toEqual([+ { isEnabled: true, model: { base: 'wan', key: 'lora-plain', name: 'Plain', type: 'lora' }, weight: 0.7 },+ {+ isEnabled: true,+ model: { base: 'wan', key: 'lora-high', name: 'High', type: 'lora' },+ target: 'high',+ weight: 0.9,+ },+ {+ isEnabled: false,+ low_noise_weight: 0.4,+ model: { base: 'wan', key: 'lora-dual', name: 'Dual', type: 'lora' },+ target: 'both',+ weight: 0.8,+ },+ {+ isEnabled: true,+ model: { base: 'wan', key: 'lora-equal', name: 'Equal', type: 'lora' },+ target: 'both',+ weight: 0.8,+ },+ ]);++ const ti2vHarness = createHarness({+ project: createProject('board-1', { loras, model: wan5b, modelKey: wan5b.key }),+ });+ await expect(+ saveCanvasToGallery({+ engine: ti2vHarness.engine,+ getProject: ti2vHarness.getProject,+ project: ti2vHarness.project,+ region: 'canvas',+ scopedDefaults: {},+ uploadImage: ti2vHarness.uploadImage,+ })+ ).resolves.toEqual({ boardId: 'board-1', imageName: 'saved.png', status: 'saved' });++ const ti2vMetadata = ti2vHarness.uploadImage.mock.calls[0]?.[1]?.metadata as Record<string, unknown>;+ expect(ti2vMetadata.loras).toEqual([+ { isEnabled: true, model: { base: 'wan', key: 'lora-plain', name: 'Plain', type: 'lora' }, weight: 0.7 },+ {+ isEnabled: true,+ model: { base: 'wan', key: 'lora-high', name: 'High', type: 'lora' },+ target: 'high',+ weight: 0.9,+ },+ {+ isEnabled: false,+ model: { base: 'wan', key: 'lora-dual', name: 'Dual', type: 'lora' },+ target: 'both',+ weight: 0.8,+ },+ {+ isEnabled: true,+ model: { base: 'wan', key: 'lora-equal', name: 'Equal', type: 'lora' },+ target: 'both',+ weight: 0.8,+ },+ ]);+ });});describe('getCanvasSaveBoardId', () => {diff --git a/invokeai/frontend/webv2/src/workbench/canvas-operations/saveCanvasToGallery.ts b/invokeai/frontend/webv2/src/workbench/canvas-operations/saveCanvasToGallery.tsindex 7935ef63f4..a25ffcbd5e 100644--- a/invokeai/frontend/webv2/src/workbench/canvas-operations/saveCanvasToGallery.ts+++ b/invokeai/frontend/webv2/src/workbench/canvas-operations/saveCanvasToGallery.ts@@ -13,7 +13,7 @@ import type { ScopedDefaults } from '@workbench/settings/contracts';import { getGalleryAutoAddBoardId } from '@features/gallery/contracts';import { canAddToCachedGalleryBoard, ensureGalleryBoardDestinations } from '@features/gallery/queries';-import { toModelIdentifier } from '@features/generation/graph';+import { toMetadataLora, toModelIdentifier } from '@features/generation/graph';import {getEffectivePrompts,isSupportedGenerateModel,@@ -115,8 +115,7 @@ const buildCanvasSaveMetadata = (project: Project, rect: Rect): Record<string, useamless_x: generateValues.seamlessXAxis,seamless_y: generateValues.seamlessYAxis,loras: generateValues.loras.map((lora) => ({- model: toModelIdentifier(lora.model),- weight: lora.weight,+ ...toMetadataLora(lora, generateValues.model),isEnabled: lora.isEnabled,})),ref_images: structuredClone(generateValues.referenceImages),diff --git a/invokeai/frontend/webv2/src/workbench/image-actions/imageRecall.test.ts b/invokeai/frontend/webv2/src/workbench/image-actions/imageRecall.test.tsindex f41a1a749e..d0eb3bba67 100644--- a/invokeai/frontend/webv2/src/workbench/image-actions/imageRecall.test.ts+++ b/invokeai/frontend/webv2/src/workbench/image-actions/imageRecall.test.ts@@ -1682,3 +1682,129 @@ it.each([false, true])('keeps modern references authoritative over v4 aliases (e}),]);});++describe('CFG scale schedule recall', () => {+ it('recalls the initial step value from a valid CFG schedule array', () => {+ const result = buildImageRecallSettings({+ currentValues: createValues({ cfgScale: 7 }),+ image,+ kind: 'all',+ metadata: { cfg_scale: [6.5, 4.5, 2.5], model: sdxlModel },+ models: [sdxlModel],+ supportedModels: [sdxlModel],+ vaeModels: [],+ });++ expect(result?.fields).toContain('cfg');+ expect(result?.values.cfgScale).toBe(6.5);+ });++ it('recalls the initial step value from a valid guidance schedule array for distilled-guidance models', () => {+ const fluxModel: MainModelConfig = { base: 'flux', key: 'flux-model', name: 'FLUX', type: 'main' };+ const result = buildImageRecallSettings({+ currentValues: createValues({ cfgScale: 3.5, model: fluxModel, modelKey: fluxModel.key }),+ image,+ kind: 'all',+ metadata: { guidance: [4.2, 3.0], model: fluxModel },+ models: [fluxModel],+ supportedModels: [fluxModel],+ vaeModels: [],+ });++ expect(result?.fields).toContain('cfg');+ expect(result?.values.cfgScale).toBe(4.2);+ });++ it.each<[unknown[]]>([[[]], [[6.5, 'bad']], [[6.5, Number.NaN]], [[0.5, 6]]])(+ 'ignores invalid or below-minimum CFG schedule array %j without overwriting cfgScale',+ (cfgScale) => {+ const result = buildImageRecallSettings({+ currentValues: createValues({ cfgScale: 7 }),+ image,+ kind: 'all',+ metadata: { cfg_scale: cfgScale, model: sdxlModel, positive_prompt: 'keep recall active' },+ models: [sdxlModel],+ supportedModels: [sdxlModel],+ vaeModels: [],+ });++ expect(result?.fields).not.toContain('cfg');+ expect(result?.values.cfgScale).toBe(7);+ }+ );+});++describe('Wan LoRA expert target recall', () => {+ const wanMain: MainModelConfig = {+ base: 'wan',+ format: 'diffusers',+ key: 'wan-main',+ name: 'Wan A14B',+ type: 'main',+ variant: 't2v_a14b',+ };+ const wanLoraHigh: LoraModelConfig = {+ base: 'wan',+ key: 'wan-high',+ name: 'Wan High',+ type: 'lora',+ variant: 'a14b',+ };+ const wanLoraLow: LoraModelConfig = { base: 'wan', key: 'wan-low', name: 'Wan Low', type: 'lora', variant: 'a14b' };+ const wanLoraDual: LoraModelConfig = {+ base: 'wan',+ key: 'wan-dual',+ name: 'Wan Dual',+ type: 'lora',+ variant: 'a14b',+ };++ it('preserves target and low_noise_weight and folds dual high/low entries for the same LoRA', () => {+ const result = buildImageRecallSettings({+ currentValues: createValues({ model: wanMain, modelKey: wanMain.key }),+ image,+ kind: 'all',+ metadata: {+ generation_mode: 'wan_txt2img',+ loras: [+ { model: wanLoraHigh, target: 'high', weight: 0.9 },+ { model: wanLoraLow, target: 'low', weight: 0.6 },+ { low_noise_weight: 0.35, model: wanLoraDual, target: 'both', weight: 0.85 },+ ],+ model: wanMain,+ },+ models: [wanMain, wanLoraHigh, wanLoraLow, wanLoraDual],+ supportedModels: [wanMain],+ vaeModels: [],+ });++ expect(result?.fields).toContain('loras');+ expect(result?.values.loras).toEqual([+ { isEnabled: true, model: wanLoraHigh, target: 'high', weight: 0.9 },+ { isEnabled: true, model: wanLoraLow, target: 'low', weight: 0.6 },+ { isEnabled: true, lowNoiseWeight: 0.35, model: wanLoraDual, target: 'both', weight: 0.85 },+ ]);++ const folded = buildImageRecallSettings({+ currentValues: createValues({ model: wanMain, modelKey: wanMain.key }),+ image,+ kind: 'all',+ metadata: {+ generation_mode: 'wan_txt2img',+ loras: [+ { model: wanLoraDual, target: 'low', weight: 0.4 },+ { model: wanLoraDual, target: 'high', weight: 0.8 },+ ],+ model: wanMain,+ },+ models: [wanMain, wanLoraDual],+ supportedModels: [wanMain],+ vaeModels: [],+ });++ expect(folded?.skipped).toEqual([]);+ expect(folded?.values.loras).toEqual([+ { isEnabled: true, lowNoiseWeight: 0.4, model: wanLoraDual, target: 'both', weight: 0.8 },+ ]);+ });+});diff --git a/invokeai/frontend/webv2/src/workbench/image-actions/imageRecall.ts b/invokeai/frontend/webv2/src/workbench/image-actions/imageRecall.tsindex df0e4c0dd2..3ba4180e7a 100644--- a/invokeai/frontend/webv2/src/workbench/image-actions/imageRecall.ts+++ b/invokeai/frontend/webv2/src/workbench/image-actions/imageRecall.ts@@ -67,7 +67,13 @@ import {import { hasArchitectureCapabilities } from '@features/models/architectures';import { SEED_MAX } from '@platform/core/seed';-import { resolveRecordedModel, toRecordedModelRef, type RecordedModelPolicy } from './recordedModel';+import {+ mergeOpposingWanLoraTargets,+ readMetadataLoraTarget,+ resolveRecordedModel,+ toRecordedModelRef,+ type RecordedModelPolicy,+} from './recordedModel';const hasCanvasRecall = (metadata: unknown): boolean =>isRecord(metadata) &&@@ -231,13 +237,34 @@ export const getSteps = (metadata: unknown): number | null => {return steps !== null && steps >= 1 ? steps : null;};-/** Distilled-guidance families record their slider as `guidance`, and older records carry no `cfg_scale`. */+const getNumberOrFirstScheduleValue = (metadata: unknown, key: string): number | null => {+ const scalar = getNumber(metadata, key);++ if (scalar !== null) {+ return scalar;+ }++ if (!isRecord(metadata)) {+ return null;+ }++ const value = metadata[key];++ return Array.isArray(value) &&+ value.length > 0 &&+ value.every((entry) => typeof entry === 'number' && Number.isFinite(entry))+ ? (value[0] as number)+ : null;+};++/** Distilled-guidance families record their slider as `guidance`, and older records carry no `cfg_scale`; a scheduled+ * `cfg_scale` list recalls its first step. */export const getCfgScale = (metadata: unknown, model?: GenerateModelConfig): number | null => {const { guidanceLabel, guidanceMin } = getGenerationUiPolicy(model);const cfgScale =guidanceLabel === 'Guidance'- ? (getNumber(metadata, 'guidance') ?? getNumber(metadata, 'cfg_scale'))- : getNumber(metadata, 'cfg_scale');+ ? (getNumberOrFirstScheduleValue(metadata, 'guidance') ?? getNumberOrFirstScheduleValue(metadata, 'cfg_scale'))+ : getNumberOrFirstScheduleValue(metadata, 'cfg_scale');return cfgScale !== null && cfgScale >= guidanceMin ? cfgScale : null;};@@ -1109,16 +1136,32 @@ const getMetadataConcepts = (});} else if (!isLoraCompatibleWithModel(installed, model)) {skipped.push({ name: installed.name, reason: 'incompatible', subject: 'concept' });- } else if (loras.some((lora) => lora.model.key === installed.key)) {- skipped.push({ name: installed.name, reason: 'duplicate', subject: 'concept' });} else {- // Kept exactly: graphs and model defaults accept weights beyond the panel's typed range, which bounds only edits.- loras.push({- isEnabled:- getString(metadata, 'metadata_source') === 'canvas_save' ? (getBoolean(entry, 'isEnabled') ?? true) : true,- model: installed,- weight,- });+ const targetFields = isRecord(entry) ? readMetadataLoraTarget(entry, weight) : {};+ const entryEnabled =+ getString(metadata, 'metadata_source') === 'canvas_save' ? (getBoolean(entry, 'isEnabled') ?? true) : true;+ const existingIndex = loras.findIndex((lora) => lora.model.key === installed.key);++ if (existingIndex !== -1) {+ const merged = mergeOpposingWanLoraTargets(loras[existingIndex]!, {+ target: targetFields.target,+ weight,+ });++ if (merged) {+ loras[existingIndex] = { ...merged, isEnabled: merged.isEnabled || entryEnabled };+ } else {+ skipped.push({ name: installed.name, reason: 'duplicate', subject: 'concept' });+ }+ } else {+ // Kept exactly: graphs and model defaults accept weights beyond the panel's typed range, which bounds only edits.+ loras.push({+ isEnabled: entryEnabled,+ model: installed,+ weight,+ ...targetFields,+ });+ }}}diff --git a/invokeai/frontend/webv2/src/workbench/image-actions/recordedModel.ts b/invokeai/frontend/webv2/src/workbench/image-actions/recordedModel.tsindex 2deb1f20c7..c3a5123c48 100644--- a/invokeai/frontend/webv2/src/workbench/image-actions/recordedModel.ts+++ b/invokeai/frontend/webv2/src/workbench/image-actions/recordedModel.ts@@ -1,3 +1,7 @@+import type { WanLoraTarget } from '@features/generation/contracts';++import { isWanLoraTarget } from '@features/generation/settings';+/** Every field optional on read; pre-identifier records name `{ model_name, base_model, model_type }`. */export interface RecordedModelRef {base: string | null;@@ -76,3 +80,56 @@ export const resolveRecordedModel = <T extends ResolvableModel>(return matches.length > 1 && policy.ambiguous === 'refuse' ? 'ambiguous' : (matches[0] ?? null);};++export interface ParsedMetadataLoraTarget {+ lowNoiseWeight?: number;+ target?: WanLoraTarget;+}++/** Read optional Wan expert target and differing low-noise weight from a metadata `loras` entry. */+export const readMetadataLoraTarget = (entry: Record<string, unknown>, weight: number): ParsedMetadataLoraTarget => {+ const target = isWanLoraTarget(entry.target) ? entry.target : undefined;+ const lowNoiseWeight =+ target === 'both' &&+ typeof entry.low_noise_weight === 'number' &&+ Number.isFinite(entry.low_noise_weight) &&+ entry.low_noise_weight !== weight+ ? entry.low_noise_weight+ : undefined;++ return {+ ...(target !== undefined ? { target } : {}),+ ...(lowNoiseWeight !== undefined ? { lowNoiseWeight } : {}),+ };+};++/**+ * Fold opposing `'high'` and `'low'` entries for the same LoRA into one `'both'` entry, preserving `weight` for the+ * high-noise expert and adding `lowNoiseWeight` when the low-noise expert differed.+ */+export const mergeOpposingWanLoraTargets = <+ T extends { lowNoiseWeight?: number; target?: WanLoraTarget; weight: number },+>(+ existing: T,+ incoming: { target?: WanLoraTarget; weight: number }+): T | null => {+ if (+ !(+ (existing.target === 'high' && incoming.target === 'low') ||+ (existing.target === 'low' && incoming.target === 'high')+ )+ ) {+ return null;+ }++ const highWeight = existing.target === 'high' ? existing.weight : incoming.weight;+ const lowWeight = existing.target === 'low' ? existing.weight : incoming.weight;+ const { lowNoiseWeight: _previousLow, ...rest } = existing;++ return {+ ...rest,+ target: 'both',+ weight: highWeight,+ ...(lowWeight !== highWeight ? { lowNoiseWeight: lowWeight } : {}),+ } as T;+};diff --git a/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.test.ts b/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.test.tsindex 07782465c0..c9ca5694fb 100644--- a/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.test.ts+++ b/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.test.ts@@ -822,3 +822,76 @@ describe('legacy H3 duration recall', () => {expect(result?.values).toMatchObject({ numFrames: expectedFrames, fps: 24 });});});++describe('Wan LoRA expert target recall', () => {+ const highLora = { ...LIGHTNING_HIGH, key: 'wan-expert-high' };+ const lowLora = { ...LIGHTNING_LOW, key: 'wan-expert-low' };+ const dualLora = { base: 'wan', key: 'wan-expert-dual', name: 'Wan Dual', type: 'lora', variant: 'a14b' };+ const currentValues = createDefaultVideoWidgetValues([WAN_T2V]);++ it('restores target and low_noise_weight without altering untargeted LoRA records', () => {+ const result = buildVideoRecallSettings({+ currentValues,+ kind: 'all',+ metadata: wanMetadata({+ loras: [+ { model: { key: highLora.key }, target: 'high', weight: 0.9 },+ { model: { key: lowLora.key }, target: 'low', weight: 0.5 },+ { low_noise_weight: 0.3, model: { key: dualLora.key }, target: 'both', weight: 0.8 },+ { model: { key: LIGHTNING_HIGH.key }, weight: 1 },+ ],+ }),+ models: [WAN_T2V, highLora, lowLora, dualLora, LIGHTNING_HIGH],+ });++ expect(result?.values.loras).toEqual([+ { isEnabled: true, model: highLora, target: 'high', weight: 0.9 },+ { isEnabled: true, model: lowLora, target: 'low', weight: 0.5 },+ { isEnabled: true, lowNoiseWeight: 0.3, model: dualLora, target: 'both', weight: 0.8 },+ { isEnabled: true, model: LIGHTNING_HIGH, weight: 1 },+ ]);+ });++ it('folds legacy dual high/low entries for the same LoRA into one both entry', () => {+ const result = buildVideoRecallSettings({+ currentValues,+ kind: 'all',+ metadata: wanMetadata({+ loras: [+ { model: { key: dualLora.key }, target: 'low', weight: 0.4 },+ { model: { key: dualLora.key }, target: 'high', weight: 0.85 },+ ],+ }),+ models: [WAN_T2V, dualLora],+ });++ expect(result?.values.loras).toEqual([+ { isEnabled: true, lowNoiseWeight: 0.4, model: dualLora, target: 'both', weight: 0.85 },+ ]);+ });++ it('deduplicates non-opposing duplicate entries for the same LoRA key', () => {+ const sameTarget = buildVideoRecallSettings({+ currentValues,+ kind: 'all',+ metadata: wanMetadata({+ loras: [+ { model: { key: highLora.key }, target: 'high', weight: 0.9 },+ { model: { key: highLora.key }, target: 'high', weight: 0.5 },+ { model: { key: dualLora.key }, target: 'high', weight: 0.8 },+ { model: { key: dualLora.key }, target: 'low', weight: 0.4 },+ { model: { key: dualLora.key }, target: 'low', weight: 0.2 },+ { model: { key: LIGHTNING_HIGH.key }, weight: 1 },+ { model: { key: LIGHTNING_HIGH.key }, weight: 0.6 },+ ],+ }),+ models: [WAN_T2V, highLora, dualLora, LIGHTNING_HIGH],+ });++ expect(sameTarget?.values.loras).toEqual([+ { isEnabled: true, model: highLora, target: 'high', weight: 0.9 },+ { isEnabled: true, lowNoiseWeight: 0.4, model: dualLora, target: 'both', weight: 0.8 },+ { isEnabled: true, model: LIGHTNING_HIGH, weight: 1 },+ ]);+ });+});diff --git a/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.ts b/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.tsindex 63822d02e4..a7b0d9c2ff 100644--- a/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.ts+++ b/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.ts@@ -1,8 +1,8 @@import type {GenerateLora,GenerationModelCatalogItem as ModelConfig,- LoraModelConfig,MainModelConfig,+ WanLoraTarget,} from '@features/generation/contracts';import type {VideoAspectRatioId,@@ -36,6 +36,8 @@ import {import { SEED_MAX } from '@platform/core/seed';import {+ mergeOpposingWanLoraTargets,+ readMetadataLoraTarget,resolveRecordedModel,toRecordedModelRef,type RecordedModelPolicy,@@ -239,7 +241,7 @@ export interface VideoRecallRecord {/** Whether the record carries a `loras` list at all; a partial recall replaces the panel's set only then. */hasLoraList: boolean;/** The usable entries of `loras`; a missing weight reads as 1. */- loras: readonly { model: RecordedModelRef; weight: number }[];+ loras: readonly { lowNoiseWeight?: number; model: RecordedModelRef; target?: WanLoraTarget; weight: number }[];hybridStartBlock: number | null;contextFrames: number | null;/** Keyframes and source clip; in extend mode the first frame was extracted from the source, so it is dropped. */@@ -270,20 +272,40 @@ const getConditioningClip = (metadata: Record<string, unknown>): VideoRecallCondreturn name !== null && (role === 'audio' || role === 'video') ? { name, role } : null;};-const getLoras = (metadata: Record<string, unknown>): { model: RecordedModelRef; weight: number }[] =>- Array.isArray(metadata.loras)- ? metadata.loras.flatMap((entry) => {- const model = isRecord(entry) ? toRecordedModelRef(entry.model) : null;+const getLoras = (+ metadata: Record<string, unknown>+): { lowNoiseWeight?: number; model: RecordedModelRef; target?: WanLoraTarget; weight: number }[] => {+ if (!Array.isArray(metadata.loras)) {+ return [];+ }++ const loras: { lowNoiseWeight?: number; model: RecordedModelRef; target?: WanLoraTarget; weight: number }[] = [];++ for (const entry of metadata.loras) {+ const model = isRecord(entry) ? toRecordedModelRef(entry.model) : null;++ if (!model) {+ continue;+ }- if (!model) {- return [];- }+ const weight = typeof entry.weight === 'number' && Number.isFinite(entry.weight) ? entry.weight : 1;+ const targetFields = isRecord(entry) ? readMetadataLoraTarget(entry, weight) : {};+ const existingIndex = model.key ? loras.findIndex((lora) => lora.model.key === model.key) : -1;- const weight = typeof entry.weight === 'number' && Number.isFinite(entry.weight) ? entry.weight : 1;+ if (existingIndex !== -1) {+ const merged = mergeOpposingWanLoraTargets(loras[existingIndex]!, { target: targetFields.target, weight });- return [{ model, weight }];- })- : [];+ if (merged) {+ loras[existingIndex] = merged;+ }+ continue;+ }++ loras.push({ model, weight, ...targetFields });+ }++ return loras;+};const getReferences = (recorded: unknown[]): VideoRecallReferenceName[] =>// Capped at the request maximum (3 videos + 9 images): corrupt metadata must not drive unbounded gallery resolves.@@ -849,13 +871,37 @@ export const buildVideoRecallSettings = ({}}- const resolvedLoras = record.loras.flatMap((entry) => {+ const resolvedLoras: GenerateLora[] = [];++ for (const entry of record.loras) {const installed = resolveVideoModel(entry.model, models);- return installed && isLoraModelConfig(installed) && isLoraCompatibleWithModel(installed, model)- ? [{ isEnabled: true, model: installed as LoraModelConfig, weight: entry.weight }]- : [];- });+ if (!installed || !isLoraModelConfig(installed) || !isLoraCompatibleWithModel(installed, model)) {+ continue;+ }++ const existingIndex = resolvedLoras.findIndex((lora) => lora.model.key === installed.key);++ if (existingIndex !== -1) {+ const merged = mergeOpposingWanLoraTargets(resolvedLoras[existingIndex]!, {+ target: entry.target,+ weight: entry.weight,+ });++ if (merged) {+ resolvedLoras[existingIndex] = merged;+ }+ continue;+ }++ resolvedLoras.push({+ isEnabled: true,+ model: installed,+ weight: entry.weight,+ ...(entry.target !== undefined ? { target: entry.target } : {}),+ ...(entry.lowNoiseWeight !== undefined ? { lowNoiseWeight: entry.lowNoiseWeight } : {}),+ });+ }// Reproduce the recorded LoRA set, even empty; a partial record without `loras` leaves the panel's set.if (lorasRecalled && (resolvedLoras.length > 0 || values.loras.length > 0)) {diff --git a/invokeai/frontend/webv2/src/workbench/widgets/preview/previewMetadata.test.ts b/invokeai/frontend/webv2/src/workbench/widgets/preview/previewMetadata.test.tsindex 2258c825e4..71374127f7 100644--- a/invokeai/frontend/webv2/src/workbench/widgets/preview/previewMetadata.test.ts+++ b/invokeai/frontend/webv2/src/workbench/widgets/preview/previewMetadata.test.ts@@ -281,3 +281,15 @@ it.each(['array', 'entities'] as const)(}});++it('formats CFG schedule arrays cleanly and omits malformed or empty arrays', () => {+ expect(values(parsePreviewMetadata({ cfg_scale: [7, 5.5, 3] }, image))).toEqual({+ cfgScale: '7, 5.5, 3',+ });+ expect(values(parsePreviewMetadata({ guidance: [3.5, 2.5] }, image))).toEqual({+ guidance: '3.5, 2.5',+ });+ expect(values(parsePreviewMetadata({ cfg_scale: [] }, image))).toEqual({});+ expect(values(parsePreviewMetadata({ cfg_scale: [7, 'bad'] }, image))).toEqual({});+ expect(values(parsePreviewMetadata({ cfg_scale: [7, Number.NaN] }, image))).toEqual({});+});diff --git a/invokeai/frontend/webv2/src/workbench/widgets/preview/previewMetadata.ts b/invokeai/frontend/webv2/src/workbench/widgets/preview/previewMetadata.tsindex 3c706ce560..80112c8ada 100644--- a/invokeai/frontend/webv2/src/workbench/widgets/preview/previewMetadata.ts+++ b/invokeai/frontend/webv2/src/workbench/widgets/preview/previewMetadata.ts@@ -29,6 +29,22 @@ const getFiniteNumber = (metadata: Record<string, unknown>, key: string): numberreturn typeof value === 'number' && Number.isFinite(value) ? value : null;};+const getNumberOrScheduleDisplay = (metadata: Record<string, unknown>, key: string): string | number | null => {+ const scalar = getFiniteNumber(metadata, key);++ if (scalar !== null) {+ return scalar;+ }++ const value = metadata[key];++ return Array.isArray(value) &&+ value.length > 0 &&+ value.every((entry) => typeof entry === 'number' && Number.isFinite(entry))+ ? value.join(', ')+ : null;+};+const getModelName = (metadata: Record<string, unknown>): string | null => {const ref = readRecordedModelRef(metadata.model);@@ -55,7 +71,7 @@ export const parsePreviewMetadata = (const label = t(lookup);return label === lookup ? null : label;};- const cfgScale = getFiniteNumber(metadata, 'cfg_scale');+ const cfgScale = getNumberOrScheduleDisplay(metadata, 'cfg_scale');push('positivePrompt', t('widgets.preview.fields.prompt'), getString(metadata, 'positive_prompt'), true);push('negativePrompt', t('widgets.preview.fields.negativePrompt'), getString(metadata, 'negative_prompt'), true);@@ -69,7 +85,7 @@ export const parsePreviewMetadata = (push('guidance',t('widgets.preview.fields.guidance'),- cfgScale === null ? getFiniteNumber(metadata, 'guidance') : null+ cfgScale === null ? getNumberOrScheduleDisplay(metadata, 'guidance') : null);push('scheduler', t('widgets.preview.fields.scheduler'), getString(metadata, 'scheduler'));push('clipSkip', t('widgets.preview.fields.clipSkip'), getFiniteNumber(metadata, 'clip_skip'));diff --git a/tests/app/invocations/test_core_metadata.py b/tests/app/invocations/test_core_metadata.pyindex 079e5835a5..b994fba6aa 100644--- a/tests/app/invocations/test_core_metadata.py+++ b/tests/app/invocations/test_core_metadata.py@@ -1,8 +1,29 @@+from types import SimpleNamespace+from typing import get_argsfrom unittest.mock import MagicMock-from invokeai.app.invocations.fields import ImageField, VideoField-from invokeai.app.invocations.metadata import CORE_METADATA_VERSION, CoreMetadataInvocation-from invokeai.app.invocations.model import ModelIdentifierField+from pydantic import TypeAdapter, ValidationError++from invokeai.app.invocations.fields import ImageField, MetadataField, VideoField+from invokeai.app.invocations.metadata import CORE_METADATA_VERSION, CoreMetadataInvocation, unwrap_metadata_value+from invokeai.app.invocations.metadata_constants import (+ CORE_LABELS,+ CORE_LABELS_BOOL,+ CORE_LABELS_FLOAT,+ CORE_LABELS_INTEGER,+ CORE_LABELS_MAIN_MODEL,+ CORE_LABELS_MODEL,+ CORE_LABELS_SCHEDULER,+ CORE_LABELS_SDXL_MODEL,+ CORE_LABELS_STRING,+ CORE_LABELS_VAE,+ CORE_METADATA_REGISTRY,+ CORE_MODEL_LABELS,+ CUSTOM_LABEL,+ MetadataType,+)+from invokeai.app.invocations.model import LoRAField, ModelIdentifierField, TransformerField+from invokeai.backend.model_manager.taxonomy import BaseModelType, ModelTypefrom invokeai.version import __version__@@ -39,3 +60,574 @@ def test_core_metadata_records_the_video_profile_fields_by_their_canonical_namesassert record["source_video"] == {"video_name": "clip.mp4"}assert (record["source_video_start_frame"], record["source_video_end_frame"]) == (0, 40)assert record["minimax_h3_hybrid_start_block"] == 12+++def test_core_metadata_registry_uniqueness_and_enum_validation() -> None:+ labels = [label for label, _ in CORE_METADATA_REGISTRY]+ assert len(labels) == len(set(labels)), "Duplicate keys found in CORE_METADATA_REGISTRY"+ assert CUSTOM_LABEL not in labels, "CUSTOM_LABEL should not be in CORE_METADATA_REGISTRY directly"++ for label, types in CORE_METADATA_REGISTRY:+ type_tuple = types if isinstance(types, tuple) else (types,)+ assert len(type_tuple) > 0, f"Empty types for label {label}"+ for t in type_tuple:+ assert isinstance(t, MetadataType), f"Invalid MetadataType {t!r} for label {label}"+++def test_core_metadata_custom_label_at_index_zero_across_all_literals() -> None:+ all_literals = (+ CORE_LABELS,+ CORE_LABELS_STRING,+ CORE_LABELS_INTEGER,+ CORE_LABELS_FLOAT,+ CORE_LABELS_BOOL,+ CORE_LABELS_SCHEDULER,+ CORE_LABELS_MODEL,+ CORE_LABELS_MAIN_MODEL,+ CORE_LABELS_SDXL_MODEL,+ CORE_LABELS_VAE,+ )+ assert len(all_literals) == 10+ for lit in all_literals:+ args = get_args(lit)+ assert args[0] == CUSTOM_LABEL, f"CUSTOM_LABEL must be at index 0 in {lit}"+ assert len(args) == len(set(args)), f"Duplicates found in literal {lit}"+++def test_core_model_labels_parity_with_model_and_vae_literals() -> None:+ model_labels = set(get_args(CORE_LABELS_MODEL)) - {CUSTOM_LABEL}+ vae_labels = set(get_args(CORE_LABELS_VAE)) - {CUSTOM_LABEL}+ expected_model_labels = model_labels | vae_labels+ assert CORE_MODEL_LABELS == expected_model_labels+++def test_core_metadata_schema_export_preserves_flat_enum_lists() -> None:+ from invokeai.app.invocations.metadata_linked import MetadataItemLinkedInvocation++ schema = MetadataItemLinkedInvocation.model_json_schema()+ label_prop = schema["properties"]["label"]+ assert "enum" in label_prop+ assert label_prop["type"] == "string"+ assert label_prop["enum"][0] == CUSTOM_LABEL+ assert len(label_prop["enum"]) == len(get_args(CORE_LABELS))++ for lit in (+ CORE_LABELS,+ CORE_LABELS_STRING,+ CORE_LABELS_INTEGER,+ CORE_LABELS_FLOAT,+ CORE_LABELS_BOOL,+ CORE_LABELS_SCHEDULER,+ CORE_LABELS_MODEL,+ CORE_LABELS_MAIN_MODEL,+ CORE_LABELS_SDXL_MODEL,+ CORE_LABELS_VAE,+ ):+ ta_schema = TypeAdapter(lit).json_schema()+ assert ta_schema["type"] == "string"+ assert "enum" in ta_schema+ assert ta_schema["enum"][0] == CUSTOM_LABEL+ assert ta_schema["enum"] == list(get_args(lit))+++def test_unwrap_metadata_value_for_new_core_model_labels() -> None:+ model_id = ModelIdentifierField(+ key="model-key",+ hash="model-hash",+ name="Test Model",+ base=BaseModelType.Any,+ type=ModelType.Main,+ )+ lora_id = ModelIdentifierField(+ key="lora-key",+ hash="lora-hash",+ name="Test LoRA",+ base=BaseModelType.Any,+ type=ModelType.LoRA,+ )++ wrapper_field = TransformerField(transformer=model_id, loras=[LoRAField(lora=lora_id, weight=0.75)])+ wrapper_dict = {+ "text_encoder": model_id.model_dump(),+ "tokenizer": model_id.model_dump(),+ "loras": [{"lora": lora_id.model_dump(), "weight": 0.75}],+ }++ for core_label in ("anima_inpaint_adapter", "qwen3_vl_vision_tower", "flux3_prompt_upsampler"):+ assert core_label in CORE_MODEL_LABELS+ unwrapped_field = unwrap_metadata_value(wrapper_field, label=core_label)+ assert isinstance(unwrapped_field, ModelIdentifierField)+ assert unwrapped_field.key == model_id.key++ unwrapped_dict = unwrap_metadata_value(wrapper_dict, label=core_label)+ assert isinstance(unwrapped_dict, dict)+ assert unwrapped_dict["key"] == model_id.key+ assert "loras" not in unwrapped_dict++ for custom_label in (CUSTOM_LABEL, "user_custom_model_label"):+ kept_field = unwrap_metadata_value(wrapper_field, label=custom_label)+ assert isinstance(kept_field, TransformerField)+ assert len(kept_field.loras) == 1+ assert kept_field.transformer.key == model_id.key++ kept_dict = unwrap_metadata_value(wrapper_dict, label=custom_label)+ assert isinstance(kept_dict, dict)+ assert len(kept_dict["loras"]) == 1+ assert kept_dict["text_encoder"]["key"] == model_id.key+++def test_metadata_linked_and_extractors_support_new_core_keys() -> None:+ import pytest++ from invokeai.app.invocations.metadata_linked import (+ MetadataItemLinkedInvocation,+ MetadataToFloatInvocation,+ MetadataToModelInvocation,+ MetadataToSDXLModelInvocation,+ )++ ctx = SimpleNamespace()+ weight_linked = MetadataItemLinkedInvocation(+ id="link-weight",+ label="anima_inpaint_adapter_weight",+ value=0.65,+ ).invoke(ctx)+ assert weight_linked.metadata.root["anima_inpaint_adapter_weight"] == 0.65++ weight_metadata = MetadataField.model_validate(weight_linked.metadata.model_dump())+ weight_extracted = MetadataToFloatInvocation(+ id="extract-weight",+ label="anima_inpaint_adapter_weight",+ default_value=0.0,+ metadata=weight_metadata,+ ).invoke(ctx)+ assert weight_extracted.value == 0.65++ component_cases = (+ ("anima_inpaint_adapter", "anima-adapter-key", "Anima Inpaint Adapter", BaseModelType.Anima, ModelType.Main),+ (+ "qwen3_vl_vision_tower",+ "qwen3-vl-tower-key",+ "Qwen3 VL Vision Tower",+ BaseModelType.Any,+ ModelType.Qwen3VLVisionTower,+ ),+ (+ "flux3_prompt_upsampler",+ "flux3-upsampler-key",+ "FLUX.3 Prompt Upsampler",+ BaseModelType.Flux3,+ ModelType.PromptEnhancer,+ ),+ (+ "wan_t5_encoder_model",+ "wan-t5-key",+ "Wan UMT5-XXL",+ BaseModelType.Any,+ ModelType.T5Encoder,+ ),+ )++ default_model = ModelIdentifierField(+ key="default-key",+ hash="hash-default",+ name="Default",+ base=BaseModelType.StableDiffusionXL,+ type=ModelType.Main,+ )++ for label, model_key, model_name, base, model_type in component_cases:+ model_id = ModelIdentifierField(+ key=model_key,+ hash=f"hash-{model_key}",+ name=model_name,+ base=base,+ type=model_type,+ )+ lora_id = ModelIdentifierField(+ key="lora-key",+ hash="hash-lora",+ name="Test LoRA",+ base=base,+ type=ModelType.LoRA,+ )+ wrapped = TransformerField(transformer=model_id, loras=[LoRAField(lora=lora_id, weight=0.5)])++ linked = MetadataItemLinkedInvocation(id=f"link-{label}", label=label, value=wrapped).invoke(ctx)+ assert isinstance(linked.metadata.root[label], ModelIdentifierField)+ assert linked.metadata.root[label].key == model_key++ metadata = MetadataField.model_validate(linked.metadata.model_dump())++ # JP-R6-2: Component/encoder/adapter labels must NOT appear on MetadataToModel or MetadataToSDXLModel+ with pytest.raises(ValidationError):+ MetadataToModelInvocation(+ id=f"extract-model-{label}",+ label=label, # type: ignore[arg-type]+ default_value=default_model,+ metadata=metadata,+ )+ with pytest.raises(ValidationError):+ MetadataToSDXLModelInvocation(+ id=f"extract-sdxl-{label}",+ label=label, # type: ignore[arg-type]+ default_value=default_model,+ metadata=metadata,+ )++ # Main model labels still extract cleanly+ main_id = ModelIdentifierField(+ key="main-key",+ hash="hash-main-key",+ name="Main Model",+ base=BaseModelType.StableDiffusionXL,+ type=ModelType.Main,+ )+ main_cfg = SimpleNamespace(+ key="main-key",+ hash="hash-main-key",+ name="Main Model",+ base=BaseModelType.StableDiffusionXL,+ type=ModelType.Main,+ )+ main_ctx = SimpleNamespace(+ models=SimpleNamespace(+ exists=lambda key: key == "main-key",+ get_config=lambda key: main_cfg,+ )+ )+ main_md = MetadataField.model_validate({"model": main_id.model_dump(), "refiner_model": main_id.model_dump()})+ assert (+ MetadataToModelInvocation(id="extract-main", label="model", default_value=default_model, metadata=main_md)+ .invoke(main_ctx)+ .model+ == main_id+ )+ assert (+ MetadataToModelInvocation(+ id="extract-refiner", label="refiner_model", default_value=default_model, metadata=main_md+ )+ .invoke(main_ctx)+ .model+ == main_id+ )+ assert (+ MetadataToSDXLModelInvocation(id="extract-sdxl", label="model", default_value=default_model, metadata=main_md)+ .invoke(main_ctx)+ .model+ == main_id+ )+ with pytest.raises(ValidationError):+ MetadataToSDXLModelInvocation(+ id="extract-sdxl-refiner",+ label="refiner_model", # type: ignore[arg-type]+ default_value=default_model,+ metadata=main_md,+ )+++def test_metadata_to_model_rejects_mismatched_component_model_type_via_custom_label() -> None:+ """JP-R6-2: Passing wan_t5_encoder_model via CUSTOM_LABEL (both key-present and name-only)+ into MetadataToModelInvocation / MetadataToSDXLModelInvocation must fall back to default_value+ instead of returning a ModelType.T5Encoder model as ModelType.Main."""+ from invokeai.app.invocations.metadata_linked import MetadataToModelInvocation, MetadataToSDXLModelInvocation++ default_main = ModelIdentifierField(+ key="default-main-key",+ hash="hash-default-main",+ name="Default Main",+ base=BaseModelType.StableDiffusionXL,+ type=ModelType.Main,+ )+ default_cfg = SimpleNamespace(+ key=default_main.key,+ hash=default_main.hash,+ name=default_main.name,+ base=default_main.base,+ type=ModelType.Main,+ )+ t5_cfg = SimpleNamespace(+ key="wan-t5-key",+ hash="hash-wan-t5",+ name="UMT5-XXL",+ base=BaseModelType.Any,+ type=ModelType.T5Encoder,+ )+ configs = {default_main.key: default_cfg, t5_cfg.key: t5_cfg}+ mock_logger = MagicMock()+ ctx = SimpleNamespace(+ logger=mock_logger,+ models=SimpleNamespace(+ exists=lambda k: k in configs,+ get_config=lambda k: configs[k],+ search_by_attrs=lambda name=None, type=None: [+ c for c in configs.values() if c.name == name and c.type == type+ ],+ ),+ )++ # 1. Key-present: points to an existing T5Encoder key -> warns and falls back to default_main+ md_with_key = MetadataField.model_validate(+ {"wan_t5_encoder_model": {"key": t5_cfg.key, "name": t5_cfg.name, "type": ModelType.T5Encoder.value}}+ )+ out_model_key = MetadataToModelInvocation(+ id="to-model-key",+ label=CUSTOM_LABEL,+ custom_label="wan_t5_encoder_model",+ default_value=default_main,+ metadata=md_with_key,+ ).invoke(ctx)+ assert out_model_key.model == default_main+ assert mock_logger.warning.called++ out_sdxl_key = MetadataToSDXLModelInvocation(+ id="to-sdxl-key",+ label=CUSTOM_LABEL,+ custom_label="wan_t5_encoder_model",+ default_value=default_main,+ metadata=md_with_key,+ ).invoke(ctx)+ assert out_sdxl_key.model == default_main++ # 2. Name-only: searches with type=ModelType.Main -> finds nothing -> falls back to default_main+ md_name_only = MetadataField.model_validate({"wan_t5_encoder_model": {"name": t5_cfg.name}})+ out_model_name = MetadataToModelInvocation(+ id="to-model-name",+ label=CUSTOM_LABEL,+ custom_label="wan_t5_encoder_model",+ default_value=default_main,+ metadata=md_name_only,+ ).invoke(ctx)+ assert out_model_name.model == default_main++ out_sdxl_name = MetadataToSDXLModelInvocation(+ id="to-sdxl-name",+ label=CUSTOM_LABEL,+ custom_label="wan_t5_encoder_model",+ default_value=default_main,+ metadata=md_name_only,+ ).invoke(ctx)+ assert out_sdxl_name.model == default_main+++def test_core_metadata_cfg_scale_schedule_and_hidiffusion_auto_ratios_parity() -> None:+ from invokeai.app.invocations.metadata_constants import CORE_BOOL_LABELS+ from invokeai.app.invocations.metadata_linked import (+ MetadataToBoolInvocation,+ MetadataToFloatCollectionInvocation,+ MetadataToFloatInvocation,+ )++ assert CORE_METADATA_VERSION == "1.3.0"+ assert "hidiffusion_auto_ratios" in get_args(CORE_LABELS_BOOL)+ assert "hidiffusion_auto_ratios" in CORE_BOOL_LABELS++ ctx = SimpleNamespace()+ schedule = [7.0, 5.5, 3.0]+ core_out = CoreMetadataInvocation(+ id="m-sched",+ cfg_scale=schedule,+ hidiffusion_auto_ratios=True,+ ).invoke(ctx)+ assert core_out.metadata.root["cfg_scale"] == schedule+ assert core_out.metadata.root["hidiffusion_auto_ratios"] is True++ md = MetadataField.model_validate(core_out.metadata.model_dump())+ assert (+ MetadataToFloatCollectionInvocation(id="fcoll", label="cfg_scale", default_value=[1.0], metadata=md)+ .invoke(ctx)+ .collection+ == schedule+ )+ assert (+ MetadataToFloatInvocation(id="fscalar", label="cfg_scale", default_value=1.0, metadata=md).invoke(ctx).value+ == 7.0+ )+ assert (+ MetadataToBoolInvocation(id="b-hidiff", label="hidiffusion_auto_ratios", default_value=False, metadata=md)+ .invoke(ctx)+ .value+ is True+ )+++def test_metadata_scalar_and_collection_extractors_handle_scalars_lists_and_bool_guards() -> None:+ from invokeai.app.invocations.metadata_linked import (+ MetadataToBoolCollectionInvocation,+ MetadataToBoolInvocation,+ MetadataToFloatCollectionInvocation,+ MetadataToFloatInvocation,+ MetadataToIntegerCollectionInvocation,+ MetadataToIntegerInvocation,+ MetadataToStringCollectionInvocation,+ MetadataToStringInvocation,+ )++ ctx = SimpleNamespace()+ md = MetadataField.model_validate(+ {+ "cfg_scale": 6.5,+ "seed": 42,+ "moss_image_uncond_skip_layers": [22, 24],+ "positive_prompt": "alpine lake",+ "positive_prompts": ["first prompt", "second prompt"],+ "hidiffusion_auto_ratios": True,+ "empty_list": [],+ "bool_list": [True, False],+ "bool_for_num": True,+ "none_val": None,+ }+ )++ # Float scalar <-> list+ assert MetadataToFloatCollectionInvocation(id="fc-1", label="cfg_scale", default_value=[1.0], metadata=md).invoke(+ ctx+ ).collection == [6.5]+ assert (+ MetadataToFloatInvocation(+ id="fs-list", label=CUSTOM_LABEL, custom_label="bool_list", default_value=9.9, metadata=md+ )+ .invoke(ctx)+ .value+ == 9.9+ )+ assert (+ MetadataToFloatInvocation(+ id="fs-empty", label=CUSTOM_LABEL, custom_label="empty_list", default_value=2.5, metadata=md+ )+ .invoke(ctx)+ .value+ == 2.5+ )+ assert (+ MetadataToFloatCollectionInvocation(+ id="fc-empty", label=CUSTOM_LABEL, custom_label="empty_list", default_value=[2.5], metadata=md+ )+ .invoke(ctx)+ .collection+ == []+ )+ assert MetadataToFloatCollectionInvocation(+ id="fc-bool", label=CUSTOM_LABEL, custom_label="bool_for_num", default_value=[2.5], metadata=md+ ).invoke(ctx).collection == [2.5]++ # Integer scalar <-> list+ assert (+ MetadataToIntegerInvocation(id="is-list", label="moss_image_uncond_skip_layers", default_value=0, metadata=md)+ .invoke(ctx)+ .value+ == 22+ )+ assert MetadataToIntegerCollectionInvocation(+ id="ic-list", label="moss_image_uncond_skip_layers", default_value=[0], metadata=md+ ).invoke(ctx).collection == [22, 24]+ assert MetadataToIntegerCollectionInvocation(id="ic-scalar", label="seed", default_value=[0], metadata=md).invoke(+ ctx+ ).collection == [42]+ assert (+ MetadataToIntegerInvocation(+ id="is-empty", label=CUSTOM_LABEL, custom_label="empty_list", default_value=7, metadata=md+ )+ .invoke(ctx)+ .value+ == 7+ )+ assert (+ MetadataToIntegerInvocation(+ id="is-bool", label=CUSTOM_LABEL, custom_label="bool_for_num", default_value=7, metadata=md+ )+ .invoke(ctx)+ .value+ == 7+ )+ assert MetadataToIntegerCollectionInvocation(+ id="ic-bool", label=CUSTOM_LABEL, custom_label="bool_for_num", default_value=[7], metadata=md+ ).invoke(ctx).collection == [7]++ # String scalar <-> list+ assert (+ MetadataToStringInvocation(id="ss-list", label="positive_prompts", default_value="fallback", metadata=md)+ .invoke(ctx)+ .value+ == "first prompt"+ )+ assert MetadataToStringCollectionInvocation(+ id="sc-list", label="positive_prompts", default_value=["fallback"], metadata=md+ ).invoke(ctx).collection == ["first prompt", "second prompt"]+ assert MetadataToStringCollectionInvocation(+ id="sc-scalar", label="positive_prompt", default_value=["fallback"], metadata=md+ ).invoke(ctx).collection == ["alpine lake"]+ assert (+ MetadataToStringInvocation(+ id="ss-empty", label=CUSTOM_LABEL, custom_label="empty_list", default_value="fallback", metadata=md+ )+ .invoke(ctx)+ .value+ == "fallback"+ )++ # Bool scalar <-> list+ assert (+ MetadataToBoolInvocation(+ id="bs-list", label=CUSTOM_LABEL, custom_label="bool_list", default_value=False, metadata=md+ )+ .invoke(ctx)+ .value+ is True+ )+ assert MetadataToBoolCollectionInvocation(+ id="bc-list", label=CUSTOM_LABEL, custom_label="bool_list", default_value=[False], metadata=md+ ).invoke(ctx).collection == [True, False]+ assert MetadataToBoolCollectionInvocation(+ id="bc-scalar", label="hidiffusion_auto_ratios", default_value=[False], metadata=md+ ).invoke(ctx).collection == [True]+ assert (+ MetadataToBoolInvocation(+ id="bs-empty", label=CUSTOM_LABEL, custom_label="empty_list", default_value=True, metadata=md+ )+ .invoke(ctx)+ .value+ is True+ )+ assert (+ MetadataToBoolInvocation(+ id="bs-none", label=CUSTOM_LABEL, custom_label="none_val", default_value=True, metadata=md+ )+ .invoke(ctx)+ .value+ is True+ )+++def test_unwrap_metadata_value_custom_label_preserves_extra_wrapper_fields_without_loras() -> None:+ from invokeai.app.invocations.model import LTX2TransformerField, VAEField, WanTransformerField+ from invokeai.backend.model_manager.taxonomy import SubModelType++ wan_high = ModelIdentifierField(key="wh", hash="hh", name="wh", base=BaseModelType.Wan, type=ModelType.Main)+ wan_low = ModelIdentifierField(key="wl", hash="hl", name="wl", base=BaseModelType.Wan, type=ModelType.Main)+ wan_field = WanTransformerField(transformer=wan_high, transformer_low_noise=wan_low, boundary_ratio=0.8)+ assert unwrap_metadata_value(wan_field, label="model") == wan_high+ assert unwrap_metadata_value(wan_field, label="wan_transformer_low_noise") == wan_low+ assert isinstance(unwrap_metadata_value(wan_field, label=CUSTOM_LABEL), WanTransformerField)+ assert unwrap_metadata_value(wan_field.model_dump(), label=CUSTOM_LABEL)["boundary_ratio"] == 0.8++ ltx_tf = ModelIdentifierField(+ key="lt",+ hash="hlt",+ name="lt",+ base=BaseModelType.LTX2,+ type=ModelType.Main,+ submodel_type=SubModelType.Transformer,+ )+ ltx_field = LTX2TransformerField(transformer=ltx_tf, loras=[], variant="ltx2_dev")+ assert unwrap_metadata_value(ltx_field, label="model") == ltx_tf+ assert isinstance(unwrap_metadata_value(ltx_field, label=CUSTOM_LABEL), LTX2TransformerField)+ assert unwrap_metadata_value(ltx_field.model_dump(), label=CUSTOM_LABEL)["variant"] == "ltx2_dev"++ vae_id = ModelIdentifierField(+ key="vk", hash="hv", name="vk", base=BaseModelType.StableDiffusionXL, type=ModelType.VAE+ )+ vae_seamless = VAEField(vae=vae_id, seamless_axes=["x", "y"])+ assert unwrap_metadata_value(vae_seamless, label="vae") == vae_id+ assert isinstance(unwrap_metadata_value(vae_seamless, label=CUSTOM_LABEL), VAEField)+ assert unwrap_metadata_value(vae_seamless.model_dump(), label=CUSTOM_LABEL)["seamless_axes"] == ["x", "y"]diff --git a/tests/app/invocations/test_denoise_metadata.py b/tests/app/invocations/test_denoise_metadata.pynew file mode 100644index 0000000000..61e4136d91--- /dev/null+++ b/tests/app/invocations/test_denoise_metadata.py@@ -0,0 +1,3488 @@+from types import SimpleNamespace+from unittest.mock import patch++import pytest++from invokeai.app.invocations.anima.anima_denoise import AnimaDenoiseInvocation+from invokeai.app.invocations.anima.anima_ip_adapter import AnimaIPAdapterField+from invokeai.app.invocations.anima.anima_lllite import AnimaLLLiteField+from invokeai.app.invocations.baseinvocation import (+ BaseInvocation,+ Classification,+ InvocationRegistry,+ MissingInputException,+)+from invokeai.app.invocations.cogview4.cogview4_denoise import CogView4DenoiseInvocation+from invokeai.app.invocations.ernie_image.ernie_image_denoise import ErnieImageDenoiseInvocation+from invokeai.app.invocations.fields import (+ DenoiseMaskField,+ ImageField,+ LatentsField,+ MetadataField,+ MiniMaxH3FrameConditioningField,+ TensorField,+ WithBoard,+ WithMetadata,+)+from invokeai.app.invocations.flux.flux_controlnet import FluxControlNetField+from invokeai.app.invocations.flux.flux_denoise import FluxDenoiseInvocation+from invokeai.app.invocations.flux2.flux2_control import Flux2ControlField+from invokeai.app.invocations.flux2.flux2_denoise import Flux2DenoiseInvocation+from invokeai.app.invocations.flux3.flux3_denoise import Flux3DenoiseInvocation+from invokeai.app.invocations.ideogram4.ideogram4_denoise import Ideogram4DenoiseInvocation+from invokeai.app.invocations.krea2.krea2_denoise import Krea2DenoiseInvocation+from invokeai.app.invocations.ltx2.ltx2_denoise import LTX2DenoiseInvocation, LTX2DenoiseOutput+from invokeai.app.invocations.metadata import (+ CORE_METADATA_VERSION,+ LatentsMetaOutput,+ MetadataInvocation,+ MetadataItemField,+ MetadataItemInvocation,+ MetadataOutput,+ build_denoise_metadata,+ serialize_adapter_metadata,+ serialize_ip_adapter_ref_images,+ serialize_lora_metadata,+)+from invokeai.app.invocations.metadata_linked import (+ CORE_LABELS,+ CORE_LABELS_BOOL,+ CORE_LABELS_FLOAT,+ CORE_LABELS_INTEGER,+ CORE_LABELS_MODEL,+ CORE_LABELS_SCHEDULER,+ CORE_LABELS_STRING,+ CORE_LABELS_VAE,+ CUSTOM_LABEL,+ AnimaDenoiseMetaInvocation,+ DenoiseLatentsMetaInvocation,+ FluxDenoiseLatentsMetaInvocation,+ MetadataItemLinkedInvocation,+ MetadataToControlnetsInvocation,+ MetadataToIPAdaptersInvocation,+ MetadataToT2IAdaptersInvocation,+ ZImageDenoiseMetaInvocation,+)+from invokeai.app.invocations.minimax_h3.minimax_h3_denoise import MiniMaxH3DenoiseInvocation, MiniMaxH3DenoiseOutput+from invokeai.app.invocations.model import (+ ControlLoRAField,+ FreeUConfig,+ LoRAField,+ LTX2TransformerField,+ MiniMaxH3AdaLNOverlayField,+ MiniMaxH3TransformerField,+ ModelIdentifierField,+ Qwen3EncoderField,+ TransformerField,+ UNetField,+ VAEField,+ WanTransformerField,+)+from invokeai.app.invocations.moss_image.moss_image_denoise import MossImageDenoiseInvocation+from invokeai.app.invocations.primitives import LatentsOutput+from invokeai.app.invocations.qwen_image.qwen_image_control import QwenImageControlField+from invokeai.app.invocations.qwen_image.qwen_image_denoise import QwenImageDenoiseInvocation+from invokeai.app.invocations.qwen_image_2_1.qwen_image_2_1_denoise import QwenImage21DenoiseInvocation+from invokeai.app.invocations.sd.controlnet import ControlField+from invokeai.app.invocations.sd.denoise_latents import DenoiseLatentsInvocation+from invokeai.app.invocations.sd.ip_adapter import IPAdapterField+from invokeai.app.invocations.sd.t2i_adapter import T2IAdapterField+from invokeai.app.invocations.sd.tiled_multi_diffusion_denoise_latents import TiledMultiDiffusionDenoiseLatents+from invokeai.app.invocations.sd3.sd3_denoise import SD3DenoiseInvocation+from invokeai.app.invocations.wan.wan_denoise import WanDenoiseInvocation+from invokeai.app.invocations.wan.wan_video_denoise import WanVideoDenoiseInvocation+from invokeai.app.invocations.z_image.z_image_control import ZImageControlField+from invokeai.app.invocations.z_image.z_image_denoise import ZImageDenoiseInvocation+from invokeai.backend.model_manager.taxonomy import BaseModelType, ModelType, SubModelType+from invokeai.version.invokeai_version import __version__+++def _make_model_id(+ key: str = "model-key-1",+ name: str = "test-model",+ base: BaseModelType = BaseModelType.Flux,+ model_type: ModelType = ModelType.Main,+ submodel_type: SubModelType | None = SubModelType.Transformer,+) -> ModelIdentifierField:+ return ModelIdentifierField(+ key=key,+ hash="blake3:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",+ name=name,+ base=base,+ type=model_type,+ submodel_type=submodel_type,+ )+++def _discover_denoise_invocations() -> list[type[BaseInvocation]]:+ return [+ cls+ for cls in InvocationRegistry.get_invocation_classes()+ if "denoise" in cls.get_type() and not cls.get_type().endswith("_mask")+ ]+++def test_all_denoise_invocations_conform_to_metadata_contract() -> None:+ denoise_classes = _discover_denoise_invocations()+ assert len(denoise_classes) >= 23 # 19 active denoise nodes + 4 deprecated *_meta wrappers++ for cls in denoise_classes:+ node_type = cls.get_type()+ assert issubclass(cls, WithMetadata), f"{node_type} must inherit WithMetadata"+ assert "metadata" in cls.model_fields, f"{node_type} must expose a 'metadata' input field"+ assert not issubclass(cls, WithBoard), f"{node_type} must not inherit WithBoard"+ assert "board" not in cls.model_fields, f"{node_type} must not expose a 'board' input field"++ output_cls = cls.get_output_annotation()+ assert issubclass(output_cls, MetadataOutput), (+ f"{node_type} output {output_cls.__name__} must subclass MetadataOutput"+ )+ assert "metadata" in output_cls.model_fields, (+ f"{node_type} output {output_cls.__name__} must expose a 'metadata' output field"+ )++ if node_type.endswith(("_denoise_meta", "_latents_meta")):+ assert cls.UIConfig.classification == Classification.Deprecated, (+ f"{node_type} wrapper must be marked Classification.Deprecated"+ )+++def test_build_denoise_metadata_does_not_mutate_existing_metadata() -> None:+ original_dict = {"positive_prompt": "a scenic mountain", "steps": 10, "custom_tag": "keep-me"}+ existing = MetadataField.model_validate(original_dict.copy())++ result = build_denoise_metadata(existing, {"steps": 30, "width": 1024, "height": 768})++ # Input MetadataField.root must remain untouched+ assert existing.root == original_dict+ assert existing.root["steps"] == 10+ assert "width" not in existing.root++ # Output MetadataField has merged values + version stamps+ assert result.root["positive_prompt"] == "a scenic mountain"+ assert result.root["custom_tag"] == "keep-me"+ assert result.root["steps"] == 30+ assert result.root["width"] == 1024+ assert result.root["height"] == 768+ assert result.root["app_version"] == __version__+ assert result.root["metadata_version"] == CORE_METADATA_VERSION+++def test_serialize_lora_metadata_deduplicates_across_lists() -> None:+ lora_a = _make_model_id(key="lora-a", name="LoRA A", model_type=ModelType.LoRA, submodel_type=None)+ lora_b = _make_model_id(key="lora-b", name="LoRA B", model_type=ModelType.LoRA, submodel_type=None)++ list_1 = [LoRAField(lora=lora_a, weight=0.75), LoRAField(lora=lora_b, weight=0.5)]+ # lora_a with same weight is deduplicated; lora_a with different weight is kept+ list_2 = [LoRAField(lora=lora_a, weight=0.75), LoRAField(lora=lora_a, weight=1.0)]++ serialized = serialize_lora_metadata(list_1, None, list_2)+ assert len(serialized) == 3+ assert serialized[0]["model"]["key"] == "lora-a"+ assert serialized[0]["weight"] == 0.75+ assert serialized[1]["model"]["key"] == "lora-b"+ assert serialized[1]["weight"] == 0.5+ assert serialized[2]["model"]["key"] == "lora-a"+ assert serialized[2]["weight"] == 1.0+++def test_serialize_adapter_metadata_normalizes_single_and_list() -> None:+ assert serialize_adapter_metadata(None) == []++ ctrl_model = _make_model_id(key="ctrl-1", model_type=ModelType.ControlNet, submodel_type=None)+ field = ZImageControlField(+ image_name="ctrl.png",+ control_model=ctrl_model,+ control_context_scale=0.8,+ begin_step_percent=0.0,+ end_step_percent=1.0,+ )+ single = serialize_adapter_metadata(field)+ many = serialize_adapter_metadata([field])+ assert len(single) == 1+ assert single == many+ assert single[0]["image_name"] == "ctrl.png"+ assert single[0]["control_model"]["key"] == "ctrl-1"+++def test_sd_and_tiled_denoise_build_metadata() -> None:+ unet_id = _make_model_id(key="sdxl-unet", base=BaseModelType.StableDiffusionXL, submodel_type=SubModelType.UNet)+ sched_id = _make_model_id(+ key="sdxl-sched", base=BaseModelType.StableDiffusionXL, submodel_type=SubModelType.Scheduler+ )+ lora_id = _make_model_id(key="sdxl-lora", base=BaseModelType.StableDiffusionXL, model_type=ModelType.LoRA)+ ctrl_id = _make_model_id(key="sdxl-ctrl", base=BaseModelType.StableDiffusionXL, model_type=ModelType.ControlNet)+ ipa_id = _make_model_id(key="sdxl-ipa", base=BaseModelType.StableDiffusionXL, model_type=ModelType.IPAdapter)+ t2i_id = _make_model_id(key="sdxl-t2i", base=BaseModelType.StableDiffusionXL, model_type=ModelType.T2IAdapter)++ unet_field = UNetField(+ unet=unet_id,+ scheduler=sched_id,+ loras=[LoRAField(lora=lora_id, weight=0.8)],+ seamless_axes=["x"],+ freeu_config=FreeUConfig(s1=0.9, s2=0.2, b1=1.2, b2=1.4),+ )+ control = ControlField(+ image=ImageField(image_name="cn.png"),+ control_model=ctrl_id,+ control_weight=0.75,+ begin_step_percent=0.0,+ end_step_percent=1.0,+ control_mode="balanced",+ resize_mode="just_resize",+ )+ ipa = IPAdapterField(+ image=ImageField(image_name="ipa.png"),+ ip_adapter_model=ipa_id,+ image_encoder_model=ipa_id,+ weight=0.6,+ method="full",+ begin_step_percent=0.0,+ end_step_percent=1.0,+ )+ t2i = T2IAdapterField(+ image=ImageField(image_name="t2i.png"),+ t2i_adapter_model=t2i_id,+ weight=0.5,+ begin_step_percent=0.0,+ end_step_percent=1.0,+ resize_mode="just_resize",+ )+ upstream = MetadataField.model_validate({"positive_prompt": "castle"})++ sd_node = DenoiseLatentsInvocation.model_construct(+ unet=unet_field,+ cfg_scale=7.5,+ cfg_rescale_multiplier=0.1,+ steps=25,+ scheduler="dpmpp_2m_k",+ denoising_start=0.1,+ denoising_end=0.9,+ control=control,+ ip_adapter=ipa,+ t2i_adapter=t2i,+ noise=LatentsField(latents_name="n", seed=4242),+ latents=None,+ metadata=upstream,+ )+ md = sd_node._build_metadata(1024, 768).root+ assert upstream.root == {"positive_prompt": "castle"}+ assert md["positive_prompt"] == "castle"+ assert md["width"] == 1024+ assert md["height"] == 768+ assert md["cfg_scale"] == 7.5+ assert md["cfg_rescale_multiplier"] == 0.1+ assert md["steps"] == 25+ assert md["scheduler"] == "dpmpp_2m_k"+ assert md["denoising_start"] == 0.1+ assert md["denoising_end"] == 0.9+ assert md["model"] == unet_id+ assert md["seamless_x"] is True+ assert md["seamless_y"] is False+ assert (md["freeu_s1"], md["freeu_s2"], md["freeu_b1"], md["freeu_b2"]) == (0.9, 0.2, 1.2, 1.4)+ assert len(md["loras"]) == 1 and md["loras"][0]["weight"] == 0.8+ assert len(md["controlnets"]) == 1+ assert len(md["ref_images"]) == 1+ assert "ipAdapters" not in md+ assert len(md["t2iAdapters"]) == 1+ assert md["seed"] == 4242++ tiled_node = TiledMultiDiffusionDenoiseLatents.model_construct(+ unet=unet_field,+ cfg_scale=6.0,+ cfg_rescale_multiplier=0.0,+ steps=18,+ scheduler="euler",+ denoising_start=0.0,+ denoising_end=1.0,+ tile_width=1024,+ tile_height=1024,+ tile_overlap=64,+ control=control,+ noise=None,+ latents=LatentsField(latents_name="l", seed=777),+ metadata=None,+ )+ tiled_md = tiled_node._build_metadata(2048, 2048).root+ assert tiled_md["tile_width"] == 1024+ assert tiled_md["tile_height"] == 1024+ assert tiled_md["tile_overlap"] == 64+ assert tiled_md["seed"] == 777+ assert len(tiled_md["controlnets"]) == 1+++def test_flux_and_flux2_denoise_build_metadata() -> None:+ tf_id = _make_model_id(key="flux-tf", base=BaseModelType.Flux)+ lora_id = _make_model_id(key="flux-lora", base=BaseModelType.Flux, model_type=ModelType.LoRA)+ ctrl_lora_id = _make_model_id(key="flux-ctrl-lora", base=BaseModelType.Flux, model_type=ModelType.ControlLoRa)+ ctrl_id = _make_model_id(key="flux-cn", base=BaseModelType.Flux, model_type=ModelType.ControlNet)+ ipa_id = _make_model_id(key="flux-ipa", base=BaseModelType.Flux, model_type=ModelType.IPAdapter)+ flux_cn_vae_id = _make_model_id(key="flux-cn-vae", base=BaseModelType.Flux, model_type=ModelType.VAE)+ vae_id = _make_model_id(key="flux2-vae", base=BaseModelType.Flux2, model_type=ModelType.VAE)++ flux_node = FluxDenoiseInvocation.model_construct(+ latents=None,+ noise=None,+ add_noise=True,+ denoising_start=0.0,+ denoising_end=1.0,+ width=1024,+ height=768,+ num_steps=20,+ scheduler="euler",+ guidance=3.5,+ cfg_scale=1.5,+ cfg_scale_start_step=1,+ cfg_scale_end_step=15,+ seed=101,+ dype_preset="area",+ dype_scale=2.5,+ dype_exponent=1.8,+ transformer=TransformerField(transformer=tf_id, loras=[LoRAField(lora=lora_id, weight=0.9)]),+ control_lora=ControlLoRAField(lora=ctrl_lora_id, weight=0.7, img=ImageField(image_name="cl.png")),+ control=FluxControlNetField(+ image=ImageField(image_name="fc.png"),+ control_model=ctrl_id,+ control_weight=0.8,+ begin_step_percent=0.0,+ end_step_percent=1.0,+ resize_mode="just_resize",+ ),+ controlnet_vae=VAEField(vae=flux_cn_vae_id),+ ip_adapter=IPAdapterField(+ image=ImageField(image_name="fipa.png"),+ ip_adapter_model=ipa_id,+ image_encoder_model=ipa_id,+ weight=0.5,+ method="full",+ begin_step_percent=0.0,+ end_step_percent=1.0,+ ),+ metadata=None,+ )+ flux_md = flux_node._build_metadata().root+ assert flux_md["width"] == 1024+ assert flux_md["height"] == 768+ assert flux_md["steps"] == 20+ assert flux_md["scheduler"] == "euler"+ assert flux_md["guidance"] == 3.5+ assert flux_md["cfg_scale"] == 1.5+ assert flux_md["cfg_scale_start_step"] == 1+ assert flux_md["cfg_scale_end_step"] == 15+ assert flux_md["dype_preset"] == "area"+ assert flux_md["dype_scale"] == 2.5+ assert flux_md["dype_exponent"] == 1.8+ assert flux_md["vae"] == flux_cn_vae_id+ assert len(flux_md["loras"]) == 1+ assert flux_md["loras"][0]["model"]["key"] == "flux-lora"+ assert len(flux_md["controlnets"]) == 1+ assert len(flux_md["ref_images"]) == 1+ assert "ipAdapters" not in flux_md+ assert flux_md["seed"] == 101++ # When upstream metadata already contains "vae", controlnet_vae does not overwrite it+ upstream_vae_id = _make_model_id(key="flux-upstream-vae", base=BaseModelType.Flux, model_type=ModelType.VAE)+ flux_with_upstream_vae = flux_node.model_copy(+ update={"metadata": MetadataField.model_validate({"vae": upstream_vae_id})}+ )+ assert flux_with_upstream_vae._build_metadata().root["vae"] == upstream_vae_id++ flux2_node = Flux2DenoiseInvocation.model_construct(+ latents=None,+ noise=None,+ add_noise=True,+ denoising_start=0.0,+ denoising_end=1.0,+ width=1024,+ height=768,+ num_steps=8,+ scheduler="heun",+ guidance=4.0,+ cfg_scale=2.0,+ seed=202,+ transformer=TransformerField(transformer=tf_id, loras=[LoRAField(lora=lora_id, weight=0.6)]),+ vae=VAEField(vae=vae_id),+ control=Flux2ControlField(+ control_model=ctrl_id,+ control_image=ImageField(image_name="f2c.png"),+ control_context_scale=0.75,+ begin_step_percent=0.0,+ end_step_percent=1.0,+ ),+ metadata=None,+ )+ flux2_md = flux2_node._build_metadata().root+ assert flux2_md["width"] == 1024+ assert flux2_md["height"] == 768+ assert flux2_md["steps"] == 8+ assert flux2_md["scheduler"] == "heun"+ assert flux2_md["guidance"] == 4.0+ assert flux2_md["cfg_scale"] == 2.0+ assert flux2_md["vae"] == vae_id+ assert len(flux2_md["loras"]) == 1+ assert len(flux2_md["controlnets"]) == 1+ assert flux2_md["seed"] == 202++ flux3_tf_id = _make_model_id(key="flux3-tf", base=BaseModelType.Flux3)+ flux3_lora_id = _make_model_id(key="flux3-lora", base=BaseModelType.Flux3, model_type=ModelType.LoRA)+ flux3_node = Flux3DenoiseInvocation.model_construct(+ latents=None,+ denoise_mask=None,+ denoising_start=0.0,+ denoising_end=1.0,+ add_noise=True,+ transformer=TransformerField(transformer=flux3_tf_id, loras=[LoRAField(lora=flux3_lora_id, weight=0.75)]),+ cfg_scale=3.5,+ width=1024,+ height=768,+ steps=16,+ seed=303,+ vae=VAEField(vae=vae_id),+ metadata=None,+ )+ flux3_md = flux3_node._build_metadata().root+ assert flux3_md["generation_mode"] == "flux3_txt2img"+ assert flux3_md["width"] == 1024+ assert flux3_md["height"] == 768+ assert flux3_md["steps"] == 16+ assert flux3_md["cfg_scale"] == 3.5+ assert flux3_md["scheduler"] == "euler"+ assert flux3_md["denoising_start"] == 0.0+ assert flux3_md["denoising_end"] == 1.0+ assert flux3_md["add_noise"] is True+ assert flux3_md["seed"] == 303+ assert flux3_md["model"] == flux3_tf_id+ assert flux3_md["vae"] == vae_id+ assert len(flux3_md["loras"]) == 1+ assert (+ flux3_node.model_copy(update={"latents": LatentsField(latents_name="f3-lat")})+ ._build_metadata()+ .root["generation_mode"]+ == "flux3_img2img"+ )+ assert (+ flux3_node.model_copy(+ update={+ "latents": LatentsField(latents_name="f3-lat"),+ "denoise_mask": DenoiseMaskField(mask_name="f3-mask"),+ }+ )+ ._build_metadata()+ .root["generation_mode"]+ == "flux3_inpaint"+ )+++def test_sd3_cogview4_zimage_anima_denoise_build_metadata() -> None:+ tf_id = _make_model_id(key="tf-1")+ lora_id = _make_model_id(key="lora-1", model_type=ModelType.LoRA)+ vae_id = _make_model_id(key="vae-1", model_type=ModelType.VAE)+ ctrl_id = _make_model_id(key="ctrl-1", model_type=ModelType.ControlNet)+ tf_field = TransformerField(transformer=tf_id, loras=[LoRAField(lora=lora_id, weight=0.5)])++ sd3_md = (+ SD3DenoiseInvocation.model_construct(+ latents=None,+ noise=None,+ denoising_start=0.0,+ denoising_end=1.0,+ width=1024,+ height=768,+ transformer=tf_field,+ cfg_scale=3.5,+ steps=28,+ seed=11,+ metadata=None,+ )+ ._build_metadata()+ .root+ )+ assert sd3_md["width"] == 1024+ assert sd3_md["height"] == 768+ assert sd3_md["steps"] == 28+ assert sd3_md["cfg_scale"] == 3.5+ assert sd3_md["seed"] == 11+ assert len(sd3_md["loras"]) == 1++ cog_md = (+ CogView4DenoiseInvocation.model_construct(+ latents=None,+ noise=None,+ denoising_start=0.0,+ denoising_end=1.0,+ width=1024,+ height=768,+ transformer=tf_field,+ cfg_scale=4.0,+ steps=25,+ seed=22,+ metadata=None,+ )+ ._build_metadata()+ .root+ )+ assert cog_md["width"] == 1024+ assert cog_md["height"] == 768+ assert cog_md["steps"] == 25+ assert cog_md["cfg_scale"] == 4.0+ assert cog_md["seed"] == 22++ z_node = ZImageDenoiseInvocation.model_construct(+ latents=None,+ noise=None,+ add_noise=True,+ denoising_start=0.0,+ denoising_end=1.0,+ width=1024,+ height=768,+ transformer=tf_field,+ guidance_scale=1.5,+ steps=8,+ seed=33,+ shift=2.5,+ scheduler="euler",+ vae=VAEField(vae=vae_id),+ control=ZImageControlField(+ image_name="zc.png",+ control_model=ctrl_id,+ control_context_scale=0.9,+ begin_step_percent=0.0,+ end_step_percent=1.0,+ ),+ metadata=None,+ )+ z_md = z_node._build_metadata().root+ assert z_md["width"] == 1024+ assert z_md["height"] == 768+ assert z_md["cfg_scale"] == 1.5+ assert z_md["guidance"] == 1.5+ assert z_md["z_image_shift"] == 2.5+ assert z_md["vae"] == vae_id+ assert len(z_md["controlnets"]) == 1+ assert z_md["seed"] == 33+ assert z_node.model_copy(update={"shift": None})._build_metadata().root["z_image_shift"] == "auto"++ ipa_id = _make_model_id(key="anima-ipa", base=BaseModelType.Anima, model_type=ModelType.IPAdapter)+ anima_md = (+ AnimaDenoiseInvocation.model_construct(+ latents=None,+ noise=None,+ add_noise=True,+ denoising_start=0.0,+ denoising_end=1.0,+ width=1024,+ height=768,+ transformer=tf_field,+ guidance_scale=4.5,+ steps=30,+ seed=44,+ scheduler="euler",+ control_lllite=AnimaLLLiteField(+ control_model=ctrl_id,+ image_name="ac.png",+ weight=0.8,+ begin_step_percent=0.0,+ end_step_percent=1.0,+ ),+ ip_adapter=[+ AnimaIPAdapterField(+ tokens_name="tok-1",+ ip_adapter_model=ipa_id,+ image_name="anima-ref.png",+ strength=0.8,+ begin_step_percent=0.0,+ end_step_percent=1.0,+ ),+ AnimaIPAdapterField(+ tokens_name="tok-2",+ ip_adapter_model=ipa_id,+ image_name="anima-zero.png",+ strength=0.0,+ begin_step_percent=0.0,+ end_step_percent=1.0,+ ),+ ],+ metadata=None,+ )+ ._build_metadata()+ .root+ )+ assert anima_md["width"] == 1024+ assert anima_md["height"] == 768+ assert anima_md["cfg_scale"] == 4.5+ assert anima_md["steps"] == 30+ assert len(anima_md["controlnets"]) == 1+ assert len(anima_md["ref_images"]) == 1+ assert anima_md["ref_images"][0]["config"]["image"]["original"]["image"]["image_name"] == "anima-ref.png"+ assert anima_md["ref_images"][0]["config"]["weight"] == 0.8+ assert anima_md["seed"] == 44+++def test_ernie_ideogram4_krea2_qwen_denoise_build_metadata() -> None:+ tf_id = _make_model_id(key="tf-main")+ uncond_tf_id = _make_model_id(key="tf-uncond")+ lora_1 = _make_model_id(key="lora-1", model_type=ModelType.LoRA)+ lora_2 = _make_model_id(key="lora-2", model_type=ModelType.LoRA)+ vae_id = _make_model_id(key="vae-1", model_type=ModelType.VAE)+ ctrl_id = _make_model_id(key="ctrl-1", model_type=ModelType.ControlNet)++ ernie_md = (+ ErnieImageDenoiseInvocation.model_construct(+ transformer=TransformerField(transformer=tf_id, loras=[LoRAField(lora=lora_1, weight=0.7)]),+ latents=None,+ add_noise=True,+ width=1024,+ height=768,+ steps=8,+ guidance_scale=1.0,+ denoising_start=0.0,+ denoising_end=1.0,+ seed=55,+ scheduler="euler",+ metadata=None,+ )+ ._build_metadata()+ .root+ )+ assert ernie_md["width"] == 1024+ assert ernie_md["height"] == 768+ assert ernie_md["steps"] == 8+ assert ernie_md["cfg_scale"] == 1.0+ assert ernie_md["seed"] == 55+ assert len(ernie_md["loras"]) == 1++ # Ideogram 4: preset fallback + explicit overrides + dual-branch LoRA deduplication+ ideo_node = Ideogram4DenoiseInvocation.model_construct(+ transformer=TransformerField(+ transformer=tf_id,+ loras=[LoRAField(lora=lora_1, weight=0.5), LoRAField(lora=lora_2, weight=0.4)],+ ),+ unconditional_transformer=TransformerField(+ transformer=uncond_tf_id,+ loras=[LoRAField(lora=lora_1, weight=0.5)],+ ),+ sampler_preset="V4_DEFAULT_20",+ steps=None,+ guidance_scale=None,+ mu=None,+ width=1024,+ height=768,+ seed=66,+ metadata=None,+ )+ ideo_md = ideo_node._build_metadata().root+ assert ideo_md["width"] == 1024+ assert ideo_md["height"] == 768+ assert ideo_md["steps"] == 20+ assert ideo_md["cfg_scale"] == 7.0+ assert ideo_md["guidance"] == 7.0+ assert ideo_md["ideogram4_sampler_preset"] == "V4_DEFAULT_20"+ assert "ideogram4_steps" not in ideo_md+ assert "ideogram4_guidance_scale" not in ideo_md+ assert "ideogram4_mu" not in ideo_md+ assert ideo_md["ideogram4_unconditional_model"] == uncond_tf_id+ assert len(ideo_md["loras"]) == 2++ ideo_overrides_md = (+ ideo_node.model_copy(update={"steps": 14, "guidance_scale": 5.5, "mu": 0.25})._build_metadata().root+ )+ assert ideo_overrides_md["steps"] == 14+ assert ideo_overrides_md["cfg_scale"] == 5.5+ assert ideo_overrides_md["guidance"] == 5.5+ assert ideo_overrides_md["ideogram4_steps"] == 14+ assert ideo_overrides_md["ideogram4_guidance_scale"] == 5.5+ assert ideo_overrides_md["ideogram4_mu"] == 0.25++ krea_node = Krea2DenoiseInvocation.model_construct(+ transformer=TransformerField(transformer=tf_id, loras=[LoRAField(lora=lora_1, weight=1.0)]),+ cfg_scale=1.0,+ width=1280,+ height=720,+ steps=8,+ denoising_start=0.0,+ denoising_end=1.0,+ seed=77,+ shift=1.15,+ reference_latents=LatentsField(latents_name="ref-lat"),+ reference_kv_cache=True,+ style_reference=SimpleNamespace(style_strength=0.65),+ metadata=None,+ )+ krea_md = krea_node._build_metadata().root+ assert krea_md["width"] == 1280+ assert krea_md["height"] == 720+ assert krea_md["shift"] == 1.15+ assert krea_md["krea2_style_strength"] == 0.65+ assert krea_md["krea2_reference_kv_cache"] is True+ assert krea_md["seed"] == 77+ assert len(krea_md["loras"]) == 1+ assert (+ "krea2_reference_kv_cache"+ not in krea_node.model_copy(update={"reference_latents": None})._build_metadata().root+ )++ qwen_node = QwenImageDenoiseInvocation.model_construct(+ transformer=TransformerField(transformer=tf_id, loras=[LoRAField(lora=lora_1, weight=0.9)]),+ cfg_scale=4.0,+ width=1360,+ height=768,+ steps=40,+ denoising_start=0.0,+ denoising_end=1.0,+ seed=88,+ shift=3.0,+ vae=VAEField(vae=vae_id),+ control=QwenImageControlField(+ control_model=ctrl_id,+ control_image=ImageField(image_name="qc.png"),+ control_context_scale=0.8,+ begin_step_percent=0.0,+ end_step_percent=1.0,+ ),+ metadata=None,+ )+ qwen_md = qwen_node._build_metadata().root+ assert qwen_md["width"] == 1360+ assert qwen_md["height"] == 768+ assert qwen_md["qwen_image_shift"] == 3.0+ assert qwen_md["vae"] == vae_id+ assert qwen_md["qwen_image_vae"] == vae_id+ assert len(qwen_md["controlnets"]) == 1+ assert qwen_md["seed"] == 88+ assert qwen_node.model_copy(update={"shift": None})._build_metadata().root["qwen_image_shift"] == "auto"++ qwen21_node = QwenImage21DenoiseInvocation.model_construct(+ transformer=TransformerField(transformer=tf_id, loras=[LoRAField(lora=lora_1, weight=0.9)]),+ cfg_scale=1.0,+ width=1024,+ height=768,+ steps=8,+ denoising_start=0.0,+ denoising_end=1.0,+ seed=99,+ metadata=None,+ )+ qwen21_md = qwen21_node._build_metadata(used_prefix_cache=True).root+ assert qwen21_md["width"] == 1024+ assert qwen21_md["height"] == 768+ assert qwen21_md["steps"] == 8+ assert qwen21_md["seed"] == 99+ assert qwen21_md["qwen_image_2_1_prefix_kv_cache"] is True+ assert "qwen_image_2_1_prefix_kv_cache" not in qwen21_node._build_metadata().root+ assert len(qwen21_md["loras"]) == 1++ moss_node = MossImageDenoiseInvocation.model_construct(+ transformer=TransformerField(transformer=tf_id, loras=[LoRAField(lora=lora_1, weight=0.85)]),+ vae=VAEField(vae=vae_id),+ cfg_scale=1.5,+ width=1024,+ height=1024,+ steps=32,+ denoising_start=0.0,+ denoising_end=1.0,+ seed=101,+ uncond_skip_layers=[22],+ latents=None,+ denoise_mask=None,+ metadata=None,+ )+ moss_md = moss_node._build_metadata().root+ assert moss_md["generation_mode"] == "moss_image_txt2img"+ assert moss_md["width"] == 1024+ assert moss_md["height"] == 1024+ assert moss_md["steps"] == 32+ assert moss_md["cfg_scale"] == 1.5+ assert moss_md["seed"] == 101+ assert moss_md["model"] == tf_id+ assert moss_md["vae"] == vae_id+ assert moss_md["moss_image_uncond_skip_layers"] == [22]+ assert len(moss_md["loras"]) == 1+ assert (+ moss_node.model_copy(update={"latents": LatentsField(latents_name="m-lat")})+ ._build_metadata()+ .root["generation_mode"]+ == "moss_image_img2img"+ )+ assert (+ moss_node.model_copy(+ update={"latents": LatentsField(latents_name="m-lat"), "denoise_mask": DenoiseMaskField(mask_name="m-mask")}+ )+ ._build_metadata()+ .root["generation_mode"]+ == "moss_image_inpaint"+ )+++def test_wan_ltx2_minimax_h3_denoise_build_metadata() -> None:+ high_tf = _make_model_id(key="wan-high", base=BaseModelType.Wan)+ low_tf = _make_model_id(key="wan-low", base=BaseModelType.Wan)+ lora_shared = _make_model_id(key="wan-lora-1", base=BaseModelType.Wan, model_type=ModelType.LoRA)+ lora_low = _make_model_id(key="wan-lora-2", base=BaseModelType.Wan, model_type=ModelType.LoRA)++ wan_tf_field = WanTransformerField(+ transformer=high_tf,+ transformer_low_noise=low_tf,+ loras=[LoRAField(lora=lora_shared, weight=0.8)],+ loras_low_noise=[LoRAField(lora=lora_shared, weight=0.8), LoRAField(lora=lora_low, weight=0.6)],+ )++ wan_md = (+ WanDenoiseInvocation.model_construct(+ transformer=wan_tf_field,+ guidance_scale=4.0,+ guidance_scale_low_noise=3.0,+ denoising_start=0.0,+ denoising_end=1.0,+ add_noise=True,+ width=1024,+ height=768,+ steps=40,+ seed=111,+ metadata=None,+ )+ ._build_metadata()+ .root+ )+ assert wan_md["width"] == 1024+ assert wan_md["height"] == 768+ assert wan_md["cfg_scale"] == 4.0+ assert wan_md["guidance"] == 4.0+ assert wan_md["wan_guidance_scale_low_noise"] == 3.0+ assert wan_md["wan_transformer_low_noise"] == low_tf+ assert len(wan_md["loras"]) == 2++ # guidance_scale_low_noise < 1.0 falls back to guidance_scale and is omitted from metadata+ wan_fallback_md = (+ WanDenoiseInvocation.model_construct(+ transformer=wan_tf_field,+ guidance_scale=4.0,+ guidance_scale_low_noise=0.0,+ denoising_start=0.0,+ denoising_end=1.0,+ add_noise=True,+ width=1024,+ height=768,+ steps=40,+ seed=111,+ metadata=None,+ )+ ._build_metadata()+ .root+ )+ assert "wan_guidance_scale_low_noise" not in wan_fallback_md++ wan_video_md = (+ WanVideoDenoiseInvocation.model_construct(+ transformer=wan_tf_field,+ guidance_scale=5.0,+ guidance_scale_low_noise=4.0,+ width=832,+ height=480,+ num_frames=81,+ steps=40,+ seed=222,+ metadata=None,+ )+ ._build_metadata()+ .root+ )+ assert wan_video_md["width"] == 832+ assert wan_video_md["height"] == 480+ assert wan_video_md["num_frames"] == 81+ assert wan_video_md["cfg_scale"] == 5.0+ assert wan_video_md["wan_guidance_scale_low_noise"] == 4.0+ assert len(wan_video_md["loras"]) == 2++ # LTX-2: base pass (no latents -> no ltx2_noise_scale) vs refine pass (with latents -> includes ltx2_noise_scale)+ ltx_tf = _make_model_id(key="ltx2-tf", base=BaseModelType.LTX2)+ ltx_base = LTX2DenoiseInvocation.model_construct(+ transformer=LTX2TransformerField(transformer=ltx_tf, loras=[LoRAField(lora=lora_shared, weight=0.5)]),+ width=1248,+ height=704,+ num_frames=121,+ fps=23.976,+ steps=30,+ cfg_scale=3.0,+ audio_cfg_scale=7.0,+ stg_scale=1.0,+ modality_scale=3.0,+ guidance_rescale=0.7,+ schedule="dev",+ seed=333,+ latents=None,+ noise_scale=0.5,+ metadata=None,+ )+ ltx_base_md = ltx_base._build_metadata().root+ assert ltx_base_md["width"] == 1248+ assert ltx_base_md["height"] == 704+ assert ltx_base_md["num_frames"] == 121+ assert ltx_base_md["fps"] == 24+ assert isinstance(ltx_base_md["fps"], int)+ assert ltx_base_md["ltx2_audio_cfg_scale"] == 7.0+ assert ltx_base_md["ltx2_stg_scale"] == 1.0+ assert ltx_base_md["ltx2_modality_scale"] == 3.0+ assert ltx_base_md["ltx2_guidance_rescale"] == 0.7+ assert ltx_base_md["ltx2_schedule"] == "dev"+ assert "ltx2_noise_scale" not in ltx_base_md++ ltx_refine = ltx_base.model_copy(update={"latents": LatentsField(latents_name="stage1")})+ ltx_refine_md = ltx_refine._build_metadata().root+ assert ltx_refine_md["ltx2_noise_scale"] == 0.5+ assert issubclass(LTX2DenoiseOutput, MetadataOutput)++ # MiniMax H3: includes fixed 24 fps, int num_frames, and hybrid vs non-hybrid model swap+ h3_fl2va = _make_model_id(key="h3-fl2va-base", base=BaseModelType.MiniMaxH3)+ h3_ref2va = _make_model_id(key="h3-ref2va-main", base=BaseModelType.MiniMaxH3)+ h3_hybrid_node = MiniMaxH3DenoiseInvocation.model_construct(+ transformer=MiniMaxH3TransformerField(+ transformer=h3_fl2va,+ loras=[LoRAField(lora=lora_shared, weight=0.75)],+ adaln_overlay=MiniMaxH3AdaLNOverlayField(+ overlay=h3_ref2va,+ start_block=20,+ end_block=30,+ include_final_layer=True,+ ),+ ),+ width=1344,+ height=768,+ num_frames="124",+ steps=50,+ seed=444,+ metadata=None,+ )+ h3_hybrid_md = h3_hybrid_node._build_metadata().root+ assert h3_hybrid_md["width"] == 1344+ assert h3_hybrid_md["height"] == 768+ assert h3_hybrid_md["num_frames"] == 124+ assert h3_hybrid_md["fps"] == 24+ assert h3_hybrid_md["model"] == h3_ref2va+ assert h3_hybrid_md["minimax_h3_hybrid_base_model"] == h3_fl2va+ assert h3_hybrid_md["minimax_h3_hybrid_start_block"] == 20+ assert len(h3_hybrid_md["loras"]) == 1+ assert issubclass(MiniMaxH3DenoiseOutput, MetadataOutput)++ h3_plain_node = MiniMaxH3DenoiseInvocation.model_construct(+ transformer=MiniMaxH3TransformerField(+ transformer=h3_fl2va,+ loras=[LoRAField(lora=lora_shared, weight=0.75)],+ adaln_overlay=None,+ ),+ width=1344,+ height=768,+ num_frames="124",+ steps=50,+ seed=444,+ metadata=None,+ )+ h3_plain_md = h3_plain_node._build_metadata().root+ assert h3_plain_md["model"] == h3_fl2va+ assert "minimax_h3_hybrid_base_model" not in h3_plain_md+++ ("wrapper_cls", "parent_cls"),+ [+ (DenoiseLatentsMetaInvocation, DenoiseLatentsInvocation),+ (FluxDenoiseLatentsMetaInvocation, FluxDenoiseInvocation),+ (ZImageDenoiseMetaInvocation, ZImageDenoiseInvocation),+ (AnimaDenoiseMetaInvocation, AnimaDenoiseInvocation),+ ],+)+def test_deprecated_meta_wrappers_delegate_to_parent(+ wrapper_cls: type[BaseInvocation],+ parent_cls: type[BaseInvocation],+) -> None:+ assert wrapper_cls.UIConfig.classification == Classification.Deprecated+ assert issubclass(wrapper_cls, parent_cls)++ parent_metadata = MetadataField.model_validate({"steps": 12, "seed": 999, "app_version": __version__})+ parent_output = LatentsMetaOutput(+ latents=LatentsField(latents_name="latents-1", seed=999),+ width=512,+ height=512,+ metadata=parent_metadata,+ )+ node = wrapper_cls.model_construct(vae=None, qwen3_encoder=None, metadata=None)+ with patch.object(parent_cls, "invoke", return_value=parent_output) as mock_super:+ result = node.invoke(SimpleNamespace())+ mock_super.assert_called_once()++ assert isinstance(result, LatentsMetaOutput)+ assert result.metadata.root["steps"] == 12+ assert result.metadata.root["seed"] == 999+++def test_anima_denoise_meta_merges_optional_vae_and_encoder() -> None:+ vae_id = _make_model_id(key="anima-vae", base=BaseModelType.Anima, model_type=ModelType.VAE)+ enc_id = _make_model_id(+ key="anima-qwen3",+ base=BaseModelType.Any,+ model_type=ModelType.Qwen3Encoder,+ submodel_type=SubModelType.TextEncoder,+ )+ tok_id = _make_model_id(+ key="anima-qwen3-tok",+ base=BaseModelType.Any,+ model_type=ModelType.Qwen3Encoder,+ submodel_type=SubModelType.Tokenizer,+ )+ parent_output = LatentsOutput(+ latents=LatentsField(latents_name="anima-lat", seed=None),+ width=1024,+ height=1024,+ )+ node = AnimaDenoiseMetaInvocation.model_construct(+ latents=None,+ noise=None,+ denoise_mask=None,+ add_noise=True,+ denoising_start=0.0,+ denoising_end=1.0,+ width=1024,+ height=1024,+ steps=25,+ guidance_scale=4.5,+ scheduler="euler",+ transformer=SimpleNamespace(transformer="anima-tf", loras=[]),+ control_lllite=None,+ metadata=MetadataField.model_validate({"positive_prompt": "anime hero"}),+ seed=555,+ vae=VAEField(vae=vae_id),+ qwen3_encoder=Qwen3EncoderField(tokenizer=tok_id, text_encoder=enc_id, loras=[]),+ )+ with patch.object(AnimaDenoiseInvocation, "invoke", return_value=parent_output):+ result = node.invoke(SimpleNamespace())++ assert result.metadata.root["positive_prompt"] == "anime hero"+ assert result.metadata.root["vae"] == vae_id+ assert result.metadata.root["qwen3_encoder"] == enc_id+ assert result.metadata.root["seed"] == 555+++def test_denoise_invoke_preserves_width_height_for_5d_and_16x_latents() -> None:+ import torch++ tf_id = _make_model_id(key="tf-1")+ ctx = SimpleNamespace(tensors=SimpleNamespace(save=lambda tensor: "saved-latents"))++ # 1. QwenImageDenoiseInvocation returns 5D latents (B, C, 1, H // 8, W // 8)+ qwen_node = QwenImageDenoiseInvocation.model_construct(+ transformer=TransformerField(transformer=tf_id, loras=[]),+ cfg_scale=4.0,+ width=1360,+ height=768,+ steps=20,+ denoising_start=0.0,+ denoising_end=1.0,+ seed=88,+ shift=None,+ vae=None,+ control=None,+ metadata=None,+ )+ with patch.object(QwenImageDenoiseInvocation, "_run_diffusion", return_value=torch.zeros(1, 16, 1, 96, 170)):+ qwen_out = qwen_node.invoke(ctx)+ assert qwen_out.width == 1360+ assert qwen_out.height == 768+ assert qwen_out.metadata.root["width"] == 1360+ assert qwen_out.metadata.root["height"] == 768++ # 2. Krea2DenoiseInvocation returns 5D latents (B, C, 1, H // 8, W // 8)+ krea_node = Krea2DenoiseInvocation.model_construct(+ transformer=TransformerField(transformer=tf_id, loras=[]),+ cfg_scale=1.0,+ width=1280,+ height=720,+ steps=8,+ denoising_start=0.0,+ denoising_end=1.0,+ seed=77,+ shift=None,+ style_reference=None,+ metadata=None,+ )+ with patch.object(Krea2DenoiseInvocation, "_run_diffusion", return_value=torch.zeros(1, 16, 1, 90, 160)):+ krea_out = krea_node.invoke(ctx)+ assert krea_out.width == 1280+ assert krea_out.height == 720+ assert krea_out.metadata.root["width"] == 1280+ assert krea_out.metadata.root["height"] == 720++ # 3. WanDenoiseInvocation with TI2V-5B 16x spatial compression (1, 48, H // 16, W // 16)+ wan_node = WanDenoiseInvocation.model_construct(+ transformer=WanTransformerField(transformer=tf_id, transformer_low_noise=None, loras=[], loras_low_noise=[]),+ guidance_scale=4.0,+ guidance_scale_low_noise=0.0,+ denoising_start=0.0,+ denoising_end=1.0,+ add_noise=True,+ width=1280,+ height=704,+ steps=40,+ seed=111,+ metadata=None,+ )+ with patch.object(WanDenoiseInvocation, "_run_diffusion", return_value=torch.zeros(1, 48, 44, 80)):+ wan_out = wan_node.invoke(ctx)+ assert wan_out.width == 1280+ assert wan_out.height == 704+ assert wan_out.metadata.root["width"] == 1280+ assert wan_out.metadata.root["height"] == 704++ # 4. LatentsMetaOutput.build fallback without explicit width/height uses shape[-1] and shape[-2]+ fallback_out = LatentsMetaOutput.build(+ latents_name="lat-5d",+ latents=torch.zeros(1, 16, 1, 96, 170),+ )+ assert fallback_out.width == 1360+ assert fallback_out.height == 768+++def test_core_labels_order_and_alignment_with_typed_literals() -> None:+ from typing import get_args++ all_labels = get_args(CORE_LABELS)+ typed_literals = (+ CORE_LABELS_STRING,+ CORE_LABELS_INTEGER,+ CORE_LABELS_FLOAT,+ CORE_LABELS_BOOL,+ CORE_LABELS_SCHEDULER,+ CORE_LABELS_MODEL,+ CORE_LABELS_VAE,+ )+ assert all_labels[0] == CUSTOM_LABEL+ typed_union: set[str] = set()+ for lit in typed_literals:+ args = get_args(lit)+ assert args[0] == CUSTOM_LABEL+ typed_union.update(args)++ # Every label in CORE_LABELS must be backed by at least one typed CORE_LABELS_* literal, and vice versa+ assert set(all_labels) == typed_union+++def test_metadata_invocation_stamps_metadata_version() -> None:+ node = MetadataInvocation(items=MetadataItemField(label="positive_prompt", value="a castle"))+ out = node.invoke(SimpleNamespace())+ assert out.metadata.root["positive_prompt"] == "a castle"+ assert out.metadata.root["app_version"] == __version__+ assert out.metadata.root["metadata_version"] == CORE_METADATA_VERSION+++def test_generation_mode_inference_and_upstream_preservation() -> None:+ tf_id = _make_model_id(key="tf-1")+ tf_field = TransformerField(transformer=tf_id, loras=[])+ lat = LatentsField(latents_name="lat-1")+ mask = DenoiseMaskField(mask_name="mask-1")++ # 1. SD1/SD2 vs SDXL on DenoiseLatentsInvocation and TiledMultiDiffusionDenoiseLatents+ sd1_unet = UNetField(+ unet=_make_model_id(key="sd1", base=BaseModelType.StableDiffusion1, submodel_type=SubModelType.UNet),+ scheduler=_make_model_id(+ key="sd1-s", base=BaseModelType.StableDiffusion1, submodel_type=SubModelType.Scheduler+ ),+ loras=[],+ )+ sdxl_unet = UNetField(+ unet=_make_model_id(key="sdxl", base=BaseModelType.StableDiffusionXL, submodel_type=SubModelType.UNet),+ scheduler=_make_model_id(+ key="sdxl-s", base=BaseModelType.StableDiffusionXL, submodel_type=SubModelType.Scheduler+ ),+ loras=[],+ )+ sd_node = DenoiseLatentsInvocation.model_construct(+ unet=sd1_unet,+ latents=None,+ denoise_mask=None,+ noise=None,+ cfg_scale=7.5,+ steps=20,+ scheduler="euler",+ denoising_start=0.0,+ denoising_end=1.0,+ cfg_rescale_multiplier=0.0,+ control=None,+ ip_adapter=None,+ t2i_adapter=None,+ hidiffusion=False,+ hidiffusion_raunet=True,+ hidiffusion_window_attn=True,+ hidiffusion_t1_ratio=0.4,+ hidiffusion_t2_ratio=0.8,+ metadata=None,+ )+ assert sd_node._build_metadata(512, 512).root["generation_mode"] == "txt2img"+ assert sd_node.model_copy(update={"latents": lat})._build_metadata(512, 512).root["generation_mode"] == "img2img"+ assert (+ sd_node.model_copy(update={"latents": lat, "denoise_mask": mask})+ ._build_metadata(512, 512)+ .root["generation_mode"]+ == "inpaint"+ )+ assert (+ sd_node.model_copy(update={"unet": sdxl_unet})._build_metadata(1024, 1024).root["generation_mode"]+ == "sdxl_txt2img"+ )+ assert (+ sd_node.model_copy(update={"unet": sdxl_unet, "latents": lat})+ ._build_metadata(1024, 1024)+ .root["generation_mode"]+ == "sdxl_img2img"+ )+ assert (+ sd_node.model_copy(update={"unet": sdxl_unet, "latents": lat, "denoise_mask": mask})+ ._build_metadata(1024, 1024)+ .root["generation_mode"]+ == "sdxl_inpaint"+ )++ tiled_node = TiledMultiDiffusionDenoiseLatents.model_construct(+ unet=sdxl_unet,+ latents=lat,+ noise=None,+ cfg_scale=7.0,+ steps=20,+ scheduler="euler",+ denoising_start=0.2,+ denoising_end=1.0,+ cfg_rescale_multiplier=0.0,+ tile_width=1024,+ tile_height=1024,+ tile_overlap=128,+ control=None,+ metadata=None,+ )+ assert tiled_node._build_metadata(2048, 2048).root["generation_mode"] == "sdxl_img2img"++ # 2. Upstream generation_mode (e.g. outpaint) is preserved when already set+ upstream_outpaint = MetadataField.model_validate({"generation_mode": "flux_outpaint"})+ flux_node = FluxDenoiseInvocation.model_construct(+ latents=lat,+ denoise_mask=mask,+ noise=None,+ add_noise=True,+ denoising_start=0.0,+ denoising_end=1.0,+ width=1024,+ height=1024,+ num_steps=20,+ scheduler="euler",+ guidance=4.0,+ cfg_scale=1.0,+ cfg_scale_start_step=0,+ cfg_scale_end_step=-1,+ transformer=tf_field,+ control_lora=None,+ control=None,+ controlnet_vae=None,+ ip_adapter=None,+ seed=1,+ dype_preset="off",+ dype_scale=None,+ dype_exponent=None,+ metadata=None,+ )+ assert flux_node._build_metadata().root["generation_mode"] == "flux_inpaint"+ assert (+ flux_node.model_copy(update={"metadata": upstream_outpaint})._build_metadata().root["generation_mode"]+ == "flux_outpaint"+ )++ # 3. Video & specialized generation_mode inference (Wan Video, LTX-2, MiniMax H3)+ wan_tf = WanTransformerField(transformer=tf_id, transformer_low_noise=None, loras=[], loras_low_noise=[])+ wan_vid = WanVideoDenoiseInvocation.model_construct(+ transformer=wan_tf,+ ref_image=None,+ guidance_scale=5.0,+ guidance_scale_low_noise=0.0,+ width=832,+ height=480,+ num_frames=81,+ steps=40,+ seed=1,+ metadata=None,+ )+ assert wan_vid._build_metadata().root["generation_mode"] == "wan_t2v"+ assert (+ wan_vid.model_copy(update={"ref_image": SimpleNamespace()})._build_metadata().root["generation_mode"]+ == "wan_i2v"+ )++ ltx_node = LTX2DenoiseInvocation.model_construct(+ transformer=LTX2TransformerField(transformer=tf_id, loras=[]),+ width=1248,+ height=704,+ num_frames=121,+ fps=24.0,+ steps=30,+ cfg_scale=3.0,+ audio_cfg_scale=7.0,+ stg_scale=1.0,+ modality_scale=3.0,+ guidance_rescale=0.7,+ schedule="dev",+ seed=1,+ latents=None,+ noise_scale=0.5,+ video_conditioning=None,+ keyframe_conditioning=None,+ audio_conditioning=None,+ full_video_conditioning=None,+ metadata=None,+ )+ assert ltx_node._build_metadata().root["generation_mode"] == "ltx2_t2v"+ assert (+ ltx_node.model_copy(update={"video_conditioning": SimpleNamespace()})._build_metadata().root["generation_mode"]+ == "ltx2_i2v"+ )+ assert (+ ltx_node.model_copy(update={"keyframe_conditioning": SimpleNamespace()})+ ._build_metadata()+ .root["generation_mode"]+ == "ltx2_lf2v"+ )+ assert (+ ltx_node.model_copy(+ update={"video_conditioning": SimpleNamespace(), "keyframe_conditioning": SimpleNamespace()}+ )+ ._build_metadata()+ .root["generation_mode"]+ == "ltx2_flf2v"+ )+ assert (+ ltx_node.model_copy(update={"audio_conditioning": SimpleNamespace()})._build_metadata().root["generation_mode"]+ == "ltx2_a2v"+ )+ assert (+ ltx_node.model_copy(update={"full_video_conditioning": SimpleNamespace()})+ ._build_metadata()+ .root["generation_mode"]+ == "ltx2_v2a"+ )++ h3_node = MiniMaxH3DenoiseInvocation.model_construct(+ transformer=MiniMaxH3TransformerField(transformer=tf_id, loras=[], adaln_overlay=None),+ width=1344,+ height=768,+ num_frames="124",+ steps=50,+ seed=1,+ frame_conditioning=None,+ reference_conditioning=None,+ metadata=None,+ )+ assert h3_node._build_metadata().root["generation_mode"] == "minimax_h3_t2v"+ assert (+ h3_node.model_copy(update={"frame_conditioning": SimpleNamespace()})._build_metadata().root["generation_mode"]+ == "minimax_h3_i2v"+ )+ assert (+ h3_node.model_copy(update={"reference_conditioning": SimpleNamespace()})+ ._build_metadata()+ .root["generation_mode"]+ == "minimax_h3_ref2v"+ )+ assert (+ h3_node.model_copy(update={"num_frames": "5"})._build_metadata().root["generation_mode"] == "minimax_h3_txt2img"+ )+++def test_ref_images_serialization_and_metadata_to_adapters_multi_format() -> None:+ ipa_model = _make_model_id(+ key="ipa-key-1", name="ipa-sdxl", base=BaseModelType.StableDiffusionXL, model_type=ModelType.IPAdapter+ )+ enc_model = _make_model_id(+ key="enc-key-1",+ name="clip-vit-large-patch14",+ base=BaseModelType.Any,+ model_type=ModelType.CLIPVision,+ )+ ctrl_model = _make_model_id(+ key="ctrl-key-1",+ name="cn-canny",+ base=BaseModelType.StableDiffusion1,+ model_type=ModelType.ControlNet,+ )+ t2i_model = _make_model_id(+ key="t2i-key-1",+ name="t2i-canny",+ base=BaseModelType.StableDiffusion1,+ model_type=ModelType.T2IAdapter,+ )+ ipa_field = IPAdapterField(+ image=ImageField(image_name="ref-1.png"),+ ip_adapter_model=ipa_model,+ image_encoder_model=enc_model,+ weight=0.75,+ method="style_precise",+ begin_step_percent=0.1,+ end_step_percent=0.9,+ )++ from pydantic import ConfigDict++ from invokeai.backend.model_manager.configs.ip_adapter import IPAdapter_Checkpoint_Config_Base++ class _MockIPAConfig(IPAdapter_Checkpoint_Config_Base):+ model_config = ConfigDict(extra="allow")++ mock_ctx = SimpleNamespace(+ images=SimpleNamespace(get_dto=lambda name: SimpleNamespace(width=640, height=480)),+ models=SimpleNamespace(+ exists=lambda key: key in {"ipa-key-1", "enc-key-1", "ctrl-key-1", "t2i-key-1"},+ get_config=lambda key: {+ "ipa-key-1": _MockIPAConfig.model_validate(+ {+ "key": "ipa-key-1",+ "hash": ipa_model.hash,+ "name": ipa_model.name,+ "base": ipa_model.base,+ "type": ModelType.IPAdapter,+ }+ ),+ "ctrl-key-1": SimpleNamespace(+ key="ctrl-key-1",+ hash=ctrl_model.hash,+ name=ctrl_model.name,+ base=ctrl_model.base,+ type=ModelType.ControlNet,+ ),+ "t2i-key-1": SimpleNamespace(+ key="t2i-key-1",+ hash=t2i_model.hash,+ name=t2i_model.name,+ base=t2i_model.base,+ type=ModelType.T2IAdapter,+ ),+ }[key],+ search_by_attrs=lambda **kwargs: [+ SimpleNamespace(+ key="enc-key-1",+ hash=enc_model.hash,+ name=kwargs.get("name", enc_model.name),+ base=BaseModelType.Any,+ type=ModelType.CLIPVision,+ )+ ],+ ),+ )++ refs = serialize_ip_adapter_ref_images(ipa_field, context=mock_ctx, default_width=1024, default_height=1024)+ assert len(refs) == 1+ assert refs[0]["id"] == "ip_adapter_1"+ assert refs[0]["isEnabled"] is True+ cfg = refs[0]["config"]+ assert cfg["type"] == "ip_adapter"+ assert cfg["image"]["original"]["image"] == {"image_name": "ref-1.png", "width": 640, "height": 480}+ assert cfg["model"]["key"] == "ipa-key-1"+ assert cfg["model"]["type"] == "ip_adapter"+ assert cfg["clipVisionModel"] == "ViT-L"+ assert cfg["method"] == "style_precise"+ assert cfg["weight"] == 0.75+ assert cfg["beginEndStepPct"] == [0.1, 0.9]++ # Authoritative replace: executing denoise ref_images replaces upstream ref_images+ flux_ref = {+ "id": "kontext_1",+ "isEnabled": True,+ "config": {+ "type": "flux_kontext",+ "image": {"original": {"image": {"image_name": "kontext.png", "width": 1024, "height": 1024}}},+ "model": {"key": "flux-kontext", "type": "main"},+ },+ }+ existing_md = MetadataField.model_validate({"ref_images": [flux_ref, refs[0]]})+ merged_md = build_denoise_metadata(existing_md, {"ref_images": refs})+ assert len(merged_md.root["ref_images"]) == 1+ assert merged_md.root["ref_images"] == refs++ # MetadataToIPAdaptersInvocation: Format 1 (v7 ref_images)+ md_to_ipa_v7 = MetadataToIPAdaptersInvocation.model_construct(+ metadata=MetadataField.model_validate({"ref_images": refs}),+ ip_adapter_list=None,+ )+ out_v7 = md_to_ipa_v7.invoke(mock_ctx)+ assert isinstance(out_v7.ip_adapter_list, list)+ assert len(out_v7.ip_adapter_list) == 1+ assert out_v7.ip_adapter_list[0].image.image_name == "ref-1.png"+ assert out_v7.ip_adapter_list[0].weight == 0.75+ assert out_v7.ip_adapter_list[0].method == "style_precise"+ assert out_v7.ip_adapter_list[0].begin_step_percent == 0.1+ assert out_v7.ip_adapter_list[0].end_step_percent == 0.9++ # MetadataToIPAdaptersInvocation: Format 2 (v5 canvas_v2_metadata.referenceImages.entities)+ v5_md = MetadataField.model_validate(+ {+ "canvas_v2_metadata": {+ "referenceImages": {+ "entities": [+ {+ "id": "ref-v5",+ "isEnabled": True,+ "ipAdapter": {+ "image": {"original": {"image": {"image_name": "v5-ref.png"}}},+ "model": {"key": "ipa-key-1"},+ "clipVisionModel": "ViT-L",+ "method": "composition",+ "weight": 0.6,+ "beginEndStepPct": [0.2, 0.8],+ },+ }+ ]+ }+ }+ }+ )+ out_v5 = MetadataToIPAdaptersInvocation.model_construct(metadata=v5_md, ip_adapter_list=None).invoke(mock_ctx)+ assert len(out_v5.ip_adapter_list) == 1+ assert out_v5.ip_adapter_list[0].image.image_name == "v5-ref.png"+ assert out_v5.ip_adapter_list[0].method == "composition"+ assert out_v5.ip_adapter_list[0].weight == 0.6++ # MetadataToIPAdaptersInvocation: Format 2b (v5 canvas_v2_metadata.referenceImages as direct list)+ v5_list_md = MetadataField.model_validate(+ {+ "canvas_v2_metadata": {+ "referenceImages": [+ {+ "id": "ref-v5-list",+ "isEnabled": True,+ "ipAdapter": {+ "image": {"original": {"image": {"image_name": "v5-list-ref.png"}}},+ "model": {"key": "ipa-key-1"},+ "clipVisionModel": "ViT-L",+ "method": "style",+ "weight": 0.45,+ "beginEndStepPct": [0.1, 0.9],+ },+ }+ ]+ }+ }+ )+ out_v5_list = MetadataToIPAdaptersInvocation.model_construct(metadata=v5_list_md, ip_adapter_list=None).invoke(+ mock_ctx+ )+ assert len(out_v5_list.ip_adapter_list) == 1+ assert out_v5_list.ip_adapter_list[0].image.image_name == "v5-list-ref.png"+ assert out_v5_list.ip_adapter_list[0].method == "style"+ assert out_v5_list.ip_adapter_list[0].weight == 0.45++ # MetadataToControlnetsInvocation & MetadataToT2IAdaptersInvocation: safe defaults, control_layers & v5 fallback+ cn_md = MetadataField.model_validate(+ {+ "controlnets": [+ {"control_model": {"key": "ctrl-key-1"}, "weight": 0.8}, # skipped (no image)+ {"image_name": "z-ctrl.png", "control_model": {"key": "ctrl-key-1"}, "weight": 0.55},+ ]+ }+ )+ out_cn = MetadataToControlnetsInvocation.model_construct(metadata=cn_md, control_list=None).invoke(mock_ctx)+ assert len(out_cn.control_list) == 1+ assert out_cn.control_list[0].image.image_name == "z-ctrl.png"+ assert out_cn.control_list[0].control_weight == 0.55+ assert out_cn.control_list[0].control_mode == "balanced"+ assert out_cn.control_list[0].resize_mode == "just_resize"++ # control_layers fallback for both controlnet and t2i_adapter (PR #10127 compatibility)+ control_layers_md = MetadataField.model_validate(+ {+ "control_layers": [+ {+ "type": "controlnet",+ "processed_image": {"image_name": "cl-cn-proc.png"},+ "control_model": {"key": "ctrl-key-1"},+ "weight": 0.65,+ "begin_step_percent": 0.05,+ "end_step_percent": 0.95,+ "control_mode": "more_prompt",+ "resize_mode": "crop_resize",+ },+ {+ "type": "t2i_adapter",+ "image": {"image_name": "cl-t2i.png"},+ "t2i_adapter_model": {"key": "t2i-key-1"},+ "weight": 0.7,+ "begin_step_percent": 0.1,+ "end_step_percent": 0.8,+ "resize_mode": "fill_resize",+ },+ ]+ }+ )+ out_cl_cn = MetadataToControlnetsInvocation.model_construct(metadata=control_layers_md, control_list=None).invoke(+ mock_ctx+ )+ assert len(out_cl_cn.control_list) == 1+ assert out_cl_cn.control_list[0].image.image_name == "cl-cn-proc.png"+ assert out_cl_cn.control_list[0].control_weight == 0.65+ assert out_cl_cn.control_list[0].begin_step_percent == 0.05+ assert out_cl_cn.control_list[0].end_step_percent == 0.95+ assert out_cl_cn.control_list[0].control_mode == "more_prompt"+ assert out_cl_cn.control_list[0].resize_mode == "crop_resize"++ out_cl_t2i = MetadataToT2IAdaptersInvocation.model_construct(+ metadata=control_layers_md, t2i_adapter_list=None+ ).invoke(mock_ctx)+ assert len(out_cl_t2i.t2i_adapter_list) == 1+ assert out_cl_t2i.t2i_adapter_list[0].image.image_name == "cl-t2i.png"+ assert out_cl_t2i.t2i_adapter_list[0].weight == 0.7+ assert out_cl_t2i.t2i_adapter_list[0].begin_step_percent == 0.1+ assert out_cl_t2i.t2i_adapter_list[0].end_step_percent == 0.8+ assert out_cl_t2i.t2i_adapter_list[0].resize_mode == "fill_resize"++ t2i_v5_md = MetadataField.model_validate(+ {+ "canvas_v2_metadata": {+ "controlLayers": {+ "entities": [+ {+ "id": "cl-1",+ "isEnabled": True,+ "controlAdapter": {+ "type": "t2i_adapter",+ "model": {"key": "t2i-key-1"},+ "weight": 0.85,+ "beginEndStepPct": [0.0, 0.75],+ },+ "objects": [{"type": "image", "image": {"image_name": "t2i-v5.png"}}],+ }+ ]+ }+ }+ }+ )+ out_t2i = MetadataToT2IAdaptersInvocation.model_construct(metadata=t2i_v5_md, t2i_adapter_list=None).invoke(+ mock_ctx+ )+ assert len(out_t2i.t2i_adapter_list) == 1+ assert out_t2i.t2i_adapter_list[0].image.image_name == "t2i-v5.png"+ assert out_t2i.t2i_adapter_list[0].weight == 0.85+ assert out_t2i.t2i_adapter_list[0].end_step_percent == 0.75++ # Missing/uninstalled models and non-SD models (e.g. FLUX ControlNet / FLUX IP-Adapter) are safely skipped+ flux_ipa_model = _make_model_id(+ key="flux-ipa-1", name="flux-ipa", base=BaseModelType.Flux, model_type=ModelType.IPAdapter+ )+ flux_ctrl_model = _make_model_id(+ key="flux-ctrl-1", name="flux-cn", base=BaseModelType.Flux, model_type=ModelType.ControlNet+ )+ flux_t2i_model = _make_model_id(+ key="flux-t2i-1", name="flux-t2i", base=BaseModelType.Flux, model_type=ModelType.T2IAdapter+ )+ mixed_ctx = SimpleNamespace(+ images=mock_ctx.images,+ models=SimpleNamespace(+ exists=lambda key: key+ in {"ipa-key-1", "enc-key-1", "ctrl-key-1", "t2i-key-1", "flux-ipa-1", "flux-ctrl-1", "flux-t2i-1"},+ get_config=lambda key: {+ "ipa-key-1": mock_ctx.models.get_config("ipa-key-1"),+ "ctrl-key-1": mock_ctx.models.get_config("ctrl-key-1"),+ "t2i-key-1": mock_ctx.models.get_config("t2i-key-1"),+ "flux-ipa-1": _MockIPAConfig.model_validate(+ {+ "key": "flux-ipa-1",+ "hash": flux_ipa_model.hash,+ "name": flux_ipa_model.name,+ "base": BaseModelType.Flux,+ "type": ModelType.IPAdapter,+ }+ ),+ "flux-ctrl-1": SimpleNamespace(+ key="flux-ctrl-1",+ hash=flux_ctrl_model.hash,+ name=flux_ctrl_model.name,+ base=BaseModelType.Flux,+ type=ModelType.ControlNet,+ ),+ "flux-t2i-1": SimpleNamespace(+ key="flux-t2i-1",+ hash=flux_t2i_model.hash,+ name=flux_t2i_model.name,+ base=BaseModelType.Flux,+ type=ModelType.T2IAdapter,+ ),+ }[key],+ search_by_attrs=lambda **kwargs: (+ mock_ctx.models.search_by_attrs(**kwargs) if kwargs.get("type") == ModelType.CLIPVision else []+ ),+ ),+ )++ mixed_cn_md = MetadataField.model_validate(+ {+ "controlnets": [+ {"image": {"image_name": "missing.png"}, "control_model": {"key": "uninstalled-ctrl"}},+ {"image": {"image_name": "flux-cn.png"}, "control_model": {"key": "flux-ctrl-1"}},+ {"image": {"image_name": "sd-cn.png"}, "control_model": {"key": "ctrl-key-1"}},+ ]+ }+ )+ out_mixed_cn = MetadataToControlnetsInvocation.model_construct(metadata=mixed_cn_md, control_list=None).invoke(+ mixed_ctx+ )+ assert len(out_mixed_cn.control_list) == 1+ assert out_mixed_cn.control_list[0].image.image_name == "sd-cn.png"++ mixed_ipa_md = MetadataField.model_validate(+ {+ "ipAdapters": [+ {"image": {"image_name": "missing-ipa.png"}, "ip_adapter_model": {"key": "uninstalled-ipa"}},+ {"image": {"image_name": "flux-ipa.png"}, "ip_adapter_model": {"key": "flux-ipa-1"}},+ {"image": {"image_name": "sdxl-ipa.png"}, "ip_adapter_model": {"key": "ipa-key-1"}},+ ]+ }+ )+ out_mixed_ipa = MetadataToIPAdaptersInvocation.model_construct(metadata=mixed_ipa_md, ip_adapter_list=None).invoke(+ mixed_ctx+ )+ assert len(out_mixed_ipa.ip_adapter_list) == 1+ assert out_mixed_ipa.ip_adapter_list[0].image.image_name == "sdxl-ipa.png"++ mixed_t2i_md = MetadataField.model_validate(+ {+ "t2iAdapters": [+ {"image": {"image_name": "missing-t2i.png"}, "t2i_adapter_model": {"key": "uninstalled-t2i"}},+ {"image": {"image_name": "flux-t2i.png"}, "t2i_adapter_model": {"key": "flux-t2i-1"}},+ {"image": {"image_name": "sd-t2i.png"}, "t2i_adapter_model": {"key": "t2i-key-1"}},+ ]+ }+ )+ out_mixed_t2i = MetadataToT2IAdaptersInvocation.model_construct(+ metadata=mixed_t2i_md, t2i_adapter_list=None+ ).invoke(mixed_ctx)+ assert len(out_mixed_t2i.t2i_adapter_list) == 1+ assert out_mixed_t2i.t2i_adapter_list[0].image.image_name == "sd-t2i.png"+++def test_metadata_item_linked_unwraps_submodel_fields_and_does_not_mutate_input() -> None:+ from invokeai.app.invocations.metadata import MetadataItemInvocation, unwrap_metadata_value+ from invokeai.app.invocations.metadata_linked import MetadataItemLinkedInvocation+ from invokeai.app.invocations.model import CLIPField, Qwen3VLEncoderField++ ctx = SimpleNamespace()+ tok_id = _make_model_id(+ key="qwen3-vl-tok",+ name="Qwen3-VL-Tokenizer",+ base=BaseModelType.Any,+ model_type=ModelType.Qwen3Encoder,+ submodel_type=SubModelType.Tokenizer,+ )+ enc_id = _make_model_id(+ key="qwen3-vl-key",+ name="Qwen3-VL-4B",+ base=BaseModelType.Any,+ model_type=ModelType.Qwen3Encoder,+ submodel_type=SubModelType.TextEncoder,+ )+ vae_id = _make_model_id(+ key="vae-key",+ name="FLUX.2-VAE",+ base=BaseModelType.Flux2,+ model_type=ModelType.VAE,+ submodel_type=SubModelType.VAE,+ )+ clip_id = _make_model_id(+ key="clip-key",+ name="CLIP-L",+ base=BaseModelType.Any,+ model_type=ModelType.CLIPEmbed,+ submodel_type=SubModelType.TextEncoder,+ )++ # 1. Qwen3VLEncoderField instance & deserialized dict+ qwen_field = Qwen3VLEncoderField(tokenizer=tok_id, text_encoder=enc_id, loras=[])+ qwen_dict = qwen_field.model_dump()++ upstream = MetadataField.model_validate({"positive_prompt": "astronaut"})+ node_from_dict = MetadataItemLinkedInvocation.model_validate(+ {+ "id": "meta-qwen-dict",+ "type": "metadata_item_linked",+ "metadata": upstream.model_dump(),+ "label": "qwen3_vl_encoder",+ "value": qwen_dict,+ }+ )+ out_from_dict = node_from_dict.invoke(ctx)+ assert out_from_dict.metadata.root["qwen3_vl_encoder"]["key"] == "qwen3-vl-key"+ assert "tokenizer" not in out_from_dict.metadata.root["qwen3_vl_encoder"]++ # Input MetadataField.root must not be mutated in place+ original_root = {"positive_prompt": "astronaut"}+ in_meta = MetadataField.model_validate(dict(original_root))+ node_from_instance = MetadataItemLinkedInvocation.model_construct(+ metadata=in_meta,+ label="qwen3_vl_encoder",+ custom_label=None,+ value=qwen_field,+ )+ out_from_instance = node_from_instance.invoke(ctx)+ assert in_meta.root == original_root+ assert "qwen3_vl_encoder" not in in_meta.root+ assert out_from_instance.metadata.root["qwen3_vl_encoder"] == enc_id++ # 2. VAEField instance & deserialized dict+ vae_field = VAEField(vae=vae_id)+ vae_dict = vae_field.model_dump()+ out_vae_dict = MetadataItemLinkedInvocation.model_validate(+ {+ "id": "meta-vae-dict",+ "type": "metadata_item_linked",+ "label": "vae",+ "value": vae_dict,+ }+ ).invoke(ctx)+ assert out_vae_dict.metadata.root["vae"]["key"] == "vae-key"+ assert "seamless_axes" not in out_vae_dict.metadata.root["vae"]++ out_vae_inst = MetadataItemLinkedInvocation.model_construct(+ metadata=None,+ label="vae",+ custom_label=None,+ value=vae_field,+ ).invoke(ctx)+ assert out_vae_inst.metadata.root["vae"] == vae_id++ # 3. CLIPField deserialized dict & MetadataItemInvocation unwrapping+ clip_field = CLIPField(tokenizer=tok_id, text_encoder=clip_id, loras=[], skipped_layers=0)+ clip_dict = clip_field.model_dump()+ out_clip_dict = MetadataItemLinkedInvocation.model_validate(+ {+ "id": "meta-clip-dict",+ "type": "metadata_item_linked",+ "label": "clip_embed_model",+ "value": clip_dict,+ }+ ).invoke(ctx)+ assert out_clip_dict.metadata.root["clip_embed_model"]["key"] == "clip-key"+ assert "tokenizer" not in out_clip_dict.metadata.root["clip_embed_model"]++ item_out = MetadataItemInvocation(label="qwen3_vl_encoder", value=qwen_dict).invoke(ctx)+ assert item_out.item.value["key"] == "qwen3-vl-key"+ assert unwrap_metadata_value({"image_name": "img.png"}) == {"image_name": "img.png"}++ # 4. Optional upstream output port resolving to None (e.g. anima_model_loader.qwen3_5_encoder on Anima 2B)+ none_node = MetadataItemLinkedInvocation.model_validate(+ {+ "id": "meta-optional-none",+ "type": "metadata_item_linked",+ "metadata": {"positive_prompt": "astronaut", "qwen3_encoder": enc_id.model_dump()},+ "label": "qwen3_5_encoder",+ "value": None,+ }+ )+ none_node._validate_invoke_fields()+ none_out = none_node.invoke(ctx)+ assert none_out.metadata.root["positive_prompt"] == "astronaut"+ assert none_out.metadata.root["qwen3_encoder"]["key"] == "qwen3-vl-key"+ assert "qwen3_5_encoder" not in none_out.metadata.root+++def test_ip_adapter_weight_schedules_and_mask_roundtrip() -> None:+ """Task 1 & 2: IP-Adapter list weights [0.8, 0.4, 0.2] and mask=ImageField round-trip."""+ ipa_model = _make_model_id(key="ipa-sdxl-1", base=BaseModelType.StableDiffusionXL, model_type=ModelType.IPAdapter)+ enc_model = _make_model_id(key="enc-sdxl-1", base=BaseModelType.StableDiffusionXL, model_type=ModelType.CLIPVision)++ from pydantic import ConfigDict++ from invokeai.backend.model_manager.configs.ip_adapter import IPAdapter_Checkpoint_Config_Base++ class _MockIPAConfig(IPAdapter_Checkpoint_Config_Base):+ model_config = ConfigDict(extra="allow")++ def _get_config(key: str):+ if key == "ipa-sdxl-1":+ return _MockIPAConfig.model_validate(+ {+ "key": ipa_model.key,+ "hash": ipa_model.hash,+ "name": ipa_model.name,+ "base": ipa_model.base,+ "type": ipa_model.type,+ "image_encoder_model_id": "enc-sdxl-1",+ }+ )+ return SimpleNamespace(+ key=enc_model.key,+ hash=enc_model.hash,+ name=enc_model.name,+ base=enc_model.base,+ type=enc_model.type,+ image_encoder_model_id="",+ )++ mock_ctx = SimpleNamespace(+ models=SimpleNamespace(+ get_config=_get_config,+ exists=lambda key: True,+ search_by_attrs=lambda **kwargs: [+ SimpleNamespace(+ key=enc_model.key,+ hash=enc_model.hash,+ name=kwargs.get("name", enc_model.name),+ base=BaseModelType.Any,+ type=ModelType.CLIPVision,+ )+ ],+ ),+ images=SimpleNamespace(get_dto=lambda name: SimpleNamespace(width=1024, height=768)),+ )++ weight_schedule = [0.8, 0.4, 0.2]+ mask_field = TensorField(tensor_name="test_mask_tensor")+ ipa_field = IPAdapterField(+ image=ImageField(image_name="test_ref.png"),+ ip_adapter_model=ipa_model,+ image_encoder_model=enc_model,+ weight=weight_schedule,+ method="style",+ begin_step_percent=0.15,+ end_step_percent=0.85,+ mask=mask_field,+ )++ refs = serialize_ip_adapter_ref_images(ipa_field, context=mock_ctx, default_width=1024, default_height=768)+ assert len(refs) == 1+ cfg = refs[0]["config"]+ assert cfg["weight"] == weight_schedule+ # Ephemeral tensor masks must not be serialized into metadata+ assert "mask" not in cfg+ assert cfg["image"]["original"]["image"]["width"] == 1024+ assert cfg["image"]["original"]["image"]["height"] == 768++ md = MetadataField.model_validate({"ref_images": refs})+ out = MetadataToIPAdaptersInvocation.model_construct(metadata=md, ip_adapter_list=None).invoke(mock_ctx)+ assert isinstance(out.ip_adapter_list, list)+ assert len(out.ip_adapter_list) == 1+ rec = out.ip_adapter_list[0]+ assert rec.weight == weight_schedule+ assert rec.mask is None+ assert rec.method == "style"+ assert rec.begin_step_percent == 0.15+ assert rec.end_step_percent == 0.85+++def test_flux_control_lora_excluded_from_loras() -> None:+ """Task 4: Flux control_lora is excluded from updates['loras']."""+ tf_id = _make_model_id(key="flux-tf", base=BaseModelType.Flux)+ ctrl_lora_id = _make_model_id(key="flux-ctrl-lora", base=BaseModelType.Flux, model_type=ModelType.ControlLoRa)++ flux_node = FluxDenoiseInvocation.model_construct(+ transformer=TransformerField(transformer=tf_id, loras=[]),+ control_lora=ControlLoRAField(lora=ctrl_lora_id, weight=0.85, img=ImageField(image_name="ctrl.png")),+ control=None,+ controlnet_vae=None,+ ip_adapter=None,+ latents=None,+ noise=None,+ add_noise=True,+ denoising_start=0.0,+ denoising_end=1.0,+ width=1024,+ height=1024,+ num_steps=20,+ guidance=3.5,+ cfg_scale=1.0,+ cfg_scale_start_step=0,+ cfg_scale_end_step=20,+ seed=42,+ dype_preset="none",+ dype_scale=None,+ dype_exponent=None,+ metadata=None,+ )+ md = flux_node._build_metadata().root+ assert md["loras"] == []+++def test_chained_denoise_parameter_isolation() -> None:+ """Task 5: Chained denoise pass where upstream has LoRAs and downstream has no LoRAs clears LoRAs."""+ lora_id = _make_model_id(key="sdxl-lora", base=BaseModelType.StableDiffusionXL, model_type=ModelType.LoRA)+ unet_id = _make_model_id(key="sdxl-unet", base=BaseModelType.StableDiffusionXL, model_type=ModelType.Main)++ upstream_pass = DenoiseLatentsInvocation.model_construct(+ unet=UNetField.model_construct(unet=unet_id, loras=[LoRAField(lora=lora_id, weight=0.75)]),+ control=None,+ ip_adapter=None,+ t2i_adapter=None,+ steps=20,+ cfg_scale=7.5,+ denoising_start=0.0,+ denoising_end=1.0,+ scheduler="euler",+ cfg_rescale_multiplier=0.0,+ hidiffusion=False,+ hidiffusion_raunet=True,+ hidiffusion_window_attn=True,+ hidiffusion_auto_ratios=True,+ hidiffusion_t1_ratio=0.0,+ hidiffusion_t2_ratio=0.0,+ noise=None,+ latents=None,+ denoise_mask=None,+ metadata=None,+ )+ upstream_md = upstream_pass._build_metadata(width=1024, height=1024)+ assert len(upstream_md.root["loras"]) == 1++ downstream_pass = DenoiseLatentsInvocation.model_construct(+ unet=UNetField.model_construct(unet=unet_id, loras=[]),+ control=None,+ ip_adapter=None,+ t2i_adapter=None,+ steps=10,+ cfg_scale=5.0,+ denoising_start=0.5,+ denoising_end=1.0,+ scheduler="euler",+ cfg_rescale_multiplier=0.0,+ hidiffusion=False,+ hidiffusion_raunet=True,+ hidiffusion_window_attn=True,+ hidiffusion_auto_ratios=True,+ hidiffusion_t1_ratio=0.0,+ hidiffusion_t2_ratio=0.0,+ noise=None,+ latents=None,+ denoise_mask=None,+ metadata=upstream_md,+ )+ downstream_md = downstream_pass._build_metadata(width=1024, height=1024)+ assert downstream_md.root["loras"] == []+ assert downstream_md.root["controlnets"] == []+ assert downstream_md.root["ref_images"] == []+ assert downstream_md.root["t2iAdapters"] == []+++def test_chained_reference_images_authoritative_replace() -> None:+ """Task 6: Chained denoise passes replace upstream reference images without collisions."""+ mock_ctx = SimpleNamespace(+ models=SimpleNamespace(get_config=lambda key: SimpleNamespace(base="sdxl", image_encoder_model_id="sdxl_enc")),+ images=SimpleNamespace(get_dto=lambda name: SimpleNamespace(width=1024, height=1024)),+ )+ ipa_id = _make_model_id(key="ipa-1", base=BaseModelType.StableDiffusionXL, model_type=ModelType.IPAdapter)+ ipa_1 = IPAdapterField(+ image=ImageField(image_name="ref_1.png"),+ ip_adapter_model=ipa_id,+ image_encoder_model=ipa_id,+ weight=0.9,+ )+ ipa_2 = IPAdapterField(+ image=ImageField(image_name="ref_2.png"),+ ip_adapter_model=ipa_id,+ image_encoder_model=ipa_id,+ weight=0.4,+ )++ refs_1 = serialize_ip_adapter_ref_images(ipa_1, context=mock_ctx, default_width=1024, default_height=1024)+ assert refs_1[0]["id"] == "ip_adapter_1"+ md_pass_1 = build_denoise_metadata(None, {"ref_images": refs_1})+ assert len(md_pass_1.root["ref_images"]) == 1+ assert md_pass_1.root["ref_images"][0]["config"]["image"]["original"]["image"]["image_name"] == "ref_1.png"++ refs_2 = serialize_ip_adapter_ref_images(ipa_2, context=mock_ctx, default_width=1024, default_height=1024)+ assert refs_2[0]["id"] == "ip_adapter_1"+ md_pass_2 = build_denoise_metadata(md_pass_1, {"ref_images": refs_2})+ assert len(md_pass_2.root["ref_images"]) == 1+ assert md_pass_2.root["ref_images"][0]["id"] == "ip_adapter_1"+ assert md_pass_2.root["ref_images"][0]["config"]["image"]["original"]["image"]["image_name"] == "ref_2.png"++ md_pass_3 = build_denoise_metadata(md_pass_2, {"ref_images": []})+ assert md_pass_3.root["ref_images"] == []+++def test_anima_inpaint_adapter_stamped_in_metadata() -> None:+ """Task 7: Anima inpaint denoise stamps anima_inpaint_adapter and anima_inpaint_adapter_weight."""+ tf_id = _make_model_id(key="anima-tf", base=BaseModelType.Anima)+ adapter_id = _make_model_id(key="anima-inpaint-adapter", base=BaseModelType.Anima, model_type=ModelType.ControlLoRa)++ lllite_field = AnimaLLLiteField(+ image_name="init.png",+ mask_name="mask.png",+ control_model=adapter_id,+ weight=0.75,+ )++ anima_inpaint = AnimaDenoiseInvocation.model_construct(+ transformer=TransformerField(transformer=tf_id, loras=[]),+ control_lllite=lllite_field,+ ip_adapter=None,+ denoise_mask=DenoiseMaskField(mask_name="mask.png"),+ latents=LatentsField(latents_name="init_lat"),+ noise=None,+ add_noise=False,+ width=1024,+ height=1024,+ steps=25,+ guidance_scale=4.0,+ scheduler="euler",+ denoising_start=0.0,+ denoising_end=1.0,+ seed=123,+ metadata=None,+ )+ md = anima_inpaint._build_metadata().root+ assert md["generation_mode"] == "anima_inpaint"+ assert md["anima_inpaint_adapter"] == adapter_id+ assert md["anima_inpaint_adapter_weight"] == 0.75+++def test_metadata_item_unconnected_validation_and_metadata_version_defense() -> None:+ """Task 8: MetadataItemInvocation rejects truly unconnected inputs, and metadata_version is preserved."""+ # 1. Truly unconnected MetadataItemInvocation raises MissingInputException+ unconnected_item = MetadataItemInvocation.model_validate({"id": "item-unconnected", "label": "test_label"})+ with pytest.raises(MissingInputException):+ unconnected_item._validate_invoke_fields()++ # Connected but evaluating to None passes validation+ connected_none_item = MetadataItemInvocation.model_validate(+ {"id": "item-connected-none", "label": "test_label", "value": None}+ )+ connected_none_item._validate_invoke_fields()++ # 2. Truly unconnected MetadataItemLinkedInvocation raises MissingInputException+ unconnected_linked = MetadataItemLinkedInvocation.model_validate(+ {"id": "linked-unconnected", "label": "positive_prompt"}+ )+ with pytest.raises(MissingInputException):+ unconnected_linked._validate_invoke_fields()++ # 3. Existing metadata_version is preserved in build_denoise_metadata+ upstream_md = MetadataField.model_validate({"metadata_version": "0.9.0", "steps": 20})+ merged = build_denoise_metadata(upstream_md, {"steps": 30})+ assert merged.root["metadata_version"] == "0.9.0"+ assert merged.root["steps"] == 30+++def test_minimax_h3_generation_mode_inspection() -> None:+ """Task 8: MiniMax H3 denoise inspects keyframe_anchors for flf2v, lf2v, i2v, and extend_video."""+ tf_id = _make_model_id(key="minimax-tf")+ cond_id = SimpleNamespace(conditioning_name="pos_cond")++ def _make_mm(anchors: list[str], existing_md: MetadataField | None = None) -> str:+ mm = MiniMaxH3DenoiseInvocation.model_construct(+ transformer=MiniMaxH3TransformerField(transformer=tf_id, loras=[]),+ positive_conditioning=cond_id,+ frame_conditioning=MiniMaxH3FrameConditioningField(+ condition_rows_name="rows",+ keyframe_anchors=anchors,+ width=1344,+ height=768,+ ),+ reference_conditioning=None,+ width=1344,+ height=768,+ num_frames="124",+ steps=50,+ seed=42,+ metadata=existing_md,+ )+ return mm._build_metadata().root["generation_mode"]++ assert _make_mm(["first", "last"]) == "minimax_h3_flf2v"+ assert _make_mm(["last"]) == "minimax_h3_lf2v"+ assert _make_mm(["first"]) == "minimax_h3_i2v"++ extend_md = MetadataField.model_validate({"generation_mode": "minimax_h3_extend_video"})+ assert _make_mm(["first"], existing_md=extend_md) == "minimax_h3_extend_video"+++# ---------------------------------------------------------------------------+# PR #10083 Review Feedback Regression Tests+# ---------------------------------------------------------------------------+++def test_build_denoise_metadata_empty_lists_override_upstream_legacy() -> None:+ """Finding 1: build_denoise_metadata retains explicit empty lists and pops legacy fields."""+ legacy_md = MetadataField.model_validate(+ {+ "control_layers": [{"type": "controlnet", "model": {"key": "cn-1"}}],+ "ipAdapters": [{"image": {"image_name": "ipa.png"}, "weight": 0.5}],+ "loras": [{"model": {"key": "lora-1"}, "weight": 0.7}],+ "t2iAdapters": [{"model": {"key": "t2i-1"}, "weight": 0.8}],+ }+ )++ # Empty lists in updates must override upstream and pop legacy keys+ updates = {+ "controlnets": [],+ "ref_images": [],+ "loras": [],+ "t2iAdapters": [],+ }+ merged = build_denoise_metadata(legacy_md, updates)+ assert merged.root["controlnets"] == []+ assert merged.root["ref_images"] == []+ assert merged.root["loras"] == []+ assert merged.root["t2iAdapters"] == []+ assert "control_layers" not in merged.root+ assert "ipAdapters" not in merged.root+++def test_all_denoise_nodes_overwrite_upstream_lists() -> None:+ """Finding 2: All 13 denoise nodes unconditionally overwrite upstream loras/controlnets with [] when empty."""+ lora_id = _make_model_id(key="up-lora", base=BaseModelType.Flux, model_type=ModelType.LoRA)+ cn_id = _make_model_id(key="up-cn", base=BaseModelType.Flux, model_type=ModelType.ControlNet)+ upstream_md = MetadataField.model_validate(+ {+ "loras": [{"model": lora_id.model_dump(), "weight": 0.9}],+ "controlnets": [{"model": cn_id.model_dump(), "weight": 0.8}],+ }+ )++ tf_id = _make_model_id(key="test-tf", base=BaseModelType.Flux)+ tf_no_loras = TransformerField(transformer=tf_id, loras=[])++ # 1. CogView4+ from invokeai.app.invocations.cogview4.cogview4_denoise import CogView4DenoiseInvocation++ node = CogView4DenoiseInvocation.model_construct(+ transformer=tf_no_loras,+ width=512,+ height=512,+ steps=10,+ cfg_scale=3.0,+ denoising_start=0.0,+ denoising_end=1.0,+ noise=None,+ latents=None,+ seed=1,+ metadata=upstream_md,+ )+ assert node._build_metadata().root["loras"] == []++ # 2. ErnieImage+ from invokeai.app.invocations.ernie_image.ernie_image_denoise import ErnieImageDenoiseInvocation++ node = ErnieImageDenoiseInvocation.model_construct(+ transformer=tf_no_loras,+ width=512,+ height=512,+ steps=10,+ guidance_scale=3.0,+ scheduler="euler",+ denoising_start=0.0,+ denoising_end=1.0,+ add_noise=False,+ seed=1,+ latents=None,+ metadata=upstream_md,+ )+ assert node._build_metadata().root["loras"] == []++ # 3. Flux2+ from invokeai.app.invocations.flux2.flux2_denoise import Flux2DenoiseInvocation++ node = Flux2DenoiseInvocation.model_construct(+ transformer=tf_no_loras,+ control=None,+ width=512,+ height=512,+ steps=10,+ guidance=3.0,+ cfg_scale=1.0,+ denoising_start=0.0,+ denoising_end=1.0,+ add_noise=False,+ noise=None,+ latents=None,+ seed=1,+ vae=None,+ metadata=upstream_md,+ )+ assert node._build_metadata().root["loras"] == []+ assert node._build_metadata().root["controlnets"] == []++ # 4. Ideogram4+ from invokeai.app.invocations.ideogram4.ideogram4_denoise import Ideogram4DenoiseInvocation++ node = Ideogram4DenoiseInvocation.model_construct(+ transformer=tf_no_loras,+ unconditional_transformer=None,+ sampler_preset="V4_DEFAULT_20",+ width=512,+ height=512,+ steps=None,+ guidance_scale=None,+ mu=None,+ seed=1,+ metadata=upstream_md,+ )+ assert node._build_metadata().root["loras"] == []++ # 5. LTX2+ from invokeai.app.invocations.ltx2.ltx2_denoise import LTX2DenoiseInvocation++ node = LTX2DenoiseInvocation.model_construct(+ transformer=tf_no_loras,+ width=512,+ height=512,+ num_frames=9,+ fps=24.0,+ steps=10,+ cfg_scale=3.0,+ audio_cfg_scale=1.0,+ stg_scale=1.0,+ modality_scale=1.0,+ guidance_rescale=0.0,+ schedule="linear",+ seed=1,+ latents=None,+ noise_scale=1.0,+ metadata=upstream_md,+ )+ assert node._build_metadata().root["loras"] == []++ # 6. MiniMaxH3+ from invokeai.app.invocations.minimax_h3.minimax_h3_denoise import MiniMaxH3DenoiseInvocation++ node = MiniMaxH3DenoiseInvocation.model_construct(+ transformer=MiniMaxH3TransformerField(transformer=tf_id, loras=[], adaln_overlay=None),+ width=512,+ height=512,+ num_frames="9",+ steps=10,+ seed=1,+ metadata=upstream_md,+ )+ assert node._build_metadata().root["loras"] == []++ # 7. MossImage+ from invokeai.app.invocations.moss_image.moss_image_denoise import MossImageDenoiseInvocation++ node = MossImageDenoiseInvocation.model_construct(+ transformer=tf_no_loras,+ width=512,+ height=512,+ steps=10,+ cfg_scale=3.0,+ denoising_start=0.0,+ denoising_end=1.0,+ uncond_skip_layers=[],+ seed=1,+ latents=None,+ metadata=upstream_md,+ )+ assert node._build_metadata().root["loras"] == []++ # 8. QwenImage+ from invokeai.app.invocations.qwen_image.qwen_image_denoise import QwenImageDenoiseInvocation++ node = QwenImageDenoiseInvocation.model_construct(+ transformer=tf_no_loras,+ control=None,+ width=512,+ height=512,+ steps=10,+ cfg_scale=3.0,+ denoising_start=0.0,+ denoising_end=1.0,+ shift=None,+ seed=1,+ vae=None,+ metadata=upstream_md,+ )+ assert node._build_metadata().root["loras"] == []+ assert node._build_metadata().root["controlnets"] == []++ # 9. QwenImage 2.1+ from invokeai.app.invocations.qwen_image_2_1.qwen_image_2_1_denoise import QwenImage21DenoiseInvocation++ node = QwenImage21DenoiseInvocation.model_construct(+ transformer=tf_no_loras,+ width=512,+ height=512,+ steps=10,+ cfg_scale=3.0,+ denoising_start=0.0,+ denoising_end=1.0,+ seed=1,+ latents=None,+ metadata=upstream_md,+ )+ assert node._build_metadata().root["loras"] == []++ # 10. SD3+ from invokeai.app.invocations.sd3.sd3_denoise import SD3DenoiseInvocation++ node = SD3DenoiseInvocation.model_construct(+ transformer=tf_no_loras,+ width=512,+ height=512,+ steps=10,+ cfg_scale=3.0,+ denoising_start=0.0,+ denoising_end=1.0,+ noise=None,+ latents=None,+ seed=1,+ metadata=upstream_md,+ )+ assert node._build_metadata().root["loras"] == []++ # 11. WanDenoise+ from invokeai.app.invocations.wan.wan_denoise import WanDenoiseInvocation++ node = WanDenoiseInvocation.model_construct(+ transformer=WanTransformerField(transformer=tf_id, loras=[]),+ width=512,+ height=512,+ steps=10,+ guidance_scale=3.0,+ guidance_scale_low_noise=None,+ denoising_start=0.0,+ denoising_end=1.0,+ add_noise=False,+ seed=1,+ metadata=upstream_md,+ )+ assert node._build_metadata().root["loras"] == []++ # 12. WanVideoDenoise+ from invokeai.app.invocations.wan.wan_video_denoise import WanVideoDenoiseInvocation++ node = WanVideoDenoiseInvocation.model_construct(+ transformer=WanTransformerField(transformer=tf_id, loras=[]),+ width=512,+ height=512,+ num_frames=9,+ steps=10,+ guidance_scale=3.0,+ guidance_scale_low_noise=None,+ seed=1,+ metadata=upstream_md,+ )+ assert node._build_metadata().root["loras"] == []++ # 13. ZImage+ from invokeai.app.invocations.z_image.z_image_denoise import ZImageDenoiseInvocation++ node = ZImageDenoiseInvocation.model_construct(+ transformer=tf_no_loras,+ control=None,+ width=512,+ height=512,+ steps=10,+ guidance=3.0,+ cfg_scale=1.0,+ denoising_start=0.0,+ denoising_end=1.0,+ noise=None,+ latents=None,+ seed=1,+ vae=None,+ metadata=upstream_md,+ )+ assert node._build_metadata().root["loras"] == []+ assert node._build_metadata().root["controlnets"] == []+++def test_ip_adapter_mask_field_schema() -> None:+ """Finding 3: IPAdapterField and IPAdapterInvocation mask field annotation is Optional[TensorField]."""+ from typing import get_args++ from invokeai.app.invocations.sd.ip_adapter import IPAdapterField, IPAdapterInvocation++ field_ann = IPAdapterField.model_fields["mask"].annotation+ inv_ann = IPAdapterInvocation.model_fields["mask"].annotation++ # Verify neither has ImageField+ assert ImageField not in get_args(field_ann)+ assert ImageField not in get_args(inv_ann)+ assert TensorField in get_args(field_ann)+ assert TensorField in get_args(inv_ann)+++def test_anima_denoise_inpaint_adapter_selection_with_multiple_lllite() -> None:+ """Finding 4: Anima denoise filters control_lllite for adapter with mask_name."""+ m1 = _make_model_id(key="lllite-style", base=BaseModelType.Anima, model_type=ModelType.ControlLoRa)+ m2 = _make_model_id(key="lllite-inpaint", base=BaseModelType.Anima, model_type=ModelType.ControlLoRa)++ a1 = AnimaLLLiteField(image_name="style.png", control_model=m1, weight=0.6, mask_name=None)+ a2 = AnimaLLLiteField(image_name="inpaint.png", control_model=m2, weight=0.95, mask_name="inpaint_mask.png")++ tf_id = _make_model_id(key="anima-tf", base=BaseModelType.Anima)+ node = AnimaDenoiseInvocation.model_construct(+ transformer=TransformerField(transformer=tf_id, loras=[]),+ control_lllite=[a1, a2],+ denoise_mask=DenoiseMaskField(mask_name="inpaint_mask.png"),+ width=512,+ height=512,+ steps=10,+ guidance_scale=3.0,+ scheduler="euler",+ denoising_start=0.0,+ denoising_end=1.0,+ add_noise=False,+ seed=1,+ latents=None,+ ip_adapter=None,+ metadata=None,+ )+ md = node._build_metadata().root+ assert md["anima_inpaint_adapter"] == m2+ assert md["anima_inpaint_adapter_weight"] == 0.95+++def test_unwrap_metadata_value_core_vs_custom_label() -> None:+ """Finding 5: unwrap_metadata_value unwraps to ModelIdentifierField for core labels even with LoRAs,+ while custom labels (user strings or CUSTOM_LABEL) preserve wrapper fields with LoRAs."""+ from invokeai.app.invocations.metadata import CORE_MODEL_LABELS, CUSTOM_LABEL, unwrap_metadata_value+ from invokeai.app.invocations.metadata_linked import MetadataItemLinkedInvocation++ unet_id = _make_model_id(key="unet-core", base=BaseModelType.StableDiffusionXL, model_type=ModelType.Main)+ lora_id = _make_model_id(key="lora-core", base=BaseModelType.StableDiffusionXL, model_type=ModelType.LoRA)++ unet_with_loras = UNetField.model_construct(unet=unet_id, loras=[LoRAField(lora=lora_id, weight=0.8)])+ unet_clean = UNetField.model_construct(unet=unet_id, loras=[])++ # Core labels: always unwrap to inner ModelIdentifierField for gallery recall+ for core_label in ("model", "clip_l_model", "vae", "t5_encoder", "refiner_model"):+ assert core_label in CORE_MODEL_LABELS+ unwrapped = unwrap_metadata_value(unet_with_loras, label=core_label)+ assert isinstance(unwrapped, ModelIdentifierField)+ assert unwrapped.key == "unet-core"++ # Custom labels (CUSTOM_LABEL or arbitrary user-supplied string): preserve outer UNetField with LoRAs+ for custom_lbl in (CUSTOM_LABEL, "my_custom_unet", "user_lora_model", None):+ kept_custom = unwrap_metadata_value(unet_with_loras, label=custom_lbl)+ assert isinstance(kept_custom, UNetField)+ assert len(kept_custom.loras) == 1++ # Custom label without LoRAs cleanly unwraps to ModelIdentifierField+ unwrapped_clean_custom = unwrap_metadata_value(unet_clean, label="my_clean_unet")+ assert isinstance(unwrapped_clean_custom, ModelIdentifierField)+ assert unwrapped_clean_custom.key == "unet-core"++ # Dict representation: core label unwraps to inner dict with "key", custom retains "loras"+ raw_dict = {"unet": unet_id.model_dump(), "loras": [{"lora": lora_id.model_dump(), "weight": 0.8}]}+ unwrapped_dict = unwrap_metadata_value(raw_dict, label="model")+ assert unwrapped_dict["key"] == "unet-core"++ kept_dict = unwrap_metadata_value(raw_dict, label="my_custom_unet")+ assert "loras" in kept_dict++ # Integration test with MetadataItemLinkedInvocation+ from types import SimpleNamespace++ ctx = SimpleNamespace()+ # 1. Core label "model" -> unwrapped ModelIdentifierField in metadata+ link_core = MetadataItemLinkedInvocation(label="model", value=unet_with_loras)+ out_core = link_core.invoke(ctx)+ assert isinstance(out_core.metadata.root["model"], ModelIdentifierField)++ # 2. Custom label via custom_label -> preserves UNetField with LoRAs in metadata+ link_custom = MetadataItemLinkedInvocation(label=CUSTOM_LABEL, custom_label="my_custom_unet", value=unet_with_loras)+ out_custom = link_custom.invoke(ctx)+ assert isinstance(out_custom.metadata.root["my_custom_unet"], UNetField)+ assert len(out_custom.metadata.root["my_custom_unet"].loras) == 1+++def test_ernie_image_denoise_txt2img_only_generation_mode() -> None:+ """JP-R5-1: ErnieImage is txt2img-only (even if latents are passed via Python/workflow)."""+ from invokeai.app.invocations.metadata import GENERATION_MODES++ assert "ernie_image_txt2img" in GENERATION_MODES.__args__+ assert "ernie_image_img2img" not in GENERATION_MODES.__args__++ tf_id = _make_model_id(key="ernie-tf", base=BaseModelType.ErnieImage)+ txt_node = ErnieImageDenoiseInvocation.model_construct(+ transformer=TransformerField(transformer=tf_id, loras=[]),+ width=512,+ height=512,+ steps=10,+ guidance_scale=3.0,+ scheduler="euler",+ denoising_start=0.0,+ denoising_end=1.0,+ add_noise=False,+ seed=1,+ latents=None,+ metadata=None,+ )+ assert txt_node._build_metadata().root["generation_mode"] == "ernie_image_txt2img"++ img_node = ErnieImageDenoiseInvocation.model_construct(+ transformer=TransformerField(transformer=tf_id, loras=[]),+ width=512,+ height=512,+ steps=10,+ guidance_scale=3.0,+ scheduler="euler",+ denoising_start=0.5,+ denoising_end=1.0,+ add_noise=False,+ seed=1,+ latents=LatentsField(latents_name="init_latents"),+ metadata=None,+ )+ assert img_node._build_metadata().root["generation_mode"] == "ernie_image_txt2img"+++def test_metadata_to_adapters_warning_on_unresolvable_model() -> None:+ """Finding 7: MetadataTo* nodes log warning when an adapter cannot be loaded."""+ from unittest.mock import MagicMock++ mock_logger = MagicMock()+ mock_ctx = SimpleNamespace(+ logger=mock_logger,+ models=SimpleNamespace(+ exists=lambda key: False,+ search_by_attrs=lambda **kwargs: [],+ ),+ images=SimpleNamespace(get_dto=lambda name: SimpleNamespace(width=512, height=512)),+ )++ # 1. ControlNet+ cn_md = MetadataField.model_validate(+ {"controlnets": [{"image": {"image_name": "c.png"}, "control_model": {"key": "missing-cn"}}]}+ )+ MetadataToControlnetsInvocation.model_construct(metadata=cn_md, control_list=None).invoke(mock_ctx)+ assert mock_logger.warning.called+ warning_calls = [c.args[0] for c in mock_logger.warning.call_args_list]+ assert any("Could not resolve ControlNet model" in str(msg) for msg in warning_calls)++ mock_logger.reset_mock()++ # 2. IP-Adapter+ ipa_md = MetadataField.model_validate(+ {+ "ref_images": [+ {"config": {"type": "ip_adapter", "image": {"image_name": "i.png"}, "model": {"key": "missing-ipa"}}}+ ]+ }+ )+ MetadataToIPAdaptersInvocation.model_construct(metadata=ipa_md, ip_adapter_list=None).invoke(mock_ctx)+ assert mock_logger.warning.called+ warning_calls = [c.args[0] for c in mock_logger.warning.call_args_list]+ assert any("Could not resolve IP-Adapter model" in str(msg) for msg in warning_calls)++ mock_logger.reset_mock()++ # 3. T2I-Adapter+ t2i_md = MetadataField.model_validate(+ {"t2iAdapters": [{"image": {"image_name": "t.png"}, "t2i_adapter_model": {"key": "missing-t2i"}}]}+ )+ MetadataToT2IAdaptersInvocation.model_construct(metadata=t2i_md, t2i_adapter_list=None).invoke(mock_ctx)+ assert mock_logger.warning.called+ warning_calls = [c.args[0] for c in mock_logger.warning.call_args_list]+ assert any("Could not resolve T2I-Adapter model" in str(msg) for msg in warning_calls)+++def test_extract_adapters_respects_explicit_empty_list() -> None:+ """Additional Issue 1: _extract_* functions return [] immediately when modern key is explicit [] without falling back."""+ from invokeai.app.invocations.metadata_linked import (+ _extract_controlnets_from_metadata,+ _extract_ip_adapters_from_metadata,+ _extract_t2i_adapters_from_metadata,+ )++ data_with_empty_cn = {+ "controlnets": [],+ "control_layers": [+ {+ "type": "controlnet",+ "image": {"image_name": "fallback.png"},+ "model": {"key": "legacy-cn"},+ }+ ],+ }+ # Must return [] without falling back to control_layers+ assert _extract_controlnets_from_metadata(data_with_empty_cn) == []++ data_with_empty_ref = {+ "ref_images": [],+ "ipAdapters": [+ {+ "image": {"image_name": "fallback-ipa.png"},+ "ip_adapter_model": {"key": "legacy-ipa"},+ }+ ],+ }+ # Must return [] without falling back to ipAdapters+ assert _extract_ip_adapters_from_metadata(data_with_empty_ref) == []++ data_with_empty_t2i = {+ "t2iAdapters": [],+ "control_layers": [+ {+ "type": "t2i_adapter",+ "image": {"image_name": "fallback-t2i.png"},+ "model": {"key": "legacy-t2i"},+ }+ ],+ "canvas_v2_metadata": {+ "controlLayers": [+ {+ "isEnabled": True,+ "controlAdapter": {+ "type": "t2i_adapter",+ "model": {"key": "canvas-v2-t2i"},+ },+ }+ ]+ },+ }+ # Must return [] without falling back to control_layers or canvas_v2_metadata+ assert _extract_t2i_adapters_from_metadata(data_with_empty_t2i) == []+++def test_core_model_labels_unwrapping_and_wan_low_noise() -> None:+ """Finding 8: CORE_MODEL_LABELS includes all 13 model/VAE labels and unwraps WanTransformerField properly."""+ from invokeai.app.invocations.metadata import unwrap_metadata_value+ from invokeai.app.invocations.metadata_constants import CORE_MODEL_LABELS+ from invokeai.app.invocations.model import LoRAField, ModelIdentifierField, WanTransformerField++ # All 13 labels reported by @lstein must be present in CORE_MODEL_LABELS+ expected_13 = {+ "ideogram4_unconditional_model",+ "ltx2_component_source",+ "ltx2_text_encoder_model",+ "minimax_h3_component_source",+ "minimax_h3_hybrid_base_model",+ "minimax_h3_text_encoder_model",+ "minimax_h3_transformer_model",+ "qwen_image_component_source",+ "qwen_image_qwen_vl_encoder",+ "qwen_image_vae",+ "wan_component_source",+ "wan_t5_encoder_model",+ "wan_transformer_low_noise",+ }+ assert expected_13.issubset(CORE_MODEL_LABELS)++ # Test WanTransformerField unwrapping:+ high_model = ModelIdentifierField(+ key="wan-high", hash="h1", name="high", base=BaseModelType.Wan, type=ModelType.Main+ )+ low_model = ModelIdentifierField(key="wan-low", hash="h2", name="low", base=BaseModelType.Wan, type=ModelType.Main)+ lora_model = ModelIdentifierField(key="lora1", hash="l1", name="lora", base=BaseModelType.Wan, type=ModelType.LoRA)+ lora = LoRAField(lora=lora_model, weight=1.0)++ wan_field = WanTransformerField(+ transformer=high_model,+ transformer_low_noise=low_model,+ loras=[lora],+ loras_low_noise=[lora],+ )++ # Under core label 'model', unwraps to high_model+ unwrapped_model = unwrap_metadata_value(wan_field, label="model")+ assert isinstance(unwrapped_model, ModelIdentifierField)+ assert unwrapped_model.key == "wan-high"++ # Under core label 'wan_transformer_low_noise', unwraps to low_model+ unwrapped_low = unwrap_metadata_value(wan_field, label="wan_transformer_low_noise")+ assert isinstance(unwrapped_low, ModelIdentifierField)+ assert unwrapped_low.key == "wan-low"++ # Under custom label, remains wrapped so LoRAs are preserved+ custom_val = unwrap_metadata_value(wan_field, label="my_custom_label")+ assert isinstance(custom_val, WanTransformerField)+ assert len(custom_val.loras) == 1+++def test_metadata_to_ip_adapters_tensor_mask() -> None:+ """Additional Issue 2: MetadataToIPAdaptersInvocation parses TensorField masks and passes to IPAdapterInvocation."""+ from pydantic import ConfigDict++ from invokeai.backend.model_manager.configs.ip_adapter import IPAdapter_Checkpoint_Config_Base++ class _MockIPAConfig(IPAdapter_Checkpoint_Config_Base):+ model_config = ConfigDict(extra="allow")++ ipa_model = _make_model_id(key="ipa-sd15", base=BaseModelType.StableDiffusion1, model_type=ModelType.IPAdapter)+ mock_ctx = SimpleNamespace(+ models=SimpleNamespace(+ exists=lambda key: key == "ipa-sd15",+ get_config=lambda key: _MockIPAConfig.model_validate(+ {+ "key": ipa_model.key,+ "hash": ipa_model.hash,+ "name": ipa_model.name,+ "base": ipa_model.base,+ "type": ipa_model.type,+ }+ ),+ search_by_attrs=lambda **kwargs: [+ SimpleNamespace(+ key="enc-1",+ hash="h",+ name="enc",+ base=BaseModelType.Any,+ type=ModelType.CLIPVision,+ )+ ],+ ),+ images=SimpleNamespace(get_dto=lambda name: SimpleNamespace(width=512, height=512)),+ )++ # Metadata record with a serialized TensorField mask+ md = MetadataField.model_validate(+ {+ "ipAdapters": [+ {+ "image": {"image_name": "ref.png"},+ "ip_adapter_model": {"key": "ipa-sd15"},+ "mask": {"tensor_name": "transient_tensor_mask_1"},+ }+ ]+ }+ )++ out = MetadataToIPAdaptersInvocation.model_construct(metadata=md, ip_adapter_list=None).invoke(mock_ctx)+ assert len(out.ip_adapter_list) == 1+ adapter = out.ip_adapter_list[0]+ assert isinstance(adapter.mask, TensorField)+ assert adapter.mask.tensor_name == "transient_tensor_mask_1"+++def test_denoise_latents_cfg_scale_schedule_roundtrip_via_extractors() -> None:+ """JP-2: denoise_latents cfg_scale schedule extracts cleanly via FloatCollection and Float."""+ from invokeai.app.invocations.metadata_linked import (+ MetadataToFloatCollectionInvocation,+ MetadataToFloatInvocation,+ )++ unet_id = _make_model_id(key="sd1-unet", base=BaseModelType.StableDiffusion1, submodel_type=SubModelType.UNet)+ sched_id = _make_model_id(+ key="sd1-sched", base=BaseModelType.StableDiffusion1, submodel_type=SubModelType.Scheduler+ )+ schedule = [8.0, 6.0, 4.0]+ denoise = DenoiseLatentsInvocation.model_construct(+ unet=UNetField(unet=unet_id, scheduler=sched_id, loras=[]),+ cfg_scale=schedule,+ steps=3,+ scheduler="euler",+ denoising_start=0.0,+ denoising_end=1.0,+ cfg_rescale_multiplier=0.0,+ hidiffusion=False,+ hidiffusion_raunet=True,+ hidiffusion_window_attn=True,+ hidiffusion_auto_ratios=True,+ hidiffusion_t1_ratio=0.4,+ hidiffusion_t2_ratio=0.8,+ control=None,+ ip_adapter=None,+ t2i_adapter=None,+ noise=None,+ latents=None,+ denoise_mask=None,+ metadata=None,+ )+ md = denoise._build_metadata(512, 512)+ assert md.root["cfg_scale"] == schedule+ assert md.root["hidiffusion_auto_ratios"] is True++ ctx = SimpleNamespace()+ assert (+ MetadataToFloatCollectionInvocation(id="extract-cfg-coll", label="cfg_scale", default_value=[1.0], metadata=md)+ .invoke(ctx)+ .collection+ == schedule+ )+ assert (+ MetadataToFloatInvocation(id="extract-cfg-scalar", label="cfg_scale", default_value=1.0, metadata=md)+ .invoke(ctx)+ .value+ == 8.0+ )+++def test_wan_lora_serialization_and_metadata_to_wan_loras_roundtrip() -> None:+ """JP-3: Wan LoRA target + differing weight serialization and MetadataToWanLorasInvocation recall."""+ from unittest.mock import MagicMock++ from invokeai.app.invocations.metadata import serialize_wan_lora_metadata+ from invokeai.app.invocations.metadata_linked import MetadataToWanLorasInvocation+ from invokeai.backend.model_manager.taxonomy import WanLoRAVariantType, WanVariantType++ high_tf = _make_model_id(key="wan-high", base=BaseModelType.Wan)+ low_tf = _make_model_id(key="wan-low", base=BaseModelType.Wan)+ lora_high = _make_model_id(key="lora-high", name="High LoRA", base=BaseModelType.Wan, model_type=ModelType.LoRA)+ lora_low = _make_model_id(key="lora-low", name="Low LoRA", base=BaseModelType.Wan, model_type=ModelType.LoRA)+ lora_same = _make_model_id(key="lora-same", name="Same LoRA", base=BaseModelType.Wan, model_type=ModelType.LoRA)+ lora_diff = _make_model_id(key="lora-diff", name="Diff LoRA", base=BaseModelType.Wan, model_type=ModelType.LoRA)++ wan_tf_field = WanTransformerField(+ transformer=high_tf,+ transformer_low_noise=low_tf,+ loras=[+ LoRAField(lora=lora_high, weight=0.9),+ LoRAField(lora=lora_same, weight=0.8),+ LoRAField(lora=lora_diff, weight=0.7),+ ],+ loras_low_noise=[+ LoRAField(lora=lora_same, weight=0.8),+ LoRAField(lora=lora_diff, weight=0.3),+ LoRAField(lora=lora_low, weight=0.6),+ ],+ )++ serialized = serialize_wan_lora_metadata(wan_tf_field.loras, wan_tf_field.loras_low_noise)+ assert [e["model"]["key"] for e in serialized] == ["lora-high", "lora-same", "lora-diff", "lora-low"]+ assert serialized[0]["target"] == "high" and serialized[0]["weight"] == 0.9+ assert "low_noise_weight" not in serialized[0]+ assert serialized[1]["target"] == "both" and serialized[1]["weight"] == 0.8+ assert "low_noise_weight" not in serialized[1]+ assert serialized[2]["target"] == "both"+ assert serialized[2]["weight"] == 0.7+ assert serialized[2]["low_noise_weight"] == 0.3+ assert serialized[3]["target"] == "low" and serialized[3]["weight"] == 0.6+ assert "low_noise_weight" not in serialized[3]++ for denoise_md in (+ WanDenoiseInvocation.model_construct(+ transformer=wan_tf_field,+ guidance_scale=4.0,+ guidance_scale_low_noise=3.5,+ denoising_start=0.0,+ denoising_end=1.0,+ add_noise=True,+ width=1024,+ height=1024,+ steps=20,+ seed=1,+ metadata=None,+ )._build_metadata(),+ WanVideoDenoiseInvocation.model_construct(+ transformer=wan_tf_field,+ guidance_scale=5.0,+ guidance_scale_low_noise=4.0,+ width=832,+ height=480,+ num_frames=81,+ steps=40,+ seed=2,+ metadata=None,+ )._build_metadata(),+ ):+ assert denoise_md.root["loras"] == serialized++ def _lora_cfg(model_id: ModelIdentifierField, expert: str | None = None, variant=WanLoRAVariantType.A14B):+ return SimpleNamespace(+ key=model_id.key,+ hash=model_id.hash,+ name=model_id.name,+ base=BaseModelType.Wan,+ type=ModelType.LoRA,+ expert=expert,+ variant=variant,+ )++ configs = {+ "wan-high": SimpleNamespace(+ key="wan-high",+ hash=high_tf.hash,+ name=high_tf.name,+ base=BaseModelType.Wan,+ type=ModelType.Main,+ variant=WanVariantType.T2V_A14B,+ ),+ "lora-high": _lora_cfg(lora_high, expert="high"),+ "lora-low": _lora_cfg(lora_low, expert="low"),+ "lora-same": _lora_cfg(lora_same, expert=None),+ "lora-diff": _lora_cfg(lora_diff, expert=None),+ }++ def _get_config(ident):+ key = ident.key if hasattr(ident, "key") else ident+ return configs[key]++ mock_logger = MagicMock()+ mock_ctx = SimpleNamespace(+ logger=mock_logger,+ models=SimpleNamespace(+ exists=lambda k: k in configs,+ get_config=_get_config,+ search_by_attrs=lambda **kw: [],+ ),+ )++ clean_tf = WanTransformerField(transformer=high_tf, transformer_low_noise=low_tf, loras=[], loras_low_noise=[])++ # 1. Exact roundtrip from denoise metadata+ restored = (+ MetadataToWanLorasInvocation.model_construct(+ transformer=clean_tf,+ custom_label="loras",+ metadata=MetadataField.model_validate({"loras": serialized}),+ )+ .invoke(mock_ctx)+ .transformer+ )+ assert restored is not None+ assert [(x.lora.key, x.weight) for x in restored.loras] == [+ ("lora-high", 0.9),+ ("lora-same", 0.8),+ ("lora-diff", 0.7),+ ]+ assert [(x.lora.key, x.weight) for x in restored.loras_low_noise] == [+ ("lora-same", 0.8),+ ("lora-diff", 0.3),+ ("lora-low", 0.6),+ ]++ # 2. Legacy metadata without `target` falls back to config.expert ("auto")+ legacy_md = MetadataField.model_validate(+ {+ "loras": [+ {"model": lora_high.model_dump(), "weight": 0.5},+ {"model": lora_low.model_dump(), "weight": 0.4},+ {"model": lora_same.model_dump(), "weight": 0.75},+ ]+ }+ )+ legacy_out = (+ MetadataToWanLorasInvocation.model_construct(transformer=clean_tf, custom_label="loras", metadata=legacy_md)+ .invoke(mock_ctx)+ .transformer+ )+ assert [(x.lora.key, x.weight) for x in legacy_out.loras] == [("lora-high", 0.5), ("lora-same", 0.75)]+ assert [(x.lora.key, x.weight) for x in legacy_out.loras_low_noise] == [("lora-low", 0.4), ("lora-same", 0.75)]++ # 3. Dual entries + already-applied LoRA + missing LoRA warning+ dual_and_missing_md = MetadataField.model_validate(+ {+ "loras": [+ {"model": {"key": "missing-wan-lora"}, "weight": 0.5},+ {"model": lora_diff.model_dump(), "weight": 0.65, "target": "high"},+ {"model": lora_diff.model_dump(), "weight": 0.25, "target": "low"},+ {"model": lora_high.model_dump(), "weight": 0.99, "target": "high"},+ ]+ }+ )+ prefilled_tf = WanTransformerField(+ transformer=high_tf,+ transformer_low_noise=low_tf,+ loras=[LoRAField(lora=lora_high, weight=0.1)],+ loras_low_noise=[],+ )+ dual_out = (+ MetadataToWanLorasInvocation.model_construct(+ transformer=prefilled_tf, custom_label="loras", metadata=dual_and_missing_md+ )+ .invoke(mock_ctx)+ .transformer+ )+ assert [(x.lora.key, x.weight) for x in dual_out.loras] == [("lora-high", 0.1), ("lora-diff", 0.65)]+ assert [(x.lora.key, x.weight) for x in dual_out.loras_low_noise] == [("lora-diff", 0.25)]+ assert mock_logger.warning.called++ # 4. None transformer returns empty output+ assert (+ MetadataToWanLorasInvocation.model_construct(transformer=None, custom_label="loras", metadata=legacy_md)+ .invoke(mock_ctx)+ .transformer+ is None+ )+++def test_unwrap_metadata_value_wan_none_and_wrapper_dicts() -> None:+ """JP-4 & JP-5: Wan TI2V-5B transformer_low_noise=None and wrapper model_dump() dicts unwrap cleanly."""+ from invokeai.app.invocations.metadata import unwrap_metadata_value+ from invokeai.app.invocations.metadata_linked import MetadataItemLinkedInvocation+ from invokeai.app.invocations.model import MiniMaxH3AdaLNOverlayField, MiniMaxH3TextEncoderField++ high_tf = _make_model_id(key="wan-ti2v-5b", base=BaseModelType.Wan)+ low_tf = _make_model_id(key="wan-low-tf", base=BaseModelType.Wan)+ lora_id = _make_model_id(key="wan-lora", base=BaseModelType.Wan, model_type=ModelType.LoRA)++ # JP-4: TI2V-5B instance & dict with transformer_low_noise=None must return None (never fallback to high_tf)+ ti2v_field = WanTransformerField(transformer=high_tf, transformer_low_noise=None, loras=[], loras_low_noise=[])+ assert unwrap_metadata_value(ti2v_field, label="wan_transformer_low_noise") is None+ assert unwrap_metadata_value(ti2v_field.model_dump(), label="wan_transformer_low_noise") is None++ linked_none = MetadataItemLinkedInvocation(+ id="link-wan-low-none", label="wan_transformer_low_noise", value=ti2v_field+ ).invoke(SimpleNamespace())+ assert "wan_transformer_low_noise" not in linked_none.metadata.root++ # JP-5: WanTransformerField.model_dump() with high, low, and custom+loras_low_noise+ a14b_dict = WanTransformerField(+ transformer=high_tf,+ transformer_low_noise=low_tf,+ loras=[],+ loras_low_noise=[LoRAField(lora=lora_id, weight=0.5)],+ ).model_dump()+ assert unwrap_metadata_value(a14b_dict, label="model")["key"] == "wan-ti2v-5b"+ assert unwrap_metadata_value(a14b_dict, label="wan_transformer_low_noise")["key"] == "wan-low-tf"+ kept_wan = unwrap_metadata_value(a14b_dict, label="custom_wan_tf")+ assert isinstance(kept_wan, dict) and len(kept_wan["loras_low_noise"]) == 1++ # Sibling wrapper dicts: MiniMaxH3TextEncoderField, MiniMaxH3TransformerField, LTX2TransformerField+ h3_enc_id = _make_model_id(key="h3-enc", base=BaseModelType.MiniMaxH3, submodel_type=SubModelType.TextEncoder)+ h3_tok_id = _make_model_id(key="h3-tok", base=BaseModelType.MiniMaxH3, submodel_type=SubModelType.Tokenizer)+ h3_proc_id = _make_model_id(key="h3-proc", base=BaseModelType.MiniMaxH3, submodel_type=SubModelType.Tokenizer)+ h3_enc_dict = MiniMaxH3TextEncoderField(+ tokenizer=h3_tok_id, processor=h3_proc_id, text_encoder=h3_enc_id+ ).model_dump()+ assert unwrap_metadata_value(h3_enc_dict, label="minimax_h3_text_encoder_model")["key"] == "h3-enc"++ h3_tf_id = _make_model_id(key="h3-tf", base=BaseModelType.MiniMaxH3)+ h3_overlay_id = _make_model_id(key="h3-overlay", base=BaseModelType.MiniMaxH3)+ h3_tf_dict = MiniMaxH3TransformerField(+ transformer=h3_tf_id,+ loras=[LoRAField(lora=lora_id, weight=0.6)],+ variant="fl2va",+ adaln_overlay=MiniMaxH3AdaLNOverlayField(+ overlay=h3_overlay_id, start_block=20, end_block=30, include_final_layer=True+ ),+ ).model_dump()+ assert unwrap_metadata_value(h3_tf_dict, label="minimax_h3_transformer_model")["key"] == "h3-tf"+ assert len(unwrap_metadata_value(h3_tf_dict, label="custom_h3_tf")["loras"]) == 1++ ltx_tf_id = _make_model_id(key="ltx2-tf", base=BaseModelType.LTX2)+ ltx_tf_dict = LTX2TransformerField(+ transformer=ltx_tf_id,+ loras=[LoRAField(lora=lora_id, weight=0.4)],+ variant="ltx2_dev",+ ).model_dump()+ assert unwrap_metadata_value(ltx_tf_dict, label="model")["key"] == "ltx2-tf"+ assert len(unwrap_metadata_value(ltx_tf_dict, label="custom_ltx_tf")["loras"]) == 1++ from invokeai.app.invocations.model import LTX2LatentUpsamplerField, LTX2VocoderField++ vocoder_id = _make_model_id(key="ltx2-vocoder", base=BaseModelType.LTX2)+ vocoder_field = LTX2VocoderField(vocoder=vocoder_id)+ assert unwrap_metadata_value(vocoder_field, label="model") == vocoder_id+ assert unwrap_metadata_value(vocoder_field.model_dump(), label="model")["key"] == "ltx2-vocoder"++ upsampler_id = _make_model_id(key="ltx2-upsampler", base=BaseModelType.LTX2)+ upsampler_field = LTX2LatentUpsamplerField(latent_upsampler=upsampler_id)+ assert unwrap_metadata_value(upsampler_field, label="model") == upsampler_id+ assert unwrap_metadata_value(upsampler_field.model_dump(), label="model")["key"] == "ltx2-upsampler"+++def test_unwrap_metadata_value_preserves_non_lora_wrapper_fields_on_custom_labels() -> None:+ """JP-R5-2: LoRA-free wrappers carrying non-LoRA submodel/routing/config fields preserve both+ model instances and dicts on custom labels, while unwrapping cleanly on core labels."""+ from invokeai.app.invocations.metadata import unwrap_metadata_value+ from invokeai.app.invocations.model import (+ CLIPField,+ LTX2TextEncoderField,+ MiniMaxH3TextEncoderField,+ Qwen3VLEncoderField,+ )++ tok_id = _make_model_id(key="tok-key", submodel_type=SubModelType.Tokenizer)+ sched_id = _make_model_id(key="sched-key", submodel_type=SubModelType.Scheduler)++ # 1. WanTransformerField (transformer_low_noise + boundary_ratio, no LoRAs)+ wan_high = _make_model_id(key="wan-high-r5", base=BaseModelType.Wan)+ wan_low = _make_model_id(key="wan-low-r5", base=BaseModelType.Wan)+ wan_wrap = WanTransformerField(+ transformer=wan_high,+ transformer_low_noise=wan_low,+ loras=[],+ loras_low_noise=[],+ boundary_ratio=0.75,+ )+ assert unwrap_metadata_value(wan_wrap, label="model") == wan_high+ assert unwrap_metadata_value(wan_wrap, label="wan_transformer_low_noise") == wan_low+ assert unwrap_metadata_value(wan_wrap.model_dump(), label="model")["key"] == "wan-high-r5"+ assert unwrap_metadata_value(wan_wrap.model_dump(), label="wan_transformer_low_noise")["key"] == "wan-low-r5"+ kept_wan = unwrap_metadata_value(wan_wrap, label="my_wan_custom")+ assert isinstance(kept_wan, WanTransformerField) and kept_wan.boundary_ratio == 0.75+ kept_wan_dict = unwrap_metadata_value(wan_wrap.model_dump(), label="my_wan_custom")+ assert isinstance(kept_wan_dict, dict) and kept_wan_dict["transformer_low_noise"]["key"] == "wan-low-r5"++ # 2. MiniMaxH3TransformerField (variant + adaln_overlay, no LoRAs)+ h3_tf = _make_model_id(key="h3-tf-r5", base=BaseModelType.MiniMaxH3)+ h3_ov = _make_model_id(key="h3-ov-r5", base=BaseModelType.MiniMaxH3)+ h3_tf_wrap = MiniMaxH3TransformerField(+ transformer=h3_tf,+ loras=[],+ variant="fl2va",+ adaln_overlay=MiniMaxH3AdaLNOverlayField(overlay=h3_ov, start_block=20, end_block=30, include_final_layer=True),+ )+ assert unwrap_metadata_value(h3_tf_wrap, label="minimax_h3_transformer_model") == h3_tf+ assert unwrap_metadata_value(h3_tf_wrap.model_dump(), label="minimax_h3_transformer_model")["key"] == "h3-tf-r5"+ assert isinstance(unwrap_metadata_value(h3_tf_wrap, label="my_h3_tf"), MiniMaxH3TransformerField)+ assert unwrap_metadata_value(h3_tf_wrap.model_dump(), label="my_h3_tf")["variant"] == "fl2va"++ # 3. LTX2TransformerField (variant, no LoRAs)+ ltx_tf = _make_model_id(key="ltx-tf-r5", base=BaseModelType.LTX2)+ ltx_tf_wrap = LTX2TransformerField(transformer=ltx_tf, loras=[], variant="ltx2_distilled")+ assert unwrap_metadata_value(ltx_tf_wrap, label="model") == ltx_tf+ assert unwrap_metadata_value(ltx_tf_wrap.model_dump(), label="model")["key"] == "ltx-tf-r5"+ assert isinstance(unwrap_metadata_value(ltx_tf_wrap, label="my_ltx_tf"), LTX2TransformerField)+ assert unwrap_metadata_value(ltx_tf_wrap.model_dump(), label="my_ltx_tf")["variant"] == "ltx2_distilled"++ # 4. MiniMaxH3TextEncoderField (processor, no LoRAs)+ h3_enc = _make_model_id(key="h3-enc-r5", base=BaseModelType.MiniMaxH3, submodel_type=SubModelType.TextEncoder)+ h3_proc = _make_model_id(key="h3-proc-r5", base=BaseModelType.MiniMaxH3)+ h3_enc_wrap = MiniMaxH3TextEncoderField(tokenizer=tok_id, processor=h3_proc, text_encoder=h3_enc)+ assert unwrap_metadata_value(h3_enc_wrap, label="minimax_h3_text_encoder_model") == h3_enc+ assert unwrap_metadata_value(h3_enc_wrap.model_dump(), label="minimax_h3_text_encoder_model")["key"] == "h3-enc-r5"+ assert isinstance(unwrap_metadata_value(h3_enc_wrap, label="my_h3_enc"), MiniMaxH3TextEncoderField)+ assert unwrap_metadata_value(h3_enc_wrap.model_dump(), label="my_h3_enc")["processor"]["key"] == "h3-proc-r5"++ # 5. LTX2TextEncoderField (connectors, no LoRAs)+ ltx_enc = _make_model_id(key="ltx-enc-r5", base=BaseModelType.LTX2, submodel_type=SubModelType.TextEncoder)+ ltx_conn = _make_model_id(key="ltx-conn-r5", base=BaseModelType.LTX2)+ ltx_enc_wrap = LTX2TextEncoderField(tokenizer=tok_id, text_encoder=ltx_enc, connectors=ltx_conn)+ assert unwrap_metadata_value(ltx_enc_wrap, label="ltx2_text_encoder_model") == ltx_enc+ assert unwrap_metadata_value(ltx_enc_wrap.model_dump(), label="ltx2_text_encoder_model")["key"] == "ltx-enc-r5"+ assert isinstance(unwrap_metadata_value(ltx_enc_wrap, label="my_ltx_enc"), LTX2TextEncoderField)+ assert unwrap_metadata_value(ltx_enc_wrap.model_dump(), label="my_ltx_enc")["connectors"]["key"] == "ltx-conn-r5"++ # 6. Qwen3VLEncoderField (vision_tower, no LoRAs)+ qvl_enc = _make_model_id(key="qvl-enc-r5", base=BaseModelType.Any, submodel_type=SubModelType.TextEncoder)+ qvl_vt = _make_model_id(key="qvl-vt-r5", base=BaseModelType.Any, model_type=ModelType.Qwen3VLVisionTower)+ qvl_wrap = Qwen3VLEncoderField(tokenizer=tok_id, text_encoder=qvl_enc, vision_tower=qvl_vt, loras=[])+ assert unwrap_metadata_value(qvl_wrap, label="qwen3_vl_encoder") == qvl_enc+ assert unwrap_metadata_value(qvl_wrap.model_dump(), label="qwen3_vl_encoder")["key"] == "qvl-enc-r5"+ assert isinstance(unwrap_metadata_value(qvl_wrap, label="my_qvl"), Qwen3VLEncoderField)+ assert unwrap_metadata_value(qvl_wrap.model_dump(), label="my_qvl")["vision_tower"]["key"] == "qvl-vt-r5"++ # 7. UNetField (freeu_config, no LoRAs/seamless) vs plain UNetField+ unet_id = _make_model_id(key="unet-r5", base=BaseModelType.StableDiffusionXL, submodel_type=SubModelType.UNet)+ unet_freeu = UNetField(+ unet=unet_id,+ scheduler=sched_id,+ loras=[],+ seamless_axes=[],+ freeu_config=FreeUConfig(s1=0.9, s2=0.2, b1=1.2, b2=1.4),+ )+ assert unwrap_metadata_value(unet_freeu, label="model") == unet_id+ assert unwrap_metadata_value(unet_freeu.model_dump(), label="model")["key"] == "unet-r5"+ assert isinstance(unwrap_metadata_value(unet_freeu, label="my_freeu_unet"), UNetField)+ assert unwrap_metadata_value(unet_freeu.model_dump(), label="my_freeu_unet")["freeu_config"]["s1"] == 0.9++ plain_unet = UNetField(unet=unet_id, scheduler=sched_id, loras=[], seamless_axes=[], freeu_config=None)+ assert unwrap_metadata_value(plain_unet, label="my_clean_unet") == unet_id+ assert unwrap_metadata_value(plain_unet.model_dump(), label="my_clean_unet")["key"] == "unet-r5"++ # 8. VAEField (seamless_axes) vs plain VAEField+ vae_id = _make_model_id(key="vae-r5", base=BaseModelType.StableDiffusionXL, model_type=ModelType.VAE)+ vae_seamless = VAEField(vae=vae_id, seamless_axes=["x"])+ assert unwrap_metadata_value(vae_seamless, label="vae") == vae_id+ assert unwrap_metadata_value(vae_seamless.model_dump(), label="vae")["key"] == "vae-r5"+ assert isinstance(unwrap_metadata_value(vae_seamless, label="my_seamless_vae"), VAEField)+ assert unwrap_metadata_value(vae_seamless.model_dump(), label="my_seamless_vae")["seamless_axes"] == ["x"]++ plain_vae = VAEField(vae=vae_id, seamless_axes=[])+ assert unwrap_metadata_value(plain_vae, label="my_clean_vae") == vae_id+ assert unwrap_metadata_value(plain_vae.model_dump(), label="my_clean_vae")["key"] == "vae-r5"++ # 9. CLIPField (skipped_layers != 0, no LoRAs) vs skipped_layers == 0+ clip_id = _make_model_id(key="clip-r5", base=BaseModelType.Any, model_type=ModelType.CLIPEmbed)+ clip_skip = CLIPField(tokenizer=tok_id, text_encoder=clip_id, skipped_layers=2, loras=[])+ assert unwrap_metadata_value(clip_skip, label="clip_embed_model") == clip_id+ assert unwrap_metadata_value(clip_skip.model_dump(), label="clip_embed_model")["key"] == "clip-r5"+ assert isinstance(unwrap_metadata_value(clip_skip, label="my_clip_skip"), CLIPField)+ assert unwrap_metadata_value(clip_skip.model_dump(), label="my_clip_skip")["skipped_layers"] == 2++ plain_clip = CLIPField(tokenizer=tok_id, text_encoder=clip_id, skipped_layers=0, loras=[])+ assert unwrap_metadata_value(plain_clip, label="my_clean_clip") == clip_id+ assert unwrap_metadata_value(plain_clip.model_dump(), label="my_clean_clip")["key"] == "clip-r5"+++def test_serialize_wan_lora_metadata_handles_raw_dict_lora_fields() -> None:+ """Non-ModelIdentifierField dict item.lora inputs via model_construct() must not raise TypeError."""+ from invokeai.app.invocations.metadata import serialize_wan_lora_metadata++ dict_with_key_a = {"key": "raw-a", "name": "Raw A"}+ dict_with_key_b = {"key": "raw-b", "name": "Raw B"}+ dict_without_key = {"name": "Keyless LoRA"}++ high = [+ SimpleNamespace(lora=dict_with_key_a, weight=0.8),+ SimpleNamespace(lora=dict_without_key, weight=0.6),+ ]+ low = [+ SimpleNamespace(lora=dict_with_key_a, weight=0.4),+ SimpleNamespace(lora=dict(dict_without_key), weight=0.6),+ SimpleNamespace(lora=dict_with_key_b, weight=0.5),+ ]+ serialized = serialize_wan_lora_metadata(high, low)+ assert len(serialized) == 3+ assert serialized[0] == {"model": dict_with_key_a, "weight": 0.8, "target": "both", "low_noise_weight": 0.4}+ assert serialized[1] == {"model": dict_without_key, "weight": 0.6, "target": "both"}+ assert serialized[2] == {"model": dict_with_key_b, "weight": 0.5, "target": "low"}+++def test_metadata_to_wan_loras_guards_malformed_weights() -> None:+ """MetadataToWanLorasInvocation warns and skips/falls back cleanly on None, bool, or non-numeric weights."""+ from unittest.mock import MagicMock++ from invokeai.app.invocations.metadata_linked import MetadataToWanLorasInvocation+ from invokeai.backend.model_manager.taxonomy import WanLoRAVariantType, WanVariantType++ high_tf = _make_model_id(key="wan-high", base=BaseModelType.Wan)+ low_tf = _make_model_id(key="wan-low", base=BaseModelType.Wan)+ lora_bad_none = _make_model_id(key="lora-none", base=BaseModelType.Wan, model_type=ModelType.LoRA)+ lora_bad_bool = _make_model_id(key="lora-bool", base=BaseModelType.Wan, model_type=ModelType.LoRA)+ lora_bad_str = _make_model_id(key="lora-str", base=BaseModelType.Wan, model_type=ModelType.LoRA)+ lora_bad_low_w = _make_model_id(key="lora-bad-low", base=BaseModelType.Wan, model_type=ModelType.LoRA)++ configs = {+ "wan-high": SimpleNamespace(+ key="wan-high",+ hash=high_tf.hash,+ name=high_tf.name,+ base=BaseModelType.Wan,+ type=ModelType.Main,+ variant=WanVariantType.T2V_A14B,+ ),+ **{+ m.key: SimpleNamespace(+ key=m.key,+ hash=m.hash,+ name=m.name,+ base=BaseModelType.Wan,+ type=ModelType.LoRA,+ expert=None,+ variant=WanLoRAVariantType.A14B,+ )+ for m in (lora_bad_none, lora_bad_bool, lora_bad_str, lora_bad_low_w)+ },+ }++ mock_logger = MagicMock()+ mock_ctx = SimpleNamespace(+ logger=mock_logger,+ models=SimpleNamespace(+ exists=lambda k: k in configs,+ get_config=lambda ident: configs[ident.key if hasattr(ident, "key") else ident],+ search_by_attrs=lambda **kw: [],+ ),+ )++ md = MetadataField.model_validate(+ {+ "loras": [+ {"model": lora_bad_none.model_dump(), "weight": None, "target": "high"},+ {"model": lora_bad_bool.model_dump(), "weight": True, "target": "high"},+ {"model": lora_bad_str.model_dump(), "weight": "not-a-number", "target": "low"},+ {+ "model": lora_bad_low_w.model_dump(),+ "weight": 0.75,+ "target": "both",+ "low_noise_weight": "bad",+ },+ ]+ }+ )+ clean_tf = WanTransformerField(transformer=high_tf, transformer_low_noise=low_tf, loras=[], loras_low_noise=[])+ out = (+ MetadataToWanLorasInvocation.model_construct(transformer=clean_tf, custom_label="loras", metadata=md)+ .invoke(mock_ctx)+ .transformer+ )+ assert out is not None+ assert [(x.lora.key, x.weight) for x in out.loras] == [("lora-bad-low", 0.75)]+ assert [(x.lora.key, x.weight) for x in out.loras_low_noise] == [("lora-bad-low", 0.75)]+ assert mock_logger.warning.call_count == 4+++def test_all_denoise_build_metadata_keys_registered_in_core_registry() -> None:+ """JP-6: Every scalar/model key emitted across _build_metadata() in all 19 active denoise nodes+ must be registered in CORE_METADATA_REGISTRY."""+ import ast+ import inspect+ import textwrap++ from invokeai.app.invocations import load_all_modules+ from invokeai.app.invocations.metadata_constants import CORE_METADATA_REGISTRY++ load_all_modules()+ registry_keys = {label for label, _ in CORE_METADATA_REGISTRY}+ non_registry_collection_keys = {"loras", "controlnets", "t2iAdapters", "ref_images", "minimax_h3_references"}++ active_denoise = [+ cls+ for cls in _discover_denoise_invocations()+ if not cls.get_type().endswith(("_denoise_meta", "_latents_meta"))+ ]+ assert len(active_denoise) == 19++ for cls in active_denoise:+ src = textwrap.dedent(inspect.getsource(cls._build_metadata))+ tree = ast.parse(src)+ emitted_keys: set[str] = set()+ for node in ast.walk(tree):+ if isinstance(node, ast.Dict):+ for k in node.keys:+ if isinstance(k, ast.Constant) and isinstance(k.value, str):+ emitted_keys.add(k.value)+ elif isinstance(node, ast.Subscript) and isinstance(node.value, ast.Name) and node.value.id == "updates":+ if isinstance(node.slice, ast.Constant) and isinstance(node.slice.value, str):+ emitted_keys.add(node.slice.value)+ unregistered = emitted_keys - registry_keys - non_registry_collection_keys+ assert not unregistered, f"{cls.get_type()}._build_metadata emits unregistered keys: {sorted(unregistered)}"+++def test_wan_lora_loader_ti2v_5b_single_vs_chained_target() -> None:+ """JP-R6-1: On TI2V-5B, chaining target='high' + target='low' for the same LoRA key raises ValueError,+ while a single WanLoRALoaderInvocation succeeds and populates output.transformer.loras."""+ from unittest.mock import MagicMock++ from invokeai.app.invocations.wan.wan_lora_loader import WanLoRALoaderInvocation+ from invokeai.backend.model_manager.taxonomy import WanLoRAVariantType, WanVariantType++ main_id = _make_model_id(key="wan-5b-main", base=BaseModelType.Wan)+ lora_id = _make_model_id(key="wan-5b-lora", base=BaseModelType.Wan, model_type=ModelType.LoRA)+ configs = {+ main_id.key: SimpleNamespace(+ key=main_id.key,+ hash=main_id.hash,+ name=main_id.name,+ base=BaseModelType.Wan,+ type=ModelType.Main,+ variant=WanVariantType.TI2V_5B,+ ),+ lora_id.key: SimpleNamespace(+ key=lora_id.key,+ hash=lora_id.hash,+ name=lora_id.name,+ base=BaseModelType.Wan,+ type=ModelType.LoRA,+ expert=None,+ variant=WanLoRAVariantType.Wan5B,+ ),+ }+ ctx = SimpleNamespace(+ logger=MagicMock(),+ models=SimpleNamespace(+ exists=lambda k: k in configs,+ get_config=lambda ident: configs[ident.key if hasattr(ident, "key") else ident],+ ),+ )++ transformer = WanTransformerField(transformer=main_id, transformer_low_noise=None, loras=[], loras_low_noise=[])++ # Single invocation (e.g. target="both" or "high") succeeds and populates output.transformer.loras+ single_out = WanLoRALoaderInvocation(+ id="wan-lora-single",+ lora=lora_id,+ weight=0.75,+ target="both",+ transformer=transformer,+ ).invoke(ctx)+ assert single_out.transformer is not None+ assert [(item.lora.key, item.weight) for item in single_out.transformer.loras] == [("wan-5b-lora", 0.75)]++ # Chaining target="high" followed by target="low" for the same key on TI2V-5B raises ValueError+ high_out = WanLoRALoaderInvocation(+ id="wan-lora-high",+ lora=lora_id,+ weight=0.8,+ target="high",+ transformer=transformer,+ ).invoke(ctx)+ assert high_out.transformer is not None+ with pytest.raises(ValueError, match="already applied to primary"):+ WanLoRALoaderInvocation(+ id="wan-lora-low",+ lora=lora_id,+ weight=0.4,+ target="low",+ transformer=high_out.transformer,+ ).invoke(ctx)diff --git a/tests/app/invocations/test_qwen_image_2_1_nodes.py b/tests/app/invocations/test_qwen_image_2_1_nodes.pyindex 34ce1ee12d..340296bd3c 100644--- a/tests/app/invocations/test_qwen_image_2_1_nodes.py+++ b/tests/app/invocations/test_qwen_image_2_1_nodes.py@@ -788,13 +788,19 @@ def test_the_metadata_records_whether_the_prefix_was_cached(cache_fits: bool, monode = _denoise(reference_latents=LatentsField(latents_name="ref"),cfg_scale=4.0,- metadata=MetadataField.model_validate({"seed": 7, "steps": 3}),+ seed=7,+ steps=3,+ metadata=MetadataField.model_validate({"positive_prompt": "a cat"}),)output = node.invoke(context)- # What the graph recorded passes through, with the mode this run took beside it.- assert output.metadata.root == {"seed": 7, "steps": 3, PREFIX_CACHE_METADATA_KEY: cache_fits}+ # What the graph recorded passes through, with the denoise fields and cache mode beside it.+ assert output.metadata.root["positive_prompt"] == "a cat"+ assert output.metadata.root["seed"] == 7+ assert output.metadata.root["steps"] == 3+ assert output.metadata.root["cfg_scale"] == 4.0+ assert output.metadata.root[PREFIX_CACHE_METADATA_KEY] is cache_fitsassert (output.latents.latents_name, output.width, output.height) == ("out", 64, 64)