Skip to content

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.

feat(moss-image): place canvas regional guidance as MOSS-Image layout elements (#9925)

Alexander Eichhorn612f87b1ae49
diff --git a/docs/src/content/docs/Users Guide/03.Models/Local Models/moss-image.mdx b/docs/src/content/docs/Users Guide/03.Models/Local Models/moss-image.mdx
index b965e21fc8..88880288e3 100644
--- a/docs/src/content/docs/Users Guide/03.Models/Local Models/moss-image.mdx
+++ b/docs/src/content/docs/Users Guide/03.Models/Local Models/moss-image.mdx
@@ -1,6 +1,6 @@
---
title: MOSS-Image
-description: Generate and edit images with OpenMOSS's MOSS-Image Base and SFT, from the Diffusers pipelines or a single-file transformer, including JSON layout prompts.
+description: Generate and edit images with OpenMOSS's MOSS-Image Base and SFT, from the Diffusers pipelines or a single-file transformer, including JSON layout prompts and layouts from canvas regions.
lastUpdated: 2026-10-18
sidebar:
order: 8
@@ -17,8 +17,8 @@ weights:
clearly and lays out scenes more cleanly.
Both run at **50 steps** with **CFG 3** and support negative prompts. MOSS-Image works in the Generate tab,
-on the Canvas (image-to-image, inpainting and outpainting) and in the workflow editor, and it can decode
-with [PiD](/users-guide/image-generation/advanced-topics/pid-decode/).
+on the Canvas (image-to-image, inpainting, outpainting and [regional guidance](#layout-with-canvas-regions))
+and in the workflow editor, and it can decode with [PiD](/users-guide/image-generation/advanced-topics/pid-decode/).
## License
@@ -160,7 +160,7 @@ field in the format OpenMOSS defines; OpenMOSS calls this experimental. For a 10
```
- `summary.caption` describes the whole scene and its style.
-- Each entry in `items` has a `label` (the examples use `text` and `object`), a `caption` describing it, its
+- Each entry in `items` has a `label` (`object`, `character` or `text`), a `caption` describing it, its
`bbox`, and for text the exact `text` to render.
- `bbox` is `[y_min, x_min, y_max, x_max]` in pixels, measured from the **center** of the image, with x
growing to the right and y downward. A 1024×1024 image runs from `-512` to `512` on both axes. To convert
@@ -170,11 +170,39 @@ The coordinates are absolute pixels, so a layout made for one size needs new coo
width or height. See OpenMOSS's [user guide](https://github.com/OpenMOSS/MOSS-Image/blob/main/USERGUIDE.md)
for the format.
+### Layout with canvas regions
+
+On the Canvas, InvokeAI builds the JSON layout for you from **Regional Guidance** layers. The main prompt
+becomes the layout's `summary.caption`, and each enabled regional guidance layer becomes one element: the
+region's **Positive prompt** describes it, and its box is the rectangle around everything painted on the
+layer inside the generation frame, scaled to the generation size. The shape does not matter, and separate
+painted areas on one layer share one box.
+
+With a MOSS-Image model selected, the layer's **Layer** section in **Properties** has a **Region type**:
+
+- **Character** is for people and creatures, **Object**, the default, for everything else.
+- **Text** renders text. Enter the exact characters in **Visible text**, and describe how they look in the
+ positive prompt. The field takes several lines; each line break reaches the model as `\n`, and the text
+ breaks there.
+
+A region without a positive prompt, or a Text region without visible text, is left out of the layout, and the
+layer's settings say why. When a region can be placed, the main prompt cannot be blank: Invoke is disabled
+with *MOSS-Image needs a prompt to place regional guidance in its layout. Enter a prompt or disable the
+regional guidance layers.* Regional negative prompts, auto-negative and regional reference images are not used
+with MOSS-Image; the layer hides its negative prompt and auto-negative controls.
+
+Without regions the prompt is sent unchanged. If the prompt already is a JSON layout in the format above, the
+regions are added to its `items`; a layout with another `bbox_coord_space` or `bbox_format` makes the
+generation fail with a message. Any other prompt, including JSON that is not a layout, becomes the caption.
+The layout is built when the generation runs, so dynamic prompts and batches vary the caption inside it. The
+encoded layout is saved in the image's metadata as `moss_image_layout_prompt`.
+
## Limitations
- LoRA is not supported.
- Quantized transformers are refused at install (see [Installing](#installing)).
-- ControlNet, reference images, regional prompting and seamless tiling are not available.
+- ControlNet, reference images and seamless tiling are not available.
+- Regional guidance places boxes in a layout; it has no regional negative prompts or regional reference images.
- MOSS-Image is not offered in the [Upscale panel](/users-guide/image-generation/upscale/).
## Workflow nodes
@@ -182,6 +210,7 @@ for the format.
| Node | Purpose |
| --------------------------------- | -------------------------------------------------------------------------- |
| **Main Model - MOSS-Image** | Loads the transformer, and the Qwen3.5 9B encoder and VAE from the pipeline or from the standalone models selected |
+| **Layout Prompt - MOSS-Image** | Builds a JSON layout from a prompt and a list of regions, each with a type, a caption, visible text for text regions, and a pixel box `[x1, y1, x2, y2]` from the image's top-left. The Canvas feeds it for regional guidance; its regions input has no editor widget |
| **Prompt - MOSS-Image** | Encodes a prompt with the Qwen3.5 9B encoder |
| **Denoise - MOSS-Image** | Runs sampling; accepts image-to-image latents and an inpainting mask, and takes the skip layers as **Uncond Skip Layers** |
| **Image to Latents - FLUX2** | VAE encode, for image-to-image and inpainting |
diff --git a/docs/src/content/docs/Users Guide/07.Canvas/01.introduction.mdx b/docs/src/content/docs/Users Guide/07.Canvas/01.introduction.mdx
index aa990fc698..b4c258b658 100644
--- a/docs/src/content/docs/Users Guide/07.Canvas/01.introduction.mdx
+++ b/docs/src/content/docs/Users Guide/07.Canvas/01.introduction.mdx
@@ -128,7 +128,7 @@ Regional guidance gives one area of the image its own prompt. For example, keep
To guide a region with an image instead of, or as well as, words, choose **Add reference image** from the regional guidance layer's right-click menu, or add a **Regional reference image** layer from the **+** menu. The reference appears as a row under the layer; select that row to choose its image, model and weight in Properties.
-Regional guidance works with SD 1.5, SDXL, FLUX.1, FLUX.2, Krea-2, Z-Image and Anima. Regional negative prompts are available for SD 1.5 and SDXL, and regional reference images for SD 1.5, SDXL (IP-Adapter) and FLUX.1 (FLUX Redux). With other models, regional layers are skipped, and the layer's Properties say so. For a reference image that applies to the whole picture, use **Add reference image** in the Generate panel instead.
+Regional guidance works with SD 1.5, SDXL, FLUX.1, FLUX.2, Krea-2, Z-Image, Anima and MOSS-Image. MOSS-Image places each region as a box in a JSON layout instead of masking its prompt, and offers a **Region type** (Object by default, Character or Text); see [MOSS-Image](/users-guide/models/local-models/moss-image/#layout-with-canvas-regions). Regional negative prompts are available for SD 1.5 and SDXL, and regional reference images for SD 1.5, SDXL (IP-Adapter) and FLUX.1 (FLUX Redux). With other models, regional layers are skipped, and the layer's Properties say so. For a reference image that applies to the whole picture, use **Add reference image** in the Generate panel instead.
## Control layers
diff --git a/docs/src/content/docs/contributing/new-model-integration.mdx b/docs/src/content/docs/contributing/new-model-integration.mdx
index cc67fc25a1..a9a85fe520 100644
--- a/docs/src/content/docs/contributing/new-model-integration.mdx
+++ b/docs/src/content/docs/contributing/new-model-integration.mdx
@@ -659,7 +659,7 @@ File: `invokeai/app/invocations/metadata.py`
2. **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. Adding one requires a node version bump and follows the `CORE_METADATA_VERSION` rules documented in [Media Metadata](/development/architecture/media-metadata/).
+ `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>
---
diff --git a/docs/src/content/docs/development/Architecture/media-metadata.mdx b/docs/src/content/docs/development/Architecture/media-metadata.mdx
index f9f37dcc2e..5cb7577909 100644
--- a/docs/src/content/docs/development/Architecture/media-metadata.mdx
+++ b/docs/src/content/docs/development/Architecture/media-metadata.mdx
@@ -1,7 +1,7 @@
---
title: Media Metadata
description: How generation metadata travels inside PNG and MP4 files, the versioned record schema, and what a recall can restore on another install.
-lastUpdated: 2026-09-19
+lastUpdated: 2026-10-18
---
Every image and video InvokeAI produces carries its generation record **inside the file**, so a
@@ -60,7 +60,7 @@ H3Reference = { kind: "image" | "video", image_name?, video_name?, detail?,
| Key | Type | Meaning |
|---|---|---|
-| `metadata_version` | semver string | The record schema version, currently `1.0.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.1.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
diff --git a/invokeai/app/invocations/metadata.py b/invokeai/app/invocations/metadata.py
index cca8ff6827..996ec8d40f 100644
--- a/invokeai/app/invocations/metadata.py
+++ b/invokeai/app/invocations/metadata.py
@@ -233,7 +233,7 @@ 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.0.0"
+CORE_METADATA_VERSION = "1.1.0"
@invocation(
@@ -241,7 +241,7 @@ CORE_METADATA_VERSION = "1.0.0"
title="Core Metadata",
tags=["metadata"],
category="metadata",
- version="2.7.0",
+ version="2.8.0",
classification=Classification.Internal,
)
class CoreMetadataInvocation(BaseInvocation):
@@ -309,6 +309,12 @@ class CoreMetadataInvocation(BaseInvocation):
default=None,
description="The structured JSON caption encoded for Ideogram 4 inference",
)
+ # MOSS-Image places canvas regions on the prompt at generation time (moss_image_layout_prompt), so, as for
+ # `ideogram4_caption`, the graph records the layout prompt actually encoded through an edge.
+ moss_image_layout_prompt: Optional[str] = InputField(
+ default=None,
+ description="The JSON layout prompt encoded for MOSS-Image inference",
+ )
# Video generation. Frame count and keyframes have no home among the image fields, and
# the two MiniMax H3 single-file overrides are separate models from the main install, so
diff --git a/invokeai/app/invocations/moss_image/moss_image_layout_prompt.py b/invokeai/app/invocations/moss_image/moss_image_layout_prompt.py
new file mode 100644
index 0000000000..885d7e9e16
--- /dev/null
+++ b/invokeai/app/invocations/moss_image/moss_image_layout_prompt.py
@@ -0,0 +1,41 @@
+from invokeai.app.invocations.baseinvocation import BaseInvocation, Classification, invocation
+from invokeai.app.invocations.fields import InputField, UIComponent
+from invokeai.app.invocations.primitives import StringOutput
+from invokeai.app.services.shared.invocation_context import InvocationContext
+from invokeai.backend.moss_image.layout import MossImageLayoutRegion, build_moss_image_layout_prompt
+
+
+@invocation(
+ "moss_image_layout_prompt",
+ title="Layout Prompt - MOSS-Image",
+ tags=["prompt", "layout", "moss_image", "moss-image"],
+ category="conditioning",
+ version="1.0.0",
+ classification=Classification.Prototype,
+)
+class MossImageLayoutPromptInvocation(BaseInvocation):
+ """Places regions on a MOSS-Image prompt as a JSON layout, at generation time.
+
+ The layout is built here rather than by the graph builder so the prompt that dynamic prompts and batching vary is
+ the one laid out. Without regions the prompt passes through unchanged; a prompt that already is a layout gets the
+ regions appended to its items.
+ """
+
+ prompt: str = InputField(
+ default="",
+ description="The image prompt: plain text becomes the layout's summary caption, a compiled layout gets the "
+ "regions appended.",
+ ui_component=UIComponent.Textarea,
+ )
+ regions: list[MossImageLayoutRegion] = InputField(
+ default=[],
+ description="Layout elements, in pixels of the width x height image, assembled from Canvas Regional Guidance "
+ "layers.",
+ )
+ width: int = InputField(default=1024, gt=0, multiple_of=16, description="Width of the generated image.")
+ height: int = InputField(default=1024, gt=0, multiple_of=16, description="Height of the generated image.")
+
+ def invoke(self, context: InvocationContext) -> StringOutput:
+ return StringOutput(
+ value=build_moss_image_layout_prompt(self.prompt, self.regions, width=self.width, height=self.height)
+ )
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.json
index 6f2bd5f0b5..04a28df6fa 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
@@ -427,7 +427,7 @@
"type": "invocation",
"data": {
"id": "core_metadata",
- "version": "2.7.0",
+ "version": "2.8.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.json
index 8c672763de..a46e4c4326 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
@@ -579,7 +579,7 @@
"type": "invocation",
"data": {
"id": "core_metadata",
- "version": "2.7.0",
+ "version": "2.8.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.json
index 4dbce27fae..fc4d28052a 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
@@ -338,7 +338,7 @@
"type": "invocation",
"data": {
"id": "9e2b5033-4c5d-4e7f-a081-9c0d1e2f3a04",
- "version": "2.7.0",
+ "version": "2.8.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 to Image - LTX-2.json b/invokeai/app/services/workflow_records/default_workflows/Extend Video to Image - LTX-2.json
index 5a721fc99b..92e0b9ca56 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
@@ -583,7 +583,7 @@
"type": "invocation",
"data": {
"id": "core_metadata",
- "version": "2.7.0",
+ "version": "2.8.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/First Frame to Video - LTX-2.json b/invokeai/app/services/workflow_records/default_workflows/First Frame to Video - LTX-2.json
index b29f06f125..a3b34de5b1 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
@@ -423,7 +423,7 @@
"type": "invocation",
"data": {
"id": "core_metadata",
- "version": "2.7.0",
+ "version": "2.8.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.json
index 5d686ac4cf..c6e641191e 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
@@ -330,7 +330,7 @@
"type": "invocation",
"data": {
"id": "9e2b5033-4c5d-4e7f-a081-9c0d1e2f3a04",
- "version": "2.7.0",
+ "version": "2.8.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.json
index e965d20cb7..6e82a0d7eb 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
@@ -427,7 +427,7 @@
"type": "invocation",
"data": {
"id": "core_metadata",
- "version": "2.7.0",
+ "version": "2.8.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.json
index 90c3ba0b2e..3ac1b09d05 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
@@ -334,7 +334,7 @@
"type": "invocation",
"data": {
"id": "9e2b5033-4c5d-4e7f-a081-9c0d1e2f3a04",
- "version": "2.7.0",
+ "version": "2.8.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/Last Frame to Video - LTX-2.json b/invokeai/app/services/workflow_records/default_workflows/Last Frame to Video - LTX-2.json
index d2e95ec650..caaebf8675 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
@@ -423,7 +423,7 @@
"type": "invocation",
"data": {
"id": "core_metadata",
- "version": "2.7.0",
+ "version": "2.8.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.json
index cc09566738..30df733d65 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
@@ -330,7 +330,7 @@
"type": "invocation",
"data": {
"id": "9e2b5033-4c5d-4e7f-a081-9c0d1e2f3a04",
- "version": "2.7.0",
+ "version": "2.8.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.json
index 70d60aae02..8d2a4325e3 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
@@ -380,7 +380,7 @@
"type": "invocation",
"data": {
"id": "9e2b5033-4c5d-4e7f-a081-9c0d1e2f3a04",
- "version": "2.7.0",
+ "version": "2.8.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.json
index 430ec51ff8..60d31b2aa1 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
@@ -431,7 +431,7 @@
"type": "invocation",
"data": {
"id": "core_metadata",
- "version": "2.7.0",
+ "version": "2.8.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 w_ LoRA Collection.json b/invokeai/app/services/workflow_records/default_workflows/Text to Video - LTX-2 w_ LoRA Collection.json
index 6f55a55b4f..dfece09cf2 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
@@ -435,7 +435,7 @@
"type": "invocation",
"data": {
"id": "core_metadata",
- "version": "2.7.0",
+ "version": "2.8.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.json
index c1ba0d6a34..2df6198c20 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
@@ -427,7 +427,7 @@
"type": "invocation",
"data": {
"id": "core_metadata",
- "version": "2.7.0",
+ "version": "2.8.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.json
index fc8a66003a..774dd0e956 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
@@ -334,7 +334,7 @@
"type": "invocation",
"data": {
"id": "9e2b5033-4c5d-4e7f-a081-9c0d1e2f3a04",
- "version": "2.7.0",
+ "version": "2.8.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/Video to Audio - LTX-2.json b/invokeai/app/services/workflow_records/default_workflows/Video to Audio - LTX-2.json
index 2d8c40109a..fbed7787f7 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
@@ -388,7 +388,7 @@
"type": "invocation",
"data": {
"id": "core_metadata",
- "version": "2.7.0",
+ "version": "2.8.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/backend/architectures/defs/moss_image.py b/invokeai/backend/architectures/defs/moss_image.py
index cd0f8a948e..d1d2a44553 100644
--- a/invokeai/backend/architectures/defs/moss_image.py
+++ b/invokeai/backend/architectures/defs/moss_image.py
@@ -39,5 +39,8 @@ register(
# The denoise node takes no scheduler: the set only names the default for the UI, which keeps the picker
# hidden (`scheduler_applies_to_graph` stays False), as for Ideogram 4.
scheduler_set="flow",
+ # Regions are not masked: each becomes a box in the JSON layout prompt (`moss_image_layout_prompt`), which
+ # has no negative counterpart, so `regional_negative` keeps its False default.
+ supports_regional_guidance=True,
),
)
diff --git a/invokeai/backend/moss_image/NOTICE.md b/invokeai/backend/moss_image/NOTICE.md
index 7a28bb8ea8..8e0e680f6d 100644
--- a/invokeai/backend/moss_image/NOTICE.md
+++ b/invokeai/backend/moss_image/NOTICE.md
@@ -14,8 +14,19 @@ Team as the author.
Modifications by the InvokeAI project: the `MOSSImagePipeline` class and the imports only it
used were removed, a provenance comment was added at the top of the file, and the transformer's
timestep embedding is computed on the CPU on devices without float64 (MPS); the full list is in
-`__init__.py`. The remaining modules in this package are original InvokeAI code that
-drives the vendored model in InvokeAI invocations.
+`__init__.py`.
+
+`layout.py` ports the box conversion and serialization of the layout compiler in OpenMOSS'
+prompt-enhancer skill, https://github.com/OpenMOSS/MOSS-Image (file
+`skills/moss-image-prompt-enhancer/scripts/compile_prompt.py`, commit
+`c1355e6b1986dfe8fba3c0455783a05899212342`), Apache-2.0 under the same terms; the repository's
+`LICENSE` is likewise the unmodified Apache-2.0 text. InvokeAI builds the layout items from canvas
+regions instead of compiling a whole draft; the differences are listed in the module docstring.
+`tests/backend/moss_image/test_layout.py` ports expectations from that skill's
+`test_compile_prompt.py`.
+
+The remaining modules in this package are original InvokeAI code that drives the vendored model
+in InvokeAI invocations.
The MOSS-Image model **weights** are also released under the Apache License, Version 2.0, as
stated on the model card.
diff --git a/invokeai/backend/moss_image/__init__.py b/invokeai/backend/moss_image/__init__.py
index dd513780d4..9f8c467f67 100644
--- a/invokeai/backend/moss_image/__init__.py
+++ b/invokeai/backend/moss_image/__init__.py
@@ -21,5 +21,6 @@ Keep the file otherwise byte-identical to upstream: it is excluded from ``ruff f
upstream's import order (``pyproject.toml``), so syncing a new revision is a copy plus exactly the
changes above. InvokeAI drives the transformer with its own loop (``denoise.py``); ``sampling.py``
holds the schedule, the initial noise and the conversion between InvokeAI's FLUX.2 latent layout and
-the model's.
+the model's. ``layout.py`` turns canvas regions into the model's JSON layout prompt, ported from
+OpenMOSS' prompt-enhancer skill (provenance in its docstring).
"""
diff --git a/invokeai/backend/moss_image/layout.py b/invokeai/backend/moss_image/layout.py
new file mode 100644
index 0000000000..1d94797308
--- /dev/null
+++ b/invokeai/backend/moss_image/layout.py
@@ -0,0 +1,162 @@
+"""MOSS-Image layout prompts built from canvas regions.
+
+MOSS-Image reads either plain text or a compact JSON layout: a ``summary`` with the global ``caption``, a flat list
+of ``items`` (each a ``label``, a ``caption``, a ``bbox`` and, for text, the literal ``text``), and the box
+convention the model was trained on. The box conversion and the serialization are ported from OpenMOSS' prompt
+enhancer, https://github.com/OpenMOSS/MOSS-Image at commit c1355e6b1986dfe8fba3c0455783a05899212342,
+``skills/moss-image-prompt-enhancer/scripts/compile_prompt.py`` (``centered_box`` and the end of
+``compile_prompt``; vocabulary in ``references/layout.md``), Apache-2.0 (see ``NOTICE.md``). The reference compiles a
+whole draft; InvokeAI builds only the items, from Regional Guidance layers, and either wraps them around the user's
+prompt or appends them to a layout the user already wrote.
+
+Differences from the reference:
+
+- A region's ``kind`` is the item ``label``. Only ``text`` regions carry ``text``: the reference also accepts it on
+ objects, but InvokeAI's region panel offers the visible-text field for text regions only, so a value on another
+ kind would be a stale one that reaches the model unseen.
+- Items have no ``tags`` or ``palette``, and their keys are always in the order ``label, caption, bbox, text``. The
+ reference compiler keeps whatever order a draft has, and the sources disagree: ``USERGUIDE.md`` and
+ ``references/layout.md`` put ``text`` before ``bbox``, while the gallery's layout prompts in the same repository
+ commit (``assets/images/011/parameters.json`` and ``014``) use ``label, caption, bbox, text``, which is what this
+ module emits (``002`` puts ``bbox`` first).
+"""
+
+import json
+import math
+from collections.abc import Sequence
+from typing import Annotated, Any, Literal
+
+from pydantic import BaseModel, Field, field_validator, model_validator
+
+# The compiled layout's box convention: pixel offsets from the canvas centre, ordered [y1, x1, y2, x2].
+_COORD_SPACE = "abs_centralized"
+_BBOX_FORMAT = "yxyx"
+
+# Four pixel edges [x1, y1, x2, y2] from the top-left of the image. Strict floats take JSON ints and floats but,
+# like the reference's `type(v) in (int, float)` check, reject booleans and numeric strings.
+MossImageLayoutBbox = Annotated[
+ list[Annotated[float, Field(ge=0, allow_inf_nan=False, strict=True)]],
+ Field(min_length=4, max_length=4),
+]
+
+
+class MossImageLayoutRegion(BaseModel):
+ """One MOSS-Image layout element: what a canvas region depicts, and where."""
+
+ kind: Literal["object", "character", "text"] = Field(
+ description="What the region depicts. Becomes the layout item's `label`."
+ )
+ caption: str = Field(description="The region's visible appearance. Must not be blank.")
+ text: str | None = Field(
+ default=None,
+ description="The exact visible characters of a `text` region (required and non-blank there). Must be null "
+ "for other kinds.",
+ )
+ bbox: MossImageLayoutBbox = Field(
+ description="Pixel box [x1, y1, x2, y2] from the image's top-left, with x1 < x2 and y1 < y2. Checked against "
+ "the image size when the prompt is built."
+ )
+
+ @field_validator("caption")
+ @classmethod
+ def _caption_is_not_blank(cls, caption: str) -> str:
+ if not caption.strip():
+ raise ValueError("caption must not be blank")
+ return caption
+
+ @field_validator("bbox")
+ @classmethod
+ def _bbox_has_area(cls, bbox: list[float]) -> list[float]:
+ x1, y1, x2, y2 = bbox
+ if not (x1 < x2 and y1 < y2):
+ raise ValueError(f"bbox must be [x1, y1, x2, y2] with x1 < x2 and y1 < y2, got {bbox}")
+ return bbox
+
+ @model_validator(mode="after")
+ def _text_matches_kind(self) -> "MossImageLayoutRegion":
+ if self.kind == "text":
+ if self.text is None or not self.text.strip():
+ raise ValueError("a text region needs the exact text it shows")
+ elif self.text is not None:
+ raise ValueError(f"only text regions carry text; this {self.kind} region has text={self.text!r}")
+ return self
+
+
+def build_moss_image_layout_prompt(
+ prompt: str, regions: Sequence[MossImageLayoutRegion], width: int, height: int
+) -> str:
+ """The prompt MOSS-Image encodes for ``prompt`` with ``regions`` placed on a ``width`` x ``height`` image.
+
+ - No regions: ``prompt`` unchanged, whether plain text or a JSON layout.
+ - The prompt is a compiled layout (a JSON object with ``summary`` and ``items``): the regions are appended to its
+ ``items``; every other key keeps its value and position. A layout in another box convention is refused rather
+ than mixed with these boxes.
+ - Anything else, including JSON that is not such a layout and text that is not valid JSON, is the caption of a new
+ layout: ``{"summary":{"caption":prompt},"items":[...],"bbox_coord_space":...,"bbox_format":...}``.
+
+ Raises ValueError for a blank caption, a layout in another convention, or a region whose box leaves the image or
+ has no area at whole-pixel precision.
+ """
+ if not regions:
+ return prompt
+
+ items = [_layout_item(index, region, width, height) for index, region in enumerate(regions)]
+ layout = _parse_compiled_layout(prompt)
+ if layout is None:
+ if not prompt.strip():
+ raise ValueError("MOSS-Image layout regions need a prompt: it becomes the layout's summary caption.")
+ layout = {
+ "summary": {"caption": prompt},
+ "items": items,
+ "bbox_coord_space": _COORD_SPACE,
+ "bbox_format": _BBOX_FORMAT,
+ }
+ else:
+ layout["items"].extend(items)
+ return json.dumps(layout, ensure_ascii=False, separators=(",", ":"), allow_nan=False)
+
+
+def _layout_item(index: int, region: MossImageLayoutRegion, width: int, height: int) -> dict[str, Any]:
+ name = f"Layout region {index + 1} ({region.caption!r})"
+ x1, y1, x2, y2 = region.bbox
+ # x1 and y1 are >= 0 and below x2 and y2 (MossImageLayoutRegion), so these two bounds keep the box on the image.
+ if x2 > width or y2 > height:
+ raise ValueError(f"{name} has bbox {region.bbox}, which leaves the {width}x{height} image.")
+ # Enclose the box in whole pixels, then centre it (reference `centered_box`).
+ bbox = [
+ math.floor(round(y1, 9)) - height // 2,
+ math.floor(round(x1, 9)) - width // 2,
+ math.ceil(round(y2, 9)) - height // 2,
+ math.ceil(round(x2, 9)) - width // 2,
+ ]
+ if not (bbox[0] < bbox[2] and bbox[1] < bbox[3]):
+ raise ValueError(f"{name} has bbox {region.bbox}, which has no area at whole-pixel precision.")
+ item: dict[str, Any] = {"label": region.kind, "caption": region.caption, "bbox": bbox}
+ if region.text is not None:
+ item["text"] = region.text
+ return item
+
+
+def _parse_compiled_layout(prompt: str) -> dict[str, Any] | None:
+ """The prompt as a compiled layout, or None when it is caption text."""
+ try:
+ parsed = json.loads(prompt, parse_constant=_reject_constant)
+ except ValueError:
+ return None
+ if not (isinstance(parsed, dict) and "summary" in parsed and "items" in parsed):
+ return None
+ if (
+ not isinstance(parsed["items"], list)
+ or parsed.get("bbox_coord_space") != _COORD_SPACE
+ or parsed.get("bbox_format") != _BBOX_FORMAT
+ ):
+ raise ValueError(
+ "The prompt is a MOSS-Image layout, but regions can only be added to a compiled one: a list of items with "
+ f'"bbox_coord_space":"{_COORD_SPACE}" and "bbox_format":"{_BBOX_FORMAT}".'
+ )
+ return parsed
+
+
+def _reject_constant(value: str) -> None:
+ # NaN and Infinity are not JSON, though Python's parser reads them.
+ raise ValueError(f"Invalid JSON number: {value}")
diff --git a/invokeai/frontend/api/openapi.json b/invokeai/frontend/api/openapi.json
index 32c14370f4..f4128cd361 100644
--- a/invokeai/frontend/api/openapi.json
+++ b/invokeai/frontend/api/openapi.json
@@ -31116,6 +31116,23 @@
"orig_required": false,
"title": "Ideogram4 Caption"
},
+ "moss_image_layout_prompt": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The JSON layout prompt encoded for MOSS-Image inference",
+ "field_kind": "input",
+ "input": "any",
+ "orig_default": null,
+ "orig_required": false,
+ "title": "Moss Image Layout Prompt"
+ },
"num_frames": {
"anyOf": [
{
@@ -31630,7 +31647,7 @@
"tags": ["metadata"],
"title": "Core Metadata",
"type": "object",
- "version": "2.7.0",
+ "version": "2.8.0",
"output": {
"$ref": "#/components/schemas/MetadataOutput"
}
@@ -45633,6 +45650,9 @@
{
"$ref": "#/components/schemas/MossImageDenoiseInvocation"
},
+ {
+ "$ref": "#/components/schemas/MossImageLayoutPromptInvocation"
+ },
{
"$ref": "#/components/schemas/MossImageModelLoaderInvocation"
},
@@ -56055,6 +56075,9 @@
{
"$ref": "#/components/schemas/MossImageDenoiseInvocation"
},
+ {
+ "$ref": "#/components/schemas/MossImageLayoutPromptInvocation"
+ },
{
"$ref": "#/components/schemas/MossImageModelLoaderInvocation"
},
@@ -57712,6 +57735,9 @@
{
"$ref": "#/components/schemas/MossImageDenoiseInvocation"
},
+ {
+ "$ref": "#/components/schemas/MossImageLayoutPromptInvocation"
+ },
{
"$ref": "#/components/schemas/MossImageModelLoaderInvocation"
},
@@ -58882,6 +58908,9 @@
"moss_image_denoise": {
"$ref": "#/components/schemas/LatentsOutput"
},
+ "moss_image_layout_prompt": {
+ "$ref": "#/components/schemas/StringOutput"
+ },
"moss_image_model_loader": {
"$ref": "#/components/schemas/MossImageModelLoaderOutput"
},
@@ -59466,6 +59495,7 @@
"mlsd_detection",
"model_identifier",
"moss_image_denoise",
+ "moss_image_layout_prompt",
"moss_image_model_loader",
"moss_image_text_encoder",
"mul",
@@ -60386,6 +60416,9 @@
{
"$ref": "#/components/schemas/MossImageDenoiseInvocation"
},
+ {
+ "$ref": "#/components/schemas/MossImageLayoutPromptInvocation"
+ },
{
"$ref": "#/components/schemas/MossImageModelLoaderInvocation"
},
@@ -61658,6 +61691,9 @@
{
"$ref": "#/components/schemas/MossImageDenoiseInvocation"
},
+ {
+ "$ref": "#/components/schemas/MossImageLayoutPromptInvocation"
+ },
{
"$ref": "#/components/schemas/MossImageModelLoaderInvocation"
},
@@ -92515,6 +92551,145 @@
"$ref": "#/components/schemas/LatentsOutput"
}
},
+ "MossImageLayoutPromptInvocation": {
+ "category": "conditioning",
+ "class": "invocation",
+ "classification": "prototype",
+ "description": "Places regions on a MOSS-Image prompt as a JSON layout, at generation time.\n\nThe layout is built here rather than by the graph builder so the prompt that dynamic prompts and batching vary is\nthe one laid out. Without regions the prompt passes through unchanged; a prompt that already is a layout gets the\nregions appended to its items.",
+ "node_pack": "invokeai",
+ "properties": {
+ "id": {
+ "description": "The id of this instance of an invocation. Must be unique among all instances of invocations.",
+ "field_kind": "node_attribute",
+ "title": "Id",
+ "type": "string"
+ },
+ "is_intermediate": {
+ "default": false,
+ "description": "Whether or not this is an intermediate invocation.",
+ "field_kind": "node_attribute",
+ "input": "direct",
+ "orig_required": true,
+ "title": "Is Intermediate",
+ "type": "boolean",
+ "ui_hidden": false,
+ "ui_type": "IsIntermediate"
+ },
+ "use_cache": {
+ "default": true,
+ "description": "Whether or not to use the cache",
+ "field_kind": "node_attribute",
+ "title": "Use Cache",
+ "type": "boolean"
+ },
+ "prompt": {
+ "default": "",
+ "description": "The image prompt: plain text becomes the layout's summary caption, a compiled layout gets the regions appended.",
+ "field_kind": "input",
+ "input": "any",
+ "orig_default": "",
+ "orig_required": false,
+ "title": "Prompt",
+ "type": "string",
+ "ui_component": "textarea"
+ },
+ "regions": {
+ "default": [],
+ "description": "Layout elements, in pixels of the width x height image, assembled from Canvas Regional Guidance layers.",
+ "field_kind": "input",
+ "input": "any",
+ "items": {
+ "$ref": "#/components/schemas/MossImageLayoutRegion"
+ },
+ "orig_default": [],
+ "orig_required": false,
+ "title": "Regions",
+ "type": "array"
+ },
+ "width": {
+ "default": 1024,
+ "description": "Width of the generated image.",
+ "exclusiveMinimum": 0,
+ "field_kind": "input",
+ "input": "any",
+ "multipleOf": 16,
+ "orig_default": 1024,
+ "orig_required": false,
+ "title": "Width",
+ "type": "integer"
+ },
+ "height": {
+ "default": 1024,
+ "description": "Height of the generated image.",
+ "exclusiveMinimum": 0,
+ "field_kind": "input",
+ "input": "any",
+ "multipleOf": 16,
+ "orig_default": 1024,
+ "orig_required": false,
+ "title": "Height",
+ "type": "integer"
+ },
+ "type": {
+ "const": "moss_image_layout_prompt",
+ "default": "moss_image_layout_prompt",
+ "field_kind": "node_attribute",
+ "title": "type",
+ "type": "string"
+ }
+ },
+ "required": ["type", "id"],
+ "tags": ["prompt", "layout", "moss_image", "moss-image"],
+ "title": "Layout Prompt - MOSS-Image",
+ "type": "object",
+ "version": "1.0.0",
+ "output": {
+ "$ref": "#/components/schemas/StringOutput"
+ }
+ },
+ "MossImageLayoutRegion": {
+ "description": "One MOSS-Image layout element: what a canvas region depicts, and where.",
+ "properties": {
+ "kind": {
+ "description": "What the region depicts. Becomes the layout item's `label`.",
+ "enum": ["object", "character", "text"],
+ "title": "Kind",
+ "type": "string"
+ },
+ "caption": {
+ "description": "The region's visible appearance. Must not be blank.",
+ "title": "Caption",
+ "type": "string"
+ },
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The exact visible characters of a `text` region (required and non-blank there). Must be null for other kinds.",
+ "title": "Text"
+ },
+ "bbox": {
+ "description": "Pixel box [x1, y1, x2, y2] from the image's top-left, with x1 < x2 and y1 < y2. Checked against the image size when the prompt is built.",
+ "items": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "maxItems": 4,
+ "minItems": 4,
+ "title": "Bbox",
+ "type": "array"
+ }
+ },
+ "required": ["kind", "caption", "bbox"],
+ "title": "MossImageLayoutRegion",
+ "type": "object"
+ },
"MossImageModelLoaderInvocation": {
"category": "model",
"class": "invocation",
diff --git a/invokeai/frontend/api/schema.ts b/invokeai/frontend/api/schema.ts
index 82a6a10802..697fd012e4 100644
--- a/invokeai/frontend/api/schema.ts
+++ b/invokeai/frontend/api/schema.ts
@@ -11263,6 +11263,12 @@ export type components = {
* @default null
*/
ideogram4_caption?: string | null;
+ /**
+ * Moss Image Layout Prompt
+ * @description The JSON layout prompt encoded for MOSS-Image inference
+ * @default null
+ */
+ moss_image_layout_prompt?: string | null;
/**
* Num Frames
* @description The number of video frames generated
@@ -18173,7 +18179,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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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
@@ -23077,7 +23083,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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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
@@ -23159,7 +23165,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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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
@@ -23449,6 +23455,7 @@ export type components = {
mlsd_detection: components["schemas"]["ImageOutput"];
model_identifier: components["schemas"]["ModelIdentifierOutput"];
moss_image_denoise: components["schemas"]["LatentsOutput"];
+ moss_image_layout_prompt: components["schemas"]["StringOutput"];
moss_image_model_loader: components["schemas"]["MossImageModelLoaderOutput"];
moss_image_text_encoder: components["schemas"]["MossImageConditioningOutput"];
mul: components["schemas"]["IntegerOutput"];
@@ -23613,7 +23620,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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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
@@ -23718,7 +23725,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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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"]["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
@@ -39056,6 +39063,91 @@ export type components = {
*/
type: "moss_image_denoise";
};
+ /**
+ * Layout Prompt - MOSS-Image
+ * @description Places regions on a MOSS-Image prompt as a JSON layout, at generation time.
+ *
+ * The layout is built here rather than by the graph builder so the prompt that dynamic prompts and batching vary is
+ * the one laid out. Without regions the prompt passes through unchanged; a prompt that already is a layout gets the
+ * regions appended to its items.
+ */
+ MossImageLayoutPromptInvocation: {
+ /**
+ * Id
+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.
+ */
+ id: string;
+ /**
+ * Is Intermediate
+ * @description Whether or not this is an intermediate invocation.
+ * @default false
+ */
+ is_intermediate?: boolean;
+ /**
+ * Use Cache
+ * @description Whether or not to use the cache
+ * @default true
+ */
+ use_cache?: boolean;
+ /**
+ * Prompt
+ * @description The image prompt: plain text becomes the layout's summary caption, a compiled layout gets the regions appended.
+ * @default
+ */
+ prompt?: string;
+ /**
+ * Regions
+ * @description Layout elements, in pixels of the width x height image, assembled from Canvas Regional Guidance layers.
+ * @default []
+ */
+ regions?: components["schemas"]["MossImageLayoutRegion"][];
+ /**
+ * Width
+ * @description Width of the generated image.
+ * @default 1024
+ */
+ width?: number;
+ /**
+ * Height
+ * @description Height of the generated image.
+ * @default 1024
+ */
+ height?: number;
+ /**
+ * type
+ * @default moss_image_layout_prompt
+ * @constant
+ */
+ type: "moss_image_layout_prompt";
+ };
+ /**
+ * MossImageLayoutRegion
+ * @description One MOSS-Image layout element: what a canvas region depicts, and where.
+ */
+ MossImageLayoutRegion: {
+ /**
+ * Kind
+ * @description What the region depicts. Becomes the layout item's `label`.
+ * @enum {string}
+ */
+ kind: "object" | "character" | "text";
+ /**
+ * Caption
+ * @description The region's visible appearance. Must not be blank.
+ */
+ caption: string;
+ /**
+ * Text
+ * @description The exact visible characters of a `text` region (required and non-blank there). Must be null for other kinds.
+ * @default null
+ */
+ text?: string | null;
+ /**
+ * Bbox
+ * @description Pixel box [x1, y1, x2, y2] from the image's top-left, with x1 < x2 and y1 < y2. Checked against the image size when the prompt is built.
+ */
+ bbox: number[];
+ };
/**
* Main Model - MOSS-Image
* @description Loads a MOSS-Image model, outputting its submodels.
diff --git a/invokeai/frontend/webv2/.oxfmtrc.json b/invokeai/frontend/webv2/.oxfmtrc.json
index 534184baaa..7cdbe2c914 100644
--- a/invokeai/frontend/webv2/.oxfmtrc.json
+++ b/invokeai/frontend/webv2/.oxfmtrc.json
@@ -11,6 +11,7 @@
"src/features/generation/core/__snapshots__/generateGraphNodeTypes.json",
"src/features/generation/core/__snapshots__/animaLLLiteCanvasGraphs.json",
"src/features/generation/core/__snapshots__/externalCanvasGraphs.json",
+ "src/features/generation/core/__snapshots__/mossImageLayoutCanvasGraphs.json",
"src/features/video/core/__snapshots__/videoGraphNodeTypes.json",
"src/features/upscale/core/__snapshots__/upscaleGraphNodeTypes.json",
"src/features/upscale/core/__snapshots__/upscaleIndexClippedStarts.json",
diff --git a/invokeai/frontend/webv2/public/locales/en.json b/invokeai/frontend/webv2/public/locales/en.json
index 42fc12419b..5f770878e7 100644
--- a/invokeai/frontend/webv2/public/locales/en.json
+++ b/invokeai/frontend/webv2/public/locales/en.json
@@ -4671,6 +4671,15 @@
"addReferenceImage": "Add reference image",
"autoNegative": "Auto-Negative",
"clearReferenceImage": "Clear reference image",
+ "layoutKind": "Region type",
+ "layoutKindHelp": "{{model}} places the rectangle around everything painted on this layer inside the frame, so the shape does not matter and separate areas share one box. Character is for people and creatures, Object for everything else.",
+ "layoutKinds": {
+ "character": "Character",
+ "object": "Object",
+ "text": "Text"
+ },
+ "layoutMissingPrompt": "{{model}} leaves this region out until it has a prompt.",
+ "layoutMissingText": "{{model}} leaves this text region out until it has visible text.",
"method": "Method",
"methods": {
"composition": "Composition",
@@ -4692,6 +4701,8 @@
"removeReferenceImage": "Remove reference image",
"selectModel": "Select a model",
"unsupportedModel": "The selected model does not support regional guidance. This layer is skipped during generation.",
+ "visibleText": "Visible text",
+ "visibleTextPlaceholder": "Exact text to render",
"weight": "Weight"
},
"types": {
diff --git a/invokeai/frontend/webv2/src/features/generation/core/__fixtures__/architectureCapabilities.json b/invokeai/frontend/webv2/src/features/generation/core/__fixtures__/architectureCapabilities.json
index 4599801f7b..0c8ca12d8e 100644
--- a/invokeai/frontend/webv2/src/features/generation/core/__fixtures__/architectureCapabilities.json
+++ b/invokeai/frontend/webv2/src/features/generation/core/__fixtures__/architectureCapabilities.json
@@ -818,7 +818,7 @@
"max_reference_images": 0,
"reference_images_require_variant": null,
"reference_images_require_format": null,
- "supports_regional_guidance": false,
+ "supports_regional_guidance": true,
"regional_negative": false,
"clip_skip_max": null,
"supports_seamless": false,
diff --git a/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/mossImageLayoutCanvasGraphs.json b/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/mossImageLayoutCanvasGraphs.json
new file mode 100644
index 0000000000..3bb308fc5f
--- /dev/null
+++ b/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/mossImageLayoutCanvasGraphs.json
@@ -0,0 +1,737 @@
+{
+ "_comment": "Generated by compileCanvasGraph.test.ts; regenerate with `vitest -u`. Validated against the backend invocations by the MOSS-Image layout graph tests.",
+ "inpaint": {
+ "edges": [
+ {
+ "destination": {
+ "field": "vae",
+ "node_id": "canvas_l2i"
+ },
+ "source": {
+ "field": "vae",
+ "node_id": "model_loader"
+ }
+ },
+ {
+ "destination": {
+ "field": "latents",
+ "node_id": "canvas_l2i"
+ },
+ "source": {
+ "field": "latents",
+ "node_id": "denoise_latents"
+ }
+ },
+ {
+ "destination": {
+ "field": "transformer",
+ "node_id": "denoise_latents"
+ },
+ "source": {
+ "field": "transformer",
+ "node_id": "model_loader"
+ }
+ },
+ {
+ "destination": {
+ "field": "vae",
+ "node_id": "denoise_latents"
+ },
+ "source": {
+ "field": "vae",
+ "node_id": "model_loader"
+ }
+ },
+ {
+ "destination": {
+ "field": "qwen3_5_encoder",
+ "node_id": "pos_cond"
+ },
+ "source": {
+ "field": "qwen3_5_encoder",
+ "node_id": "model_loader"
+ }
+ },
+ {
+ "destination": {
+ "field": "prompt",
+ "node_id": "layout_prompt"
+ },
+ "source": {
+ "field": "value",
+ "node_id": "positive_prompt"
+ }
+ },
+ {
+ "destination": {
+ "field": "positive_conditioning",
+ "node_id": "denoise_latents"
+ },
+ "source": {
+ "field": "conditioning",
+ "node_id": "pos_cond"
+ }
+ },
+ {
+ "destination": {
+ "field": "qwen3_5_encoder",
+ "node_id": "neg_cond"
+ },
+ "source": {
+ "field": "qwen3_5_encoder",
+ "node_id": "model_loader"
+ }
+ },
+ {
+ "destination": {
+ "field": "prompt",
+ "node_id": "neg_cond"
+ },
+ "source": {
+ "field": "value",
+ "node_id": "negative_prompt"
+ }
+ },
+ {
+ "destination": {
+ "field": "negative_conditioning",
+ "node_id": "denoise_latents"
+ },
+ "source": {
+ "field": "conditioning",
+ "node_id": "neg_cond"
+ }
+ },
+ {
+ "destination": {
+ "field": "seed",
+ "node_id": "denoise_latents"
+ },
+ "source": {
+ "field": "value",
+ "node_id": "seed"
+ }
+ },
+ {
+ "destination": {
+ "field": "seed",
+ "node_id": "core_metadata_0_i"
+ },
+ "source": {
+ "field": "value",
+ "node_id": "seed"
+ }
+ },
+ {
+ "destination": {
+ "field": "positive_prompt",
+ "node_id": "core_metadata_0_i"
+ },
+ "source": {
+ "field": "value",
+ "node_id": "positive_prompt"
+ }
+ },
+ {
+ "destination": {
+ "field": "negative_prompt",
+ "node_id": "core_metadata_0_i"
+ },
+ "source": {
+ "field": "value",
+ "node_id": "negative_prompt"
+ }
+ },
+ {
+ "destination": {
+ "field": "metadata",
+ "node_id": "canvas_output"
+ },
+ "source": {
+ "field": "metadata",
+ "node_id": "core_metadata_0_i"
+ }
+ },
+ {
+ "destination": {
+ "field": "vae",
+ "node_id": "canvas_i2l"
+ },
+ "source": {
+ "field": "vae",
+ "node_id": "model_loader"
+ }
+ },
+ {
+ "destination": {
+ "field": "latents",
+ "node_id": "denoise_latents"
+ },
+ "source": {
+ "field": "latents",
+ "node_id": "canvas_i2l"
+ }
+ },
+ {
+ "destination": {
+ "field": "vae",
+ "node_id": "create_gradient_mask"
+ },
+ "source": {
+ "field": "vae",
+ "node_id": "model_loader"
+ }
+ },
+ {
+ "destination": {
+ "field": "denoise_mask",
+ "node_id": "denoise_latents"
+ },
+ "source": {
+ "field": "denoise_mask",
+ "node_id": "create_gradient_mask"
+ }
+ },
+ {
+ "destination": {
+ "field": "mask",
+ "node_id": "expand_mask"
+ },
+ "source": {
+ "field": "expanded_mask_area",
+ "node_id": "create_gradient_mask"
+ }
+ },
+ {
+ "destination": {
+ "field": "layer_upper",
+ "node_id": "canvas_output"
+ },
+ "source": {
+ "field": "image",
+ "node_id": "canvas_l2i"
+ }
+ },
+ {
+ "destination": {
+ "field": "mask",
+ "node_id": "canvas_output"
+ },
+ "source": {
+ "field": "image",
+ "node_id": "expand_mask"
+ }
+ },
+ {
+ "destination": {
+ "field": "prompt",
+ "node_id": "pos_cond"
+ },
+ "source": {
+ "field": "value",
+ "node_id": "layout_prompt"
+ }
+ },
+ {
+ "destination": {
+ "field": "moss_image_layout_prompt",
+ "node_id": "core_metadata_0_i"
+ },
+ "source": {
+ "field": "value",
+ "node_id": "layout_prompt"
+ }
+ }
+ ],
+ "id": "moss_image_layout_canvas_inpaint",
+ "nodes": {
+ "negative_prompt": {
+ "is_intermediate": true,
+ "use_cache": true,
+ "id": "negative_prompt",
+ "type": "string"
+ },
+ "positive_prompt": {
+ "is_intermediate": true,
+ "use_cache": true,
+ "id": "positive_prompt",
+ "type": "string"
+ },
+ "seed": {
+ "is_intermediate": true,
+ "use_cache": true,
+ "id": "seed",
+ "type": "integer"
+ },
+ "model_loader": {
+ "is_intermediate": true,
+ "use_cache": true,
+ "id": "model_loader",
+ "model": {
+ "base": "moss-image",
+ "format": "diffusers",
+ "key": "moss-image-model",
+ "name": "MOSS-Image",
+ "type": "main",
+ "hash": "blake3:moss"
+ },
+ "type": "moss_image_model_loader"
+ },
+ "pos_cond": {
+ "is_intermediate": true,
+ "use_cache": true,
+ "id": "pos_cond",
+ "type": "moss_image_text_encoder"
+ },
+ "neg_cond": {
+ "is_intermediate": true,
+ "use_cache": true,
+ "id": "neg_cond",
+ "type": "moss_image_text_encoder"
+ },
+ "denoise_latents": {
+ "is_intermediate": true,
+ "use_cache": true,
+ "cfg_scale": 3,
+ "denoising_end": 1,
+ "denoising_start": 0.09711954855256577,
+ "height": 1024,
+ "id": "denoise_latents",
+ "steps": 50,
+ "type": "moss_image_denoise",
+ "uncond_skip_layers": [
+ 22
+ ],
+ "width": 768
+ },
+ "core_metadata_0_i": {
+ "is_intermediate": true,
+ "use_cache": true,
+ "cfg_scale": 3,
+ "cfg_rescale_multiplier": 0,
+ "generation_mode": "moss_image_inpaint",
+ "height": 1024,
+ "id": "core_metadata_0_i",
+ "model": {
+ "base": "moss-image",
+ "format": "diffusers",
+ "key": "moss-image-model",
+ "name": "MOSS-Image",
+ "type": "main",
+ "hash": "blake3:moss"
+ },
+ "rand_device": "cpu",
+ "scheduler": "euler",
+ "seamless_x": false,
+ "seamless_y": false,
+ "steps": 50,
+ "type": "core_metadata",
+ "width": 768,
+ "moss_image_uncond_skip_layers": [
+ 22
+ ],
+ "clip_skip": 0,
+ "strength": 0.6
+ },
+ "canvas_i2l": {
+ "is_intermediate": true,
+ "use_cache": true,
+ "id": "canvas_i2l",
+ "type": "flux2_vae_encode",
+ "image": {
+ "image_name": "canvas-composite.png"
+ }
+ },
+ "create_gradient_mask": {
+ "is_intermediate": true,
+ "use_cache": true,
+ "coherence_mode": "Gaussian Blur",
+ "edge_radius": 16,
+ "fp32": false,
+ "id": "create_gradient_mask",
+ "image": {
+ "image_name": "canvas-composite.png"
+ },
+ "minimum_denoise": 0,
+ "type": "create_gradient_mask",
+ "mask": {
+ "image_name": "canvas-mask.png"
+ }
+ },
+ "expand_mask": {
+ "is_intermediate": true,
+ "use_cache": true,
+ "fade_size_px": 16,
+ "id": "expand_mask",
+ "type": "expand_mask_with_fade"
+ },
+ "canvas_l2i": {
+ "is_intermediate": true,
+ "use_cache": false,
+ "id": "canvas_l2i",
+ "type": "flux2_vae_decode"
+ },
+ "canvas_output": {
+ "is_intermediate": true,
+ "use_cache": false,
+ "layer_base": {
+ "image_name": "canvas-composite.png"
+ },
+ "type": "invokeai_img_blend",
+ "id": "canvas_output"
+ },
+ "layout_prompt": {
+ "is_intermediate": true,
+ "use_cache": true,
+ "height": 1024,
+ "id": "layout_prompt",
+ "regions": [
+ {
+ "bbox": [
+ 0,
+ 0,
+ 512,
+ 256
+ ],
+ "caption": "a hand-lettered cafe sign",
+ "kind": "text",
+ "text": "一杯温暖\n一刻从容"
+ },
+ {
+ "bbox": [
+ 64,
+ 128,
+ 256,
+ 384
+ ],
+ "caption": "a barista pouring latte art",
+ "kind": "character"
+ },
+ {
+ "bbox": [
+ 512,
+ 640,
+ 768,
+ 1024
+ ],
+ "caption": "a steaming ceramic cup",
+ "kind": "object"
+ }
+ ],
+ "type": "moss_image_layout_prompt",
+ "width": 768
+ }
+ }
+ },
+ "txt2img": {
+ "edges": [
+ {
+ "destination": {
+ "field": "vae",
+ "node_id": "canvas_output"
+ },
+ "source": {
+ "field": "vae",
+ "node_id": "model_loader"
+ }
+ },
+ {
+ "destination": {
+ "field": "latents",
+ "node_id": "canvas_output"
+ },
+ "source": {
+ "field": "latents",
+ "node_id": "denoise_latents"
+ }
+ },
+ {
+ "destination": {
+ "field": "transformer",
+ "node_id": "denoise_latents"
+ },
+ "source": {
+ "field": "transformer",
+ "node_id": "model_loader"
+ }
+ },
+ {
+ "destination": {
+ "field": "vae",
+ "node_id": "denoise_latents"
+ },
+ "source": {
+ "field": "vae",
+ "node_id": "model_loader"
+ }
+ },
+ {
+ "destination": {
+ "field": "qwen3_5_encoder",
+ "node_id": "pos_cond"
+ },
+ "source": {
+ "field": "qwen3_5_encoder",
+ "node_id": "model_loader"
+ }
+ },
+ {
+ "destination": {
+ "field": "prompt",
+ "node_id": "layout_prompt"
+ },
+ "source": {
+ "field": "value",
+ "node_id": "positive_prompt"
+ }
+ },
+ {
+ "destination": {
+ "field": "positive_conditioning",
+ "node_id": "denoise_latents"
+ },
+ "source": {
+ "field": "conditioning",
+ "node_id": "pos_cond"
+ }
+ },
+ {
+ "destination": {
+ "field": "qwen3_5_encoder",
+ "node_id": "neg_cond"
+ },
+ "source": {
+ "field": "qwen3_5_encoder",
+ "node_id": "model_loader"
+ }
+ },
+ {
+ "destination": {
+ "field": "prompt",
+ "node_id": "neg_cond"
+ },
+ "source": {
+ "field": "value",
+ "node_id": "negative_prompt"
+ }
+ },
+ {
+ "destination": {
+ "field": "negative_conditioning",
+ "node_id": "denoise_latents"
+ },
+ "source": {
+ "field": "conditioning",
+ "node_id": "neg_cond"
+ }
+ },
+ {
+ "destination": {
+ "field": "seed",
+ "node_id": "denoise_latents"
+ },
+ "source": {
+ "field": "value",
+ "node_id": "seed"
+ }
+ },
+ {
+ "destination": {
+ "field": "seed",
+ "node_id": "core_metadata_0_i"
+ },
+ "source": {
+ "field": "value",
+ "node_id": "seed"
+ }
+ },
+ {
+ "destination": {
+ "field": "positive_prompt",
+ "node_id": "core_metadata_0_i"
+ },
+ "source": {
+ "field": "value",
+ "node_id": "positive_prompt"
+ }
+ },
+ {
+ "destination": {
+ "field": "negative_prompt",
+ "node_id": "core_metadata_0_i"
+ },
+ "source": {
+ "field": "value",
+ "node_id": "negative_prompt"
+ }
+ },
+ {
+ "destination": {
+ "field": "metadata",
+ "node_id": "canvas_output"
+ },
+ "source": {
+ "field": "metadata",
+ "node_id": "core_metadata_0_i"
+ }
+ },
+ {
+ "destination": {
+ "field": "prompt",
+ "node_id": "pos_cond"
+ },
+ "source": {
+ "field": "value",
+ "node_id": "layout_prompt"
+ }
+ },
+ {
+ "destination": {
+ "field": "moss_image_layout_prompt",
+ "node_id": "core_metadata_0_i"
+ },
+ "source": {
+ "field": "value",
+ "node_id": "layout_prompt"
+ }
+ }
+ ],
+ "id": "moss_image_layout_canvas_txt2img",
+ "nodes": {
+ "negative_prompt": {
+ "is_intermediate": true,
+ "use_cache": true,
+ "id": "negative_prompt",
+ "type": "string"
+ },
+ "positive_prompt": {
+ "is_intermediate": true,
+ "use_cache": true,
+ "id": "positive_prompt",
+ "type": "string"
+ },
+ "seed": {
+ "is_intermediate": true,
+ "use_cache": true,
+ "id": "seed",
+ "type": "integer"
+ },
+ "model_loader": {
+ "is_intermediate": true,
+ "use_cache": true,
+ "id": "model_loader",
+ "model": {
+ "base": "moss-image",
+ "format": "diffusers",
+ "key": "moss-image-model",
+ "name": "MOSS-Image",
+ "type": "main",
+ "hash": "blake3:moss"
+ },
+ "type": "moss_image_model_loader"
+ },
+ "pos_cond": {
+ "is_intermediate": true,
+ "use_cache": true,
+ "id": "pos_cond",
+ "type": "moss_image_text_encoder"
+ },
+ "neg_cond": {
+ "is_intermediate": true,
+ "use_cache": true,
+ "id": "neg_cond",
+ "type": "moss_image_text_encoder"
+ },
+ "denoise_latents": {
+ "is_intermediate": true,
+ "use_cache": true,
+ "cfg_scale": 3,
+ "denoising_end": 1,
+ "denoising_start": 0,
+ "height": 1024,
+ "id": "denoise_latents",
+ "steps": 50,
+ "type": "moss_image_denoise",
+ "uncond_skip_layers": [
+ 22
+ ],
+ "width": 768
+ },
+ "canvas_output": {
+ "is_intermediate": true,
+ "use_cache": false,
+ "id": "canvas_output",
+ "type": "flux2_vae_decode"
+ },
+ "core_metadata_0_i": {
+ "is_intermediate": true,
+ "use_cache": true,
+ "cfg_scale": 3,
+ "cfg_rescale_multiplier": 0,
+ "generation_mode": "moss_image_txt2img",
+ "height": 1024,
+ "id": "core_metadata_0_i",
+ "model": {
+ "base": "moss-image",
+ "format": "diffusers",
+ "key": "moss-image-model",
+ "name": "MOSS-Image",
+ "type": "main",
+ "hash": "blake3:moss"
+ },
+ "rand_device": "cpu",
+ "scheduler": "euler",
+ "seamless_x": false,
+ "seamless_y": false,
+ "steps": 50,
+ "type": "core_metadata",
+ "width": 768,
+ "moss_image_uncond_skip_layers": [
+ 22
+ ],
+ "clip_skip": 0
+ },
+ "layout_prompt": {
+ "is_intermediate": true,
+ "use_cache": true,
+ "height": 1024,
+ "id": "layout_prompt",
+ "regions": [
+ {
+ "bbox": [
+ 0,
+ 0,
+ 512,
+ 256
+ ],
+ "caption": "a hand-lettered cafe sign",
+ "kind": "text",
+ "text": "一杯温暖\n一刻从容"
+ },
+ {
+ "bbox": [
+ 64,
+ 128,
+ 256,
+ 384
+ ],
+ "caption": "a barista pouring latte art",
+ "kind": "character"
+ },
+ {
+ "bbox": [
+ 512,
+ 640,
+ 768,
+ 1024
+ ],
+ "caption": "a steaming ceramic cup",
+ "kind": "object"
+ }
+ ],
+ "type": "moss_image_layout_prompt",
+ "width": 768
+ }
+ }
+ }
+}
diff --git a/invokeai/frontend/webv2/src/features/generation/core/canvas/addRegionalGuidance.test.ts b/invokeai/frontend/webv2/src/features/generation/core/canvas/addRegionalGuidance.test.ts
index b19ff7454c..c3e3f0797a 100644
--- a/invokeai/frontend/webv2/src/features/generation/core/canvas/addRegionalGuidance.test.ts
+++ b/invokeai/frontend/webv2/src/features/generation/core/canvas/addRegionalGuidance.test.ts
@@ -8,6 +8,8 @@ import type { AddRegionalGuidanceOptions, RegionalGuidanceInput, RegionalReferen
import {
addRegionalGuidance,
+ getLayoutPromptRejectionReason,
+ getLayoutRegionIssue,
getRegionalGuidanceRejectionReason,
getRegionalGuidanceSupport,
isRegionalGuidanceSupportedForBase,
@@ -160,6 +162,7 @@ const ipModel = (base: string): RegionalReferenceModel => ({
const region = (overrides: Partial<RegionalGuidanceInput> = {}): RegionalGuidanceInput => ({
autoNegative: false,
id: 'r1',
+ maskBounds: { height: 64, width: 64, x: 0, y: 0 },
maskImageName: 'mask1.png',
negativePrompt: null,
positivePrompt: 'a cat',
@@ -182,7 +185,7 @@ seedArchitectureCapabilities();
describe('isRegionalGuidanceSupportedForBase', () => {
it('supports every base whose encoder takes a mask and whose denoiser takes a conditioning list', () => {
- for (const base of ['sd-1', 'sd-2', 'sdxl', 'flux', 'flux2', 'krea-2', 'z-image', 'anima']) {
+ for (const base of ['sd-1', 'sd-2', 'sdxl', 'flux', 'flux2', 'krea-2', 'z-image', 'anima', 'moss-image']) {
expect(isRegionalGuidanceSupportedForBase(base), base).toBe(true);
}
for (const base of ['sd-3', 'cogview4', 'qwen-image', 'ideogram-4', 'wan', 'external']) {
@@ -223,6 +226,7 @@ describe('getRegionalGuidanceSupport', () => {
for (const base of ['flux2', 'krea-2', 'z-image', 'anima']) {
expect(getRegionalGuidanceSupport(base), base).toMatchObject({
autoNegative: false,
+ mode: 'masks',
negativePrompt: false,
referenceImages: null,
});
@@ -230,6 +234,16 @@ describe('getRegionalGuidanceSupport', () => {
expect(getRegionalGuidanceSupport('sd-3')).toBeNull();
expect(getRegionalGuidanceSupport(null)).toBeNull();
});
+
+ it('places MOSS-Image regions as layout boxes, with no negative or reference-image side', () => {
+ expect(getRegionalGuidanceSupport('moss-image')).toEqual({
+ autoNegative: false,
+ label: 'MOSS-Image',
+ mode: 'layout',
+ negativePrompt: false,
+ referenceImages: null,
+ });
+ });
});
describe('addRegionalGuidance — Z-Image / Anima', () => {
@@ -543,3 +557,85 @@ describe('getRegionalGuidanceRejectionReason', () => {
).toBeNull();
});
});
+
+describe('getRegionalGuidanceRejectionReason — layout bases', () => {
+ const params = {
+ hasContent: true,
+ layerName: 'Sign',
+ mainBase: 'moss-image',
+ negativePrompt: null as string | null,
+ positivePrompt: 'a shop sign' as string | null,
+ referenceImageCount: 0,
+ };
+
+ it('keeps a captioned region of every kind once a text region has its text', () => {
+ expect(getRegionalGuidanceRejectionReason(params)).toBeNull();
+ expect(getRegionalGuidanceRejectionReason({ ...params, layout: { kind: 'character' } })).toBeNull();
+ expect(getRegionalGuidanceRejectionReason({ ...params, layout: { kind: 'text', text: 'OPEN' } })).toBeNull();
+ });
+
+ it('rejects a region without a caption even when it carries what mask bases would use', () => {
+ for (const positivePrompt of [null, ' ']) {
+ expect(
+ getRegionalGuidanceRejectionReason({
+ ...params,
+ negativePrompt: 'blurry',
+ positivePrompt,
+ referenceImageCount: 1,
+ })
+ ).toBe('Regional guidance "Sign" has no prompt to place in the MOSS-Image layout.');
+ }
+ });
+
+ it('rejects a text region without visible text', () => {
+ for (const text of [undefined, '', ' \n ']) {
+ expect(getRegionalGuidanceRejectionReason({ ...params, layout: { kind: 'text', text } })).toBe(
+ 'Regional guidance "Sign" is a text region without visible text.'
+ );
+ }
+ });
+
+ it('ignores a stored layout role on a mask base', () => {
+ expect(getRegionalGuidanceRejectionReason({ ...params, layout: { kind: 'text' }, mainBase: 'z-image' })).toBeNull();
+ });
+
+ it('still rejects an empty mask first', () => {
+ expect(getRegionalGuidanceRejectionReason({ ...params, hasContent: false, positivePrompt: null })).toMatch(
+ /no masked region/
+ );
+ });
+});
+
+describe('getLayoutRegionIssue', () => {
+ it('ignores text the object and character kinds keep for a later switch back', () => {
+ expect(getLayoutRegionIssue({ layout: { kind: 'object', text: '' }, positivePrompt: 'a cat' })).toBeNull();
+ expect(getLayoutRegionIssue({ layout: { kind: 'character' }, positivePrompt: 'a cat' })).toBeNull();
+ });
+
+ it('names the caption before the text when both are missing', () => {
+ expect(getLayoutRegionIssue({ layout: { kind: 'text' }, positivePrompt: null })).toBe('missing_prompt');
+ expect(getLayoutRegionIssue({ layout: { kind: 'text' }, positivePrompt: 'a sign' })).toBe('missing_text');
+ });
+});
+
+describe('getLayoutPromptRejectionReason', () => {
+ const placeable = { layout: { kind: 'object' as const }, positivePrompt: 'a cup' };
+
+ it('refuses placeable regions around a blank prompt on a layout base', () => {
+ expect(getLayoutPromptRejectionReason({ base: 'moss-image', prompt: ' \n', regions: [placeable] })).toBe(
+ 'MOSS-Image needs a prompt to place regional guidance in its layout. Enter a prompt or disable the regional guidance layers.'
+ );
+ });
+
+ it('lets a prompt, regions the layout cannot place, or a mask base through', () => {
+ expect(getLayoutPromptRejectionReason({ base: 'moss-image', prompt: 'a cafe', regions: [placeable] })).toBeNull();
+ expect(
+ getLayoutPromptRejectionReason({
+ base: 'moss-image',
+ prompt: '',
+ regions: [{ positivePrompt: null }, { layout: { kind: 'text' }, positivePrompt: 'a sign' }],
+ })
+ ).toBeNull();
+ expect(getLayoutPromptRejectionReason({ base: 'z-image', prompt: '', regions: [placeable] })).toBeNull();
+ });
+});
diff --git a/invokeai/frontend/webv2/src/features/generation/core/canvas/addRegionalGuidance.ts b/invokeai/frontend/webv2/src/features/generation/core/canvas/addRegionalGuidance.ts
index 074350dfcc..84f58eb588 100644
--- a/invokeai/frontend/webv2/src/features/generation/core/canvas/addRegionalGuidance.ts
+++ b/invokeai/frontend/webv2/src/features/generation/core/canvas/addRegionalGuidance.ts
@@ -4,6 +4,8 @@ import { getArchitectureFeatures } from '@features/generation/core/architectureC
import { addEdge, addNode } from '@features/generation/core/graphBuilder';
import { COMPEL_PROMPT_NODE_TYPES } from '@features/generation/core/prompt/compel';
+import type { Rect } from './types';
+
/** The deterministic denoise node id every canvas base graph uses. */
const DENOISE_NODE_ID = 'denoise_latents';
/** The deterministic global positive/negative conditioning + collector node ids. */
@@ -12,8 +14,14 @@ const NEG_COND_ID = 'neg_cond';
const POS_COND_COLLECT_ID = 'pos_cond_collect';
const NEG_COND_COLLECT_ID = 'neg_cond_collect';
-/** The base models whose text encoder accepts a region mask and whose denoiser accepts a conditioning list. */
-export type RegionalGuidanceBase = 'sd-1' | 'sd-2' | 'sdxl' | 'flux' | 'flux2' | 'krea-2' | 'z-image' | 'anima';
+/** The bases whose text encoder accepts a region mask and whose denoiser accepts a conditioning list. */
+export type MaskRegionalGuidanceBase = 'sd-1' | 'sd-2' | 'sdxl' | 'flux' | 'flux2' | 'krea-2' | 'z-image' | 'anima';
+/** The bases that read regions as boxes of a structured layout prompt; a mask contributes only its bounds. */
+export type LayoutRegionalGuidanceBase = 'moss-image';
+export type RegionalGuidanceBase = MaskRegionalGuidanceBase | LayoutRegionalGuidanceBase;
+
+/** How a base consumes a region: as masked conditioning, or as a layout box around the mask. */
+export type RegionalGuidanceMode = 'masks' | 'layout';
/** The reference-image node kind a base's regions can consume. */
export type RegionalReferenceImageKind = 'ip_adapter' | 'flux_redux';
@@ -22,6 +30,7 @@ export type RegionalReferenceImageKind = 'ip_adapter' | 'flux_redux';
export interface RegionalGuidanceSupport {
/** Display name used in rejection reasons and settings hints. */
label: string;
+ mode: RegionalGuidanceMode;
/** Masked regional negative prompts reach the negative collector. */
negativePrompt: boolean;
/** The positive prompt can be re-encoded over the inverted mask as a negative. */
@@ -30,19 +39,21 @@ export interface RegionalGuidanceSupport {
referenceImages: RegionalReferenceImageKind | null;
}
-/** Graph code owns node mapping; the backend owns regional-negative support. */
-const REGIONAL_GUIDANCE_SUPPORT: Record<
- RegionalGuidanceBase,
- Pick<RegionalGuidanceSupport, 'label' | 'referenceImages'>
-> = {
- 'sd-1': { label: 'SD 1.x', referenceImages: 'ip_adapter' },
- 'sd-2': { label: 'SD 2.x', referenceImages: 'ip_adapter' },
- sdxl: { label: 'SDXL', referenceImages: 'ip_adapter' },
- flux: { label: 'FLUX', referenceImages: 'flux_redux' },
- flux2: { label: 'FLUX.2', referenceImages: null },
- 'krea-2': { label: 'Krea-2', referenceImages: null },
- 'z-image': { label: 'Z-Image', referenceImages: null },
- anima: { label: 'Anima', referenceImages: null },
+type MaskSupportRow = Pick<RegionalGuidanceSupport, 'label' | 'referenceImages'> & { mode: 'masks' };
+type LayoutSupportRow = { label: string; mode: 'layout'; referenceImages: null };
+
+/** Graph code owns node mapping and each base's mode; the backend owns regional-negative support. */
+const REGIONAL_GUIDANCE_SUPPORT: Record<MaskRegionalGuidanceBase, MaskSupportRow> &
+ Record<LayoutRegionalGuidanceBase, LayoutSupportRow> = {
+ 'sd-1': { label: 'SD 1.x', mode: 'masks', referenceImages: 'ip_adapter' },
+ 'sd-2': { label: 'SD 2.x', mode: 'masks', referenceImages: 'ip_adapter' },
+ sdxl: { label: 'SDXL', mode: 'masks', referenceImages: 'ip_adapter' },
+ flux: { label: 'FLUX', mode: 'masks', referenceImages: 'flux_redux' },
+ flux2: { label: 'FLUX.2', mode: 'masks', referenceImages: null },
+ 'krea-2': { label: 'Krea-2', mode: 'masks', referenceImages: null },
+ 'z-image': { label: 'Z-Image', mode: 'masks', referenceImages: null },
+ anima: { label: 'Anima', mode: 'masks', referenceImages: null },
+ 'moss-image': { label: 'MOSS-Image', mode: 'layout', referenceImages: null },
};
/** Frontend graph keys are narrower than backend capability answers. */
@@ -50,15 +61,70 @@ export const isRegionalGuidanceSupportedForBase = (base: string): base is Region
// Require both backend support and a local graph row before narrowing the type.
(getArchitectureFeatures(base)?.supports_regional_guidance ?? false) && base in REGIONAL_GUIDANCE_SUPPORT;
-/** Auto-negative requires negative-mask support. */
+/** Whether a supported base places regions as layout boxes rather than masking their conditioning. */
+export const isLayoutRegionalGuidanceBase = (base: RegionalGuidanceBase): base is LayoutRegionalGuidanceBase =>
+ REGIONAL_GUIDANCE_SUPPORT[base].mode === 'layout';
+
+/** Auto-negative requires negative-mask support; a layout prompt has no negative side. */
export const getRegionalGuidanceSupport = (base: string | null): RegionalGuidanceSupport | null => {
if (base === null || !isRegionalGuidanceSupportedForBase(base)) {
return null;
}
- const negative = getArchitectureFeatures(base)?.regional_negative ?? false;
+ const row = REGIONAL_GUIDANCE_SUPPORT[base];
+ const negative = row.mode === 'masks' && (getArchitectureFeatures(base)?.regional_negative ?? false);
+
+ return { ...row, autoNegative: negative, negativePrompt: negative };
+};
+
+/** A region's role in a layout prompt; the canvas persists a subset of these and Canvas checks it does. */
+export type RegionalLayoutKind = 'object' | 'character' | 'text';
+
+export interface RegionalLayout {
+ kind: RegionalLayoutKind;
+ /** The exact text a `text` region renders; the other kinds ignore it. */
+ text?: string;
+}
+
+/** What keeps a layout base from placing a region. */
+export type LayoutRegionIssue = 'missing_prompt' | 'missing_text';
+
+/**
+ * Why a layout base leaves a region out, or null when it can place it: every layout element needs a caption, and a
+ * text element its visible text. Whitespace alone counts as missing.
+ */
+export const getLayoutRegionIssue = (region: {
+ positivePrompt: string | null;
+ layout?: RegionalLayout;
+}): LayoutRegionIssue | null => {
+ if (!region.positivePrompt?.trim()) {
+ return 'missing_prompt';
+ }
+ if (region.layout?.kind === 'text' && !region.layout.text?.trim()) {
+ return 'missing_text';
+ }
+ return null;
+};
- return { ...REGIONAL_GUIDANCE_SUPPORT[base], autoNegative: negative, negativePrompt: negative };
+/**
+ * Why a layout base cannot lay these regions out, or null: the layout is built around the global prompt (as submitted,
+ * template applied), so regions it can place need one. Readiness asks before anything uploads; the canvas compiler
+ * asks again for the regions it actually places.
+ */
+export const getLayoutPromptRejectionReason = (params: {
+ base: string;
+ prompt: string;
+ regions: readonly { positivePrompt: string | null; layout?: RegionalLayout }[];
+}): string | null => {
+ const support = getRegionalGuidanceSupport(params.base);
+ if (
+ support?.mode !== 'layout' ||
+ params.prompt.trim().length > 0 ||
+ !params.regions.some((region) => getLayoutRegionIssue(region) === null)
+ ) {
+ return null;
+ }
+ return `${support.label} needs a prompt to place regional guidance in its layout. Enter a prompt or disable the regional guidance layers.`;
};
/** A resolved reference-image (component) model identifier — the backend model field shape. */
@@ -107,11 +173,15 @@ export interface RegionalGuidanceInput {
negativePrompt: string | null;
autoNegative: boolean;
referenceImages: readonly RegionalReferenceImageInput[];
+ /** The mask's alpha bounds in bbox pixels, origin at the bbox corner; layout bases place the region by them. */
+ maskBounds: Rect;
+ /** Absent means an object region; only layout bases read it. */
+ layout?: RegionalLayout;
}
/** Options for {@link addRegionalGuidance}. */
export interface AddRegionalGuidanceOptions {
- base: RegionalGuidanceBase;
+ base: MaskRegionalGuidanceBase;
modelVariant?: string | null;
regions: readonly RegionalGuidanceInput[];
/** Applies model-specific transforms before a regional positive conditioning is collected. */
@@ -122,7 +192,7 @@ export interface AddRegionalGuidanceOptions {
}
/** Per-base conditioning encoder node type + the fields carrying the prompt. */
-const conditioningNodeType = (base: RegionalGuidanceBase, modelVariant?: string | null): string => {
+const conditioningNodeType = (base: MaskRegionalGuidanceBase, modelVariant?: string | null): string => {
switch (base) {
case 'sd-1':
case 'sd-2':
@@ -142,11 +212,11 @@ const conditioningNodeType = (base: RegionalGuidanceBase, modelVariant?: string
};
/** The prompt input fields to set on a regional conditioning node (SDXL mirrors prompt→style). */
-const promptFields = (base: RegionalGuidanceBase): readonly string[] =>
+const promptFields = (base: MaskRegionalGuidanceBase): readonly string[] =>
base === 'sdxl' ? ['prompt', 'style'] : ['prompt'];
/** Copy global encoder fields; wire masks separately. */
-const copyEncoderFields = (base: RegionalGuidanceBase, modelVariant?: string | null): readonly string[] => {
+const copyEncoderFields = (base: MaskRegionalGuidanceBase, modelVariant?: string | null): readonly string[] => {
switch (base) {
case 'sdxl':
return ['clip', 'clip2'];
@@ -209,7 +279,7 @@ const resolveDenoiseCollector = (
/** Builds a per-region conditioning node with its prompt set and encoder edges copied. */
const addRegionalConditioning = (
graph: BackendGraphContract,
- base: RegionalGuidanceBase,
+ base: MaskRegionalGuidanceBase,
modelVariant: string | null | undefined,
nodeId: string,
prompt: string,
@@ -223,7 +293,7 @@ const addRegionalConditioning = (
return node;
};
-/** Inputs must be prevalidated and gated by regional support. */
+/** Masked conditioning for mask bases. Inputs must be prevalidated and gated by regional support. */
export const addRegionalGuidance = (graph: BackendGraphContract, options: AddRegionalGuidanceOptions): void => {
const { base, modelVariant, regions, transformRegionalPositiveConditioning } = options;
const denoise = graph.nodes[DENOISE_NODE_ID];
@@ -340,7 +410,7 @@ export const addRegionalGuidance = (graph: BackendGraphContract, options: AddReg
/**
* Omit unsupported content without erasing stored values. Count resolved references; auto-negative requires
- * positive text.
+ * positive text. Layout bases need a caption, and a text region its visible text.
*/
export const getRegionalGuidanceRejectionReason = (params: {
layerName: string;
@@ -349,6 +419,7 @@ export const getRegionalGuidanceRejectionReason = (params: {
positivePrompt: string | null;
negativePrompt: string | null;
referenceImageCount: number;
+ layout?: RegionalLayout;
}): string | null => {
const { hasContent, layerName, mainBase, negativePrompt, positivePrompt, referenceImageCount } = params;
@@ -359,6 +430,16 @@ export const getRegionalGuidanceRejectionReason = (params: {
if (!hasContent) {
return `Regional guidance "${layerName}" has no masked region.`;
}
+ if (support.mode === 'layout') {
+ switch (getLayoutRegionIssue(params)) {
+ case 'missing_prompt':
+ return `Regional guidance "${layerName}" has no prompt to place in the ${support.label} layout.`;
+ case 'missing_text':
+ return `Regional guidance "${layerName}" is a text region without visible text.`;
+ case null:
+ return null;
+ }
+ }
const contributes =
Boolean(positivePrompt) ||
(Boolean(negativePrompt) && support.negativePrompt) ||
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.ts
index aa9b6e5d0a..15f284addb 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
@@ -730,6 +730,7 @@ describe('compileCanvasGraph', () => {
{
autoNegative: false,
id: 'r1',
+ maskBounds: { height: 64, width: 64, x: 0, y: 0 },
maskImageName: 'r1-mask.png',
negativePrompt: null,
positivePrompt: 'a cat',
@@ -1865,6 +1866,31 @@ describe('compileCanvasGraph — PiD decode', () => {
);
const PID_BASES = [sdxlModel, sd3Model, fluxModel, flux2Model, qwenImageModel, zImageModel];
+ it('lays MOSS-Image regions out at the PiD generation size, which is smaller than the canvas', () => {
+ const { backendGraph } = compile(mossImageModel, 'txt2img', {
+ regionalGuidance: [
+ {
+ autoNegative: false,
+ id: 'r1',
+ maskBounds: { height: 256, width: 192, x: 64, y: 128 },
+ maskImageName: 'r1-mask.png',
+ negativePrompt: null,
+ positivePrompt: 'a cat',
+ referenceImages: [],
+ },
+ ],
+ settings: { ...pidSettings(mossImageModel, 'native'), positivePrompt: 'a market street' },
+ });
+
+ // Native PiD generates a quarter of the 768×1024 bbox and decodes it back up.
+ expect(backendGraph.nodes.denoise_latents).toMatchObject({ height: 256, width: 192 });
+ expect(backendGraph.nodes.layout_prompt).toMatchObject({
+ height: 256,
+ regions: [{ bbox: [16, 32, 64, 96], caption: 'a cat', kind: 'object' }],
+ width: 192,
+ });
+ });
+
it('txt2img fit: the PiD chain replaces the VAE decode and a resize back to the bbox owns canvas_output', () => {
const { backendGraph } = compile(sdxlModel, 'txt2img', { settings: pidSettings(sdxlModel, 'fit') });
@@ -2017,9 +2043,10 @@ describe('compileCanvasGraph — PiD decode', () => {
});
describe('compileCanvasGraph — regional guidance', () => {
- const region = (id: string, overrides: Partial<RegionalGuidanceInput> = {}) => ({
+ const region = (id: string, overrides: Partial<RegionalGuidanceInput> = {}): RegionalGuidanceInput => ({
autoNegative: false,
id,
+ maskBounds: { height: 256, width: 192, x: 64, y: 128 },
maskImageName: `${id}-mask.png`,
negativePrompt: null,
positivePrompt: 'a cat',
@@ -2133,6 +2160,167 @@ describe('compileCanvasGraph — regional guidance', () => {
.map((edge) => edge.source.node_id);
expect(collectedSources).toEqual(['krea2_seed_variance', 'rg_krea2_r1_seed_variance', 'rg_krea2_r2_seed_variance']);
});
+
+ it('places MOSS-Image regions as layout boxes at the denoise size instead of masking conditioning', () => {
+ const { backendGraph } = compile(mossImageModel, 'txt2img', {
+ regionalGuidance: [
+ region('r1', { layout: { kind: 'text', text: 'SALE' }, positivePrompt: 'a red banner' }),
+ region('r2', { layout: { kind: 'character' }, maskBounds: { height: 64, width: 32, x: 0, y: 0 } }),
+ ],
+ // The bbox is 768×1024, so x doubles and y stays.
+ scaling: { height: 1024, method: 'manual', width: 1536 },
+ settings: { positivePrompt: 'a market street' },
+ });
+
+ expect(backendGraph.nodes.denoise_latents).toMatchObject({ height: 1024, width: 1536 });
+ expect(backendGraph.nodes.layout_prompt).toMatchObject({
+ height: 1024,
+ regions: [
+ { bbox: [128, 128, 512, 384], caption: 'a red banner', kind: 'text', text: 'SALE' },
+ { bbox: [0, 0, 64, 64], caption: 'a cat', kind: 'character' },
+ ],
+ type: 'moss_image_layout_prompt',
+ width: 1536,
+ });
+ expect(getNodeByType(backendGraph, 'alpha_mask_to_tensor')).toBeUndefined();
+ expect(getEdge(backendGraph, 'layout_prompt', 'prompt')?.source.node_id).toBe('positive_prompt');
+ expect(getEdge(backendGraph, 'pos_cond', 'prompt')?.source.node_id).toBe('layout_prompt');
+ const metadata = getNodeByType(backendGraph, 'core_metadata')!;
+ expect(getEdge(backendGraph, metadata.id, 'moss_image_layout_prompt')?.source).toEqual({
+ field: 'value',
+ node_id: 'layout_prompt',
+ });
+ expect(getEdge(backendGraph, metadata.id, 'positive_prompt')?.source.node_id).toBe('positive_prompt');
+ });
+
+ it('clamps MOSS-Image boxes to the image, sends text only for text regions, and leaves out what it cannot place', () => {
+ const { backendGraph } = compile(mossImageModel, 'txt2img', {
+ regionalGuidance: [
+ region('edge', { maskBounds: { height: 100, width: 200, x: 700, y: -20 } }),
+ region('stale-text', { layout: { kind: 'character', text: 'kept for a switch back' } }),
+ // alphaBounds reports a mask that misses the bbox as an empty rect.
+ region('empty', { maskBounds: { height: 0, width: 0, x: 0, y: 0 } }),
+ region('outside', { maskBounds: { height: 50, width: 50, x: 900, y: 10 } }),
+ region('blank-text', { layout: { kind: 'text', text: ' ' } }),
+ region('no-caption', { positivePrompt: null }),
+ ],
+ settings: { positivePrompt: 'a market street' },
+ });
+
+ expect(backendGraph.nodes.layout_prompt?.regions).toEqual([
+ { bbox: [700, 0, 768, 80], caption: 'a cat', kind: 'object' },
+ { bbox: [64, 128, 256, 384], caption: 'a cat', kind: 'character' },
+ ]);
+ });
+
+ it('adds no layout node, even on a blank prompt, when no region can be placed', () => {
+ const { backendGraph } = compile(mossImageModel, 'txt2img', {
+ regionalGuidance: [region('empty', { maskBounds: { height: 0, width: 0, x: 0, y: 0 } })],
+ });
+
+ expect(backendGraph.nodes.layout_prompt).toBeUndefined();
+ expect(getEdge(backendGraph, 'pos_cond', 'prompt')?.source.node_id).toBe('positive_prompt');
+ });
+
+ it('blocks MOSS-Image regions on a blank prompt unless a prompt template supplies one', () => {
+ expect(() =>
+ compile(mossImageModel, 'txt2img', { regionalGuidance: [region('r1')], settings: { positivePrompt: ' ' } })
+ ).toThrow(
+ 'MOSS-Image needs a prompt to place regional guidance in its layout. Enter a prompt or disable the regional guidance layers.'
+ );
+
+ const { backendGraph } = compile(mossImageModel, 'txt2img', {
+ regionalGuidance: [region('r1')],
+ settings: {
+ positivePrompt: '',
+ promptTemplate: { id: 'poster', name: 'Poster', negativePrompt: '', positivePrompt: 'a vintage poster' },
+ },
+ });
+ expect(backendGraph.nodes.layout_prompt).toBeDefined();
+ });
+
+ it('keeps fractional MOSS-Image boxes when the processing grid rounds the bbox', () => {
+ // A 1000×1000 bbox denoises at 1008×1008 on the 16 px grid, so every edge scales by 1.008.
+ const { backendGraph } = compile(mossImageModel, 'txt2img', {
+ bbox: { height: 1000, width: 1000, x: 0, y: 0 },
+ regionalGuidance: [region('r1', { maskBounds: { height: 250, width: 500, x: 100, y: 250 } })],
+ settings: { positivePrompt: 'a market street' },
+ });
+
+ expect(backendGraph.nodes.layout_prompt).toMatchObject({ height: 1008, width: 1008 });
+ const [element] = backendGraph.nodes.layout_prompt!.regions as { bbox: number[] }[];
+ expect(element?.bbox).toEqual([
+ expect.closeTo(100.8, 9),
+ expect.closeTo(252, 9),
+ expect.closeTo(604.8, 9),
+ expect.closeTo(504, 9),
+ ]);
+ });
+
+ it('leaves a mask base unchanged by a layout role stored for MOSS-Image', () => {
+ // Pin the minted ids so the two graphs compare whole.
+ const clock = vi.spyOn(Date, 'now').mockReturnValue(0);
+ const random = vi.spyOn(Math, 'random').mockReturnValue(0.5);
+ try {
+ const plain = compile(zImageModel, 'txt2img', { regionalGuidance: [region('r1')] }).backendGraph;
+ const withRole = compile(zImageModel, 'txt2img', {
+ regionalGuidance: [region('r1', { layout: { kind: 'text' } })],
+ }).backendGraph;
+
+ expect(withRole.nodes.rg_pos_cond_r1).toMatchObject({ prompt: 'a cat', type: 'z_image_text_encoder' });
+ expect(withRole).toEqual(plain);
+ } finally {
+ clock.mockRestore();
+ random.mockRestore();
+ }
+ });
+
+ it('writes the MOSS-Image layout canvas graphs the backend validates', async () => {
+ const clock = vi.spyOn(Date, 'now').mockReturnValue(0);
+ const random = vi.spyOn(Math, 'random').mockReturnValue(0.5);
+ // Installed models always carry a hash, which the backend's model identifier requires.
+ const model = { ...mossImageModel, hash: 'blake3:moss' };
+ // Every kind, a box that starts on the bbox edge and one that ends on it, and multi-line visible text.
+ const regions = [
+ region('sign', {
+ layout: { kind: 'text', text: '一杯温暖\n一刻从容' },
+ maskBounds: { height: 256, width: 512, x: 0, y: 0 },
+ positivePrompt: 'a hand-lettered cafe sign',
+ }),
+ region('barista', { layout: { kind: 'character' }, positivePrompt: 'a barista pouring latte art' }),
+ region('cup', {
+ layout: { kind: 'object', text: 'kept for a switch back' },
+ maskBounds: { height: 384, width: 256, x: 512, y: 640 },
+ positivePrompt: 'a steaming ceramic cup',
+ }),
+ ];
+ let txt2img: BackendGraphContract;
+ let inpaint: BackendGraphContract;
+ try {
+ const settings = { positivePrompt: 'a cozy cafe interior, morning light' };
+ txt2img = compile(model, 'txt2img', { regionalGuidance: regions, settings }).backendGraph;
+ inpaint = compile(model, 'inpaint', { regionalGuidance: regions, settings }).backendGraph;
+ } finally {
+ clock.mockRestore();
+ random.mockRestore();
+ }
+ const fixture = {
+ _comment:
+ 'Generated by compileCanvasGraph.test.ts; regenerate with `vitest -u`. Validated against the backend invocations by the MOSS-Image layout graph tests.',
+ inpaint: { ...inpaint, id: 'moss_image_layout_canvas_inpaint' },
+ txt2img: { ...txt2img, id: 'moss_image_layout_canvas_txt2img' },
+ };
+ await expect(`${JSON.stringify(fixture, null, 2)}\n`).toMatchFileSnapshot(
+ '../__snapshots__/mossImageLayoutCanvasGraphs.json'
+ );
+ });
+
+ it('keeps a MOSS-Image canvas graph without regions on the plain prompt', () => {
+ const { backendGraph } = compile(mossImageModel, 'txt2img');
+
+ expect(backendGraph.nodes.layout_prompt).toBeUndefined();
+ expect(getEdge(backendGraph, 'pos_cond', 'prompt')?.source.node_id).toBe('positive_prompt');
+ });
});
describe('compileCanvasGraph — SDXL Refiner', () => {
@@ -2214,6 +2402,7 @@ describe('compileCanvasGraph — SDXL Refiner', () => {
{
autoNegative: false,
id: 'r1',
+ maskBounds: { height: 64, width: 64, x: 0, y: 0 },
maskImageName: 'r1-mask.png',
negativePrompt: null,
positivePrompt: 'a cat',
@@ -2378,6 +2567,7 @@ describe('compileCanvasGraph — Krea-2 edit references', () => {
const region: RegionalGuidanceInput = {
autoNegative: false,
id: 'r1',
+ maskBounds: { height: 256, width: 192, x: 64, y: 128 },
maskImageName: 'r1-mask.png',
negativePrompt: null,
positivePrompt: 'a cat',
diff --git a/invokeai/frontend/webv2/src/features/generation/core/canvas/compileCanvasGraph.ts b/invokeai/frontend/webv2/src/features/generation/core/canvas/compileCanvasGraph.ts
index 561bf9b6bc..88cd97ab8f 100644
--- a/invokeai/frontend/webv2/src/features/generation/core/canvas/compileCanvasGraph.ts
+++ b/invokeai/frontend/webv2/src/features/generation/core/canvas/compileCanvasGraph.ts
@@ -29,6 +29,7 @@ import {
import { addKrea2ConditioningEnhancers } from '@features/generation/core/krea2Conditioning';
import { getIsPidActive } from '@features/generation/core/pid';
import { shouldUsePidDecode } from '@features/generation/core/pidGraph';
+import { getEffectivePrompts } from '@features/generation/core/promptTemplates';
import { getBaseDenoisingRange } from '@features/generation/core/sdxlRefiner';
import { MAX_ANIMA_INPAINT_ADAPTER_WEIGHT, MIN_ANIMA_INPAINT_ADAPTER_WEIGHT } from '@features/generation/core/settings';
@@ -38,10 +39,19 @@ import type {
CanvasInfillMethod,
CompileCanvasGraphInput,
CompiledCanvasGraph,
+ Rect,
} from './types';
import { addControlLayers, getOrAddLliteCollector } from './addControlLayers';
-import { addRegionalGuidance, isRegionalGuidanceSupportedForBase } from './addRegionalGuidance';
+import {
+ addRegionalGuidance,
+ getLayoutPromptRejectionReason,
+ getLayoutRegionIssue,
+ isLayoutRegionalGuidanceBase,
+ isRegionalGuidanceSupportedForBase,
+ type RegionalGuidanceInput,
+ type RegionalLayoutKind,
+} from './addRegionalGuidance';
import { type CanvasSize, resolveCanvasProcessingSize } from './canvasProcessingSize';
import { isAnimaInpaintAdapterModel } from './controlValidation';
@@ -199,6 +209,18 @@ const getCanvasValidationReasons = (input: CompileCanvasGraphInput, processingSi
reasons.push('Canvas inpainting requires an inpaint mask.');
}
+ // The layout node refuses regions around a blank prompt. A mask with pixels in the bbox has an area to place.
+ const layoutPromptReason = getLayoutPromptRejectionReason({
+ base: model.base,
+ prompt: getEffectivePrompts(settings).positivePrompt,
+ regions: (input.regionalGuidance ?? []).filter(
+ (region) => region.maskBounds.width > 0 && region.maskBounds.height > 0
+ ),
+ });
+ if (layoutPromptReason) {
+ reasons.push(layoutPromptReason);
+ }
+
return reasons;
};
@@ -833,6 +855,94 @@ const graftOutpaint = (
return inpaint;
};
+/** One element of the `moss_image_layout_prompt` node's `regions` input; `bbox` is `[x1, y1, x2, y2]` pixels. */
+interface LayoutRegionElement {
+ kind: RegionalLayoutKind;
+ caption: string;
+ /** Present exactly for `text` elements, as the node requires. */
+ text?: string;
+ bbox: [number, number, number, number];
+}
+
+interface AddLayoutRegionsOptions {
+ /** The generation bbox the regions' mask bounds are measured in. */
+ bbox: Pick<Rect, 'width' | 'height'>;
+ regions: readonly RegionalGuidanceInput[];
+}
+
+// Scaling a box that ends on the bbox edge can overshoot the image by a rounding error; the node refuses that.
+const clamp = (value: number, max: number): number => Math.min(Math.max(value, 0), max);
+
+const toLayoutElement = (
+ region: RegionalGuidanceInput,
+ scale: { x: number; y: number },
+ size: { width: number; height: number }
+): LayoutRegionElement | null => {
+ const caption = region.positivePrompt;
+ if (caption === null || getLayoutRegionIssue(region) !== null) {
+ return null;
+ }
+ const bounds = region.maskBounds;
+ const x1 = clamp(bounds.x * scale.x, size.width);
+ const y1 = clamp(bounds.y * scale.y, size.height);
+ const x2 = clamp((bounds.x + bounds.width) * scale.x, size.width);
+ const y2 = clamp((bounds.y + bounds.height) * scale.y, size.height);
+ // A mask that misses the bbox has no area there; the node refuses empty boxes.
+ if (x2 <= x1 || y2 <= y1) {
+ return null;
+ }
+ const kind = region.layout?.kind ?? 'object';
+ return {
+ bbox: [x1, y1, x2, y2],
+ caption,
+ kind,
+ ...(kind === 'text' ? { text: region.layout?.text } : {}),
+ };
+};
+
+/**
+ * MOSS-Image regions: each becomes a box around its mask, scaled from bbox pixels to the size the denoiser generates
+ * (which PiD can shrink below the processing size) and clamped to it. A `layout_prompt` node between the global prompt
+ * and the positive encoder assembles them at run time, so batch prompt variation still flows through
+ * `positive_prompt`; core metadata records the assembled prompt. Regions the layout cannot place are left out, and
+ * without any the graph stays untouched.
+ */
+const addLayoutRegions = (graph: BackendGraphContract, options: AddLayoutRegionsOptions): void => {
+ const posCond = graph.nodes.pos_cond;
+ if (!posCond) {
+ throw new Error('addLayoutRegions: base graph is missing the positive conditioning node.');
+ }
+ const size = getDenoiseSize(graph, requireDenoise(graph));
+ const scale = { x: size.width / options.bbox.width, y: size.height / options.bbox.height };
+ const elements = options.regions.flatMap((region) => toLayoutElement(region, scale, size) ?? []);
+ if (elements.length === 0) {
+ return;
+ }
+ const promptEdge = graph.edges.find(
+ (edge) =>
+ edge.source.node_id === 'positive_prompt' &&
+ edge.destination.node_id === posCond.id &&
+ edge.destination.field === 'prompt'
+ );
+ if (!promptEdge) {
+ throw new Error('addLayoutRegions: the positive prompt does not feed the positive conditioning.');
+ }
+
+ const layoutPrompt = addNode(graph, {
+ height: size.height,
+ id: 'layout_prompt',
+ regions: elements,
+ type: 'moss_image_layout_prompt',
+ width: size.width,
+ });
+ promptEdge.destination = { field: 'prompt', node_id: layoutPrompt.id };
+ addEdge(graph, layoutPrompt, 'value', posCond, 'prompt');
+ const metadata = findMetadataNode(graph);
+ if (metadata) {
+ addEdge(graph, layoutPrompt, 'value', metadata, 'moss_image_layout_prompt');
+ }
+};
+
/** Throw the first validation reason. */
export const compileCanvasGraph = (input: CompileCanvasGraphInput): CompiledCanvasGraph => {
const { bbox, compositeImageName, destination, mode, model, projectSettings, strength } = input;
@@ -916,30 +1026,36 @@ export const compileCanvasGraph = (input: CompileCanvasGraphInput): CompiledCanv
});
}
- // Regional masks and models must already be validated.
- if (input.regionalGuidance && input.regionalGuidance.length > 0 && isRegionalGuidanceSupportedForBase(model.base)) {
- addRegionalGuidance(backendGraph, {
- base: model.base,
- modelVariant: model.variant,
- regions: input.regionalGuidance,
- ...(model.base === 'krea-2'
- ? {
- transformRegionalPositiveConditioning: (conditioning: BackendInvocationContract, regionId: string) => {
- const seed = backendGraph.nodes.seed;
- if (!seed) {
- throw new Error('Krea-2 regional guidance requires the base graph seed node.');
- }
- return addKrea2ConditioningEnhancers({
- conditioning,
- graph: backendGraph,
- idPrefix: `rg_krea2_${regionId}`,
- seed,
- settings,
- });
- },
- }
- : {}),
- });
+ // Regional masks and models must already be validated. Layout bases read only each mask's bounds.
+ const regions = input.regionalGuidance ?? [];
+ const regionalBase = model.base;
+ if (regions.length > 0 && isRegionalGuidanceSupportedForBase(regionalBase)) {
+ if (isLayoutRegionalGuidanceBase(regionalBase)) {
+ addLayoutRegions(backendGraph, { bbox, regions });
+ } else {
+ addRegionalGuidance(backendGraph, {
+ base: regionalBase,
+ modelVariant: model.variant,
+ regions,
+ ...(regionalBase === 'krea-2'
+ ? {
+ transformRegionalPositiveConditioning: (conditioning: BackendInvocationContract, regionId: string) => {
+ const seed = backendGraph.nodes.seed;
+ if (!seed) {
+ throw new Error('Krea-2 regional guidance requires the base graph seed node.');
+ }
+ return addKrea2ConditioningEnhancers({
+ conditioning,
+ graph: backendGraph,
+ idPrefix: `rg_krea2_${regionId}`,
+ seed,
+ settings,
+ });
+ },
+ }
+ : {}),
+ });
+ }
}
if (mode === 'txt2img' || mode === 'img2img') {
diff --git a/invokeai/frontend/webv2/src/features/generation/graph.ts b/invokeai/frontend/webv2/src/features/generation/graph.ts
index 4858cfb9bb..8398e60a00 100644
--- a/invokeai/frontend/webv2/src/features/generation/graph.ts
+++ b/invokeai/frontend/webv2/src/features/generation/graph.ts
@@ -30,10 +30,13 @@ export {
isControlModelUsableForKind,
} from './core/canvas/controlValidation';
export {
+ getLayoutPromptRejectionReason,
+ getLayoutRegionIssue,
getRegionalGuidanceRejectionReason,
getRegionalGuidanceSupport,
isRegionalGuidanceSupportedForBase,
type RegionalGuidanceInput,
+ type RegionalLayoutKind,
type RegionalReferenceImageInput,
} from './core/canvas/addRegionalGuidance';
export type { ControlLayerGraphInput } from './core/canvas/addControlLayers';
diff --git a/invokeai/frontend/webv2/src/workbench/canvas-engine/capabilities.ts b/invokeai/frontend/webv2/src/workbench/canvas-engine/capabilities.ts
index 1e1c8459d9..e2e932a527 100644
--- a/invokeai/frontend/webv2/src/workbench/canvas-engine/capabilities.ts
+++ b/invokeai/frontend/webv2/src/workbench/canvas-engine/capabilities.ts
@@ -831,7 +831,12 @@ export interface CanvasEngine {
}
export type * from './contracts';
-export { CANVAS_COLOR_LABELS, CANVAS_MAX_NODE_COUNT, CANVAS_MAX_NODE_DEPTH } from './contracts';
+export {
+ CANVAS_COLOR_LABELS,
+ CANVAS_MAX_NODE_COUNT,
+ CANVAS_MAX_NODE_DEPTH,
+ CANVAS_REGIONAL_LAYOUT_KINDS,
+} from './contracts';
export type BooleanRasterOperation = 'intersect' | 'cutout' | 'cutaway' | 'exclude';
export interface StagedPreviewPlacement extends Rect {
opacity: number;
diff --git a/invokeai/frontend/webv2/src/workbench/canvas-engine/contracts.ts b/invokeai/frontend/webv2/src/workbench/canvas-engine/contracts.ts
index 9061599e91..8fe127e628 100644
--- a/invokeai/frontend/webv2/src/workbench/canvas-engine/contracts.ts
+++ b/invokeai/frontend/webv2/src/workbench/canvas-engine/contracts.ts
@@ -388,6 +388,23 @@ export interface CanvasControlLayerContract extends CanvasLayerBaseContract {
originalTransform?: CanvasLayerBaseContract['transform'];
}
+/**
+ * The roles a region can take in a layout prompt, in the order the settings offer them; the load schema and the
+ * settings read this list. A closed persisted set: a build that does not know a stored role refuses the canvas instead
+ * of rewriting it (`projects/README.md`, "Additive canvas values"). Canvas invocation hands each role to Generation's
+ * layout type, so a role the graph cannot send fails to compile there.
+ */
+export const CANVAS_REGIONAL_LAYOUT_KINDS = ['object', 'character', 'text'] as const;
+
+/**
+ * A region's role for models that compose the image from layout boxes (MOSS-Image). `text` is the exact visible text
+ * of a `text` region; other kinds keep it so switching back restores it.
+ */
+export interface CanvasRegionalLayoutContract {
+ kind: (typeof CANVAS_REGIONAL_LAYOUT_KINDS)[number];
+ text?: string;
+}
+
export interface CanvasRegionalGuidanceLayerContract extends CanvasLayerBaseContract {
type: 'regional_guidance';
mask: CanvasMaskContract;
@@ -395,6 +412,8 @@ export interface CanvasRegionalGuidanceLayerContract extends CanvasLayerBaseCont
negativePrompt: string | null;
autoNegative: boolean;
referenceImages: RegionalGuidanceReferenceImage[];
+ /** Layout role for layout-based models; absence means an object region. Mask-based models ignore it. */
+ layout?: CanvasRegionalLayoutContract;
/**
* Display-only visibility for overlay layers; generation is unchanged. Absence means visible. Raster layers
* instead use `isEnabled` for both visibility and participation.
diff --git a/invokeai/frontend/webv2/src/workbench/canvas-engine/document-model/documentModel.test.ts b/invokeai/frontend/webv2/src/workbench/canvas-engine/document-model/documentModel.test.ts
index e8afd9bbd4..433808ed6b 100644
--- a/invokeai/frontend/webv2/src/workbench/canvas-engine/document-model/documentModel.test.ts
+++ b/invokeai/frontend/webv2/src/workbench/canvas-engine/document-model/documentModel.test.ts
@@ -886,6 +886,44 @@ describe('createDocumentModel', () => {
expect(Object.hasOwn(mask, 'noise')).toBe(false);
});
+ it("round-trips a region's layout role from the live layer, and clearing it leaves no field behind", () => {
+ const project = projectWith([layer('g1', 'regional_guidance'), layer('r1')], 'g1');
+ const regionOf = (after: Project) => getDocumentLeaves(after.canvas.document).find((leaf) => leaf.id === 'g1')!;
+ // The settings panel commits without a baseline, so each inverse is read from the live layer.
+ const added = roundTrip(project, {
+ config: { layerType: 'regional_guidance', layout: { kind: 'text' } },
+ id: 'g1',
+ type: 'patch-config',
+ });
+ expect(added.edit.inverse).toEqual({
+ config: { layerType: 'regional_guidance', layout: undefined },
+ id: 'g1',
+ type: 'updateCanvasLayerConfig',
+ });
+ const texted = roundTrip(added.after, {
+ config: { layerType: 'regional_guidance', layout: { kind: 'text', text: 'OPEN' } },
+ id: 'g1',
+ type: 'patch-config',
+ });
+ expect(regionOf(texted.after)).toMatchObject({ layout: { kind: 'text', text: 'OPEN' } });
+ const cleared = roundTrip(texted.after, {
+ config: { layerType: 'regional_guidance', layout: null },
+ id: 'g1',
+ type: 'patch-config',
+ });
+
+ expect(Object.hasOwn(regionOf(cleared.after), 'layout')).toBe(false);
+ const undoneAdd = applyCanvasProjectMutation(added.after, added.edit.inverse);
+ expect(Object.hasOwn(regionOf(undoneAdd), 'layout')).toBe(false);
+ expect(
+ modelOf(cleared.after).prepare({
+ config: { layerType: 'regional_guidance', layout: null },
+ id: 'g1',
+ type: 'patch-config',
+ })
+ ).toEqual({ status: 'unchanged' });
+ });
+
it('round-trips setting and clearing a regional prompt, which the layer stores as null', () => {
const project = projectWith([layer('g1', 'regional_guidance'), layer('r1')], 'g1');
const set = roundTrip(project, {
diff --git a/invokeai/frontend/webv2/src/workbench/canvas-engine/document-model/postconditions.ts b/invokeai/frontend/webv2/src/workbench/canvas-engine/document-model/postconditions.ts
index bdb2e0eea4..e40fa333ef 100644
--- a/invokeai/frontend/webv2/src/workbench/canvas-engine/document-model/postconditions.ts
+++ b/invokeai/frontend/webv2/src/workbench/canvas-engine/document-model/postconditions.ts
@@ -70,7 +70,7 @@ export const isPatchApplied = (node: CanvasNodeContract, patch: CanvasLayerBaseP
/**
* Whether every field named by `config` already holds its value; nested
* partials compare field by field, and a `null` config value asserts the field
- * is cleared: absent (the reducer deletes mask modifiers) or stored as null (prompts).
+ * is cleared: absent (the reducer deletes mask modifiers and region layout roles) or stored as null (prompts).
*/
export const isConfigApplied = (node: CanvasNodeContract, config: CanvasLayerConfigPatch): boolean => {
if (node.type !== config.layerType) {
diff --git a/invokeai/frontend/webv2/src/workbench/canvas-engine/mutationContracts.ts b/invokeai/frontend/webv2/src/workbench/canvas-engine/mutationContracts.ts
index c30ef99cd2..5605ad274f 100644
--- a/invokeai/frontend/webv2/src/workbench/canvas-engine/mutationContracts.ts
+++ b/invokeai/frontend/webv2/src/workbench/canvas-engine/mutationContracts.ts
@@ -14,6 +14,7 @@ import type {
CanvasMaskNoiseContract,
CanvasRasterLayerContractV2,
CanvasRegionalGuidanceLayerContract,
+ CanvasRegionalLayoutContract,
CanvasStagingAreaContractV2,
} from './contracts';
import type { CanvasNodeInsertion, CanvasNodeInsertionAnchor, CanvasNodeMove } from './document/insertionAnchors';
@@ -69,6 +70,8 @@ export type CanvasLayerConfigPatch =
negativePrompt?: string | null;
autoNegative?: boolean;
referenceImages?: CanvasRegionalGuidanceLayerContract['referenceImages'];
+ /** Replaces the layout role whole; `null` (or the `undefined` an inverse records) removes it. */
+ layout?: CanvasRegionalLayoutContract | null;
}
| {
layerType: 'inpaint_mask';
diff --git a/invokeai/frontend/webv2/src/workbench/canvas-operations/compositeForGeneration.test.ts b/invokeai/frontend/webv2/src/workbench/canvas-operations/compositeForGeneration.test.ts
index dfa7978bfd..e31e6a64fc 100644
--- a/invokeai/frontend/webv2/src/workbench/canvas-operations/compositeForGeneration.test.ts
+++ b/invokeai/frontend/webv2/src/workbench/canvas-operations/compositeForGeneration.test.ts
@@ -16,7 +16,11 @@ import { applyAdjustments } from '@workbench/canvas-engine/render/adjustments';
import { createTestStubRasterBackend } from '@workbench/canvas-engine/render/raster.testStub';
import { RasterCompositeOverBudgetError } from '@workbench/canvas-engine/render/rasterComposite';
import { MEASURED_NOISY_TEXT } from '@workbench/canvas-engine/render/rasterComposite.testing';
-import { planComposites, planControlComposites } from '@workbench/canvas-operations/generationCompositePlan';
+import {
+ planComposites,
+ planControlComposites,
+ planRegionalMaskComposites,
+} from '@workbench/canvas-operations/generationCompositePlan';
import { describe, expect, it, vi } from 'vitest';
import type { ExecuteCompositePlanDeps } from './compositeForGeneration';
@@ -26,6 +30,7 @@ import {
executeCompositePlan,
executeControlComposite,
executeMaskComposite,
+ executeRegionalMaskComposite,
toGrayscaleMaskPixels,
} from './compositeForGeneration';
@@ -324,6 +329,63 @@ describe('executeControlComposite', () => {
});
});
+describe('executeRegionalMaskComposite', () => {
+ const regionalLayer: CanvasLayerContract = {
+ autoNegative: false,
+ blendMode: 'normal',
+ id: 'region',
+ isEnabled: true,
+ isLocked: false,
+ mask: { bitmap: imageRef('region-bmp'), fill: { color: '#00ff00', style: 'solid' } },
+ name: 'Region',
+ negativePrompt: null,
+ opacity: 0.5,
+ positivePrompt: 'a sign',
+ referenceImages: [],
+ transform: { rotation: 0, scaleX: 1, scaleY: 1, x: 0, y: 0 },
+ type: 'regional_guidance',
+ };
+ const regionalEntry = () => planRegionalMaskComposites(makeDoc([regionalLayer]), BBOX)[0]!.entry;
+
+ /** A transparent scan with one faint pixel at each opposite corner of a box. */
+ const boxImageData = (width: number, height: number): ImageData => {
+ const image = uniformImageData(width, height, 0);
+ image.data[(12 * width + 10) * 4 + 3] = 1;
+ image.data[(40 * width + 29) * 4 + 3] = 255;
+ return image;
+ };
+
+ it('measures the alpha bounds on the coverage readback it already takes', async () => {
+ const readImageData = vi.fn(() => boxImageData(100, 100));
+ const harness = makeHarness(readImageData);
+
+ const result = await executeRegionalMaskComposite(regionalEntry(), harness.deps);
+
+ expect(result).toMatchObject({ bounds: { height: 29, width: 20, x: 10, y: 12 }, imageName: 'uploaded-1' });
+ expect(readImageData).toHaveBeenCalledTimes(1);
+ });
+
+ it('reuses the cached bounds with the cached upload', async () => {
+ const readImageData = vi.fn(() => boxImageData(100, 100));
+ const harness = makeHarness(readImageData);
+
+ await executeRegionalMaskComposite(regionalEntry(), harness.deps);
+ const second = await executeRegionalMaskComposite(regionalEntry(), harness.deps);
+
+ expect(second).toMatchObject({ bounds: { height: 29, width: 20, x: 10, y: 12 }, reusedUpload: true });
+ expect(readImageData).toHaveBeenCalledTimes(1);
+ expect(harness.encodeSurface).toHaveBeenCalledTimes(1);
+ });
+
+ it('reports empty bounds for a mask with no pixels in the bbox', async () => {
+ const harness = makeHarness(() => uniformImageData(100, 100, 0));
+
+ const result = await executeRegionalMaskComposite(regionalEntry(), harness.deps);
+
+ expect(result.bounds).toEqual({ height: 0, width: 0, x: 0, y: 0 });
+ });
+});
+
// ---- Grayscale mask composite ---------------------------------------------
const inpaintMask = (
diff --git a/invokeai/frontend/webv2/src/workbench/canvas-operations/compositeForGeneration.ts b/invokeai/frontend/webv2/src/workbench/canvas-operations/compositeForGeneration.ts
index c539f17b70..f119edbb0f 100644
--- a/invokeai/frontend/webv2/src/workbench/canvas-operations/compositeForGeneration.ts
+++ b/invokeai/frontend/webv2/src/workbench/canvas-operations/compositeForGeneration.ts
@@ -17,6 +17,7 @@ import type {
import { sha256Hex } from '@platform/browser/sha256';
import { fromTRS, multiply } from '@workbench/canvas-engine/math/mat2d';
+import { alphaBounds } from '@workbench/canvas-engine/render/alphaBounds';
import {
compositeScratchPixels,
RasterCompositeOverBudgetError,
@@ -57,6 +58,8 @@ export interface CompositeCacheEntry {
bboxFullyCovered: boolean;
/** Whether any pixel is not fully transparent; masks store their coverage here too. */
bboxHasContent: boolean;
+ /** A regional mask's alpha bounds in bbox pixels; only regional entries have them. */
+ bounds?: Rect;
}
/** Creates an empty {@link CompositeDedupeCache}. */
@@ -239,14 +242,21 @@ const flattenControlSurfaceOverBlack = (surface: RasterSurface): void => {
ctx.restore();
};
+/** A raster entry's upload plus its coverage scan; `bounds` is measured for regional masks only. */
+type RasterEntryResult = CompositeEntryResult & {
+ bboxFullyCovered: boolean;
+ bboxHasContent: boolean;
+ bounds: Rect | null;
+};
+
/**
* Share raster composition, coverage scanning, encoding, and plan-key/content-hash upload deduplication between
- * {@link executeCompositePlan} and {@link executeControlComposite}.
+ * {@link executeCompositePlan}, {@link executeControlComposite} and {@link executeRegionalMaskComposite}.
*/
const executeRasterEntry = async (
entry: CompositeEntry,
deps: ExecuteCompositePlanDeps
-): Promise<CompositeEntryResult & { bboxFullyCovered: boolean; bboxHasContent: boolean }> => {
+): Promise<RasterEntryResult> => {
const hashBlob = deps.hashBlob ?? defaultHashBlob;
const readImageData = deps.readImageData ?? defaultReadImageData;
@@ -255,6 +265,7 @@ const executeRasterEntry = async (
return {
bboxFullyCovered: cached.bboxFullyCovered,
bboxHasContent: cached.bboxHasContent,
+ bounds: cached.bounds ?? null,
height: cached.height,
imageName: cached.imageName,
key: entry.key,
@@ -269,15 +280,19 @@ const executeRasterEntry = async (
const surface = await renderRasterComposite(entry, deps);
let bboxFullyCovered: boolean;
let bboxHasContent: boolean;
+ let bounds: Rect | null = null;
if (entry.kind === 'control-layer') {
flattenControlSurfaceOverBlack(surface);
bboxFullyCovered = surface.width > 0 && surface.height > 0;
bboxHasContent = bboxFullyCovered;
} else {
const fullRect: Rect = { height: surface.height, width: surface.width, x: 0, y: 0 };
- const coverage = scanCoverage(readImageData(surface, fullRect));
+ // One readback serves both scans; the surface is bbox-sized, so the bounds are bbox pixels.
+ const pixels = readImageData(surface, fullRect);
+ const coverage = scanCoverage(pixels);
bboxFullyCovered = coverage.fullyOpaque;
bboxHasContent = coverage.hasContent;
+ bounds = entry.kind === 'regional-mask' ? alphaBounds(pixels) : null;
}
const blob = await deps.backend.encodeSurface(surface);
@@ -294,6 +309,7 @@ const executeRasterEntry = async (
deps.dedupe.byKey.set(entry.key, {
bboxFullyCovered,
bboxHasContent,
+ ...(bounds ? { bounds } : {}),
height: upload.height,
imageName: upload.imageName,
pixelHash,
@@ -303,6 +319,7 @@ const executeRasterEntry = async (
return {
bboxFullyCovered,
bboxHasContent,
+ bounds,
height: upload.height,
imageName: upload.imageName,
key: entry.key,
@@ -325,7 +342,7 @@ export const executeCompositePlan = async (
}
const contentBounds = getCompositeLayerBounds(entry.layers);
- const { bboxFullyCovered, bboxHasContent, ...base } = await executeRasterEntry(entry, deps);
+ const { bboxFullyCovered, bboxHasContent, bounds: _bounds, ...base } = await executeRasterEntry(entry, deps);
return { base, bboxFullyCovered, bboxHasContent, contentBounds };
};
@@ -338,22 +355,35 @@ export const executeControlComposite = async (
const {
bboxFullyCovered: _bboxFullyCovered,
bboxHasContent: _bboxHasContent,
+ bounds: _bounds,
...result
} = await executeRasterEntry(entry, deps);
return result;
};
-/** Composite one regional mask with alpha preserved for alpha_mask_to_tensor; share the base/control dedupe cache. */
+/** A regional mask upload plus the alpha bounds of its pixels in bbox space (empty when none fall inside). */
+export interface RegionalMaskCompositeResult extends CompositeEntryResult {
+ bounds: Rect;
+}
+
+/**
+ * Composite one regional mask with alpha preserved for alpha_mask_to_tensor and measure its alpha bounds; share the
+ * base/control dedupe cache.
+ */
export const executeRegionalMaskComposite = async (
entry: CompositeEntry,
deps: ExecuteCompositePlanDeps
-): Promise<CompositeEntryResult> => {
+): Promise<RegionalMaskCompositeResult> => {
const {
bboxFullyCovered: _bboxFullyCovered,
bboxHasContent: _bboxHasContent,
+ bounds,
...result
} = await executeRasterEntry(entry, deps);
- return result;
+ if (!bounds) {
+ throw new Error(`executeRegionalMaskComposite: a ${entry.kind} entry is not a regional mask.`);
+ }
+ return { ...result, bounds };
};
// ---- Grayscale mask composite (inpaint/outpaint) ---------------------------
diff --git a/invokeai/frontend/webv2/src/workbench/canvas-operations/generationComposite.test.ts b/invokeai/frontend/webv2/src/workbench/canvas-operations/generationComposite.test.ts
index 07787c3e18..3827b78c2e 100644
--- a/invokeai/frontend/webv2/src/workbench/canvas-operations/generationComposite.test.ts
+++ b/invokeai/frontend/webv2/src/workbench/canvas-operations/generationComposite.test.ts
@@ -150,6 +150,8 @@ interface HostHarness {
interface HostOptions {
alpha?: number;
+ /** Replaces the uniform-alpha coverage readback. */
+ readImageData?: (width: number, height: number) => ImageData;
layerRects?: Readonly<Record<string, Rect>>;
uploadImage?: (blob: Blob) => Promise<CanvasImageUploadResult>;
}
@@ -218,7 +220,8 @@ const makeHost = (document: CanvasDocumentContractV3, options: HostOptions = {})
hashCounter += 1;
return Promise.resolve(`hash-${hashCounter}`);
},
- readImageData: (_surface, rect) => uniformImageData(rect.width, rect.height, alpha),
+ readImageData: (_surface, rect) =>
+ options.readImageData?.(rect.width, rect.height) ?? uniformImageData(rect.width, rect.height, alpha),
uploadImage: uploadImage as (blob: Blob) => Promise<CanvasImageUploadResult>,
}),
};
@@ -324,7 +327,9 @@ describe('composeForGeneration', () => {
expect(result.composites.maskImageName).toBeNull();
expect(result.composites.noiseMaskImageName).toBeNull();
expect(result.composites.controlImages).toEqual([{ imageName: 'composite-1.png', layerId: 'control-a' }]);
- expect(result.composites.regionalMaskImages).toEqual([{ imageName: 'composite-2.png', layerId: 'region-a' }]);
+ expect(result.composites.regionalMaskImages).toEqual([
+ { bounds: { height: 64, width: 64, x: 0, y: 0 }, imageName: 'composite-2.png', layerId: 'region-a' },
+ ]);
expect(harness.uploadImage).toHaveBeenCalledTimes(2);
});
@@ -523,7 +528,36 @@ describe('composeForGeneration', () => {
if (result.status !== 'ok') {
return;
}
- expect(result.composites.regionalMaskImages).toEqual([{ imageName: 'composite-1.png', layerId: 'region-b' }]);
+ expect(result.composites.regionalMaskImages).toEqual([
+ { bounds: { height: 64, width: 64, x: 0, y: 0 }, imageName: 'composite-1.png', layerId: 'region-b' },
+ ]);
+ expect(harness.uploadImage).toHaveBeenCalledTimes(1);
+ });
+
+ it("reports each regional mask's alpha bounds in bbox space and keeps them on a committed cache hit", async () => {
+ // The mask covers x 8–23, y 4–35 of the 64×64 bbox surface.
+ const maskScan = (width: number, height: number): ImageData => {
+ const image = uniformImageData(width, height, 0);
+ for (let y = 4; y < 36; y += 1) {
+ for (let x = 8; x < 24; x += 1) {
+ image.data[(y * width + x) * 4 + 3] = 255;
+ }
+ }
+ return image;
+ };
+ const harness = makeHost(makeDoc([regionalLayer('region-a')]), { readImageData: maskScan });
+ const expected = [
+ { bounds: { height: 32, width: 16, x: 8, y: 4 }, imageName: 'composite-1.png', layerId: 'region-a' },
+ ];
+
+ const first = await compose(harness.host);
+ expect(first.status === 'ok' ? first.composites.regionalMaskImages : null).toEqual(expected);
+ if (first.status === 'ok') {
+ first.dedupeCommit.commit();
+ }
+ const second = await compose(harness.host);
+
+ expect(second.status === 'ok' ? second.composites.regionalMaskImages : null).toEqual(expected);
expect(harness.uploadImage).toHaveBeenCalledTimes(1);
});
diff --git a/invokeai/frontend/webv2/src/workbench/canvas-operations/generationComposite.ts b/invokeai/frontend/webv2/src/workbench/canvas-operations/generationComposite.ts
index 124db03dab..44cd51879f 100644
--- a/invokeai/frontend/webv2/src/workbench/canvas-operations/generationComposite.ts
+++ b/invokeai/frontend/webv2/src/workbench/canvas-operations/generationComposite.ts
@@ -123,8 +123,11 @@ export interface GenerationComposites {
noiseMaskImageName: string | null;
/** One uploaded image per accepted control layer, in z-order. */
controlImages: { layerId: string; imageName: string }[];
- /** One uploaded alpha-mask image per accepted regional-guidance layer, in z-order. */
- regionalMaskImages: { layerId: string; imageName: string }[];
+ /**
+ * One uploaded alpha-mask image per accepted regional-guidance layer, in z-order, with the alpha bounds of its
+ * pixels in bbox space (origin at the bbox corner; empty when the mask misses the bbox).
+ */
+ regionalMaskImages: { layerId: string; imageName: string; bounds: Rect }[];
}
export type ComposeForGenerationResult =
@@ -271,7 +274,7 @@ export const composeForGeneration = async (
}
// Composite each accepted regional alpha mask separately in every mode.
- const regionalMaskImages: { layerId: string; imageName: string }[] = [];
+ const regionalMaskImages: GenerationComposites['regionalMaskImages'] = [];
for (const { entry, layerId } of regionalPlan) {
const layer = lookupDocumentLayer(document, layerId);
if (!layer || layer.type !== 'regional_guidance') {
@@ -281,7 +284,7 @@ export const composeForGeneration = async (
continue;
}
const result = await executeRegionalMaskComposite(entry, deps);
- regionalMaskImages.push({ imageName: result.imageName, layerId });
+ regionalMaskImages.push({ bounds: result.bounds, imageName: result.imageName, layerId });
}
let isCommitted = false;
diff --git a/invokeai/frontend/webv2/src/workbench/canvasMigration.test.ts b/invokeai/frontend/webv2/src/workbench/canvasMigration.test.ts
index a31bdbf149..00ce47f21d 100644
--- a/invokeai/frontend/webv2/src/workbench/canvasMigration.test.ts
+++ b/invokeai/frontend/webv2/src/workbench/canvasMigration.test.ts
@@ -215,6 +215,54 @@ describe('loadCanvasState', () => {
expect(badLayer?.type === 'raster' ? badLayer.inpaint : null).toBeUndefined();
});
+ it("round-trips a region's layout role, keeps its absence, and drops a structurally broken one", () => {
+ const region = (id: string, extra: Record<string, unknown> = {}) => ({
+ ...createRegionalGuidanceLayer(id, 0, id),
+ ...extra,
+ });
+ const loaded = load(
+ withNodes(
+ [
+ region('sign', { layout: { kind: 'text', text: '营业中 OPEN' } }),
+ region('hero', { layout: { kind: 'character' } }),
+ region('plain'),
+ region('not-an-object', { layout: 'text' }),
+ region('bad-kind-type', { layout: { kind: 3 } }),
+ region('bad-text', { layout: { kind: 'text', text: 7 } }),
+ ],
+ 'regional_guidance'
+ )
+ );
+ const layouts = Object.fromEntries(
+ loaded.document.stacks.regional_guidance.map((layer) => [
+ layer.id,
+ layer.type === 'regional_guidance' ? layer.layout : null,
+ ])
+ );
+
+ expect(layouts).toEqual({
+ 'bad-kind-type': undefined,
+ 'bad-text': undefined,
+ hero: { kind: 'character' },
+ 'not-an-object': undefined,
+ plain: undefined,
+ sign: { kind: 'text', text: '营业中 OPEN' },
+ });
+ const plain = loaded.document.stacks.regional_guidance.find((layer) => layer.id === 'plain');
+ expect(plain && Object.hasOwn(plain, 'layout')).toBe(false);
+ });
+
+ it('refuses a region whose layout role this build does not know, naming the layer', () => {
+ const future = { ...createRegionalGuidanceLayer('Banner', 1, 'banner'), layout: { kind: 'banner' } };
+
+ const refused = refusal(withNodes([createRegionalGuidanceLayer('Kept', 0, 'kept'), future], 'regional_guidance'));
+
+ expect(refused.status).toBe('invalid');
+ expect(refused.status === 'invalid' ? refused.diagnostics : []).toEqual([
+ expect.objectContaining({ path: 'document.stacks.regional_guidance[1]' }),
+ ]);
+ });
+
it('round-trips triangle and star shape sources', () => {
const shape = (kind: string) => ({
...createEmptyPaintLayer(kind, kind),
diff --git a/invokeai/frontend/webv2/src/workbench/canvasMigration.ts b/invokeai/frontend/webv2/src/workbench/canvasMigration.ts
index 228850c8a7..7a80550127 100644
--- a/invokeai/frontend/webv2/src/workbench/canvasMigration.ts
+++ b/invokeai/frontend/webv2/src/workbench/canvasMigration.ts
@@ -16,6 +16,7 @@ import { createItemId } from '@platform/browser/randomUuid';
import {
CANVAS_MAX_NODE_COUNT,
CANVAS_MAX_NODE_DEPTH,
+ CANVAS_REGIONAL_LAYOUT_KINDS,
CONTROL_TYPES,
LAYER_STACK_ORDER,
} from '@workbench/canvas-engine/api';
@@ -276,6 +277,13 @@ const zCanvasLayer = z.discriminatedUnion('type', [
zLayerBase.extend({
autoNegative: z.boolean(),
isHidden: z.boolean().optional(),
+ // A structurally broken layout role drops (the region reads as an object). A role this build does not know
+ // refuses the canvas instead: rewriting it as an object would replace the user's choice on the next autosave.
+ layout: z
+ .object({ kind: z.string(), text: z.string().optional() })
+ .optional()
+ .catch(undefined)
+ .pipe(z.object({ kind: z.enum(CANVAS_REGIONAL_LAYOUT_KINDS), text: z.string().optional() }).optional()),
mask: zMask,
negativePrompt: z.string().nullable(),
positivePrompt: z.string().nullable(),
diff --git a/invokeai/frontend/webv2/src/workbench/canvasProjectMutations.ts b/invokeai/frontend/webv2/src/workbench/canvasProjectMutations.ts
index bcde9fb530..ab0b543054 100644
--- a/invokeai/frontend/webv2/src/workbench/canvasProjectMutations.ts
+++ b/invokeai/frontend/webv2/src/workbench/canvasProjectMutations.ts
@@ -594,7 +594,7 @@ const patchLayerConfig = (layer: CanvasNodeContract, config: CanvasLayerConfigPa
};
}
if (layer.type === 'regional_guidance' && config.layerType === 'regional_guidance') {
- return {
+ const next = {
...layer,
...(config.mask ? { mask: { ...layer.mask, ...config.mask } } : {}),
...(Object.hasOwn(config, 'positivePrompt') ? { positivePrompt: config.positivePrompt } : {}),
@@ -602,6 +602,15 @@ const patchLayerConfig = (layer: CanvasNodeContract, config: CanvasLayerConfigPa
...(Object.hasOwn(config, 'autoNegative') ? { autoNegative: config.autoNegative } : {}),
...(Object.hasOwn(config, 'referenceImages') ? { referenceImages: config.referenceImages } : {}),
};
+ // A cleared role is absent, as on a layer that never had one; the inverse of adding one records `undefined`.
+ if (Object.hasOwn(config, 'layout')) {
+ if (config.layout) {
+ next.layout = config.layout;
+ } else {
+ delete next.layout;
+ }
+ }
+ return next;
}
if (layer.type === 'inpaint_mask' && config.layerType === 'inpaint_mask') {
const next = {
diff --git a/invokeai/frontend/webv2/src/workbench/invocation.test.ts b/invokeai/frontend/webv2/src/workbench/invocation.test.ts
index ae297aa969..1e139763a1 100644
--- a/invokeai/frontend/webv2/src/workbench/invocation.test.ts
+++ b/invokeai/frontend/webv2/src/workbench/invocation.test.ts
@@ -596,6 +596,53 @@ describe('resolveInvocationRoute — canvas source', () => {
expect(modelsLoadingRoute.validationReasons).toEqual([]);
});
+ it('blocks MOSS-Image layout regions around a blank prompt before anything uploads', () => {
+ const mossModel: MainModelConfig = {
+ base: 'moss-image',
+ format: 'diffusers',
+ key: 'moss-model',
+ name: 'MOSS-Image',
+ type: 'main',
+ };
+ const region = (overrides: Partial<CanvasLayerContract> = {}): CanvasLayerContract =>
+ ({
+ autoNegative: false,
+ blendMode: 'normal',
+ id: 'region-1',
+ isEnabled: true,
+ isLocked: false,
+ mask: { bitmap: { height: 64, imageName: 'mask.png', width: 64 }, fill: { color: '#00ff00', style: 'solid' } },
+ name: 'Region 1',
+ negativePrompt: null,
+ opacity: 1,
+ positivePrompt: 'a shop sign',
+ referenceImages: [],
+ transform: { rotation: 0, scaleX: 1, scaleY: 1, x: 0, y: 0 },
+ type: 'regional_guidance',
+ ...overrides,
+ }) as CanvasLayerContract;
+ const reasonsFor = (overrides: Partial<GenerateWidgetValues>, layers: CanvasLayerContract[]) =>
+ resolveInvocationRouteInput(
+ canvasInputFor({ generateValues: createGenerateValues(mossModel, overrides), layers }),
+ 'global',
+ canvasRoute
+ ).validationReasons;
+
+ expect(reasonsFor({ positivePrompt: ' ' }, [region()])).toEqual([
+ 'MOSS-Image needs a prompt to place regional guidance in its layout. Enter a prompt or disable the regional guidance layers.',
+ ]);
+ // A prompt template supplies the prompt the layout is built around.
+ const template = { id: 'poster', name: 'Poster', negativePrompt: '', positivePrompt: 'a vintage poster' };
+ expect(reasonsFor({ positivePrompt: '', promptTemplate: template }, [region()])).toEqual([]);
+ // Regions that never reach the layout leave a blank prompt alone.
+ const unplaced = [
+ region({ id: 'empty', mask: { bitmap: null, fill: { color: '#00ff00', style: 'solid' } } }),
+ region({ id: 'uncaptioned', positivePrompt: null }),
+ region({ id: 'disabled', isEnabled: false }),
+ ];
+ expect(reasonsFor({ positivePrompt: '' }, unplaced)).toEqual([]);
+ });
+
it('treats the layer stack identity as part of the route input', () => {
const input = canvasInputFor();
diff --git a/invokeai/frontend/webv2/src/workbench/invocation.ts b/invokeai/frontend/webv2/src/workbench/invocation.ts
index dd34e27721..d8e2499de2 100644
--- a/invokeai/frontend/webv2/src/workbench/invocation.ts
+++ b/invokeai/frontend/webv2/src/workbench/invocation.ts
@@ -12,8 +12,10 @@ import type {
import type { Project } from '@workbench/projectContracts';
import type { WidgetId } from '@workbench/widgetContracts';
+import { getLayoutPromptRejectionReason } from '@features/generation/graph';
import {
describeExternalCanvasRefusal,
+ getEffectivePrompts,
getGenerationModelAvailabilityReasons,
getGenerationValidationReasons,
isExternalTextOnlyCanvasModel,
@@ -353,9 +355,9 @@ export const resolveInvocationRouteInput = (
);
}
}
- } else if (models) {
+ } else if (values && isSupportedGenerateModel(values.model)) {
// Wait for models before validating local adapters to avoid false missing-model errors.
- if (values && isSupportedGenerateModel(values.model)) {
+ if (models) {
validationReasons.push(
...getBlockingControlLayerIssues({
context: createControlLayerCheckContext(values.model.base, getWorkbenchPreferences().controlModelMemory),
@@ -365,6 +367,15 @@ export const resolveInvocationRouteInput = (
}).map((controlLayerIssue) => ({ controlLayerIssue }))
);
}
+ // Before anything uploads; a region whose mask misses the frame still counts here.
+ const layoutPromptReason = getLayoutPromptRejectionReason({
+ base: values.model.base,
+ prompt: getEffectivePrompts(values).positivePrompt,
+ regions: input.canvasLayers.filter(isCompositableRegionalGuidanceLayer),
+ });
+ if (layoutPromptReason) {
+ validationReasons.push(layoutPromptReason);
+ }
}
}
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/prepareCanvasInvocation.test.ts b/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/prepareCanvasInvocation.test.ts
index 49215e4bd4..818ab3e657 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/prepareCanvasInvocation.test.ts
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/prepareCanvasInvocation.test.ts
@@ -151,6 +151,8 @@ interface HarnessOptions {
outputOnlyMaskedRegions?: boolean;
scaling?: RunCanvasInvocationDeps['scaling'];
generateValues?: Record<string, unknown>;
+ /** Replaces the uniform-alpha coverage readback. */
+ readImageData?: GenerationCompositeExecutorDeps['readImageData'];
controlModelMemory?: RunCanvasInvocationDeps['controlModelMemory'];
}
@@ -226,7 +228,7 @@ const makeHarness = (options: HarnessOptions = {}): Harness => {
const executorDeps: GenerationCompositeExecutorDeps = {
backend,
hashBlob: (blob: Blob) => blob.text(),
- readImageData: (_surface, rect) => uniformImageData(rect.width, rect.height, alpha),
+ readImageData: options.readImageData ?? ((_surface, rect) => uniformImageData(rect.width, rect.height, alpha)),
uploadImage: uploadImage as (blob: Blob) => Promise<CanvasImageUploadResult>,
};
@@ -1635,7 +1637,7 @@ const regionalLayer = (
overrides: Partial<
Pick<
CanvasLayerContract & { type: 'regional_guidance' },
- 'positivePrompt' | 'negativePrompt' | 'autoNegative' | 'referenceImages'
+ 'positivePrompt' | 'negativePrompt' | 'autoNegative' | 'referenceImages' | 'layout'
>
> = {}
): CanvasLayerContract => ({
@@ -1739,6 +1741,80 @@ describe('runCanvasInvocation — regional guidance on a Qwen3 base', () => {
});
});
+describe('runCanvasInvocation — layout regions on MOSS-Image', () => {
+ const mossModel: MainModelConfig = {
+ base: 'moss-image',
+ format: 'diffusers',
+ key: 'moss-model',
+ name: 'MOSS-Image',
+ type: 'main',
+ };
+ /** Every regional mask covers x 8–23, y 4–35 of the 64×64 bbox. */
+ const maskScan: GenerationCompositeExecutorDeps['readImageData'] = (_surface, rect) => {
+ const image = uniformImageData(rect.width, rect.height, 0);
+ for (let y = 4; y < 36; y += 1) {
+ for (let x = 8; x < 24; x += 1) {
+ image.data[(y * rect.width + x) * 4 + 3] = 255;
+ }
+ }
+ return image;
+ };
+ const makeMossHarness = (
+ layers: CanvasLayerContract[],
+ generateValues: Record<string, unknown> = {},
+ readImageData = maskScan
+ ) =>
+ makeHarness({
+ document: docWithLayers(layers),
+ generateValues,
+ model: mossModel,
+ readImageData,
+ });
+
+ it("places each region's mask bounds and role in the layout prompt, skipping a text region without text", async () => {
+ // Each composited mask is read back once; identical masks would share one upload, so count the readbacks.
+ const readImageData = vi.fn(maskScan);
+ const harness = makeMossHarness(
+ [
+ regionalLayer('sign', { layout: { kind: 'text', text: 'OPEN' }, positivePrompt: 'a neon sign' }),
+ regionalLayer('blank', { layout: { kind: 'text' }, positivePrompt: 'a poster' }),
+ ],
+ {},
+ readImageData
+ );
+
+ await runCanvasInvocation(harness.deps);
+
+ expect(harness.notices()).toHaveLength(0);
+ // The text region without text never composites.
+ expect(readImageData).toHaveBeenCalledTimes(1);
+ const graph = harness.submittedGraphs()[0]?.graph.backendGraph;
+ expect(graph?.nodes.layout_prompt).toMatchObject({
+ height: 64,
+ regions: [{ bbox: [8, 4, 24, 36], caption: 'a neon sign', kind: 'text', text: 'OPEN' }],
+ type: 'moss_image_layout_prompt',
+ width: 64,
+ });
+ expect(Object.values(graph?.nodes ?? {}).some((node) => node.type === 'alpha_mask_to_tensor')).toBe(false);
+ });
+
+ it('blocks the invocation with a notice when regions would be laid out around a blank prompt', async () => {
+ const harness = makeMossHarness([regionalLayer('hero', { layout: { kind: 'character' } })], {
+ positivePrompt: '',
+ });
+
+ await runCanvasInvocation(harness.deps);
+
+ expect(harness.submittedGraphs()).toHaveLength(0);
+ expect(harness.notices()).toEqual([
+ expect.objectContaining({
+ message:
+ 'MOSS-Image needs a prompt to place regional guidance in its layout. Enter a prompt or disable the regional guidance layers.',
+ }),
+ ]);
+ });
+});
+
// ---- Inpaint / outpaint mode dispatch -------------------------------------
const inpaintMaskLayer = (id: string): CanvasLayerContract => ({
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/prepareCanvasInvocation.ts b/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/prepareCanvasInvocation.ts
index fc54e6031a..81517fcb8a 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/prepareCanvasInvocation.ts
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/prepareCanvasInvocation.ts
@@ -253,16 +253,19 @@ export const resolveRegionalReferenceImages = (
};
/**
- * Reject hosted-provider regions; resolve local references and skip unsupported/noncontributing local regions.
- * Join uploaded masks with captured prompt/reference metadata for graph inputs.
+ * Reject hosted-provider regions; resolve local references and skip unsupported/noncontributing local regions (on
+ * layout bases the region's settings name the reason). Join uploaded masks and their bounds with captured
+ * prompt/reference/layout metadata for graph inputs.
*/
const createRegionalGuidanceCollector = (
model: GenerateModelConfig
): {
shouldComposite(layer: CanvasRegionalGuidanceLayerContract): boolean;
- toGraphInputs(images: readonly { layerId: string; imageName: string }[]): RegionalGuidanceInput[];
+ toGraphInputs(
+ images: readonly { layerId: string; imageName: string; bounds: RegionalGuidanceInput['maskBounds'] }[]
+ ): RegionalGuidanceInput[];
} => {
- const metadata = new Map<string, Omit<RegionalGuidanceInput, 'maskImageName'>>();
+ const metadata = new Map<string, Omit<RegionalGuidanceInput, 'maskImageName' | 'maskBounds'>>();
return {
shouldComposite: (layer) => {
@@ -273,6 +276,7 @@ const createRegionalGuidanceCollector = (
const rejection = getRegionalGuidanceRejectionReason({
hasContent: true,
layerName: layer.name,
+ layout: layer.layout,
mainBase: model.base,
negativePrompt: layer.negativePrompt,
positivePrompt: layer.positivePrompt,
@@ -284,6 +288,8 @@ const createRegionalGuidanceCollector = (
metadata.set(layer.id, {
autoNegative: layer.autoNegative,
id: layer.id,
+ // Typed against Generation's layout roles: a persisted role the graph cannot send fails to compile here.
+ ...(layer.layout ? { layout: layer.layout } : {}),
negativePrompt: layer.negativePrompt,
positivePrompt: layer.positivePrompt,
referenceImages,
@@ -291,9 +297,9 @@ const createRegionalGuidanceCollector = (
return true;
},
toGraphInputs: (images) =>
- images.flatMap(({ imageName, layerId }) => {
+ images.flatMap(({ bounds, imageName, layerId }) => {
const meta = metadata.get(layerId);
- return meta ? [{ ...meta, maskImageName: imageName }] : [];
+ return meta ? [{ ...meta, maskBounds: bounds, maskImageName: imageName }] : [];
}),
};
};
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/RegionalGuidanceSettings.browser.test.tsx b/invokeai/frontend/webv2/src/workbench/widgets/layers/RegionalGuidanceSettings.browser.test.tsx
index f47db5d28f..596922ae01 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/RegionalGuidanceSettings.browser.test.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/RegionalGuidanceSettings.browser.test.tsx
@@ -1,4 +1,5 @@
import type { CanvasRegionalGuidanceLayerContract } from '@workbench/canvas-engine/api';
+import type { StructuralEngineStub } from '@workbench/canvas-engine/controllers/structuralEngine.testStub';
import type { ComponentProps } from 'react';
import { ChakraProvider } from '@chakra-ui/react';
@@ -7,13 +8,18 @@ import {
setArchitectureCapabilities,
} from '@features/generation/core/architectureCapabilities';
import { architectureCapabilitiesFixture } from '@features/generation/core/architectureCapabilities.testing';
+import { flushWorkbenchDrafts } from '@platform/react/draftRegistry';
import { applyThemeToRoot } from '@theme/applyTheme';
import { system } from '@theme/system';
+import { createStructuralEngineStub } from '@workbench/canvas-engine/controllers/structuralEngine.testStub';
+import { layerContract } from '@workbench/canvas-engine/document-model/documentFixtures.testStub';
+import { getDocumentLayer } from '@workbench/canvas-engine/document/documentIndex';
import { createInstance } from 'i18next';
-import { act } from 'react';
+import { act, useSyncExternalStore } from 'react';
import { createRoot, type Root } from 'react-dom/client';
import { I18nextProvider, initReactI18next } from 'react-i18next';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
+import { page, userEvent } from 'vitest/browser';
import { RegionalGuidanceSettings } from './RegionalGuidanceSettings';
@@ -155,3 +161,194 @@ describe('RegionalGuidanceSettings before the capability table arrives', () => {
expect(hasAutoNegativeSwitch()).toBe(false);
});
});
+
+describe('RegionalGuidanceSettings on a layout base', () => {
+ let stub: StructuralEngineStub;
+ const liveLayer = () => getDocumentLayer(stub.document(), 'rg-1') as CanvasRegionalGuidanceLayerContract;
+
+ const LiveSettings = () => {
+ const layer = useSyncExternalStore(stub.subscribe, liveLayer);
+ return <RegionalGuidanceSettings engine={stub.engine as never} layer={layer} />;
+ };
+
+ /** Renders the panel over the real reducer and history, so commits land and undo replays them. */
+ const renderLive = async (base: string, overrides: Partial<CanvasRegionalGuidanceLayerContract> = {}) => {
+ stub = createStructuralEngineStub({
+ layers: [layerContract('rg-1', 'regional_guidance', { positivePrompt: 'a shop front', ...overrides })],
+ });
+ selectedBase = base;
+ applyThemeToRoot('classic');
+ host = document.createElement('div');
+ host.style.width = '260px';
+ document.body.append(host);
+ root = createRoot(host);
+ await act(() => {
+ root?.render(
+ <I18nextProvider i18n={i18n}>
+ <ChakraProvider value={system}>
+ <LiveSettings />
+ </ChakraProvider>
+ </I18nextProvider>
+ );
+ });
+ };
+
+ const kindGroup = () => page.getByRole('radiogroup', { name: 'widgets.layers.regionalGuidance.layoutKind' });
+ const pickKind = (kind: 'object' | 'character' | 'text') =>
+ act(() => userEvent.click(page.getByText(`widgets.layers.regionalGuidance.layoutKinds.${kind}`, { exact: true })));
+ const promptInput = () => page.getByRole('textbox', { name: 'widgets.layers.regionalGuidance.positivePrompt' });
+ const negativeInput = () => page.getByRole('textbox', { name: 'widgets.layers.regionalGuidance.negativePrompt' });
+ const visibleTextInput = () => page.getByRole('textbox', { name: 'widgets.layers.regionalGuidance.visibleText' });
+ /** What the always-present status region announces. */
+ const announced = () => host!.querySelector('[role="status"]')?.textContent ?? null;
+ const descriptionOf = (element: Element) =>
+ (element.getAttribute('aria-describedby') ?? '')
+ .split(' ')
+ .filter(Boolean)
+ .map((id) => document.getElementById(id)?.textContent);
+
+ beforeEach(() => {
+ setArchitectureCapabilities(architectureCapabilitiesFixture);
+ });
+
+ it('offers the region type instead of the negative controls, and no type on a mask base', async () => {
+ await render('moss-image', createLayer({ autoNegative: true, negativePrompt: 'blurry' }));
+ await expect.element(kindGroup()).toBeInTheDocument();
+ expect(hasNegativeField()).toBe(false);
+ expect(hasAutoNegativeSwitch()).toBe(false);
+ expect(alerts()).toEqual([]);
+ await act(() => root?.unmount());
+ host?.remove();
+
+ await render('sd-1', createLayer());
+ expect(kindGroup().query()).toBeNull();
+ expect(host!.querySelector('[role="status"]')).toBeNull();
+ });
+
+ it('names the region type by its label and describes it with the help text', async () => {
+ await renderLive('moss-image');
+
+ expect(descriptionOf(kindGroup().element())).toEqual(['widgets.layers.regionalGuidance.layoutKindHelp']);
+ });
+
+ it('records a type switch and the visible text as one undo step each, keeping text across a switch', async () => {
+ await renderLive('moss-image');
+ expect(visibleTextInput().query()).toBeNull();
+
+ await pickKind('text');
+ expect(liveLayer().layout).toEqual({ kind: 'text' });
+ expect(announced()).toBe('widgets.layers.regionalGuidance.layoutMissingText');
+ expect(descriptionOf(visibleTextInput().element())).toEqual(['widgets.layers.regionalGuidance.layoutMissingText']);
+
+ await act(() => visibleTextInput().fill('OPEN'));
+ expect(stub.commits).toHaveLength(1);
+ await act(() => userEvent.tab());
+ expect(stub.commits).toHaveLength(2);
+ expect(liveLayer().layout).toEqual({ kind: 'text', text: 'OPEN' });
+ expect(announced()).toBe('');
+ expect(descriptionOf(visibleTextInput().element())).toEqual([]);
+
+ await pickKind('character');
+ expect(liveLayer().layout).toEqual({ kind: 'character', text: 'OPEN' });
+ await pickKind('text');
+ await expect.element(visibleTextInput()).toHaveValue('OPEN');
+
+ await act(() => stub.engine.history.undo());
+ await act(() => stub.engine.history.undo());
+ await act(() => stub.engine.history.undo());
+ expect(liveLayer().layout).toEqual({ kind: 'text' });
+ await expect.element(visibleTextInput()).toHaveValue('');
+ await act(() => stub.engine.history.undo());
+ expect(Object.hasOwn(liveLayer(), 'layout')).toBe(false);
+ expect(visibleTextInput().query()).toBeNull();
+ });
+
+ it('stores visible text across lines, with Enter starting a new line', async () => {
+ await renderLive('moss-image', { layout: { kind: 'text' } });
+
+ await act(() => userEvent.type(visibleTextInput(), '一杯温暖{Enter}一刻从容'));
+ await act(() => userEvent.tab());
+
+ expect(stub.commits).toHaveLength(1);
+ expect(liveLayer().layout).toEqual({ kind: 'text', text: '一杯温暖\n一刻从容' });
+ });
+
+ it('keeps text typed right before a type switch, committing both in order', async () => {
+ await renderLive('moss-image', { layout: { kind: 'text' } });
+
+ await act(() => visibleTextInput().fill('EXIT'));
+ await pickKind('object');
+
+ expect(stub.commits).toHaveLength(2);
+ expect(liveLayer().layout).toEqual({ kind: 'object', text: 'EXIT' });
+ });
+
+ it('commits typed visible text when Invoke flushes drafts before the field blurs', async () => {
+ await renderLive('moss-image', { layout: { kind: 'text' } });
+
+ await act(() => visibleTextInput().fill('SALE'));
+ expect(stub.commits).toHaveLength(0);
+ await act(() => flushWorkbenchDrafts());
+
+ expect(stub.commits).toHaveLength(1);
+ expect(liveLayer().layout).toEqual({ kind: 'text', text: 'SALE' });
+ });
+
+ it('commits an unsaved caption when Invoke flushes drafts from inside the field (Ctrl+Enter)', async () => {
+ await renderLive('moss-image', { positivePrompt: null });
+ expect(announced()).toBe('widgets.layers.regionalGuidance.layoutMissingPrompt');
+ expect(descriptionOf(promptInput().element())).toEqual(['widgets.layers.regionalGuidance.layoutMissingPrompt']);
+
+ await act(() => promptInput().fill('a neon sign'));
+ expect(stub.commits).toHaveLength(0);
+ await act(() => flushWorkbenchDrafts());
+
+ expect(stub.commits).toHaveLength(1);
+ expect(liveLayer().positivePrompt).toBe('a neon sign');
+ expect(announced()).toBe('');
+ // The field still has focus; leaving it later records nothing new.
+ await act(() => userEvent.tab());
+ expect(stub.commits).toHaveLength(1);
+ });
+
+ it('leaves an undone caption undone when drafts flush later, showing the restored value', async () => {
+ await renderLive('moss-image');
+
+ await act(() => promptInput().fill('a cat'));
+ await act(() => userEvent.tab());
+ expect(liveLayer().positivePrompt).toBe('a cat');
+ await act(() => stub.engine.history.undo());
+ await expect.element(promptInput()).toHaveValue('a shop front');
+
+ await act(() => flushWorkbenchDrafts());
+
+ expect(stub.commits).toHaveLength(1);
+ expect(liveLayer().positivePrompt).toBe('a shop front');
+ expect(stub.engine.history.canRedo()).toBe(true);
+ });
+
+ it('leaves an undone negative prompt undone when drafts flush later', async () => {
+ await renderLive('sd-1');
+
+ await act(() => negativeInput().fill('blurry'));
+ await act(() => userEvent.tab());
+ await act(() => stub.engine.history.undo());
+ await expect.element(negativeInput()).toHaveValue('');
+
+ await act(() => flushWorkbenchDrafts());
+
+ expect(stub.commits).toHaveLength(1);
+ expect(liveLayer().negativePrompt).toBeNull();
+ expect(stub.engine.history.canRedo()).toBe(true);
+ });
+
+ it('commits an unsaved negative prompt on a mask base when drafts are flushed', async () => {
+ await renderLive('sd-1');
+
+ await act(() => negativeInput().fill('blurry'));
+ await act(() => flushWorkbenchDrafts());
+
+ expect(stub.commits).toHaveLength(1);
+ expect(liveLayer().negativePrompt).toBe('blurry');
+ });
+});
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/RegionalGuidanceSettings.tsx b/invokeai/frontend/webv2/src/workbench/widgets/layers/RegionalGuidanceSettings.tsx
index a4a548765e..dcf739978a 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/RegionalGuidanceSettings.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/RegionalGuidanceSettings.tsx
@@ -4,16 +4,33 @@ import type {
CanvasMaskContract,
CanvasMaskFillContract,
CanvasRegionalGuidanceLayerContract,
+ CanvasRegionalLayoutContract,
} from '@workbench/canvas-engine/api';
import type { CanvasStructuralEngine } from '@workbench/widgets/layers/layerOps';
-import type { ChangeEvent, FocusEvent } from 'react';
+import type { ChangeEvent } from 'react';
-import { createListCollection, HStack, IconButton, Stack, Switch, Text } from '@chakra-ui/react';
+import {
+ createListCollection,
+ HStack,
+ IconButton,
+ Stack,
+ Switch,
+ Text,
+ Textarea,
+ VisuallyHidden,
+} from '@chakra-ui/react';
import { PromptTextarea } from '@features/generation/components';
-import { getRegionalGuidanceSupport, supportsPromptAttentionSyntax } from '@features/generation/graph';
+import {
+ getLayoutRegionIssue,
+ getRegionalGuidanceSupport,
+ supportsPromptAttentionSyntax,
+} from '@features/generation/graph';
import { getArchitectureCapabilitiesSnapshot, subscribeArchitectureCapabilities } from '@features/generation/runtime';
+import { useRegisterDraftFlusher } from '@platform/react/draftRegistry';
import { useExternalStoreSelector } from '@platform/state/selectors';
import { Button, ColorPicker, Field, Select, Tooltip } from '@platform/ui';
+import { SegmentedControl } from '@platform/ui/SegmentedControl';
+import { CANVAS_REGIONAL_LAYOUT_KINDS } from '@workbench/canvas-engine/api';
import { useWorkbenchPreferenceSelector } from '@workbench/settings/store';
import { useNotify } from '@workbench/useNotify';
import { armMaskTintTarget } from '@workbench/widgets/canvas/color-system/maskTintTarget';
@@ -21,11 +38,12 @@ import { type ColorSamplerEngine, useColorSampler } from '@workbench/widgets/can
import {
baselineConfig,
type CanvasPreparedEngine,
+ type PreparedCommitOutcome,
reportMaskEdit,
useStructuralPreview,
} from '@workbench/widgets/canvas/useStructuralCommit';
import { PaletteIcon } from 'lucide-react';
-import { useCallback, useMemo, useState } from 'react';
+import { useCallback, useId, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useSelectedModelBase } from './useSelectedModelBase';
@@ -36,6 +54,7 @@ interface RegionalConfigPatch {
positivePrompt?: string | null;
negativePrompt?: string | null;
autoNegative?: boolean;
+ layout?: CanvasRegionalLayoutContract | null;
}
/** The six mask fill styles, matching `CanvasMaskFillContract['style']` / legacy `zFillStyle`. */
@@ -69,8 +88,11 @@ export const RegionalGuidanceSettings = ({ engine, layer }: RegionalGuidanceSett
const showSyntaxHighlighting = useWorkbenchPreferenceSelector(
(preferences) => preferences.showPromptSyntaxHighlighting
);
- const [positivePrompt, setPositivePrompt] = useState(layer.positivePrompt ?? '');
- const [negativePrompt, setNegativePrompt] = useState(layer.negativePrompt ?? '');
+ // Null while not editing, so undo and edits from elsewhere show through and only typed text is ever committed.
+ const [positiveDraft, setPositiveDraft] = useState<string | null>(null);
+ const [negativeDraft, setNegativeDraft] = useState<string | null>(null);
+ const positivePrompt = positiveDraft ?? layer.positivePrompt ?? '';
+ const negativePrompt = negativeDraft ?? layer.negativePrompt ?? '';
const attentionSyntax = supportsPromptAttentionSyntax(base) ? 'edit' : 'none';
const fill = layer.mask.fill;
@@ -94,44 +116,47 @@ export const RegionalGuidanceSettings = ({ engine, layer }: RegionalGuidanceSett
// A previewed fill records from where its preview started; any other change from the live layer.
const commitConfig = useCallback(
- (label: string, next: RegionalConfigPatch) => {
+ (label: string, next: RegionalConfigPatch): PreparedCommitOutcome => {
const config = { layerType: 'regional_guidance', ...next } as const;
- commitPrepared(label, (model, baseline) =>
+ return commitPrepared(label, (model, baseline) =>
model.prepare({ before: baselineConfig(baseline, config), config, id: layer.id, type: 'patch-config' })
);
},
[commitPrepared, layer.id]
);
- const handlePositiveBlur = useCallback(
- (event: FocusEvent<HTMLTextAreaElement>) => {
- const value = event.target.value;
- const next = value.length > 0 ? value : null;
- if (next !== layer.positivePrompt) {
- commitConfig(t('widgets.layers.regionalGuidance.positivePrompt'), { positivePrompt: next });
- }
- },
- [commitConfig, layer.positivePrompt, t]
- );
+ // Commits typed prompt drafts that differ from the layer, on blur and when Invoke (Ctrl+Enter included) flushes.
+ const commitPrompts = useCallback(() => {
+ if (positiveDraft === null && negativeDraft === null) {
+ return;
+ }
+ const positive = positiveDraft === null ? layer.positivePrompt : positiveDraft || null;
+ const negative = negativeDraft === null ? layer.negativePrompt : negativeDraft || null;
+ const patch: RegionalConfigPatch = {
+ ...(positive === layer.positivePrompt ? {} : { positivePrompt: positive }),
+ ...(negative === layer.negativePrompt ? {} : { negativePrompt: negative }),
+ };
+ const outcome =
+ 'positivePrompt' in patch
+ ? commitConfig(t('widgets.layers.regionalGuidance.positivePrompt'), patch)
+ : 'negativePrompt' in patch
+ ? commitConfig(t('widgets.layers.regionalGuidance.negativePrompt'), patch)
+ : null;
+ // A refused edit (already reported) keeps the typed text in the field instead of discarding it.
+ if (outcome === null || outcome.status === 'committed' || outcome.status === 'unchanged') {
+ setPositiveDraft(null);
+ setNegativeDraft(null);
+ }
+ }, [commitConfig, layer.negativePrompt, layer.positivePrompt, negativeDraft, positiveDraft, t]);
+ useRegisterDraftFlusher(commitPrompts);
const handlePositiveChange = useCallback(
- (event: ChangeEvent<HTMLTextAreaElement>) => setPositivePrompt(event.currentTarget.value),
+ (event: ChangeEvent<HTMLTextAreaElement>) => setPositiveDraft(event.currentTarget.value),
[]
);
- const handleNegativeBlur = useCallback(
- (event: FocusEvent<HTMLTextAreaElement>) => {
- const value = event.target.value;
- const next = value.length > 0 ? value : null;
- if (next !== layer.negativePrompt) {
- commitConfig(t('widgets.layers.regionalGuidance.negativePrompt'), { negativePrompt: next });
- }
- },
- [commitConfig, layer.negativePrompt, t]
- );
-
const handleNegativeChange = useCallback(
- (event: ChangeEvent<HTMLTextAreaElement>) => setNegativePrompt(event.currentTarget.value),
+ (event: ChangeEvent<HTMLTextAreaElement>) => setNegativeDraft(event.currentTarget.value),
[]
);
@@ -142,6 +167,87 @@ export const RegionalGuidanceSettings = ({ engine, layer }: RegionalGuidanceSett
[commitConfig, t]
);
+ // Layout bases read the region's role and, for text, its exact text; the stored role survives model switches.
+ const isLayout = support?.mode === 'layout';
+ const layoutKind = layer.layout?.kind ?? 'object';
+ const storedVisibleText = layer.layout?.text;
+ // Null while not editing, so undo and edits from elsewhere show through.
+ const [visibleTextDraft, setVisibleTextDraft] = useState<string | null>(null);
+ const visibleText = visibleTextDraft ?? storedVisibleText ?? '';
+ const layoutKindFieldId = useId();
+ const promptIssueId = useId();
+ const visibleTextIssueId = useId();
+
+ const commitLayout = useCallback(
+ (label: string, next: CanvasRegionalLayoutContract) =>
+ // A plain object role is stored as absence, like a layer that never had one.
+ commitConfig(label, { layout: next.kind === 'object' && next.text === undefined ? null : next }),
+ [commitConfig]
+ );
+
+ const layoutKindOptions = useMemo(
+ () =>
+ CANVAS_REGIONAL_LAYOUT_KINDS.map((kind) => ({
+ label: t(`widgets.layers.regionalGuidance.layoutKinds.${kind}`),
+ value: kind,
+ })),
+ [t]
+ );
+
+ const handleLayoutKindChange = useCallback(
+ (value: string) => {
+ const kind = CANVAS_REGIONAL_LAYOUT_KINDS.find((candidate) => candidate === value);
+ if (kind && kind !== layoutKind) {
+ commitLayout(t('widgets.layers.regionalGuidance.layoutKind'), {
+ kind,
+ ...(storedVisibleText === undefined ? {} : { text: storedVisibleText }),
+ });
+ }
+ },
+ [commitLayout, layoutKind, storedVisibleText, t]
+ );
+
+ const commitVisibleText = useCallback(() => {
+ if (visibleTextDraft === null) {
+ return;
+ }
+ const text = visibleTextDraft.length > 0 ? visibleTextDraft : undefined;
+ if (text === storedVisibleText) {
+ setVisibleTextDraft(null);
+ return;
+ }
+ const outcome = commitLayout(t('widgets.layers.regionalGuidance.visibleText'), {
+ kind: layoutKind,
+ ...(text === undefined ? {} : { text }),
+ });
+ // A refused edit (already reported) keeps the typed text in the field instead of discarding it.
+ if (outcome.status === 'committed' || outcome.status === 'unchanged') {
+ setVisibleTextDraft(null);
+ }
+ }, [commitLayout, layoutKind, storedVisibleText, t, visibleTextDraft]);
+ // Invoke flushes drafts first, so text typed but not yet blurred still reaches the graph.
+ useRegisterDraftFlusher(commitVisibleText);
+
+ const handleVisibleTextChange = useCallback(
+ (event: ChangeEvent<HTMLTextAreaElement>) => setVisibleTextDraft(event.currentTarget.value),
+ []
+ );
+
+ // Generation skips a region the layout cannot place. The warning sits under the missing value and describes its
+ // control; a status region that exists before any warning announces each change.
+ const layoutIssue =
+ isLayout && support
+ ? getLayoutRegionIssue({ layout: { kind: layoutKind, text: visibleText }, positivePrompt })
+ : null;
+ const layoutIssueMessage = layoutIssue
+ ? t(
+ layoutIssue === 'missing_prompt'
+ ? 'widgets.layers.regionalGuidance.layoutMissingPrompt'
+ : 'widgets.layers.regionalGuidance.layoutMissingText',
+ { model: support?.label }
+ )
+ : null;
+
const styleCollection = useMemo(
() =>
createListCollection({
@@ -198,8 +304,24 @@ export const RegionalGuidanceSettings = ({ engine, layer }: RegionalGuidanceSett
{t('widgets.layers.regionalGuidance.unsupportedModel')}
</Text>
) : null}
+ {isLayout && support ? (
+ <Field
+ helpText={t('widgets.layers.regionalGuidance.layoutKindHelp', { model: support.label })}
+ id={layoutKindFieldId}
+ label={t('widgets.layers.regionalGuidance.layoutKind')}
+ >
+ <SegmentedControl
+ aria-describedby={`${layoutKindFieldId}-help`}
+ aria-labelledby={`${layoutKindFieldId}-label`}
+ options={layoutKindOptions}
+ value={layoutKind}
+ onChange={handleLayoutKindChange}
+ />
+ </Field>
+ ) : null}
<Field label={t('widgets.layers.regionalGuidance.positivePrompt')}>
<PromptTextarea
+ aria-describedby={layoutIssue === 'missing_prompt' ? promptIssueId : undefined}
aria-label={t('widgets.layers.regionalGuidance.positivePrompt')}
attentionSyntax={attentionSyntax}
defaultHeightPx={REGIONAL_PROMPT_HEIGHT_PX}
@@ -209,10 +331,35 @@ export const RegionalGuidanceSettings = ({ engine, layer }: RegionalGuidanceSett
showSyntaxHighlighting={showSyntaxHighlighting}
size="lg"
value={positivePrompt}
- onBlur={handlePositiveBlur}
+ onBlur={commitPrompts}
onChange={handlePositiveChange}
/>
</Field>
+ {layoutIssue === 'missing_prompt' ? (
+ <Text color="fg.warning" fontSize="xs" id={promptIssueId}>
+ {layoutIssueMessage}
+ </Text>
+ ) : null}
+ {isLayout && layoutKind === 'text' ? (
+ <Field label={t('widgets.layers.regionalGuidance.visibleText')}>
+ <Textarea
+ aria-describedby={layoutIssue === 'missing_text' ? visibleTextIssueId : undefined}
+ autoComplete="off"
+ autoresize
+ placeholder={t('widgets.layers.regionalGuidance.visibleTextPlaceholder')}
+ rows={1}
+ value={visibleText}
+ onBlur={commitVisibleText}
+ onChange={handleVisibleTextChange}
+ />
+ </Field>
+ ) : null}
+ {layoutIssue === 'missing_text' ? (
+ <Text color="fg.warning" fontSize="xs" id={visibleTextIssueId}>
+ {layoutIssueMessage}
+ </Text>
+ ) : null}
+ {isLayout ? <VisuallyHidden role="status">{layoutIssueMessage}</VisuallyHidden> : null}
{showNegativeControls && (
<Field label={t('widgets.layers.regionalGuidance.negativePrompt')}>
<PromptTextarea
@@ -225,7 +372,7 @@ export const RegionalGuidanceSettings = ({ engine, layer }: RegionalGuidanceSett
showSyntaxHighlighting={showSyntaxHighlighting}
size="lg"
value={negativePrompt}
- onBlur={handleNegativeBlur}
+ onBlur={commitPrompts}
onChange={handleNegativeChange}
/>
</Field>
diff --git a/tests/app/invocations/test_frontend_moss_image_layout_graphs.py b/tests/app/invocations/test_frontend_moss_image_layout_graphs.py
new file mode 100644
index 0000000000..f2cfa39e6b
--- /dev/null
+++ b/tests/app/invocations/test_frontend_moss_image_layout_graphs.py
@@ -0,0 +1,112 @@
+"""The MOSS-Image layout canvas graphs webv2 compiles are graphs this backend accepts, and lay out what was drawn.
+
+`mossImageLayoutCanvasGraphs.json` is written by webv2's `compileCanvasGraph.test.ts` (regenerate with `vitest -u`)
+from the real canvas compiler: a txt2img and an inpaint submission on a 768x1024 canvas with three Regional Guidance
+layers, one of each layout kind (a text region whose text has a line break, a character, an object touching the
+right and bottom edges). pydantic validates every node against its invocation, the regions against
+`MossImageLayoutRegion` included; `Graph.validate_self` checks every edge type, the one into
+`core_metadata.moss_image_layout_prompt` included; and the layout node runs on its literal inputs. No model is loaded.
+"""
+
+import json
+from pathlib import Path
+from typing import Any
+
+import pytest
+
+from invokeai.app.invocations.moss_image.moss_image_layout_prompt import MossImageLayoutPromptInvocation
+from invokeai.app.services.shared.graph import Graph
+from invokeai.backend.moss_image.layout import MossImageLayoutRegion
+
+FIXTURE_PATH = (
+ Path(__file__).parents[3]
+ / "invokeai"
+ / "frontend"
+ / "webv2"
+ / "src"
+ / "features"
+ / "generation"
+ / "core"
+ / "__snapshots__"
+ / "mossImageLayoutCanvasGraphs.json"
+)
+
+GRAPHS: dict[str, Any] = {
+ name: graph for name, graph in json.loads(FIXTURE_PATH.read_text(encoding="utf-8")).items() if name != "_comment"
+}
+
+
[email protected](params=sorted(GRAPHS), ids=str)
+def graph(request: pytest.FixtureRequest) -> Graph:
+ graph = Graph.model_validate(GRAPHS[request.param])
+ graph.validate_self()
+ return graph
+
+
+def _source(graph: Graph, node_id: str, field: str) -> tuple[str, str]:
+ (edge,) = [e for e in graph.edges if e.destination.node_id == node_id and e.destination.field == field]
+ return edge.source.node_id, edge.source.field
+
+
+def test_the_fixtures_cover_a_txt2img_and_an_inpaint_submission() -> None:
+ modes = {
+ name: next(node["generation_mode"] for node in graph["nodes"].values() if node["type"] == "core_metadata")
+ for name, graph in GRAPHS.items()
+ }
+ assert modes == {"txt2img": "moss_image_txt2img", "inpaint": "moss_image_inpaint"}
+
+
[email protected]("name", sorted(GRAPHS))
+def test_every_field_the_frontend_writes_is_one_the_invocation_declares(name: str) -> None:
+ """Pydantic ignores an unknown key, so a misnamed field (`label` for a region's `kind`, `txt` for its `text`)
+ would validate and run at its default. Region values must also survive validation unchanged."""
+ graph = Graph.model_validate(GRAPHS[name])
+ for node_id, raw in GRAPHS[name]["nodes"].items():
+ node = graph.nodes[node_id]
+ if type(node).model_config.get("extra") == "allow":
+ # `core_metadata` records whatever the graph gives it, feature fields included, and persists the extras.
+ continue
+ unknown = set(raw) - set(type(node).model_fields)
+ assert unknown == set(), f"{raw['type']} has no field(s) {sorted(unknown)}"
+
+ layout = graph.nodes["layout_prompt"]
+ assert isinstance(layout, MossImageLayoutPromptInvocation)
+ raw_regions = GRAPHS[name]["nodes"]["layout_prompt"]["regions"]
+ for raw_region in raw_regions:
+ assert set(raw_region) <= set(MossImageLayoutRegion.model_fields)
+ assert [region.model_dump(exclude_none=True) for region in layout.regions] == raw_regions
+
+
+def test_the_layout_prompt_is_what_is_encoded_and_recorded(graph: Graph) -> None:
+ # The prompt that batching varies feeds the layout node, whose output is the only thing the encoder sees.
+ assert _source(graph, "layout_prompt", "prompt") == ("positive_prompt", "value")
+ assert _source(graph, "pos_cond", "prompt") == ("layout_prompt", "value")
+ metadata_id = next(node.id for node in graph.nodes.values() if node.get_type() == "core_metadata")
+ assert _source(graph, metadata_id, "moss_image_layout_prompt") == ("layout_prompt", "value")
+ # Recall restores the prompt the user typed, not the compiled layout.
+ assert _source(graph, metadata_id, "positive_prompt") == ("positive_prompt", "value")
+
+
+def test_the_boxes_are_laid_out_on_the_image_being_denoised(graph: Graph) -> None:
+ layout = graph.nodes["layout_prompt"]
+ denoise = graph.nodes["denoise_latents"]
+ assert isinstance(layout, MossImageLayoutPromptInvocation)
+ assert (layout.width, layout.height) == (denoise.width, denoise.height) == (768, 1024)
+
+
+def test_the_layout_node_compiles_the_drawn_regions(graph: Graph) -> None:
+ layout = graph.nodes["layout_prompt"]
+ assert isinstance(layout, MossImageLayoutPromptInvocation)
+ # The positive prompt arrives through the edge at run time; this stands in for the batch value.
+ runtime = layout.model_copy(update={"prompt": "A cosy cafe at dawn."})
+
+ prompt = runtime.invoke(None).value # type: ignore[arg-type]
+
+ # 768x1024: x - 384 and y - 512, in [y1, x1, y2, x2]; the object box ends on the right and bottom edges.
+ assert prompt == (
+ '{"summary":{"caption":"A cosy cafe at dawn."},"items":['
+ '{"label":"text","caption":"a hand-lettered cafe sign","bbox":[-512,-384,-256,128],"text":"一杯温暖\\n一刻从容"},'
+ '{"label":"character","caption":"a barista pouring latte art","bbox":[-384,-320,-128,-128]},'
+ '{"label":"object","caption":"a steaming ceramic cup","bbox":[128,128,512,384]}'
+ '],"bbox_coord_space":"abs_centralized","bbox_format":"yxyx"}'
+ )
diff --git a/tests/app/invocations/test_moss_image_layout_prompt.py b/tests/app/invocations/test_moss_image_layout_prompt.py
new file mode 100644
index 0000000000..e67b0a4d05
--- /dev/null
+++ b/tests/app/invocations/test_moss_image_layout_prompt.py
@@ -0,0 +1,73 @@
+"""`moss_image_layout_prompt`: the regions a graph may send, the prompt the node hands on, and where it is recorded.
+
+How boxes and prompts compile is covered with the builder in `tests/backend/moss_image/test_layout.py`.
+"""
+
+from unittest.mock import MagicMock
+
+import pytest
+from pydantic import ValidationError
+
+from invokeai.app.invocations.metadata import CoreMetadataInvocation
+from invokeai.app.invocations.moss_image.moss_image_layout_prompt import MossImageLayoutPromptInvocation
+from invokeai.app.services.shared.graph import Edge, EdgeConnection, Graph
+
+
+def _node(*regions: dict, **fields: object) -> MossImageLayoutPromptInvocation:
+ # Regions arrive as JSON objects in the graph payload, so they are validated from dicts here too.
+ return MossImageLayoutPromptInvocation.model_validate({"id": "layout_prompt", "regions": list(regions), **fields})
+
+
+def test_the_node_lays_its_regions_out_on_its_own_width_and_height() -> None:
+ # A portrait canvas: with width and height swapped the girl's box would leave the image.
+ node = _node(
+ {"kind": "character", "caption": "a girl", "bbox": [0, 0, 768, 1344]},
+ {"kind": "text", "caption": "a title", "text": "MOSS", "bbox": [0, 0, 768, 200]},
+ prompt="a portrait",
+ width=768,
+ height=1344,
+ )
+
+ assert node.invoke(MagicMock()).value == (
+ '{"summary":{"caption":"a portrait"},"items":['
+ '{"label":"character","caption":"a girl","bbox":[-672,-384,672,384]},'
+ '{"label":"text","caption":"a title","bbox":[-672,-384,-472,384],"text":"MOSS"}'
+ '],"bbox_coord_space":"abs_centralized","bbox_format":"yxyx"}'
+ )
+
+
+ "region",
+ [
+ pytest.param({"kind": "panel", "caption": "a frame", "bbox": [0, 0, 16, 16]}, id="kind-not-offered"),
+ pytest.param({"kind": "text", "caption": "a sign", "bbox": [0, 0, 16, 16]}, id="text-region-without-text"),
+ pytest.param({"kind": "text", "caption": "a sign", "text": " \n", "bbox": [0, 0, 16, 16]}, id="blank-text"),
+ pytest.param(
+ {"kind": "object", "caption": "a sign", "text": "OPEN", "bbox": [0, 0, 16, 16]}, id="text-on-an-object"
+ ),
+ pytest.param({"kind": "object", "caption": " ", "bbox": [0, 0, 16, 16]}, id="blank-caption"),
+ pytest.param({"kind": "object", "caption": "a cup", "bbox": [16, 0, 8, 16]}, id="x-reversed"),
+ pytest.param({"kind": "object", "caption": "a cup", "bbox": [0, 16, 16, 8]}, id="y-reversed"),
+ ],
+)
+def test_a_region_outside_the_contract_is_refused_with_the_graph(region: dict) -> None:
+ with pytest.raises(ValidationError):
+ _node(region, prompt="a scene")
+
+
+def test_the_layout_prompt_can_be_recorded_in_core_metadata() -> None:
+ # Graph validation refuses an edge into a field `core_metadata` does not declare.
+ graph = Graph(
+ nodes={
+ "layout_prompt": MossImageLayoutPromptInvocation(id="layout_prompt"),
+ "core_metadata": CoreMetadataInvocation(id="core_metadata"),
+ }
+ )
+ edge = Edge(
+ source=EdgeConnection(node_id="layout_prompt", field="value"),
+ destination=EdgeConnection(node_id="core_metadata", field="moss_image_layout_prompt"),
+ )
+
+ graph.add_edge(edge)
+
+ assert graph.edges == [edge]
diff --git a/tests/backend/architectures/test_features.py b/tests/backend/architectures/test_features.py
index 0d7a9ab732..30e537b875 100644
--- a/tests/backend/architectures/test_features.py
+++ b/tests/backend/architectures/test_features.py
@@ -121,12 +121,14 @@ def test_regional_guidance_and_its_negative_subset() -> None:
`sdxl_compel_prompt` path masks both prompt polarities. The FLUX / FLUX.2 / Krea-2 / Z-Image /
Anima denoisers mask positive conditioning only -- Z-Image and Anima accept a negative list but
discard its masks, so a "regional" negative there would act globally and webv2 rejects it.
+ MOSS-Image masks nothing: its regions become boxes in the JSON layout prompt, which has no
+ negative counterpart.
"""
regional = {
b.value for b in generative_bases() if (f := get(b, FeaturesFacet)) is not None and f.supports_regional_guidance
}
negative = {b.value for b in generative_bases() if (f := get(b, FeaturesFacet)) is not None and f.regional_negative}
- assert regional == {"sd-1", "sd-2", "sdxl", "flux", "flux2", "krea-2", "z-image", "anima"}
+ assert regional == {"sd-1", "sd-2", "sdxl", "flux", "flux2", "krea-2", "z-image", "anima", "moss-image"}
assert negative == {"sd-1", "sd-2", "sdxl"}
assert negative < regional, "a regional negative prompt without regional guidance is meaningless"
diff --git a/tests/backend/moss_image/test_layout.py b/tests/backend/moss_image/test_layout.py
new file mode 100644
index 0000000000..613befab55
--- /dev/null
+++ b/tests/backend/moss_image/test_layout.py
@@ -0,0 +1,221 @@
+"""MOSS-Image layout prompts built from regions (`invokeai/backend/moss_image/layout.py`).
+
+Expectations marked "OpenMOSS" are ported from the prompt-enhancer skill of https://github.com/OpenMOSS/MOSS-Image at
+commit c1355e6b1986dfe8fba3c0455783a05899212342 (`skills/moss-image-prompt-enhancer/scripts/test_compile_prompt.py`
+and the example in `references/layout.md`), Apache-2.0. The rest follow from that reference's rules. Every expected
+prompt is written out by hand: the model reads the exact string, so key order and separators are part of the result.
+"""
+
+import json
+import math
+
+import pytest
+
+from invokeai.backend.moss_image.layout import MossImageLayoutRegion, build_moss_image_layout_prompt
+
+
+def _region(kind: str, caption: str, bbox: list, text: str | None = None) -> MossImageLayoutRegion:
+ return MossImageLayoutRegion.model_validate({"kind": kind, "caption": caption, "text": text, "bbox": bbox})
+
+
+def _box(bbox: list, width: int, height: int) -> list[int]:
+ prompt = build_moss_image_layout_prompt("a scene", [_region("object", "a cup", bbox)], width, height)
+ return json.loads(prompt)["items"][0]["bbox"]
+
+
+def test_the_reference_example_compiles_to_its_documented_boxes_in_gallery_key_order() -> None:
+ # OpenMOSS references/layout.md: the 1536x1024 campaign image; "For the cup, conversion yields [-288,-592,352,32]".
+ # Boxes and serialization follow the reference. The item key order does not: layout.md writes `text` before
+ # `bbox` and the reference keeps a draft's order, while this module emits the order of the gallery's layout
+ # prompts (assets/images/011 and 014), `label, caption, bbox, text`.
+ regions = [
+ _region("object", "An ivory ceramic cup.", [176, 224, 800, 864]),
+ _region("text", "Large dark-green Chinese title.", [928, 272, 1408, 448], text="把日常,过成诗。"),
+ _region("text", "Smaller supporting copy on two lines.", [928, 512, 1376, 656], text="一杯温暖\n一刻从容"),
+ ]
+
+ prompt = build_moss_image_layout_prompt("A warm studio campaign for a ceramic cup.", regions, 1536, 1024)
+
+ assert prompt == (
+ '{"summary":{"caption":"A warm studio campaign for a ceramic cup."},"items":['
+ '{"label":"object","caption":"An ivory ceramic cup.","bbox":[-288,-592,352,32]},'
+ '{"label":"text","caption":"Large dark-green Chinese title.","bbox":[-240,160,-64,640],"text":"把日常,过成诗。"},'
+ '{"label":"text","caption":"Smaller supporting copy on two lines.","bbox":[0,160,144,608],'
+ '"text":"一杯温暖\\n一刻从容"}'
+ '],"bbox_coord_space":"abs_centralized","bbox_format":"yxyx"}'
+ )
+
+
+def test_text_keeps_its_exact_characters_without_ascii_escapes() -> None:
+ # OpenMOSS test_landscape_conversion_preserves_content_and_source: Chinese, quotes, a line break and an emoji
+ # survive; the serialized prompt itself is one line.
+ text = '把日常,过成诗。\n"MOSS" 🪴'
+ regions = [_region("text", "Dark-green lettering.", [928, 272, 1408, 448], text=text)]
+
+ prompt = build_moss_image_layout_prompt("A ceramic campaign.", regions, 1536, 1024)
+
+ assert '"bbox":[-240,160,-64,640],"text":"把日常,过成诗。\\n\\"MOSS\\" 🪴"}' in prompt
+ assert "\n" not in prompt
+ assert json.loads(prompt)["items"][0]["text"] == text
+
+
+def test_each_kind_becomes_the_item_label_in_region_order_under_the_verbatim_prompt() -> None:
+ regions = [
+ _region("object", "a cup", [0, 0, 32, 32]),
+ _region("character", "a girl", [32, 0, 64, 64]),
+ _region("text", "a sign", [0, 32, 32, 64], text="OPEN"),
+ ]
+
+ layout = json.loads(build_moss_image_layout_prompt("a shop front\n", regions, 64, 64))
+
+ assert layout["summary"] == {"caption": "a shop front\n"}
+ assert layout["items"] == [
+ {"label": "object", "caption": "a cup", "bbox": [-32, -32, 0, 0]},
+ {"label": "character", "caption": "a girl", "bbox": [-32, 0, 32, 32]},
+ {"label": "text", "caption": "a sign", "bbox": [0, -32, 32, 0], "text": "OPEN"},
+ ]
+
+
+ ("bbox", "expected"),
+ [
+ # OpenMOSS test_portrait_edges_and_fractional_enclosure, on a 768x1344 canvas.
+ ([0, 0, 768, 1344], [-672, -384, 672, 384]),
+ ([10.9, 20.1, 100.01, 200.99], [-652, -374, -471, -283]),
+ ([1.00000000001, 2, 100, 200], [-670, -383, -472, -284]),
+ # Rounding to 9 decimals comes before ceil, so float noise above an edge does not widen the box by a pixel.
+ ([2, 1, 100.0000000001, 200.0000000001], [-671, -382, -472, -284]),
+ ],
+)
+def test_boxes_enclose_their_pixels_and_centre_on_the_canvas(bbox: list, expected: list[int]) -> None:
+ assert _box(bbox, 768, 1344) == expected
+
+
+ "bbox",
+ [
+ # OpenMOSS test_invalid_geometry_is_rejected, on a 1536x1024 canvas.
+ [-1, 0, 100, 100],
+ [0, 0, 1537, 100],
+ [0, 0, 100, 1025],
+ [100, 0, 50, 100],
+ [0, 0, 0, 100],
+ [0, 0, 100],
+ [True, 0, 100, 100],
+ [0, 0, math.nan, 100],
+ [0, 0, math.inf, 100],
+ [0, 0, "100", 100],
+ [0, 0, 0.00000000001, 100],
+ [0, 0, 100, 100, 100],
+ ],
+)
+def test_invalid_geometry_is_rejected(bbox: list) -> None:
+ with pytest.raises(ValueError):
+ _box(bbox, 1536, 1024)
+
+
+def test_a_box_the_image_cannot_hold_names_its_region() -> None:
+ cup = _region("object", "a cup", [0, 0, 100, 100])
+
+ with pytest.raises(ValueError, match=r"Layout region 2 \('a kite'\) .* leaves the 1536x1024 image"):
+ build_moss_image_layout_prompt("a beach", [cup, _region("object", "a kite", [0, 0, 1600, 100])], 1536, 1024)
+ with pytest.raises(ValueError, match=r"Layout region 1 \('a speck'\) .* no area at whole-pixel precision"):
+ build_moss_image_layout_prompt("a beach", [_region("object", "a speck", [0, 0, 1e-11, 100]), cup], 1536, 1024)
+
+
+ "prompt",
+ [
+ " a fox at dawn \n",
+ '{\n "summary": {"caption": "a fox"},\n "items": []\n}',
+ '{"scene_type":"photo","elements":[]}',
+ "{not json",
+ "",
+ ],
+)
+def test_without_regions_the_prompt_passes_through_unchanged(prompt: str) -> None:
+ assert build_moss_image_layout_prompt(prompt, [], 1024, 1024) == prompt
+
+
+def test_regions_are_appended_to_a_compiled_layout_which_keeps_everything_else() -> None:
+ # Key order as written (not the order this module emits), summary keys and item extras the regions do not use.
+ existing = (
+ '{"bbox_coord_space": "abs_centralized",\n'
+ ' "summary": {"meta": ["poster"], "canvas": "single", "caption": "A tea poster."},\n'
+ ' "items": [{"label": "panel", "caption": "The frame.", "tags": ["border"], "bbox": [-512, -512, 512, 512]}],\n'
+ ' "bbox_format": "yxyx"}'
+ )
+
+ prompt = build_moss_image_layout_prompt(
+ existing, [_region("text", "Brush lettering.", [412, 100, 612, 300], text="茶")], 1024, 1024
+ )
+
+ assert prompt == (
+ '{"bbox_coord_space":"abs_centralized",'
+ '"summary":{"meta":["poster"],"canvas":"single","caption":"A tea poster."},"items":['
+ '{"label":"panel","caption":"The frame.","tags":["border"],"bbox":[-512,-512,512,512]},'
+ '{"label":"text","caption":"Brush lettering.","bbox":[-412,-100,-212,100],"text":"茶"}'
+ '],"bbox_format":"yxyx"}'
+ )
+
+
+ "prompt",
+ [
+ # An uncompiled OpenMOSS draft: absolute xyxy boxes, which the new centred yxyx boxes must not join.
+ pytest.param(
+ '{"width":1024,"height":1024,"bbox_coord_space":"abs","bbox_format":"xyxy","summary":{"caption":"x"},'
+ '"items":[]}',
+ id="uncompiled-draft",
+ ),
+ pytest.param(
+ '{"summary":{"caption":"x"},"items":[],"bbox_coord_space":"normalized_1000","bbox_format":"yxyx"}',
+ id="other-coord-space",
+ ),
+ pytest.param(
+ '{"summary":{"caption":"x"},"items":[],"bbox_coord_space":"abs_centralized","bbox_format":"xyxy"}',
+ id="other-bbox-format",
+ ),
+ pytest.param('{"summary":{"caption":"x"},"items":[]}', id="no-convention"),
+ pytest.param(
+ '{"summary":{"caption":"x"},"items":{},"bbox_coord_space":"abs_centralized","bbox_format":"yxyx"}',
+ id="items-not-a-list",
+ ),
+ ],
+)
+def test_a_layout_that_is_not_compiled_is_refused(prompt: str) -> None:
+ with pytest.raises(ValueError, match="compiled"):
+ build_moss_image_layout_prompt(prompt, [_region("object", "a cup", [0, 0, 16, 16])], 1024, 1024)
+
+
+ "prompt",
+ [
+ # The model's other JSON prompt schema (`elements`, as in several of its gallery prompts) has no `items`.
+ '{"scene_type":"poster","gen_brief":"A tea poster.","elements":[],"bbox_coord_space":"abs_centralized"}',
+ '["a", "list"]',
+ '"a quoted string"',
+ '{"summary": {"caption": "cut off"}, "items": [',
+ '{"summary":{},"items":[],"bbox_coord_space":"abs_centralized","bbox_format":"yxyx","seed":NaN}',
+ # A layout needs both `summary` and `items`; compiled conventions alone do not make one.
+ '{"items":[],"bbox_coord_space":"abs_centralized","bbox_format":"yxyx"}',
+ ],
+)
+def test_a_prompt_that_is_not_a_layout_becomes_the_caption(prompt: str) -> None:
+ layout = json.loads(
+ build_moss_image_layout_prompt(prompt, [_region("object", "a cup", [496, 496, 528, 528])], 1024, 1024)
+ )
+
+ assert layout == {
+ "summary": {"caption": prompt},
+ "items": [{"label": "object", "caption": "a cup", "bbox": [-16, -16, 16, 16]}],
+ "bbox_coord_space": "abs_centralized",
+ "bbox_format": "yxyx",
+ }
+
+
[email protected]("prompt", ["", " \n"])
+def test_regions_need_a_prompt_to_caption_the_layout(prompt: str) -> None:
+ # OpenMOSS requires a non-blank summary.caption.
+ with pytest.raises(ValueError, match="need a prompt"):
+ build_moss_image_layout_prompt(prompt, [_region("object", "a cup", [0, 0, 16, 16])], 1024, 1024)