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(ltx2): generate video and audio with LTX-2.5

Lincoln Stein3c19714da502
diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml
index d26a66c175..ef05f6c0c2 100644
--- a/.github/workflows/python-tests.yml
+++ b/.github/workflows/python-tests.yml
@@ -111,6 +111,7 @@ jobs:
# that adds the directory does not also have to remember to add this line.
- 'invokeai/frontend/webv2/src/features/generation/core/__snapshots__/**'
- 'invokeai/frontend/webv2/src/features/generation/core/__fixtures__/**'
+ - 'invokeai/frontend/webv2/src/features/video/core/__snapshots__/**'
# test_ideogram4_frontend_bounds.py reads the Ideogram 4 control bounds from here.
- 'invokeai/frontend/webv2/src/features/generation/core/settings.ts'
- 'tests/**'
diff --git a/docs/src/content/docs/concepts/video-generation.mdx b/docs/src/content/docs/concepts/video-generation.mdx
index 32b78312d3..84d971e5f5 100644
--- a/docs/src/content/docs/concepts/video-generation.mdx
+++ b/docs/src/content/docs/concepts/video-generation.mdx
@@ -1,15 +1,16 @@
---
title: Video Generation
-description: Generate short videos — with audio on MiniMax H3 — from the Video panel. Covers the panel's controls, the Wan 2.2 and MiniMax H3 model families, and how to make longer videos.
+description: Generate short videos — with audio on MiniMax H3 and LTX-2 — from the Video panel. Covers the panel's controls, the Wan 2.2, MiniMax H3 and LTX-2 model families, and how to make longer videos.
lastUpdated: 2026-09-19
---
import { Card, CardGrid, Steps } from '@astrojs/starlight/components';
-InvokeAI generates short MP4 clips from a text prompt, one or two images, an existing video — or combinations of those — using two local model families:
+InvokeAI generates short MP4 clips from a text prompt, one or two images, an existing video — or combinations of those — using three local model families:
* **Wan 2.2** — the Alibaba Wan-AI family: three transformer variants covering text-to-video, image-to-video, first-to-last-frame interpolation, and video extension, with a 4-step **Lightning** fast path.
* **MiniMax H3** — two task transformers, **FL2VA** (first/last-frame-to-video-plus-audio) and **Ref2VA** (reference-to-video-plus-audio), that between them cover every conditioning mode *and* generate a synchronized stereo soundtrack, with a **Turbo** fast path. A [hybrid](#the-hybrid-fl2va-quality-with-ref2va-conditioning) runs the two together.
+* **LTX-2** — Lightricks' 22B dual-stream transformer: text-to-video and image-to-video, each with a jointly generated stereo soundtrack, in a **Dev** build you steer with guidance and a **Distilled** build that renders in eight fixed steps.
The easiest way to use either is the **Video panel** described on this page — no node graph required. The [bundled video workflows](/features/video-workflows/) expose the same pipelines in the workflow editor for graph-level control.
@@ -29,7 +30,7 @@ Open the **Video** entry in the editor's left rail (next to Generate and Upscale
<Steps>
-1. **Install a video model.** Open the **Model Manager** and install a starter bundle: **Wan 2.2 Text-to-Video**, **Wan 2.2 Image-to-Video**, or **MiniMax H3**. See [the models](#the-models) below for what each contains and what fits your hardware.
+1. **Install a video model.** Open the **Model Manager** and install a starter bundle: **Wan 2.2 Text-to-Video**, **Wan 2.2 Image-to-Video**, **MiniMax H3**, or **LTX-2**. See [the models](#the-models) below for what each contains and what fits your hardware.
2. **Open the Video panel** and pick your model in the **Model** section. The panel reshapes itself around the selection — sections and fields appear, disappear, and re-range to match what the model can actually do.
@@ -37,7 +38,7 @@ Open the **Video** entry in the editor's left rail (next to Generate and Upscale
4. **Optionally add conditioning media** — a first frame, a last frame, or an initial video to extend (see below).
-5. **Press Invoke.** The MP4 lands in the gallery and plays in the viewer. On MiniMax H3 it arrives with a generated audio track.
+5. **Press Invoke.** The MP4 lands in the gallery and plays in the viewer. On MiniMax H3 and LTX-2 it arrives with a generated audio track.
</Steps>
@@ -45,14 +46,14 @@ Open the **Video** entry in the editor's left rail (next to Generate and Upscale
There is no mode switch. The panel infers what to generate from **which inputs you have filled in**, and each model family supports a different set of combinations:
-| Inputs you set | What runs | Wan T2V‑A14B | Wan I2V‑A14B | Wan TI2V‑5B | MiniMax H3 |
-|---|---|---|---|---|---|
-| Prompt only | Text to video | ✓ | — | ✓ | ✓ |
-| First Frame | Video starts on your image | — | ✓ | ✓ | ✓ |
-| Last Frame only | Video ends on your image | — | — | — | ✓ |
-| First + Last Frame | Interpolates between the two | — | ✓ | — | ✓ |
-| Initial Video | Extends the clip | — | ✓ | ✓ | ✓ |
-| Initial Video + Last Frame | Extends toward a destination image | — | ✓ | — | ✓ |
+| Inputs you set | What runs | Wan T2V‑A14B | Wan I2V‑A14B | Wan TI2V‑5B | MiniMax H3 | LTX-2 |
+|---|---|---|---|---|---|---|
+| Prompt only | Text to video | ✓ | — | ✓ | ✓ | ✓ |
+| First Frame | Video starts on your image | — | ✓ | ✓ | ✓ | ✓ |
+| Last Frame only | Video ends on your image | — | — | — | ✓ | — |
+| First + Last Frame | Interpolates between the two | — | ✓ | — | ✓ | — |
+| Initial Video | Extends the clip | — | ✓ | ✓ | ✓ | — |
+| Initial Video + Last Frame | Extends toward a destination image | — | ✓ | — | ✓ | — |
If you pick a model that can't run the current combination, the Invoke button tells you exactly why instead of failing mid-run.
@@ -62,6 +63,7 @@ The prompt toolbar carries the same helpers as the image Generate panel — temp
* **Wan** — used only when CFG is greater than 1 (the field says so). With the Lightning fast path on (CFG 1), it is ignored by the graph.
* **MiniMax H3** — hidden entirely. H3 is guidance-distilled and has no CFG, so a negative prompt has nothing to act on.
+* **LTX-2** — offered on the Dev build, where it is pre-filled with the release's own default list of artifact terms, and hidden on the Distilled build, which runs no guidance. Turning CFG down to 1 on Dev drops it from the graph, and the 12B prompt encode it would have cost.
### Start & End Images
@@ -226,9 +228,48 @@ MiniMax H3 is distributed under the **MiniMax H3 Community License**, which rest
---
+### LTX-2
+
+LTX-2 is Lightricks' 22B **dual-stream** transformer: picture and soundtrack are generated *together*, by the same model, at every denoising step — not dubbed on afterwards. It ships in two builds that share every other component:
+
+* **Dev** — the guided build. It samples a 30-step schedule and exposes four guidance controls (see below).
+* **Distilled** — guidance-distilled to a fixed **eight-step** schedule. It runs one model evaluation per step where Dev runs up to four, which makes it roughly fifteen times cheaper per clip. Guidance has no effect on it, so the panel hides those controls and shows the step count as fixed.
+
+What to know in practice:
+
+* **Frames are 8·n + 1** (the video VAE encodes the first frame alone, then groups of eight): 9 to 481, default 121 — five seconds at the default 24 fps. The slider stops at 241; the field accepts more for a deliberate long render, but cost grows linearly with the frame count.
+* **Frame rate is yours to set** (1–60 fps). It changes the clip's duration, and with it how much audio is generated — the two streams share one clock.
+* **Canvas presets pin the short edge**: 512p, 704p (default) or 768p, with the long edge following your aspect ratio and both axes snapped to a multiple of 32.
+* **Image-to-video re-compresses your frame** as a single H.264 frame before encoding it. That is deliberate: the model was trained on frames that had been through a video codec, and a pristine PNG is far enough out of that distribution that the clip visibly drifts away from it over the first second.
+* **The negative prompt** only reaches the model through classifier-free guidance, so it is available on Dev and hidden on Distilled. It is pre-filled with the release's own default, a long list of artifact and audio-defect terms.
+
+#### Advanced guidance (Dev only)
+
+Beyond the usual **CFG**, LTX-2 exposes three more terms in a collapsed **Advanced guidance** section. Each one costs an extra model evaluation per step, so turning one off is a real saving:
+
+* **Audio CFG** (default 7) — how hard the soundtrack follows the prompt. The release guides audio far harder than picture.
+* **STG** (default 1) — spatio-temporal guidance. Steers away from a pass with one attention block skipped, which sharpens motion. 0 turns it off.
+* **Modality guidance** (default 3) — steers away from a pass with the audio/video cross-attention disabled, tightening how well the two streams agree. 1 turns it off.
+
+#### Installing LTX-2
+
+The **LTX-2** starter bundle installs the working set:
+
+* **LTX-2.5 Dev Transformer (int8)** and **LTX-2.5 Distilled Transformer (int8)** (~18 GiB each) — single-file transformer builds. **One of these is the model you select in the Video panel**, and which one you pick decides the schedule.
+* **LTX-2.5 Components** — the video VAE, audio VAE, vocoder and text connectors, which go in the panel's **Model components** slot.
+* **LTX-2.5 Text Encoder (Gemma-4 12B, int8)** — the Lightricks-tuned Gemma-4 text tower, which goes in the **Gemma-4 encoder** slot. No LTX-2 model carries text-encoder weights, so this one is required rather than an override.
+
+LTX-2 does not condition on the last hidden state of its text encoder the way most models do: it stacks the hidden states of *every* Gemma layer and runs them through a separate connector model. That is why the encoder is a large, separate download.
+
+Measured on a 48 GB card at 1248×704×121 frames, the int8 Dev transformer is resident at ~18 GiB and the denoise working set peaks at ~2.8 GiB, with all four guidance passes running. The Distilled build at the same size needs the same memory and about a fifteenth of the time.
+
+---
+
## Making longer videos
-Both families are trained on short clips — Wan on 81 frames (~5 s), H3 on up to 345 (~14 s). Asking for more frames in one generation pushes the temporal positional encoding out of distribution and coherence degrades. The way to go longer is to **extend**: generate a clip, then continue it, repeatedly.
+Every family is trained on short clips — Wan on 81 frames (~5 s), H3 on up to 345 (~14 s), LTX-2 on 121 (~5 s at 24 fps). Asking for more frames in one generation pushes the temporal positional encoding out of distribution and coherence degrades. The way to go longer is to **extend**: generate a clip, then continue it, repeatedly.
+
+Extension is available on Wan and MiniMax H3. LTX-2 has no extend mode yet, so a longer LTX-2 clip means asking for more frames and accepting the drift.
### From the Video panel
diff --git a/invokeai/app/invocations/fields.py b/invokeai/app/invocations/fields.py
index 1f304fae7f..ebd59574b3 100644
--- a/invokeai/app/invocations/fields.py
+++ b/invokeai/app/invocations/fields.py
@@ -193,6 +193,11 @@ class FieldDescriptions:
minimax_h3_audio_vae = "Audio VAE (stereo, 32 kHz) for MiniMax H3"
minimax_h3_reference_media = "One ordered Ref2VA reference (image or video) for MiniMax H3"
minimax_h3_reference_conditioning = "Ordered, VAE-encoded Ref2VA reference conditioning for MiniMax H3"
+ ltx2_model = "LTX-2 model (Transformer) to load"
+ ltx2_text_encoder = "Gemma-4 tokenizer and text encoder, and the LTX-2 text connectors"
+ ltx2_audio_vae = "Audio VAE (mel spectrogram) for LTX-2"
+ ltx2_vocoder = "Vocoder (48 kHz stereo) for LTX-2"
+ ltx2_video_conditioning = "First-frame (VAE-latent) conditioning for LTX-2"
sdxl_main_model = "SDXL Main model (UNet, VAE, CLIP1, CLIP2) to load"
sdxl_refiner_model = "SDXL Refiner Main Modde (UNet, VAE, CLIP2) to load"
onnx_main_model = "ONNX Main model (UNet, VAE, CLIP) to load"
@@ -462,6 +467,29 @@ class MiniMaxH3ConditioningField(BaseModel):
conditioning_name: str = Field(description="The name of conditioning tensor")
+class LTX2ConditioningField(BaseModel):
+ """An LTX-2 conditioning primitive value.
+
+ LTX-2 conditioning is a pair of prompt streams, one per modality, already projected by the
+ text connectors, plus the token mask the connectors emit alongside them.
+ """
+
+ conditioning_name: str = Field(description="The name of conditioning tensor")
+
+
+class LTX2VideoConditioningField(BaseModel):
+ """First-frame (VAE-latent) conditioning for LTX-2 image-to-video.
+
+ The canvas the frame was encoded at rides along so the denoise node can reject a mismatch
+ with a named error rather than a shape failure inside the transformer.
+ """
+
+ latents_name: str = Field(description="Name of the saved [1, 128, 1, H/32, W/32] latent tensor.")
+ width: int = Field(description="Pixel width the frame was encoded at (matches denoise width).")
+ height: int = Field(description="Pixel height the frame was encoded at (matches denoise height).")
+ strength: float = Field(default=1.0, description="How strongly the frame is held, 0 (ignored) to 1 (kept exactly).")
+
+
class MiniMaxH3FrameConditioningField(BaseModel):
"""First/last-keyframe conditioning for MiniMax H3 (FL2VA).
diff --git a/invokeai/app/invocations/ltx2/__init__.py b/invokeai/app/invocations/ltx2/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/invokeai/app/invocations/ltx2/ltx2_denoise.py b/invokeai/app/invocations/ltx2/ltx2_denoise.py
new file mode 100644
index 0000000000..7694a69e61
--- /dev/null
+++ b/invokeai/app/invocations/ltx2/ltx2_denoise.py
@@ -0,0 +1,329 @@
+"""LTX-2 denoise: joint video and audio sampling from one transformer."""
+
+from typing import Literal
+
+import torch
+from tqdm import tqdm
+
+from invokeai.app.invocations.baseinvocation import (
+ BaseInvocation,
+ BaseInvocationOutput,
+ Classification,
+ invocation,
+ invocation_output,
+)
+from invokeai.app.invocations.fields import (
+ FieldDescriptions,
+ Input,
+ InputField,
+ LatentsField,
+ LTX2ConditioningField,
+ LTX2VideoConditioningField,
+ OutputField,
+)
+from invokeai.app.invocations.model import LTX2TransformerField
+from invokeai.app.services.shared.invocation_context import InvocationContext
+from invokeai.app.util.misc import SEED_MAX
+from invokeai.backend.ltx2.constants import (
+ LTX2_AUDIO_CFG_SCALE,
+ LTX2_CANVAS_MULTIPLE,
+ LTX2_CFG_SCALE,
+ LTX2_DEFAULT_FPS,
+ LTX2_DEFAULT_NUM_FRAMES,
+ LTX2_DEV_STEPS,
+ LTX2_DISTILLED_STEPS,
+ LTX2_GUIDANCE_RESCALE,
+ LTX2_MODALITY_SCALE,
+ LTX2_STG_SCALE,
+)
+from invokeai.backend.ltx2.denoise import build_denoise_state, denoise, preview_latent_frame
+from invokeai.backend.ltx2.guidance import LTX2Guidance
+from invokeai.backend.ltx2.packing import (
+ require_patch_geometry,
+ unpack_video_latents,
+ validate_num_frames,
+ video_sequence_length,
+)
+from invokeai.backend.model_manager.taxonomy import BaseModelType, LTX2VariantType
+from invokeai.backend.quantization.dequantizing_linear import peak_dequant_transient_bytes
+from invokeai.backend.stable_diffusion.diffusers_pipeline import PipelineIntermediateState
+from invokeai.backend.stable_diffusion.diffusion.conditioning_data import LTX2ConditioningInfo
+from invokeai.backend.util.devices import TorchDevice
+
+LTX2Schedule = Literal["auto", "dev", "distilled"]
+
+LTX2_SCHEDULE_LABELS: dict[str, str] = {
+ "auto": "Auto (from the model's variant)",
+ "dev": "Dev (shifted, guided)",
+ "distilled": "Distilled (8 fixed steps, no guidance)",
+}
+
+
+@invocation_output("ltx2_denoise_output")
+class LTX2DenoiseOutput(BaseInvocationOutput):
+ """Joint video and audio latents from one LTX-2 denoise run."""
+
+ video_latents: LatentsField = OutputField(description="Video latents [1, 128, T_lat, H/32, W/32].")
+ audio_latents: LatentsField = OutputField(description="Packed audio latents [1, T_audio, 128].")
+ width: int = OutputField(description="Pixel width of the video latents.")
+ height: int = OutputField(description="Pixel height of the video latents.")
+ num_frames: int = OutputField(description="Pixel-frame count of the video latents.")
+
+
+@invocation(
+ "ltx2_denoise",
+ title="Denoise - LTX-2",
+ tags=["ltx", "ltx2", "video", "audio", "denoise"],
+ category="latents",
+ version="1.0.0",
+ classification=Classification.Prototype,
+)
+class LTX2DenoiseInvocation(BaseInvocation):
+ """Generates LTX-2 video and audio latents together.
+
+ One transformer forward produces both modalities at every step, so the soundtrack is generated
+ with the picture rather than dubbed onto it. Wire an image conditioning to start the clip from
+ a frame.
+
+ The guidance-distilled checkpoint runs a fixed eight-step schedule with no guidance at all: its
+ step count and guidance scales below are ignored, and the negative prompt never reaches it.
+ """
+
+ transformer: LTX2TransformerField = InputField(
+ description=FieldDescriptions.ltx2_model, input=Input.Connection, title="Transformer"
+ )
+ positive_conditioning: LTX2ConditioningField = InputField(
+ description=FieldDescriptions.positive_cond, input=Input.Connection
+ )
+ negative_conditioning: LTX2ConditioningField | None = InputField(
+ default=None,
+ description="Conditioning for the unconditional pass. Required whenever a guidance scale is above 1.",
+ input=Input.Connection,
+ )
+ video_conditioning: LTX2VideoConditioningField | None = InputField(
+ default=None,
+ description=FieldDescriptions.ltx2_video_conditioning,
+ input=Input.Connection,
+ title="Image Conditioning",
+ )
+ width: int = InputField(default=1248, gt=0, multiple_of=LTX2_CANVAS_MULTIPLE, description="Canvas width.")
+ height: int = InputField(default=704, gt=0, multiple_of=LTX2_CANVAS_MULTIPLE, description="Canvas height.")
+ num_frames: int = InputField(
+ default=LTX2_DEFAULT_NUM_FRAMES,
+ gt=0,
+ description="Frames to generate. The causal VAE encodes the first frame alone and then groups of "
+ "eight, so this must be 8n + 1.",
+ )
+ fps: float = InputField(
+ default=LTX2_DEFAULT_FPS,
+ ge=1,
+ le=120,
+ description="Frames per second. Sets the clip's duration, which is also what the audio stream is "
+ "generated to fill, and the transformer's positional clock.",
+ )
+ steps: int = InputField(default=LTX2_DEV_STEPS, gt=0, description="Number of denoising steps.")
+ cfg_scale: float = InputField(
+ default=LTX2_CFG_SCALE, ge=1.0, description="Classifier-free guidance scale for the video stream."
+ )
+ audio_cfg_scale: float = InputField(
+ default=LTX2_AUDIO_CFG_SCALE,
+ ge=1.0,
+ description="Classifier-free guidance scale for the audio stream. The release guides audio much "
+ "harder than video.",
+ title="Audio CFG Scale",
+ )
+ stg_scale: float = InputField(
+ default=LTX2_STG_SCALE,
+ ge=0.0,
+ description="Spatio-temporal guidance scale. Steers away from a pass whose self-attention is skipped "
+ "in one block, which sharpens motion. 0 turns it off and saves a forward per step.",
+ title="STG Scale",
+ )
+ modality_scale: float = InputField(
+ default=LTX2_MODALITY_SCALE,
+ ge=1.0,
+ description="Modality-isolation guidance scale. Steers away from a pass with the audio/video "
+ "cross-attention disabled, which tightens the two streams' agreement. 1 turns it off.",
+ )
+ guidance_rescale: float = InputField(
+ default=LTX2_GUIDANCE_RESCALE,
+ ge=0.0,
+ le=1.0,
+ description="How far to pull the guided prediction's contrast back toward the unguided one.",
+ )
+ schedule: LTX2Schedule = InputField(
+ default="auto",
+ description="Which noise schedule to sample. 'Auto' follows the loaded transformer's variant.",
+ ui_choice_labels=LTX2_SCHEDULE_LABELS,
+ )
+ seed: int = InputField(default=0, ge=0, le=SEED_MAX, description="Randomness seed for reproducibility.")
+
+ @staticmethod
+ def _estimate_working_memory(video_rows: int, audio_rows: int) -> int:
+ """Estimate peak transformer activation bytes so the model cache reserves enough headroom.
+
+ The 22B transformer is partially loaded on any card this runs on, and without a hint the
+ cache reserves only its small default, packs VRAM with weights, and the first forward dies.
+
+ Attention runs through SDPA without materializing scores, so activations scale linearly with
+ the packed row count: per video row the concurrently live bf16 terms inside one block are
+ the 4096-wide QKV and attention output and the gelu feed-forward's intermediates. Audio rows
+ are the same shape at half the width, and there are two orders of magnitude fewer of them.
+ Guidance passes run one after another rather than as one batch, so they do not multiply the
+ peak; the per-pass x0 predictions that are all live at the combine are one float32 row each
+ and are inside the constants below.
+
+ Measured on a W7900 (gfx1100, released int8-convrot dev transformer, four guidance passes),
+ as peak *reserved* minus the resident model: 0.46 GiB at 320 video rows (512x320x9) and
+ 2.81 GiB at 13728 (1248x704x121), which fits a 0.18 MiB/row line through a 0.40 GiB
+ intercept. The constants round that up, and the base additionally covers block weights
+ arriving on device under partial loading, which a fully resident measurement does not see.
+ """
+ MiB = 1024**2
+ return video_rows * (MiB // 5) + audio_rows * (MiB // 10) + 1024**3
+
+ def _resolve_distilled(self) -> bool:
+ if self.schedule != "auto":
+ return self.schedule == "distilled"
+ if self.transformer.variant is None:
+ raise ValueError(
+ "The schedule is set to Auto but the transformer carries no variant, so there is nothing to "
+ "follow. Choose 'Dev' or 'Distilled' explicitly."
+ )
+ return self.transformer.variant == LTX2VariantType.Distilled.value
+
+ def _resolve_guidance(self, context: InvocationContext, distilled: bool) -> LTX2Guidance:
+ if distilled:
+ # Not a preference the user can override: the distilled checkpoint has guidance baked
+ # into its weights, and steering it produces a saturated, broken clip.
+ requested = (self.cfg_scale, self.audio_cfg_scale, self.stg_scale, self.modality_scale)
+ if requested != (1.0, 1.0, 0.0, 1.0):
+ context.logger.info(
+ "The distilled LTX-2 checkpoint is guidance-distilled; ignoring the guidance scales on "
+ "this node and running one forward per step."
+ )
+ return LTX2Guidance(cfg_scale=1.0, audio_cfg_scale=1.0, stg_scale=0.0, modality_scale=1.0, rescale=0.0)
+ return LTX2Guidance(
+ cfg_scale=self.cfg_scale,
+ audio_cfg_scale=self.audio_cfg_scale,
+ stg_scale=self.stg_scale,
+ modality_scale=self.modality_scale,
+ rescale=self.guidance_rescale,
+ )
+
+ def _load_conditioning(self, context: InvocationContext, field: LTX2ConditioningField) -> LTX2ConditioningInfo:
+ data = context.conditioning.load(field.conditioning_name)
+ assert len(data.conditionings) == 1
+ info = data.conditionings[0]
+ assert isinstance(info, LTX2ConditioningInfo)
+ return info
+
+ def _load_image_latents(self, context: InvocationContext) -> torch.Tensor | None:
+ if self.video_conditioning is None:
+ return None
+ if (self.video_conditioning.width, self.video_conditioning.height) != (self.width, self.height):
+ raise ValueError(
+ f"The image conditioning was prepared for a {self.video_conditioning.width}x"
+ f"{self.video_conditioning.height} canvas but this denoise runs at {self.width}x{self.height}. "
+ "Re-run Image Conditioning - LTX-2 with matching width and height."
+ )
+ return context.tensors.load(self.video_conditioning.latents_name)
+
+ @torch.no_grad()
+ def invoke(self, context: InvocationContext) -> LTX2DenoiseOutput:
+ # The canvas is checked by the fields themselves (`multiple_of`), so a bad one never
+ # enqueues; the frame grid cannot be expressed that way, and checking it here is what stops
+ # a mistyped count from loading a 12B encoder and a 22B transformer before it is refused.
+ # `build_denoise_state` checks both again for callers that do not come through this node.
+ validate_num_frames(self.num_frames)
+
+ distilled = self._resolve_distilled()
+ guidance = self._resolve_guidance(context, distilled)
+ if distilled and self.steps != LTX2_DISTILLED_STEPS:
+ context.logger.info(
+ f"The distilled LTX-2 schedule is a fixed {LTX2_DISTILLED_STEPS} steps; ignoring the "
+ f"{self.steps} requested."
+ )
+
+ positive = self._load_conditioning(context, self.positive_conditioning)
+ negative = None
+ if guidance.needs_negative_conditioning:
+ if self.negative_conditioning is None:
+ raise ValueError(
+ "Classifier-free guidance is on (a CFG scale above 1) but no negative conditioning is "
+ "wired. Connect Prompt - LTX-2's negative output, or set both CFG scales to 1."
+ )
+ negative = self._load_conditioning(context, self.negative_conditioning)
+
+ state = build_denoise_state(
+ num_frames=self.num_frames,
+ height=self.height,
+ width=self.width,
+ fps=self.fps,
+ seed=self.seed,
+ distilled=distilled,
+ num_steps=self.steps,
+ image_latents=self._load_image_latents(context),
+ conditioning_strength=self.video_conditioning.strength if self.video_conditioning else 1.0,
+ )
+
+ device = TorchDevice.choose_torch_device()
+ inference_dtype = TorchDevice.choose_bfloat16_safe_dtype(device)
+ estimated_working_memory = self._estimate_working_memory(
+ video_sequence_length(self.num_frames, self.height, self.width), state.audio_latents_count
+ )
+
+ transformer_info = context.models.load(self.transformer.transformer)
+ # An int8-convrot build materializes each linear's dequantized weight inside the forward,
+ # which the model's resident size does not account for. Read from the unlocked model, before
+ # the VRAM lock the reservation applies to; zero on a bf16 build.
+ estimated_working_memory += peak_dequant_transient_bytes(transformer_info.model, inference_dtype)
+
+ with transformer_info.model_on_device(working_mem_bytes=estimated_working_memory) as (_, transformer):
+ require_patch_geometry(transformer.config)
+ context.util.signal_progress("Denoising LTX-2 audio-video")
+ progress = tqdm(total=state.num_steps, desc=f"Denoising LTX-2 ({self.num_frames} frames)")
+
+ def step_callback(step: int, total_steps: int, video_x0: torch.Tensor) -> None:
+ progress.update(1)
+ context.util.sd_step_callback(
+ PipelineIntermediateState(
+ step=step,
+ order=1,
+ total_steps=total_steps,
+ timestep=0,
+ latents=preview_latent_frame(video_x0, state),
+ ),
+ BaseModelType.LTX2,
+ )
+
+ try:
+ video_latents, audio_latents = denoise(
+ transformer=transformer,
+ state=state,
+ positive=positive,
+ negative=negative,
+ guidance=guidance,
+ fps=self.fps,
+ dtype=inference_dtype,
+ device=device,
+ step_callback=step_callback,
+ is_canceled=context.util.is_canceled,
+ )
+ finally:
+ progress.close()
+
+ video_5d = unpack_video_latents(video_latents, state.latent_frames, state.latent_height, state.latent_width)
+ return LTX2DenoiseOutput(
+ video_latents=LatentsField(
+ latents_name=context.tensors.save(tensor=video_5d.detach().to(device="cpu", dtype=torch.float32)),
+ seed=self.seed,
+ ),
+ audio_latents=LatentsField(
+ latents_name=context.tensors.save(tensor=audio_latents.detach().to(device="cpu", dtype=torch.float32)),
+ seed=self.seed,
+ ),
+ width=self.width,
+ height=self.height,
+ num_frames=self.num_frames,
+ )
diff --git a/invokeai/app/invocations/ltx2/ltx2_ideal_dimensions.py b/invokeai/app/invocations/ltx2/ltx2_ideal_dimensions.py
new file mode 100644
index 0000000000..475396721a
--- /dev/null
+++ b/invokeai/app/invocations/ltx2/ltx2_ideal_dimensions.py
@@ -0,0 +1,52 @@
+"""Canvas resolution for LTX-2 from a source image's aspect ratio."""
+
+from typing import Literal
+
+from invokeai.app.invocations.baseinvocation import BaseInvocation, Classification, invocation
+from invokeai.app.invocations.fields import InputField
+from invokeai.app.invocations.ideal_size import IdealSizeOutput
+from invokeai.app.services.shared.invocation_context import InvocationContext
+from invokeai.backend.ltx2.packing import resolve_canvas
+
+LTX2TargetResolution = Literal["512p", "704p", "768p"]
+
+LTX2_TARGET_RESOLUTION_LABELS: dict[str, str] = {
+ "512p": "512p (short edge 512 - fastest)",
+ "704p": "704p (short edge 704)",
+ "768p": "768p (short edge 768 - sharpest, slowest)",
+}
+
+_SHORT_EDGES: dict[str, int] = {"512p": 512, "704p": 704, "768p": 768}
+
+
+@invocation(
+ "ltx2_ideal_dimensions",
+ title="LTX-2 Ideal Dimensions",
+ tags=["ltx", "ltx2", "video", "dimensions", "math"],
+ category="video",
+ version="1.0.0",
+ classification=Classification.Prototype,
+)
+class LTX2IdealDimensionsInvocation(BaseInvocation):
+ """Ideal LTX-2 dimensions for a source image's aspect ratio.
+
+ The chosen preset pins the canvas's *short* edge and the long edge follows the source's aspect
+ ratio, each axis rounded to a multiple of 32 (the video VAE's spatial compression). Only the
+ ratio of the inputs matters. Wire the outputs into the width and height of both the image
+ conditioning and the denoise node, which must share one canvas.
+
+ Cost grows with the token count, which is the canvas area over 1024: 768p is about 2.2x the
+ work of 512p at the same length.
+ """
+
+ width: int = InputField(default=1024, gt=0, description="Source image width in pixels.")
+ height: int = InputField(default=1024, gt=0, description="Source image height in pixels.")
+ target_resolution: LTX2TargetResolution = InputField(
+ default="704p",
+ description="Which short edge to pin the canvas to.",
+ ui_choice_labels=LTX2_TARGET_RESOLUTION_LABELS,
+ )
+
+ def invoke(self, context: InvocationContext) -> IdealSizeOutput:
+ height, width = resolve_canvas(float(self.width), float(self.height), _SHORT_EDGES[self.target_resolution])
+ return IdealSizeOutput(width=width, height=height)
diff --git a/invokeai/app/invocations/ltx2/ltx2_image_conditioning.py b/invokeai/app/invocations/ltx2/ltx2_image_conditioning.py
new file mode 100644
index 0000000000..dbf8cce739
--- /dev/null
+++ b/invokeai/app/invocations/ltx2/ltx2_image_conditioning.py
@@ -0,0 +1,103 @@
+"""LTX-2 first-frame conditioning: H.264 re-compress, fit to the canvas, VAE-encode."""
+
+import torch
+
+from invokeai.app.invocations.baseinvocation import (
+ BaseInvocation,
+ BaseInvocationOutput,
+ Classification,
+ invocation,
+ invocation_output,
+)
+from invokeai.app.invocations.fields import (
+ FieldDescriptions,
+ ImageField,
+ Input,
+ InputField,
+ LTX2VideoConditioningField,
+ OutputField,
+)
+from invokeai.app.invocations.model import VAEField
+from invokeai.app.services.shared.invocation_context import InvocationContext
+from invokeai.backend.ltx2.constants import LTX2_CANVAS_MULTIPLE, LTX2_IMAGE_CRF
+from invokeai.backend.ltx2.image_conditioning import encode_image_latents, fit_to_canvas, recompress_h264
+from invokeai.backend.model_manager.load.model_cache.utils import get_effective_device
+from invokeai.backend.util.vae_working_memory import estimate_vae_working_memory_ltx2
+
+
+@invocation_output("ltx2_image_conditioning_output")
+class LTX2ImageConditioningOutput(BaseInvocationOutput):
+ """A VAE-encoded first frame for LTX-2 image-to-video."""
+
+ video_conditioning: LTX2VideoConditioningField = OutputField(description=FieldDescriptions.ltx2_video_conditioning)
+
+
+@invocation(
+ "ltx2_image_conditioning",
+ title="Image Conditioning - LTX-2",
+ tags=["conditioning", "image", "ltx", "ltx2", "video"],
+ category="conditioning",
+ version="1.0.0",
+ classification=Classification.Prototype,
+)
+class LTX2ImageConditioningInvocation(BaseInvocation):
+ """Encodes an image as the first frame of an LTX-2 generation.
+
+ The image is re-compressed as a single H.264 frame before it is encoded. That is not an
+ optimization: LTX-2 was trained on frames that had been through a video codec, and a pristine
+ source is far enough out of that distribution that the clip visibly drifts away from it over
+ the first second. 18 is the CRF LTX-2.5 was trained against.
+ """
+
+ image: ImageField = InputField(description="The image the video starts from.")
+ vae: VAEField = InputField(description=FieldDescriptions.vae, input=Input.Connection, title="Video VAE")
+ width: int = InputField(
+ default=1248, gt=0, multiple_of=LTX2_CANVAS_MULTIPLE, description="Canvas width (must match Denoise)."
+ )
+ height: int = InputField(
+ default=704, gt=0, multiple_of=LTX2_CANVAS_MULTIPLE, description="Canvas height (must match Denoise)."
+ )
+ strength: float = InputField(
+ default=1.0,
+ gt=0.0,
+ le=1.0,
+ description="How strongly the generation is held to this frame. 1 keeps it exactly; lower values "
+ "let the model redraw it, which can hide a source that does not match the prompt.",
+ )
+ crf: int = InputField(
+ default=LTX2_IMAGE_CRF,
+ ge=0,
+ le=51,
+ description="H.264 quality factor the image is re-compressed at before encoding. Higher is more "
+ "compressed; 0 skips re-compression, which is off-distribution for this model.",
+ )
+
+ @torch.no_grad()
+ def invoke(self, context: InvocationContext) -> LTX2ImageConditioningOutput:
+ image = context.images.get_pil(self.image.image_name)
+
+ # Re-compression comes first, at the source's own resolution, the way the released pipeline
+ # applies it: the codec's artefacts are then resampled by the fit, not stamped on after it.
+ context.util.signal_progress("Preparing the LTX-2 image conditioning")
+ prepared = fit_to_canvas(recompress_h264(image, self.crf), self.height, self.width)
+
+ vae_info = context.models.load(self.vae.vae)
+ estimated_working_memory = estimate_vae_working_memory_ltx2(
+ operation="encode",
+ vae=vae_info.model,
+ pixel_height=self.height,
+ pixel_width=self.width,
+ pixel_frames=1,
+ )
+ with vae_info.model_on_device(working_mem_bytes=estimated_working_memory) as (_, vae):
+ context.util.signal_progress("Running the LTX-2 video VAE encode")
+ latents = encode_image_latents(vae, prepared, device=get_effective_device(vae))
+
+ return LTX2ImageConditioningOutput(
+ video_conditioning=LTX2VideoConditioningField(
+ latents_name=context.tensors.save(tensor=latents),
+ width=self.width,
+ height=self.height,
+ strength=self.strength,
+ )
+ )
diff --git a/invokeai/app/invocations/ltx2/ltx2_model_loader.py b/invokeai/app/invocations/ltx2/ltx2_model_loader.py
new file mode 100644
index 0000000000..3ea8bca9a0
--- /dev/null
+++ b/invokeai/app/invocations/ltx2/ltx2_model_loader.py
@@ -0,0 +1,170 @@
+"""LTX-2 model loader: one generation is assembled from up to three records."""
+
+from typing import Optional
+
+from invokeai.app.invocations.baseinvocation import (
+ BaseInvocation,
+ BaseInvocationOutput,
+ Classification,
+ invocation,
+ invocation_output,
+)
+from invokeai.app.invocations.fields import FieldDescriptions, Input, InputField, OutputField
+from invokeai.app.invocations.model import (
+ LTX2TextEncoderField,
+ LTX2TransformerField,
+ LTX2VocoderField,
+ ModelIdentifierField,
+ VAEField,
+)
+from invokeai.app.services.shared.invocation_context import InvocationContext
+from invokeai.backend.model_manager.configs.main import Main_Diffusers_LTX2_Config
+from invokeai.backend.model_manager.taxonomy import (
+ BaseModelType,
+ LTX2VariantType,
+ ModelFormat,
+ ModelType,
+ SubModelType,
+)
+
+
+@invocation_output("ltx2_model_loader_output")
+class LTX2ModelLoaderOutput(BaseInvocationOutput):
+ """LTX-2 model loader output."""
+
+ transformer: LTX2TransformerField = OutputField(description=FieldDescriptions.ltx2_model, title="Transformer")
+ text_encoder: LTX2TextEncoderField = OutputField(
+ description=FieldDescriptions.ltx2_text_encoder, title="Gemma-4 Encoder"
+ )
+ vae: VAEField = OutputField(description=FieldDescriptions.vae, title="Video VAE")
+ audio_vae: VAEField = OutputField(description=FieldDescriptions.ltx2_audio_vae, title="Audio VAE")
+ vocoder: LTX2VocoderField = OutputField(description=FieldDescriptions.ltx2_vocoder, title="Vocoder")
+
+ # Echoed so a graph can record what it ran with. The inputs are all Direct (base-filtered
+ # pickers), so nothing upstream could be read instead, and a literal re-typed into a metadata
+ # node would go stale the first time a user changed the model.
+ model: ModelIdentifierField = OutputField(description="The LTX-2 transformer that was loaded.", title="Model")
+ component_source: Optional[ModelIdentifierField] = OutputField(
+ default=None, description="The component folder the VAEs, vocoder and connectors came from.", title="Components"
+ )
+ text_encoder_model: ModelIdentifierField = OutputField(
+ description="The Gemma-4 encoder that was loaded.", title="Text Encoder"
+ )
+
+
+@invocation(
+ "ltx2_model_loader",
+ title="Main Model - LTX-2",
+ tags=["model", "ltx", "ltx2", "video"],
+ category="model",
+ version="1.0.0",
+ classification=Classification.Prototype,
+)
+class LTX2ModelLoaderInvocation(BaseInvocation):
+ """Loads an LTX-2 model, outputting its submodels.
+
+ LTX-2 is distributed as separate files, and this node assembles one generation from up to
+ three installed records: the 22B transformer (a single-file checkpoint, or a component folder
+ that happens to carry one), the component folder that supplies the video VAE, audio VAE,
+ vocoder and text connectors, and the Lightricks-tuned Gemma-4 text encoder.
+ """
+
+ model: ModelIdentifierField = InputField(
+ description=FieldDescriptions.ltx2_model,
+ input=Input.Direct,
+ ui_model_base=BaseModelType.LTX2,
+ ui_model_type=ModelType.Main,
+ title="Model",
+ )
+ component_source: Optional[ModelIdentifierField] = InputField(
+ default=None,
+ description="The LTX-2 component folder supplying the video VAE, audio VAE, vocoder and text "
+ "connectors. Required unless the Model field is itself a folder that carries them.",
+ input=Input.Direct,
+ ui_model_base=BaseModelType.LTX2,
+ ui_model_type=ModelType.Main,
+ ui_model_format=ModelFormat.Diffusers,
+ title="Components",
+ )
+ text_encoder_model: ModelIdentifierField = InputField(
+ description=FieldDescriptions.ltx2_text_encoder,
+ input=Input.Direct,
+ ui_model_base=BaseModelType.LTX2,
+ ui_model_type=ModelType.Gemma4Encoder,
+ title="Text Encoder",
+ )
+
+ def invoke(self, context: InvocationContext) -> LTX2ModelLoaderOutput:
+ transformer_config = self._require_main(context, self.model, "Model")
+
+ components = self.component_source or self.model
+ components_config = (
+ self._require_main(context, self.component_source, "Components")
+ if self.component_source is not None
+ else transformer_config
+ )
+ if not isinstance(components_config, Main_Diffusers_LTX2_Config):
+ raise ValueError(
+ f"'{components_config.name}' is a single-file transformer, so it carries none of the components "
+ "this node fans out. Select an installed LTX-2 component folder (e.g. 'LTX-2.5 Components') in "
+ "the Components field."
+ )
+ if isinstance(transformer_config, Main_Diffusers_LTX2_Config) and transformer_config.components_only:
+ raise ValueError(
+ f"'{transformer_config.name}' is a components-only LTX-2 install: it carries no transformer. "
+ "Select a single-file LTX-2 transformer (dev or distilled) in the Model field and keep this "
+ "folder in the Components field."
+ )
+
+ text_encoder_config = context.models.get_config(self._require_installed(context, self.text_encoder_model))
+ if (
+ text_encoder_config.base is not BaseModelType.LTX2
+ or text_encoder_config.type is not ModelType.Gemma4Encoder
+ ):
+ raise ValueError(
+ f"'{text_encoder_config.name}' is not an LTX-2 Gemma-4 text encoder (resolved to "
+ f"type={getattr(text_encoder_config.type, 'value', text_encoder_config.type)})."
+ )
+
+ # The variant tells the denoise node which schedule the checkpoint was trained for; a
+ # distilled transformer sampled on the dev schedule produces noise.
+ variant = getattr(transformer_config, "variant", None)
+ return LTX2ModelLoaderOutput(
+ transformer=LTX2TransformerField(
+ transformer=self.model.model_copy(update={"submodel_type": SubModelType.Transformer}),
+ variant=variant.value if isinstance(variant, LTX2VariantType) else None,
+ ),
+ text_encoder=LTX2TextEncoderField(
+ tokenizer=self.text_encoder_model.model_copy(update={"submodel_type": SubModelType.Tokenizer}),
+ text_encoder=self.text_encoder_model.model_copy(update={"submodel_type": SubModelType.TextEncoder}),
+ connectors=components.model_copy(update={"submodel_type": SubModelType.Connectors}),
+ ),
+ vae=VAEField(vae=components.model_copy(update={"submodel_type": SubModelType.VAE})),
+ audio_vae=VAEField(vae=components.model_copy(update={"submodel_type": SubModelType.AudioVAE})),
+ vocoder=LTX2VocoderField(vocoder=components.model_copy(update={"submodel_type": SubModelType.Vocoder})),
+ model=self.model,
+ component_source=self.component_source,
+ text_encoder_model=self.text_encoder_model,
+ )
+
+ @staticmethod
+ def _require_installed(context: InvocationContext, identifier: ModelIdentifierField) -> str:
+ if not context.models.exists(identifier.key):
+ raise ValueError(f"Unknown model: {identifier.key}")
+ return identifier.key
+
+ def _require_main(self, context: InvocationContext, identifier: ModelIdentifierField, field: str):
+ """Resolve a field's model config and refuse anything that is not an LTX-2 main model.
+
+ The pickers filter on these, but a hand-authored workflow or a client that ignores the hints
+ can still send anything, and the failure would otherwise surface minutes later inside a
+ loader.
+ """
+ config = context.models.get_config(self._require_installed(context, identifier))
+ if config.base is not BaseModelType.LTX2 or config.type is not ModelType.Main:
+ raise ValueError(
+ f"The {field} field needs an LTX-2 main model; '{config.name}' resolved to "
+ f"type={getattr(config.type, 'value', config.type)}, "
+ f"base={getattr(config.base, 'value', config.base)}."
+ )
+ return config
diff --git a/invokeai/app/invocations/model.py b/invokeai/app/invocations/model.py
index dd47f7de9a..2f1d5a1811 100644
--- a/invokeai/app/invocations/model.py
+++ b/invokeai/app/invocations/model.py
@@ -210,6 +210,35 @@ class MiniMaxH3TransformerField(BaseModel):
)
+class LTX2TextEncoderField(BaseModel):
+ """Field for the LTX-2 prompt conditioner: the Gemma-4 tower and the text connectors.
+
+ The connectors are a separate model, not a submodel of the encoder: they consume the stacked
+ per-layer hidden states and produce the two per-modality streams the transformer reads.
+ """
+
+ tokenizer: ModelIdentifierField = Field(description="Info to load tokenizer submodel")
+ text_encoder: ModelIdentifierField = Field(description="Info to load text_encoder submodel")
+ connectors: ModelIdentifierField = Field(description="Info to load the text connectors submodel")
+
+
+class LTX2TransformerField(BaseModel):
+ """Transformer field for LTX-2 models."""
+
+ transformer: ModelIdentifierField = Field(description="Info to load Transformer submodel")
+ variant: Optional[str] = Field(
+ default=None,
+ description="The loaded transformer's variant ('ltx2_dev' / 'ltx2_distilled'), stamped by the model "
+ "loader so the denoise node can pick the schedule the checkpoint was trained for.",
+ )
+
+
+class LTX2VocoderField(BaseModel):
+ """Vocoder field for LTX-2: mel spectrogram to 48 kHz stereo waveform."""
+
+ vocoder: ModelIdentifierField = Field(description="Info to load vocoder submodel")
+
+
class VAEField(BaseModel):
vae: ModelIdentifierField = Field(description="Info to load vae submodel")
seamless_axes: List[str] = Field(default_factory=list, description='Axes("x" and "y") to which apply seamless')
diff --git a/invokeai/app/invocations/text_encoder/ltx2_text_encoder.py b/invokeai/app/invocations/text_encoder/ltx2_text_encoder.py
new file mode 100644
index 0000000000..7546c86ed6
--- /dev/null
+++ b/invokeai/app/invocations/text_encoder/ltx2_text_encoder.py
@@ -0,0 +1,130 @@
+"""LTX-2 prompt encoding (Gemma-4 tower + text connectors)."""
+
+import torch
+
+from invokeai.app.invocations.baseinvocation import (
+ BaseInvocation,
+ BaseInvocationOutput,
+ Classification,
+ invocation,
+ invocation_output,
+)
+from invokeai.app.invocations.fields import (
+ FieldDescriptions,
+ Input,
+ InputField,
+ LTX2ConditioningField,
+ OutputField,
+ UIComponent,
+)
+from invokeai.app.invocations.model import LTX2TextEncoderField
+from invokeai.app.services.shared.invocation_context import InvocationContext
+from invokeai.backend.ltx2.constants import LTX2_DEFAULT_NEGATIVE_PROMPT, LTX2_MAX_SEQUENCE_LENGTH
+from invokeai.backend.ltx2.text_conditioning import (
+ apply_connectors,
+ encode_hidden_states,
+ estimate_connector_working_memory,
+ estimate_tower_working_memory,
+)
+from invokeai.backend.model_manager.load.model_cache.utils import get_effective_device
+from invokeai.backend.stable_diffusion.diffusion.conditioning_data import ConditioningFieldData
+
+
+@invocation_output("ltx2_text_encoder_output")
+class LTX2TextEncoderOutput(BaseInvocationOutput):
+ """The positive and (when classifier-free guidance will run) negative LTX-2 conditioning."""
+
+ conditioning: LTX2ConditioningField = OutputField(description=FieldDescriptions.cond)
+ negative_conditioning: LTX2ConditioningField | None = OutputField(
+ default=None, description="Conditioning for the unconditional guidance pass, if one was encoded."
+ )
+
+
+@invocation(
+ "ltx2_text_encoder",
+ title="Prompt - LTX-2",
+ tags=["prompt", "conditioning", "ltx", "ltx2", "video"],
+ category="conditioning",
+ version="1.0.0",
+ classification=Classification.Prototype,
+ idle_gpu_offloadable=True,
+)
+class LTX2TextEncoderInvocation(BaseInvocation):
+ """Encodes a prompt, and optionally a negative prompt, for LTX-2.
+
+ Both prompts go through the same two stages: the Lightricks-tuned Gemma-4 tower, whose hidden
+ states are taken from every layer rather than just the last, and the text connectors, which
+ project them into the separate streams the video and audio halves of the transformer read.
+
+ The negative prompt only reaches the model through classifier-free guidance, so it is skipped
+ entirely for a distilled checkpoint (which runs none) rather than paying a 12B encode for a
+ tensor nothing will read.
+ """
+
+ prompt: str = InputField(description="Text prompt for LTX-2.", ui_component=UIComponent.Textarea)
+ text_encoder: LTX2TextEncoderField = InputField(
+ title="Gemma-4 Encoder",
+ description=FieldDescriptions.ltx2_text_encoder,
+ input=Input.Connection,
+ )
+ negative_prompt: str = InputField(
+ default=LTX2_DEFAULT_NEGATIVE_PROMPT,
+ description="What to steer away from. Reaches the model only through classifier-free guidance.",
+ ui_component=UIComponent.Textarea,
+ )
+ encode_negative: bool = InputField(
+ default=True,
+ description="Whether to encode the negative prompt. Turn off for a distilled checkpoint, which "
+ "runs no unconditional pass.",
+ )
+ max_sequence_length: int = InputField(
+ default=LTX2_MAX_SEQUENCE_LENGTH,
+ gt=0,
+ le=LTX2_MAX_SEQUENCE_LENGTH,
+ description="Prompt tokens to keep. Every prompt is padded to this length, which is the length "
+ "the connectors' learned registers are defined against.",
+ )
+
+ @torch.no_grad()
+ def invoke(self, context: InvocationContext) -> LTX2TextEncoderOutput:
+ prompts = [self.prompt]
+ if self.encode_negative:
+ prompts.append(self.negative_prompt)
+
+ # The 12B tower and the 6 GB connectors run in two phases with the states parked in RAM in
+ # between, so only one of them is resident at a time. Loading the tower first also keeps the
+ # cache from evicting the small tokenizer record to make room for it (issue #7513).
+ text_encoder_info = context.models.load(self.text_encoder.text_encoder)
+ tokenizer_info = context.models.load(self.text_encoder.tokenizer)
+ # Read off the unlocked model, before the VRAM lock the reservation applies to.
+ tower_memory = estimate_tower_working_memory(text_encoder_info.model, self.max_sequence_length)
+ hidden_states: list[tuple[torch.Tensor, torch.Tensor]] = []
+ with (
+ tokenizer_info.model_on_device() as (_, tokenizer),
+ text_encoder_info.model_on_device(working_mem_bytes=tower_memory) as (_, text_encoder),
+ ):
+ device = get_effective_device(text_encoder)
+ context.util.signal_progress("Running the LTX-2 Gemma-4 text encoder")
+ for prompt in prompts:
+ states, mask = encode_hidden_states(
+ text_encoder,
+ tokenizer,
+ prompt,
+ max_sequence_length=self.max_sequence_length,
+ device=device,
+ )
+ hidden_states.append((states.cpu(), mask.cpu()))
+
+ connectors_info = context.models.load(self.text_encoder.connectors)
+ connector_memory = estimate_connector_working_memory(hidden_states[0][0])
+ with connectors_info.model_on_device(working_mem_bytes=connector_memory) as (_, connectors):
+ context.util.signal_progress("Running the LTX-2 text connectors")
+ names = [
+ context.conditioning.save(ConditioningFieldData(conditionings=[apply_connectors(connectors, *state)]))
+ for state in hidden_states
+ ]
+
+ return LTX2TextEncoderOutput(
+ conditioning=LTX2ConditioningField(conditioning_name=names[0]),
+ negative_conditioning=LTX2ConditioningField(conditioning_name=names[1]) if len(names) > 1 else None,
+ )
diff --git a/invokeai/app/invocations/vae/ltx2_latents_to_video.py b/invokeai/app/invocations/vae/ltx2_latents_to_video.py
new file mode 100644
index 0000000000..b1d599bd22
--- /dev/null
+++ b/invokeai/app/invocations/vae/ltx2_latents_to_video.py
@@ -0,0 +1,209 @@
+"""Decode LTX-2 video and audio latents and write an MP4 with an AAC soundtrack."""
+
+import tempfile
+from collections.abc import Iterator
+from pathlib import Path
+
+import numpy as np
+import torch
+
+from invokeai.app.invocations.baseinvocation import BaseInvocation, Classification, invocation
+from invokeai.app.invocations.fields import (
+ FieldDescriptions,
+ Input,
+ InputField,
+ LatentsField,
+ WithBoard,
+ WithMetadata,
+)
+from invokeai.app.invocations.model import LTX2VocoderField, VAEField
+from invokeai.app.invocations.primitives import VideoOutput
+from invokeai.app.invocations.vae.wan_latents_to_video import _write_video_frames
+from invokeai.app.services.session_processor.session_processor_common import CanceledException
+from invokeai.app.services.shared.invocation_context import InvocationContext
+from invokeai.app.util.video_encoding import make_mp4_writer, write_stereo_wav
+from invokeai.backend.ltx2.constants import LTX2_DEFAULT_FPS
+from invokeai.backend.ltx2.video_decoding import decode_audio_latents, decode_video_latents
+from invokeai.backend.util.devices import TorchDevice
+from invokeai.backend.util.vae_working_memory import (
+ estimate_audio_working_memory_ltx2,
+ estimate_vae_working_memory_ltx2,
+)
+
+LTX2_DEFAULT_TILE_SIZE = 512
+LTX2_DEFAULT_TEMPORAL_TILE = 16
+
+
+def _iter_decoded_frames(decoded: torch.Tensor) -> Iterator[np.ndarray]:
+ """Yield uint8 HWC frames from a [C, T, H, W] clip already in [0, 1]."""
+ for index in range(decoded.shape[1]):
+ frame = decoded[:, index].permute(1, 2, 0)
+ yield (255.0 * frame).round().clamp(0, 255).byte().numpy()
+
+
+@invocation(
+ "ltx2_latents_to_video",
+ title="Latents to Video - LTX-2",
+ tags=["latents", "video", "audio", "vae", "l2v", "ltx", "ltx2"],
+ category="latents",
+ version="1.0.0",
+ classification=Classification.Prototype,
+)
+class LTX2LatentsToVideoInvocation(BaseInvocation, WithMetadata, WithBoard):
+ """Decodes LTX-2 video and audio latents into an MP4 with an AAC stereo track."""
+
+ video_latents: LatentsField = InputField(description=FieldDescriptions.latents, input=Input.Connection)
+ audio_latents: LatentsField | None = InputField(
+ default=None,
+ description="Packed audio latents from the denoise node. Omit for a silent video.",
+ input=Input.Connection,
+ )
+ vae: VAEField = InputField(description=FieldDescriptions.vae, input=Input.Connection, title="Video VAE")
+ audio_vae: VAEField | None = InputField(
+ default=None, description=FieldDescriptions.ltx2_audio_vae, input=Input.Connection, title="Audio VAE"
+ )
+ vocoder: LTX2VocoderField | None = InputField(
+ default=None, description=FieldDescriptions.ltx2_vocoder, input=Input.Connection, title="Vocoder"
+ )
+ fps: float = InputField(
+ default=LTX2_DEFAULT_FPS, ge=1, le=120, description="Frames per second of the output video."
+ )
+ tile_size: int = InputField(
+ default=LTX2_DEFAULT_TILE_SIZE,
+ ge=64,
+ description="Spatial decode tile, in output pixels. Smaller tiles need less VRAM and take longer.",
+ )
+ temporal_tile: int = InputField(
+ default=LTX2_DEFAULT_TEMPORAL_TILE,
+ ge=8,
+ description="Temporal decode tile, in output frames. Smaller tiles need less VRAM and take longer.",
+ )
+
+ @torch.no_grad()
+ def invoke(self, context: InvocationContext) -> VideoOutput:
+ decoded = self._decode_video(context)
+ if context.util.is_canceled():
+ raise CanceledException
+
+ num_frames = decoded.shape[1]
+ height, width = decoded.shape[2:]
+ duration = num_frames / float(self.fps)
+
+ # The soundtrack is decoded and trimmed before the writer opens: the WAV has to exist, and
+ # match the video's duration, when the muxing writer is constructed.
+ wav_path = self._decode_audio_to_wav(context, duration) if self.audio_latents is not None else None
+
+ tmp = tempfile.NamedTemporaryFile(prefix="invokeai_ltx2_video_", suffix=".mp4", delete=False)
+ tmp.close()
+ tmp_path = Path(tmp.name)
+ try:
+ context.logger.info(
+ f"Encoding MP4: {num_frames} frames @ {self.fps} fps ({duration:.2f}s) at {width}x{height}"
+ + (" + AAC stereo" if wav_path is not None else "")
+ )
+ context.util.signal_progress(f"Encoding MP4 ({num_frames} frames @ {self.fps} fps)")
+ writer = make_mp4_writer(tmp_path, float(self.fps), audio_path=wav_path)
+ try:
+ _write_video_frames(writer, _iter_decoded_frames(decoded), context.util.is_canceled)
+ finally:
+ writer.close()
+ del decoded
+ TorchDevice.empty_cache()
+
+ video_dto = context.videos.save(
+ source_path=tmp_path,
+ width=int(width),
+ height=int(height),
+ duration=duration,
+ fps=float(self.fps),
+ )
+ context.logger.info(f"Saved video: {video_dto.video_name}")
+ return VideoOutput.build(video_dto)
+ finally:
+ tmp_path.unlink(missing_ok=True)
+ if wav_path is not None:
+ wav_path.unlink(missing_ok=True)
+
+ def _decode_video(self, context: InvocationContext) -> torch.Tensor:
+ latents = context.tensors.load(self.video_latents.latents_name)
+ if latents.ndim != 5:
+ raise ValueError(f"LTX-2 video latents must be 5D [B, C, T, H, W]; got {tuple(latents.shape)}.")
+
+ vae_info = context.models.load(self.vae.vae)
+ _, _, latent_frames, latent_height, latent_width = latents.shape
+ spatial = int(vae_info.model.spatial_compression_ratio)
+ temporal = int(vae_info.model.temporal_compression_ratio)
+ pixel_frames = (latent_frames - 1) * temporal + 1
+ pixel_height, pixel_width = latent_height * spatial, latent_width * spatial
+
+ estimated_working_memory = estimate_vae_working_memory_ltx2(
+ operation="decode",
+ vae=vae_info.model,
+ pixel_height=pixel_height,
+ pixel_width=pixel_width,
+ pixel_frames=pixel_frames,
+ tile_size=self.tile_size,
+ temporal_tile=self.temporal_tile,
+ )
+ with vae_info.model_on_device(working_mem_bytes=estimated_working_memory) as (_, vae):
+ context.logger.info(
+ f"Running LTX-2 VAE decode: {latent_frames} latent frames -> {pixel_frames} pixel frames "
+ f"at {pixel_width}x{pixel_height}"
+ )
+ context.util.signal_progress("Running the LTX-2 video VAE decode")
+ TorchDevice.empty_cache()
+ decoded = decode_video_latents(
+ vae,
+ latents,
+ tile_size=self.tile_size,
+ temporal_tile=self.temporal_tile,
+ is_canceled=context.util.is_canceled,
+ )
+ TorchDevice.empty_cache()
+ return decoded
+
+ def _decode_audio_to_wav(self, context: InvocationContext, video_duration_s: float) -> Path:
+ assert self.audio_latents is not None
+ if self.audio_vae is None or self.vocoder is None:
+ raise ValueError(
+ "Audio latents are wired but the Audio VAE and Vocoder are not. Connect both from the "
+ "LTX-2 model loader, or disconnect the audio latents for a silent video."
+ )
+
+ latents = context.tensors.load(self.audio_latents.latents_name)
+ if latents.ndim != 3:
+ raise ValueError(f"LTX-2 audio latents must be packed [1, L, 128]; got {tuple(latents.shape)}.")
+
+ # None of the three audio stages is tiled, so the whole soundtrack is decoded in one pass
+ # and the reservation has to cover its length. Both models are locked for it: the vocoder
+ # consumes the audio VAE's output directly.
+ audio_memory = estimate_audio_working_memory_ltx2(int(latents.shape[1]))
+ audio_vae_info = context.models.load(self.audio_vae.vae)
+ vocoder_info = context.models.load(self.vocoder.vocoder)
+ with (
+ audio_vae_info.model_on_device(working_mem_bytes=audio_memory) as (_, audio_vae),
+ vocoder_info.model_on_device(working_mem_bytes=audio_memory) as (_, vocoder),
+ ):
+ context.util.signal_progress("Running the LTX-2 audio VAE decode")
+ waveform = decode_audio_latents(audio_vae, vocoder, latents, is_canceled=context.util.is_canceled)
+ sample_rate = int(vocoder.config.output_sampling_rate)
+
+ if waveform.shape[0] != 2:
+ raise ValueError(f"The LTX-2 vocoder produced {waveform.shape[0]} channels; expected stereo.")
+
+ # Trim (or zero-pad: the 25-latents/s grid does not divide every duration exactly) to the
+ # video's length, so the mux needs no -shortest and cannot leave a trailing silence.
+ max_samples = int(round(video_duration_s * sample_rate))
+ waveform = waveform[:, :max_samples]
+ if waveform.shape[1] < max_samples:
+ waveform = torch.nn.functional.pad(waveform, (0, max_samples - waveform.shape[1]))
+
+ wav = tempfile.NamedTemporaryFile(prefix="invokeai_ltx2_audio_", suffix=".wav", delete=False)
+ wav.close()
+ wav_path = Path(wav.name)
+ try:
+ write_stereo_wav(wav_path, waveform.numpy(), sample_rate)
+ except Exception:
+ wav_path.unlink(missing_ok=True)
+ raise
+ return wav_path
diff --git a/invokeai/backend/architectures/defs/ltx_2.py b/invokeai/backend/architectures/defs/ltx_2.py
index c2702d7100..078ba2d21a 100644
--- a/invokeai/backend/architectures/defs/ltx_2.py
+++ b/invokeai/backend/architectures/defs/ltx_2.py
@@ -15,13 +15,14 @@ register(
BaseModelType.LTX2,
LatentSpaceFacet(LTX2_128),
ConditioningFacet(LTX2ConditioningInfo),
- # Dev samples a guided ~40-step flow schedule (video CFG 3.0); Distilled runs a fixed 8-sigma
- # schedule with guidance off, so cfg_scale 1.0 means "none". 1280x704 is a 32-multiple 16:9
- # canvas that a 121-frame clip fits on one 48 GB card at.
+ # Dev samples a guided 30-step shifted schedule at video CFG 3.0; Distilled runs a fixed
+ # 8-sigma schedule with guidance off, so cfg_scale 1.0 means "none". Both are the released
+ # pipeline's values for this generation. 1248x704 is the 32-multiple 16:9 canvas a 121-frame
+ # clip fits on one 48 GB card at.
DefaultSettingsFacet(
{
- LTX2VariantType.Distilled: MainModelDefaultSettings(steps=8, cfg_scale=1.0, width=1280, height=704),
- None: MainModelDefaultSettings(steps=40, cfg_scale=3.0, width=1280, height=704),
+ LTX2VariantType.Distilled: MainModelDefaultSettings(steps=8, cfg_scale=1.0, width=1248, height=704),
+ None: MainModelDefaultSettings(steps=30, cfg_scale=3.0, width=1248, height=704),
}
),
# Video only in this version: text-to-video and first-frame image-to-video, with synchronized
@@ -34,8 +35,9 @@ register(
# The VAE's 32x spatial compression at patch size 1.
dimension_grid=32,
guidance_label="CFG",
- # No guidance range yet: `ltx2_denoise` (and the slider that reaches it) lands with the
- # generation nodes, which is where the range is declared and checked.
+ # ltx2_denoise.cfg_scale is ge=1.0 with no ceiling; the audio, STG and modality scales are
+ # separate fields with their own controls, not this slider.
+ guidance_min=1.0,
),
VariantFacet({ModelType.Main: LTX2VariantType}),
)
diff --git a/invokeai/backend/ltx2/component_configs.py b/invokeai/backend/ltx2/component_configs.py
index 6c45a6c662..1440e26d05 100644
--- a/invokeai/backend/ltx2/component_configs.py
+++ b/invokeai/backend/ltx2/component_configs.py
@@ -63,8 +63,11 @@ LTX2_5_TRANSFORMER_CONFIG: Final[dict[str, Any]] = {
"rope_type": "split",
# 2.3+ project the caption in the connectors, not in the transformer.
"use_prompt_embeddings": False,
- # No weights are involved: the STG pass installs the perturbed processor at runtime.
- "perturbed_attn": False,
+ # Selects the self-attention processor that can skip a block for spatio-temporal guidance.
+ # It carries no weights of its own and is arithmetically identical to the plain processor
+ # when no perturbation is asked for, so it is built in unconditionally rather than swapped
+ # onto a shared cached model for the one pass per step that uses it.
+ "perturbed_attn": True,
# 2.5 dropped the video feed-forward biases but kept the audio ones.
"ff_bias": False,
"audio_ff_bias": True,
diff --git a/invokeai/backend/ltx2/constants.py b/invokeai/backend/ltx2/constants.py
new file mode 100644
index 0000000000..ba877e8396
--- /dev/null
+++ b/invokeai/backend/ltx2/constants.py
@@ -0,0 +1,114 @@
+"""The released LTX-2.5 generation recipe's constants.
+
+Everything here is the released pipeline's value rather than a house default, from two upstream
+sources that agree on the geometry:
+
+- ``ltx-pipelines`` (Lightricks/LTX-2) ``utils/constants.py`` owns the per-generation
+ ``PipelineParams``. A 2.5 checkpoint resolves to the 2.4 row, which inherits 2.3 and moves only
+ the image CRF -- that is what fixes 30 steps, STG on block 28, the guidance scales and CRF 18
+ for this architecture. Reading 2.0's defaults (40 steps, block 29, CRF 33) instead is the
+ mistake the version table exists to prevent.
+- ``diffusers.pipelines.ltx2.utils`` owns the distilled sigma lists, re-exported below rather
+ than copied.
+
+The two upstream copies of the default negative prompt are *not* identical: diffusers pins an
+older commit whose text lacks the five leading dataset tags the current release opens with. The
+release's text is the one reproduced here.
+"""
+
+from typing import Final
+
+from diffusers.pipelines.ltx2.utils import DISTILLED_SIGMA_VALUES
+
+# --- Video geometry ------------------------------------------------------------------------------
+
+LTX2_LATENT_CHANNELS: Final = 128
+LTX2_SPATIAL_COMPRESSION: Final = 32
+LTX2_TEMPORAL_COMPRESSION: Final = 8
+
+# The transformer patches the latent grid at 1x1x1, so a canvas only has to be a multiple of the
+# VAE's spatial compression. ``packing`` asserts these against the loaded transformer's config.
+LTX2_PATCH_SIZE: Final = 1
+LTX2_PATCH_SIZE_T: Final = 1
+LTX2_CANVAS_MULTIPLE: Final = LTX2_SPATIAL_COMPRESSION
+
+# The causal VAE encodes the first frame on its own and every further group of 8, so a clip is
+# 8k + 1 pixel frames.
+LTX2_FRAME_MODULUS: Final = LTX2_TEMPORAL_COMPRESSION
+
+LTX2_DEFAULT_FPS: Final = 24.0
+LTX2_DEFAULT_NUM_FRAMES: Final = 121
+
+# --- Audio geometry ------------------------------------------------------------------------------
+
+# The audio stream is a log-mel spectrogram at 16 kHz with a 160-sample hop (100 frames/s),
+# compressed 4x in time and 4x over the 64 mel bins by the audio VAE: 25 latents/s of 8 channels
+# over 16 mel bins, packed to one 128-wide row per latent.
+LTX2_AUDIO_SAMPLING_RATE: Final = 16000
+LTX2_AUDIO_HOP_LENGTH: Final = 160
+LTX2_AUDIO_VAE_COMPRESSION: Final = 4
+LTX2_AUDIO_MEL_BINS: Final = 64
+LTX2_AUDIO_LATENT_MEL_BINS: Final = LTX2_AUDIO_MEL_BINS // LTX2_AUDIO_VAE_COMPRESSION
+LTX2_AUDIO_LATENT_CHANNELS: Final = 8
+LTX2_AUDIO_LATENTS_PER_SECOND: Final = LTX2_AUDIO_SAMPLING_RATE / LTX2_AUDIO_HOP_LENGTH / LTX2_AUDIO_VAE_COMPRESSION
+
+# --- Sampling ------------------------------------------------------------------------------------
+
+# Resolution-aware shift anchors: ``mu`` interpolates between ``base_shift`` at ``base_seq_len``
+# packed video tokens and ``max_shift`` at ``max_seq_len``, and shifts the sigma schedule toward
+# high noise for longer sequences.
+LTX2_BASE_SEQ_LEN: Final = 1024
+LTX2_MAX_SEQ_LEN: Final = 4096
+LTX2_BASE_SHIFT: Final = 0.95
+LTX2_MAX_SHIFT: Final = 2.05
+
+# The guidance-distilled checkpoint's fixed schedule. The terminal 0 every schedule ends on is
+# appended by ``sampling.build_sigmas``, so this is the 8 sampled levels only.
+LTX2_DISTILLED_SIGMAS: Final[tuple[float, ...]] = tuple(DISTILLED_SIGMA_VALUES)
+LTX2_DISTILLED_STEPS: Final = len(LTX2_DISTILLED_SIGMAS)
+
+# LTX-2.5 samples the distilled schedule ancestrally (an SDE Euler step with full noise
+# re-injection); the dev checkpoint's shifted schedule is sampled deterministically.
+LTX2_ANCESTRAL_ETA: Final = 1.0
+LTX2_ANCESTRAL_S_NOISE: Final = 1.0
+
+# The ancestral loop's noise generator is seeded from the request seed plus this offset. Without
+# it the loop's first draw would repeat the initial latent noise exactly: both are a standard
+# normal at the same shape from a freshly seeded generator.
+LTX2_ANCESTRAL_NOISE_SEED_OFFSET: Final = 10000
+
+LTX2_DEV_STEPS: Final = 30
+
+# --- Guidance ------------------------------------------------------------------------------------
+
+# Spatio-temporal guidance perturbs the self-attention of these blocks (2.3 moved them from 29).
+LTX2_STG_BLOCKS: Final[tuple[int, ...]] = (28,)
+
+LTX2_CFG_SCALE: Final = 3.0
+LTX2_AUDIO_CFG_SCALE: Final = 7.0
+LTX2_STG_SCALE: Final = 1.0
+LTX2_MODALITY_SCALE: Final = 3.0
+LTX2_GUIDANCE_RESCALE: Final = 0.7
+
+# --- Conditioning --------------------------------------------------------------------------------
+
+# A conditioning image is re-compressed as one H.264 intra frame at this CRF so it carries the
+# compression artefacts the model was trained against. 2.5 moved it from 33.
+LTX2_IMAGE_CRF: Final = 18
+
+LTX2_MAX_SEQUENCE_LENGTH: Final = 1024
+
+LTX2_DEFAULT_NEGATIVE_PROMPT: Final = (
+ "has_subtitles, has_blurbox, transition from black, transition to black, speech_ending_short, "
+ "blurry, out of focus, overexposed, underexposed, low contrast, washed out colors, excessive noise, "
+ "grainy texture, poor lighting, flickering, motion blur, distorted proportions, unnatural skin tones, "
+ "deformed facial features, asymmetrical face, missing facial features, extra limbs, disfigured hands, "
+ "wrong hand count, artifacts around text, inconsistent perspective, camera shake, incorrect depth of "
+ "field, background too sharp, background clutter, distracting reflections, harsh shadows, inconsistent "
+ "lighting direction, color banding, cartoonish rendering, 3D CGI look, unrealistic materials, uncanny "
+ "valley effect, incorrect ethnicity, wrong gender, exaggerated expressions, wrong gaze direction, "
+ "mismatched lip sync, silent or muted audio, distorted voice, robotic voice, echo, background noise, "
+ "off-sync audio, incorrect dialogue, added dialogue, repetitive speech, jittery movement, awkward "
+ "pauses, incorrect timing, unnatural transitions, inconsistent framing, tilted camera, flat lighting, "
+ "inconsistent tone, cinematic oversaturation, stylized filters, or AI artifacts."
+)
diff --git a/invokeai/backend/ltx2/denoise.py b/invokeai/backend/ltx2/denoise.py
new file mode 100644
index 0000000000..da308a74ad
--- /dev/null
+++ b/invokeai/backend/ltx2/denoise.py
@@ -0,0 +1,323 @@
+"""The LTX-2 denoising loop.
+
+One transformer forward produces both modalities' velocity predictions, so a guidance pass is a
+pass for video *and* audio; the two are combined separately afterwards (see
+:mod:`invokeai.backend.ltx2.guidance`) and stepped down the same sigma schedule.
+
+Conditioning -- a first frame today, keyframes and a frozen modality later -- is carried by one
+mechanism: a per-token mask over the packed video sequence. A conditioned token's timestep is
+forced to 0 for every forward, and its value is restored from the clean latents after every step,
+so the anchor neither drifts nor gets renoised by the ancestral sampler.
+"""
+
+from collections.abc import Callable
+from dataclasses import dataclass
+
+import torch
+from diffusers.utils.torch_utils import randn_tensor
+
+from invokeai.backend.ltx2.constants import (
+ LTX2_ANCESTRAL_ETA,
+ LTX2_ANCESTRAL_NOISE_SEED_OFFSET,
+ LTX2_ANCESTRAL_S_NOISE,
+ LTX2_AUDIO_LATENT_CHANNELS,
+ LTX2_AUDIO_LATENT_MEL_BINS,
+ LTX2_LATENT_CHANNELS,
+)
+from invokeai.backend.ltx2.guidance import (
+ PASS_MODALITY,
+ PASS_STG,
+ PASS_UNCOND,
+ LTX2Guidance,
+ LTX2GuidancePass,
+)
+from invokeai.backend.ltx2.packing import (
+ audio_latent_count,
+ pack_audio_latents,
+ pack_video_latents,
+ validate_canvas,
+ validate_num_frames,
+ video_latent_shape,
+ video_sequence_length,
+)
+from invokeai.backend.ltx2.sampling import build_sigmas, flow_step
+from invokeai.backend.stable_diffusion.diffusion.conditioning_data import LTX2ConditioningInfo
+from invokeai.backend.util.cancel_hooks import cancel_before_forward
+
+
+@dataclass
+class LTX2DenoiseState:
+ """Everything a denoise run needs that does not come from the models, built on the CPU."""
+
+ video_latents: torch.Tensor
+ """Packed, normalized, noised video latents. Shape: (1, video tokens, 128)."""
+
+ audio_latents: torch.Tensor
+ """Packed, normalized, noised audio latents. Shape: (1, audio latents, 128)."""
+
+ sigmas: torch.Tensor
+ """The noise levels to sample, terminal 0 included. Shape: (steps + 1,)."""
+
+ latent_frames: int
+ latent_height: int
+ latent_width: int
+ audio_latents_count: int
+
+ conditioning_mask: torch.Tensor | None
+ """How strongly each video token is held to its conditioning, 0 (free) to 1 (clean).
+
+ Shape: (1, video tokens). A token's timestep is scaled by ``1 - mask`` and its x0 prediction is
+ blended toward the clean value by ``mask``, so a fractional mask is a partial anchor rather
+ than a switch.
+ """
+
+ clean_video_latents: torch.Tensor | None
+ """The conditioned tokens' clean values, at full packed shape (0 elsewhere)."""
+
+ eta: float
+ noise_seed: int
+
+ @property
+ def num_steps(self) -> int:
+ return self.sigmas.numel() - 1
+
+
+def build_denoise_state(
+ *,
+ num_frames: int,
+ height: int,
+ width: int,
+ fps: float,
+ seed: int,
+ distilled: bool,
+ num_steps: int,
+ image_latents: torch.Tensor | None = None,
+ conditioning_strength: float = 1.0,
+) -> LTX2DenoiseState:
+ """Noise, schedule and conditioning mask for one run.
+
+ ``image_latents`` is a clean, normalized ``(1, 128, 1, h, w)`` encode of the first frame; when
+ given it becomes latent frame 0, held to ``conditioning_strength``. Noise is drawn on the CPU
+ (video first, then audio) so a request is reproducible across devices.
+ """
+ validate_canvas(height, width)
+ validate_num_frames(num_frames)
+
+ latent_frames, latent_height, latent_width = video_latent_shape(num_frames, height, width)
+ audio_count = audio_latent_count(num_frames, fps)
+ if audio_count < 1:
+ raise ValueError(
+ f"A {num_frames}-frame clip at {fps} fps is shorter than one audio latent "
+ f"({1 / 25:.2f} s); generate a longer clip."
+ )
+
+ generator = torch.Generator(device="cpu").manual_seed(seed)
+ video_noise = randn_tensor(
+ (1, LTX2_LATENT_CHANNELS, latent_frames, latent_height, latent_width),
+ generator=generator,
+ device=torch.device("cpu"),
+ dtype=torch.float32,
+ )
+ audio_noise = randn_tensor(
+ (1, LTX2_AUDIO_LATENT_CHANNELS, audio_count, LTX2_AUDIO_LATENT_MEL_BINS),
+ generator=generator,
+ device=torch.device("cpu"),
+ dtype=torch.float32,
+ )
+
+ video_latents = pack_video_latents(video_noise)
+ conditioning_mask: torch.Tensor | None = None
+ clean_video_latents: torch.Tensor | None = None
+
+ if image_latents is not None:
+ expected = (1, LTX2_LATENT_CHANNELS, 1, latent_height, latent_width)
+ if tuple(image_latents.shape) != expected:
+ raise ValueError(
+ f"The image conditioning was encoded at {tuple(image_latents.shape)} but this "
+ f"generation needs {expected}. Re-run the conditioning node at {width}x{height}."
+ )
+ clean = torch.zeros_like(video_noise)
+ clean[:, :, 0] = image_latents.to(device="cpu", dtype=torch.float32)[:, :, 0]
+ if not 0.0 < conditioning_strength <= 1.0:
+ raise ValueError(f"Image conditioning strength must be in (0, 1]; got {conditioning_strength}.")
+ mask = torch.zeros((1, 1, latent_frames, latent_height, latent_width), dtype=torch.float32)
+ mask[:, :, 0] = conditioning_strength
+
+ clean_video_latents = pack_video_latents(clean)
+ conditioning_mask = pack_video_latents(mask).squeeze(-1)
+ video_latents = torch.lerp(video_latents, clean_video_latents, conditioning_mask.unsqueeze(-1))
+
+ return LTX2DenoiseState(
+ video_latents=video_latents,
+ audio_latents=pack_audio_latents(audio_noise),
+ sigmas=build_sigmas(
+ distilled=distilled,
+ num_steps=num_steps,
+ video_seq_len=video_sequence_length(num_frames, height, width),
+ ),
+ latent_frames=latent_frames,
+ latent_height=latent_height,
+ latent_width=latent_width,
+ audio_latents_count=audio_count,
+ conditioning_mask=conditioning_mask,
+ clean_video_latents=clean_video_latents,
+ # LTX-2.5 samples its distilled schedule ancestrally and its shifted schedule
+ # deterministically; eta is what selects between the two branches of one step.
+ eta=LTX2_ANCESTRAL_ETA if distilled else 0.0,
+ noise_seed=seed + LTX2_ANCESTRAL_NOISE_SEED_OFFSET,
+ )
+
+
+def denoise(
+ *,
+ transformer: torch.nn.Module,
+ state: LTX2DenoiseState,
+ positive: LTX2ConditioningInfo,
+ negative: LTX2ConditioningInfo | None,
+ guidance: LTX2Guidance,
+ fps: float,
+ dtype: torch.dtype,
+ device: torch.device,
+ step_callback: Callable[[int, int, torch.Tensor], None] | None = None,
+ is_canceled: Callable[[], bool] | None = None,
+) -> tuple[torch.Tensor, torch.Tensor]:
+ """Run the schedule and return the final packed, normalized ``(video, audio)`` latents."""
+ passes = guidance.passes
+ if PASS_UNCOND in passes and negative is None:
+ raise ValueError("Classifier-free guidance needs negative conditioning, but none was provided.")
+
+ video_latents = state.video_latents.to(device=device, dtype=torch.float32)
+ audio_latents = state.audio_latents.to(device=device, dtype=torch.float32)
+ sigmas = state.sigmas.to(device=device)
+
+ conditioning_mask = clean_video_latents = None
+ if state.conditioning_mask is not None:
+ assert state.clean_video_latents is not None
+ conditioning_mask = state.conditioning_mask.to(device=device, dtype=torch.float32)
+ clean_video_latents = state.clean_video_latents.to(device=device, dtype=torch.float32)
+
+ # Three of the four passes read the *same* conditioning and differ only in their model flags,
+ # so the device copies are made once per distinct conditioning rather than once per pass.
+ positive_encoders = _encoder_inputs(positive, device=device, dtype=dtype)
+ negative_encoders = (
+ _encoder_inputs(negative, device=device, dtype=dtype) if PASS_UNCOND in passes and negative else None
+ )
+ encoders = {name: negative_encoders if name == PASS_UNCOND else positive_encoders for name in passes}
+
+ # The RoPE coordinates are the audio/video alignment: both are expressed in seconds, so the
+ # video grid has to be built at the clip's real frame rate.
+ video_coords = transformer.rope.prepare_video_coords(
+ 1, state.latent_frames, state.latent_height, state.latent_width, device, fps=fps
+ )
+ audio_coords = transformer.audio_rope.prepare_audio_coords(1, state.audio_latents_count, device)
+
+ timestep_scale = float(transformer.config.timestep_scale_multiplier)
+ stg_blocks = list(guidance.stg_blocks)
+ noise_generator = torch.Generator(device="cpu").manual_seed(state.noise_seed)
+ total_steps = state.num_steps
+
+ with cancel_before_forward(transformer.transformer_blocks, is_canceled, device):
+ for index in range(total_steps):
+ sigma = sigmas[index]
+ timestep = (sigma * timestep_scale).expand(1)
+ # A conditioned token is presented as fully denoised; `sigma`/`audio_sigma` stay the
+ # plain step value, which is what the prompt-AdaLN and the cross-modality gates read.
+ video_timestep = timestep if conditioning_mask is None else timestep.unsqueeze(-1) * (1 - conditioning_mask)
+
+ video_input = video_latents.to(dtype)
+ audio_input = audio_latents.to(dtype)
+ video_predictions: dict[LTX2GuidancePass, torch.Tensor] = {}
+ audio_predictions: dict[LTX2GuidancePass, torch.Tensor] = {}
+ for name in passes:
+ video_velocity, audio_velocity = transformer(
+ hidden_states=video_input,
+ audio_hidden_states=audio_input,
+ timestep=video_timestep,
+ audio_timestep=timestep,
+ sigma=timestep,
+ num_frames=state.latent_frames,
+ height=state.latent_height,
+ width=state.latent_width,
+ fps=fps,
+ audio_num_frames=state.audio_latents_count,
+ video_coords=video_coords,
+ audio_coords=audio_coords,
+ isolate_modalities=name == PASS_MODALITY,
+ spatio_temporal_guidance_blocks=stg_blocks if name == PASS_STG else None,
+ use_cross_timestep=True,
+ return_dict=False,
+ **encoders[name],
+ )
+ # x0 = x - sigma * v, the space the guidance deltas and the step are written in,
+ # at the step's own scalar sigma. A partially held token was shown a smaller
+ # timestep than that, so its x0 is an approximation -- the same one the reference
+ # condition path makes (`LTX2ConditionLoopAfterDenoiser` converts with the
+ # scheduler's scalar sigma too), and the mask blend below corrects it.
+ video_predictions[name] = video_latents - video_velocity.float() * sigma
+ audio_predictions[name] = audio_latents - audio_velocity.float() * sigma
+
+ video_x0 = guidance.combine_video(video_predictions)
+ audio_x0 = guidance.combine_audio(audio_predictions)
+ if conditioning_mask is not None:
+ video_x0 = torch.lerp(video_x0, clean_video_latents, conditioning_mask.unsqueeze(-1))
+
+ if step_callback is not None:
+ step_callback(index + 1, total_steps, video_x0)
+
+ video_noise, audio_noise = _step_noise(state, video_latents, audio_latents, noise_generator, device)
+ step = {"eta": state.eta, "s_noise": LTX2_ANCESTRAL_S_NOISE}
+ video_latents = flow_step(video_latents, video_x0, sigmas, index, noise=video_noise, **step)
+ audio_latents = flow_step(audio_latents, audio_x0, sigmas, index, noise=audio_noise, **step)
+ if conditioning_mask is not None and state.eta > 0:
+ # The ancestral branch renoises every token, anchors included, so they are put back.
+ # The deterministic branch needs no restore: a step is a convex combination of the
+ # token's own value and its (already blended) prediction, which for a fully clean
+ # anchor is the anchor, and for a partial one is the interpolation the mask asks for.
+ video_latents = torch.lerp(video_latents, clean_video_latents, conditioning_mask.unsqueeze(-1))
+
+ return video_latents, audio_latents
+
+
+def _encoder_inputs(
+ conditioning: LTX2ConditioningInfo, *, device: torch.device, dtype: torch.dtype
+) -> dict[str, torch.Tensor]:
+ return {
+ "encoder_hidden_states": conditioning.video_embeds.to(device=device, dtype=dtype),
+ "audio_encoder_hidden_states": conditioning.audio_embeds.to(device=device, dtype=dtype),
+ "encoder_attention_mask": conditioning.attention_mask.to(device=device),
+ "audio_encoder_attention_mask": conditioning.attention_mask.to(device=device),
+ }
+
+
+def _step_noise(
+ state: LTX2DenoiseState,
+ video_latents: torch.Tensor,
+ audio_latents: torch.Tensor,
+ generator: torch.Generator,
+ device: torch.device,
+) -> tuple[torch.Tensor | None, torch.Tensor | None]:
+ """The ancestral step's re-injected noise, drawn video-first from one CPU generator."""
+ if state.eta <= 0:
+ return None, None
+ video_noise = randn_tensor(
+ video_latents.shape, generator=generator, device=torch.device("cpu"), dtype=torch.float32
+ )
+ audio_noise = randn_tensor(
+ audio_latents.shape, generator=generator, device=torch.device("cpu"), dtype=torch.float32
+ )
+ return video_noise.to(device), audio_noise.to(device)
+
+
+def preview_latent_frame(packed: torch.Tensor, state: LTX2DenoiseState) -> torch.Tensor:
+ """The middle latent frame of a packed video tensor, as ``(1, 128, h, w)`` for the previewer.
+
+ Sliced out of the packed rows rather than unpacked whole: the rows are frame-major, so one
+ frame is one contiguous span, and unpacking the clip to keep a sixteenth of it would copy the
+ whole thing once per step.
+ """
+ rows_per_frame = state.latent_height * state.latent_width
+ start = (state.latent_frames // 2) * rows_per_frame
+ frame = packed[:, start : start + rows_per_frame]
+
+ return frame.transpose(1, 2).reshape(packed.shape[0], -1, state.latent_height, state.latent_width)
diff --git a/invokeai/backend/ltx2/guidance.py b/invokeai/backend/ltx2/guidance.py
new file mode 100644
index 0000000000..cecb404952
--- /dev/null
+++ b/invokeai/backend/ltx2/guidance.py
@@ -0,0 +1,94 @@
+"""LTX-2 guidance: which transformer passes a step runs, and how their predictions combine.
+
+LTX-2 steers with three terms, each an extra forward of the same step:
+
+- **CFG** against the negative prompt,
+- **STG** (spatio-temporal guidance) against a pass whose self-attention is perturbed -- skipped
+ outright -- in a small set of blocks,
+- **modality isolation** against a pass with the audio<->video cross-attention disabled.
+
+The terms are summed as deltas from the conditional prediction, in x0 space, and optionally
+rescaled toward the conditional prediction's standard deviation. Video and audio are combined
+separately: they share every scale except CFG, which the release sets far higher for audio.
+
+The passes are the *union* over the two modalities, because one forward produces both predictions.
+A modality that does not want a term simply has a scale that makes its delta zero, so the combine
+needs no per-modality pass bookkeeping -- only the planning does, so that a pass no modality wants
+is never paid for.
+"""
+
+import math
+from collections.abc import Mapping
+from dataclasses import dataclass
+from typing import Final, Literal
+
+import torch
+
+from invokeai.backend.ltx2.constants import (
+ LTX2_AUDIO_CFG_SCALE,
+ LTX2_CFG_SCALE,
+ LTX2_GUIDANCE_RESCALE,
+ LTX2_MODALITY_SCALE,
+ LTX2_STG_BLOCKS,
+ LTX2_STG_SCALE,
+)
+
+LTX2GuidancePass = Literal["cond", "uncond", "stg", "modality"]
+
+PASS_COND: Final[LTX2GuidancePass] = "cond"
+PASS_UNCOND: Final[LTX2GuidancePass] = "uncond"
+PASS_STG: Final[LTX2GuidancePass] = "stg"
+PASS_MODALITY: Final[LTX2GuidancePass] = "modality"
+
+
+@dataclass(frozen=True)
+class LTX2Guidance:
+ """The guidance scales of one denoise run, and the passes they imply."""
+
+ cfg_scale: float = LTX2_CFG_SCALE
+ audio_cfg_scale: float = LTX2_AUDIO_CFG_SCALE
+ stg_scale: float = LTX2_STG_SCALE
+ modality_scale: float = LTX2_MODALITY_SCALE
+ rescale: float = LTX2_GUIDANCE_RESCALE
+ stg_blocks: tuple[int, ...] = LTX2_STG_BLOCKS
+
+ @property
+ def passes(self) -> tuple[LTX2GuidancePass, ...]:
+ """The forwards one step runs, conditional first."""
+ passes: list[LTX2GuidancePass] = [PASS_COND]
+ if not (math.isclose(self.cfg_scale, 1.0) and math.isclose(self.audio_cfg_scale, 1.0)):
+ passes.append(PASS_UNCOND)
+ if not math.isclose(self.stg_scale, 0.0) and self.stg_blocks:
+ passes.append(PASS_STG)
+ if not math.isclose(self.modality_scale, 1.0):
+ passes.append(PASS_MODALITY)
+ return tuple(passes)
+
+ @property
+ def needs_negative_conditioning(self) -> bool:
+ return PASS_UNCOND in self.passes
+
+ def combine_video(self, predictions: Mapping[LTX2GuidancePass, torch.Tensor]) -> torch.Tensor:
+ return self._combine(predictions, self.cfg_scale)
+
+ def combine_audio(self, predictions: Mapping[LTX2GuidancePass, torch.Tensor]) -> torch.Tensor:
+ return self._combine(predictions, self.audio_cfg_scale)
+
+ def _combine(self, predictions: Mapping[LTX2GuidancePass, torch.Tensor], cfg_scale: float) -> torch.Tensor:
+ cond = predictions[PASS_COND].float()
+ pred = cond
+ if PASS_UNCOND in predictions:
+ pred = pred + (cfg_scale - 1.0) * (cond - predictions[PASS_UNCOND].float())
+ if PASS_STG in predictions:
+ pred = pred + self.stg_scale * (cond - predictions[PASS_STG].float())
+ if PASS_MODALITY in predictions:
+ pred = pred + (self.modality_scale - 1.0) * (cond - predictions[PASS_MODALITY].float())
+
+ if self.rescale != 0.0 and pred is not cond:
+ # Pull the guided prediction's overall scale back toward the conditional one's, which
+ # summed deltas inflate. The reference implementations spell this two ways -- a whole
+ # tensor's standard deviation upstream, per batch item in diffusers' `rescale_noise_cfg`
+ # -- and this runs one video per request, where they are the same number.
+ factor = self.rescale * (cond.std() / pred.std()) + (1.0 - self.rescale)
+ pred = pred * factor
+ return pred
diff --git a/invokeai/backend/ltx2/image_conditioning.py b/invokeai/backend/ltx2/image_conditioning.py
new file mode 100644
index 0000000000..6df1947fb8
--- /dev/null
+++ b/invokeai/backend/ltx2/image_conditioning.py
@@ -0,0 +1,100 @@
+"""Preparing an image as LTX-2 video conditioning.
+
+Three steps, in the order the released pipeline applies them: re-compress the source image as a
+single H.264 intra frame, fit it to the generation canvas, and VAE-encode it as one latent frame.
+
+The re-compression is not an optimization. The model was trained on frames that had been through a
+video codec, and a pristine PNG first frame is out of that distribution: the generated clip drifts
+away from it over the first few frames. The CRF is the model generation's (18 for 2.5), and the
+round trip goes through the same ffmpeg binary the gallery's MP4 writer uses, since PyAV -- what
+the reference implementations use -- is not a dependency here.
+"""
+
+import subprocess
+from typing import Any
+
+import numpy as np
+import torch
+from PIL import Image, ImageOps
+
+from invokeai.backend.ltx2.packing import normalize_video_latents
+
+
+def fit_to_canvas(image: Image.Image, height: int, width: int) -> Image.Image:
+ """Orient, convert and cover-crop an image onto the generation canvas.
+
+ Cover-cropping (rather than stretching to fit) is what upstream's image conditioner does, and
+ what the rest of this codebase does with a keyframe: an anamorphic first frame would otherwise
+ teach the model the wrong geometry for the whole clip.
+ """
+ oriented = ImageOps.exif_transpose(image).convert("RGB")
+ return ImageOps.fit(oriented, (width, height), method=Image.Resampling.LANCZOS)
+
+
+def recompress_h264(image: Image.Image, crf: int) -> Image.Image:
+ """Encode the image as one H.264 frame at ``crf`` and decode it back. ``crf`` 0 is a no-op."""
+ if crf <= 0:
+ return image
+
+ rgb = np.asarray(image.convert("RGB"), dtype=np.uint8)
+ # H.264 4:2:0 needs even dimensions; the reference crops rather than pads.
+ height, width = rgb.shape[0] // 2 * 2, rgb.shape[1] // 2 * 2
+ if height < 2 or width < 2:
+ raise ValueError(f"An image conditioning must be at least 2x2 pixels to re-compress; got {image.size}.")
+ rgb = np.ascontiguousarray(rgb[:height, :width])
+
+ import imageio_ffmpeg
+
+ ffmpeg = imageio_ffmpeg.get_ffmpeg_exe()
+ encoded = _run_ffmpeg(
+ [
+ ffmpeg, "-hide_banner", "-loglevel", "error", "-nostdin",
+ "-f", "rawvideo", "-pix_fmt", "rgb24", "-s", f"{width}x{height}", "-r", "1", "-i", "pipe:0",
+ "-an", "-c:v", "libx264", "-crf", str(crf), "-preset", "veryfast", "-pix_fmt", "yuv420p",
+ "-frames:v", "1", "-f", "mp4", "-movflags", "frag_keyframe+empty_moov", "pipe:1",
+ ],
+ rgb.tobytes(),
+ "encode",
+ ) # fmt: skip
+ decoded = _run_ffmpeg(
+ [
+ ffmpeg, "-hide_banner", "-loglevel", "error", "-nostdin",
+ "-f", "mp4", "-i", "pipe:0", "-frames:v", "1", "-f", "rawvideo", "-pix_fmt", "rgb24", "pipe:1",
+ ],
+ encoded,
+ "decode",
+ ) # fmt: skip
+
+ expected = height * width * 3
+ if len(decoded) != expected:
+ raise RuntimeError(
+ f"H.264 re-compression returned {len(decoded)} bytes for a {width}x{height} frame, expected {expected}."
+ )
+ return Image.fromarray(np.frombuffer(decoded, dtype=np.uint8).reshape(height, width, 3))
+
+
+def _run_ffmpeg(args: list[str], payload: bytes, stage: str) -> bytes:
+ result = subprocess.run(args, input=payload, capture_output=True, check=False)
+ if result.returncode != 0 or not result.stdout:
+ detail = result.stderr.decode("utf-8", "replace").strip() or f"exit code {result.returncode}"
+ raise RuntimeError(f"ffmpeg failed to {stage} the image conditioning: {detail}")
+ return result.stdout
+
+
+def encode_image_latents(vae: Any, image: Image.Image, *, device: torch.device) -> torch.Tensor:
+ """VAE-encode a canvas-sized image as one normalized latent frame ``(1, 128, 1, h, w)`` (CPU).
+
+ The posterior's mode is taken rather than a sample, so the conditioning does not depend on the
+ request seed.
+ """
+ rgb = np.asarray(image.convert("RGB"), dtype=np.uint8)
+ pixels = torch.from_numpy(rgb).float().div_(127.5).sub_(1.0)
+ pixels = pixels.permute(2, 0, 1).unsqueeze(0).unsqueeze(2) # [1, 3, 1, H, W]
+
+ vae_dtype = next(iter(vae.parameters())).dtype
+ with torch.inference_mode():
+ posterior = vae.encode(pixels.to(device=device, dtype=vae_dtype), return_dict=False)[0]
+ latents = posterior.mode().float()
+ latents = normalize_video_latents(latents, vae.latents_mean, vae.latents_std, float(vae.config.scaling_factor))
+ return latents.cpu()
diff --git a/invokeai/backend/ltx2/packing.py b/invokeai/backend/ltx2/packing.py
new file mode 100644
index 0000000000..743729c82a
--- /dev/null
+++ b/invokeai/backend/ltx2/packing.py
@@ -0,0 +1,175 @@
+"""LTX-2 latent geometry: canvas rules, packing and the VAE's latent normalization.
+
+The transformer runs over two flat token sequences, one per modality. Video latents
+``[B, 128, F, H, W]`` become ``[B, F*H*W, 128]`` and audio latents ``[B, 8, L, 16]`` become
+``[B, L, 128]``; both packings are the reference implementation's, which at LTX-2.5's 1x1x1
+transformer patch size reduce to a reshape and a permute. :func:`require_patch_geometry` refuses a
+checkpoint that patches differently rather than letting a wrong packing reach the model.
+
+Packed latents are also *normalized*: the VAE's per-channel statistics are what the transformer was
+trained on, and the VAE decodes the raw scale, so every hand-off between them passes through one of
+the four functions here.
+"""
+
+import math
+
+import torch
+
+from invokeai.backend.ltx2.constants import (
+ LTX2_AUDIO_LATENT_MEL_BINS,
+ LTX2_AUDIO_LATENTS_PER_SECOND,
+ LTX2_CANVAS_MULTIPLE,
+ LTX2_FRAME_MODULUS,
+ LTX2_PATCH_SIZE,
+ LTX2_PATCH_SIZE_T,
+ LTX2_SPATIAL_COMPRESSION,
+ LTX2_TEMPORAL_COMPRESSION,
+)
+
+
+def require_patch_geometry(transformer_config) -> None:
+ """Refuse a transformer whose patch sizes this module's packing does not implement.
+
+ Everything here assumes LTX-2.5's 1x1x1 patching. A checkpoint that patched 2x2 would pack to a
+ different sequence length *and* a different row width, which the model would accept as a shape
+ mismatch deep inside the first projection rather than as a named error here.
+ """
+ patch_size = int(getattr(transformer_config, "patch_size", LTX2_PATCH_SIZE))
+ patch_size_t = int(getattr(transformer_config, "patch_size_t", LTX2_PATCH_SIZE_T))
+ if (patch_size, patch_size_t) != (LTX2_PATCH_SIZE, LTX2_PATCH_SIZE_T):
+ raise ValueError(
+ f"This LTX-2 transformer patches the latent grid at {patch_size_t}x{patch_size}x{patch_size}; "
+ f"only {LTX2_PATCH_SIZE_T}x{LTX2_PATCH_SIZE}x{LTX2_PATCH_SIZE} (LTX-2.5) is supported."
+ )
+
+
+def validate_canvas(height: int, width: int) -> None:
+ if height <= 0 or width <= 0:
+ raise ValueError(f"LTX-2 canvas must be positive; got {width}x{height}.")
+ if height % LTX2_CANVAS_MULTIPLE or width % LTX2_CANVAS_MULTIPLE:
+ raise ValueError(
+ f"LTX-2 width and height must be multiples of {LTX2_CANVAS_MULTIPLE} (the VAE's spatial "
+ f"compression); got {width}x{height}."
+ )
+
+
+def validate_num_frames(num_frames: int) -> None:
+ if num_frames < 1 or (num_frames - 1) % LTX2_FRAME_MODULUS:
+ nearest = max(1, round((num_frames - 1) / LTX2_FRAME_MODULUS)) * LTX2_FRAME_MODULUS + 1
+ raise ValueError(
+ f"LTX-2 needs {LTX2_FRAME_MODULUS}n + 1 frames (the causal VAE encodes the first frame "
+ f"alone, then groups of {LTX2_FRAME_MODULUS}); got {num_frames}. The nearest valid count "
+ f"is {nearest}."
+ )
+
+
+def snap_num_frames(num_frames: int) -> int:
+ """The nearest valid frame count at or above 1, rounding a tie up.
+
+ Half-up rather than Python's half-to-even: a 5-frame request is equidistant from 1 and 9, and
+ collapsing it to a single still frame is not what the request meant.
+ """
+ groups = max(0, math.floor((num_frames - 1) / LTX2_FRAME_MODULUS + 0.5))
+ return groups * LTX2_FRAME_MODULUS + 1
+
+
+def latent_frame_count(num_frames: int) -> int:
+ return (num_frames - 1) // LTX2_TEMPORAL_COMPRESSION + 1
+
+
+def video_latent_shape(num_frames: int, height: int, width: int) -> tuple[int, int, int]:
+ """``(latent frames, latent height, latent width)`` for a validated pixel canvas."""
+ return (
+ latent_frame_count(num_frames),
+ height // LTX2_SPATIAL_COMPRESSION,
+ width // LTX2_SPATIAL_COMPRESSION,
+ )
+
+
+def video_sequence_length(num_frames: int, height: int, width: int) -> int:
+ latent_frames, latent_height, latent_width = video_latent_shape(num_frames, height, width)
+ return latent_frames * latent_height * latent_width
+
+
+def audio_latent_count(num_frames: int, fps: float) -> int:
+ """The audio latent count covering a clip's duration, on the audio VAE's 25-latents/s grid."""
+ if fps <= 0:
+ raise ValueError(f"LTX-2 frame rate must be positive; got {fps}.")
+ return round(num_frames / fps * LTX2_AUDIO_LATENTS_PER_SECOND)
+
+
+def pack_video_latents(latents: torch.Tensor) -> torch.Tensor:
+ """``[B, C, F, H, W]`` -> ``[B, F*H*W, C]`` in frame-major, then row-major, order."""
+ batch_size, _, num_frames, height, width = latents.shape
+ latents = latents.reshape(batch_size, -1, num_frames, 1, height, 1, width, 1)
+ return latents.permute(0, 2, 4, 6, 1, 3, 5, 7).flatten(4, 7).flatten(1, 3)
+
+
+def unpack_video_latents(latents: torch.Tensor, num_frames: int, height: int, width: int) -> torch.Tensor:
+ """``[B, F*H*W, C]`` -> ``[B, C, F, H, W]``, the inverse of :func:`pack_video_latents`."""
+ batch_size = latents.size(0)
+ latents = latents.reshape(batch_size, num_frames, height, width, -1, 1, 1, 1)
+ return latents.permute(0, 4, 1, 5, 2, 6, 3, 7).flatten(6, 7).flatten(4, 5).flatten(2, 3)
+
+
+def pack_audio_latents(latents: torch.Tensor) -> torch.Tensor:
+ """``[B, C, L, M]`` -> ``[B, L, C*M]``: one row per audio latent, mel bins inside channels."""
+ return latents.transpose(1, 2).flatten(2, 3)
+
+
+def unpack_audio_latents(latents: torch.Tensor, mel_bins: int = LTX2_AUDIO_LATENT_MEL_BINS) -> torch.Tensor:
+ """``[B, L, C*M]`` -> ``[B, C, L, M]``, the inverse of :func:`pack_audio_latents`."""
+ return latents.unflatten(2, (-1, mel_bins)).transpose(1, 2)
+
+
+def normalize_video_latents(
+ latents: torch.Tensor, latents_mean: torch.Tensor, latents_std: torch.Tensor, scaling_factor: float = 1.0
+) -> torch.Tensor:
+ """Raw VAE latents ``[B, C, F, H, W]`` -> the transformer's per-channel normalized scale."""
+ mean = latents_mean.view(1, -1, 1, 1, 1).to(latents.device, latents.dtype)
+ std = latents_std.view(1, -1, 1, 1, 1).to(latents.device, latents.dtype)
+ return (latents - mean) * scaling_factor / std
+
+
+def denormalize_video_latents(
+ latents: torch.Tensor, latents_mean: torch.Tensor, latents_std: torch.Tensor, scaling_factor: float = 1.0
+) -> torch.Tensor:
+ mean = latents_mean.view(1, -1, 1, 1, 1).to(latents.device, latents.dtype)
+ std = latents_std.view(1, -1, 1, 1, 1).to(latents.device, latents.dtype)
+ return latents * std / scaling_factor + mean
+
+
+def denormalize_audio_latents(
+ latents: torch.Tensor, latents_mean: torch.Tensor, latents_std: torch.Tensor
+) -> torch.Tensor:
+ """Normalized *packed* audio latents ``[B, L, 128]`` -> the audio VAE's own scale.
+
+ Unlike the video statistics, the audio VAE's are per packed row element -- the released file
+ stores 128 of them, one per (channel, mel bin) pair -- so audio latents are denormalized before
+ being unpacked, and would be packed before being normalized.
+ """
+ return latents * latents_std.to(latents.device, latents.dtype) + latents_mean.to(latents.device, latents.dtype)
+
+
+def resolve_canvas(source_width: float, source_height: float, short_edge: int) -> tuple[int, int]:
+ """``(height, width)`` for a source aspect ratio with its short edge pinned to ``short_edge``.
+
+ Both axes are rounded to the canvas multiple, half to even so a ratio exactly between two grid
+ points does not systematically grow. Only the ratio of the inputs matters.
+ """
+ if source_width <= 0 or source_height <= 0:
+ raise ValueError(f"Source dimensions must be positive; got {source_width}x{source_height}.")
+ if short_edge <= 0 or short_edge % LTX2_CANVAS_MULTIPLE:
+ raise ValueError(f"Short edge must be a positive multiple of {LTX2_CANVAS_MULTIPLE}; got {short_edge}.")
+
+ aspect = source_width / source_height
+ if aspect >= 1.0:
+ height, width = float(short_edge), short_edge * aspect
+ else:
+ height, width = short_edge / aspect, float(short_edge)
+ return _snap_axis(height), _snap_axis(width)
+
+
+def _snap_axis(value: float) -> int:
+ # round() is half-to-even, which is the behaviour the frontend's resolver mirrors.
+ return max(LTX2_CANVAS_MULTIPLE, round(value / LTX2_CANVAS_MULTIPLE) * LTX2_CANVAS_MULTIPLE)
diff --git a/invokeai/backend/ltx2/sampling.py b/invokeai/backend/ltx2/sampling.py
new file mode 100644
index 0000000000..15f9ab7486
--- /dev/null
+++ b/invokeai/backend/ltx2/sampling.py
@@ -0,0 +1,121 @@
+"""LTX-2 flow-matching schedule and step.
+
+Two schedules, one step. The dev checkpoint samples a resolution-shifted linear schedule
+deterministically; the guidance-distilled checkpoint samples eight fixed noise levels ancestrally.
+Both are stepped by :func:`flow_step`, which is the rectified-flow ancestral Euler step of
+``ltx_core.components.diffusion_steps.EulerAncestralDiffusionStep`` and reduces exactly to the
+deterministic Euler step at ``eta=0``.
+
+The step is written in x0 space (the space the guidance combine works in) rather than in velocity
+space. The two are the same update: a velocity prediction is ``v = (x - x0) / sigma``, and the
+flow-match Euler step ``x + (sigma_next - sigma) * v`` expands to
+``(sigma_next / sigma) * x + (1 - sigma_next / sigma) * x0`` -- the deterministic branch below.
+Converting back and forth around the guidance combine, as the reference pipelines do, would only
+add two divisions by a sigma that is already the step's own ratio.
+"""
+
+import math
+
+import torch
+
+from invokeai.backend.ltx2.constants import (
+ LTX2_BASE_SEQ_LEN,
+ LTX2_BASE_SHIFT,
+ LTX2_DISTILLED_SIGMAS,
+ LTX2_MAX_SEQ_LEN,
+ LTX2_MAX_SHIFT,
+)
+
+# The last sampled noise level every shifted schedule is stretched onto. Not cosmetic: at the
+# max-shift anchor the raw schedule's final sigma is 0.21, and without the stretch the run would
+# stop a fifth of the way from clean. Both upstream implementations apply it --
+# ``LTX2Scheduler(stretch=True, terminal=0.1)`` in ltx-core, and ``shift_terminal: 0.1`` in the
+# released diffusers scheduler config, which
+# ``FlowMatchEulerDiscreteScheduler.stretch_shift_to_terminal`` reads.
+LTX2_SHIFT_TERMINAL = 0.1
+
+
+def calculate_shift(video_seq_len: int) -> float:
+ """The schedule's ``mu``, interpolated from the token count and held at the anchors outside them.
+
+ The clamp is the whole point. The line is fitted between 1024 and 4096 tokens, and every canvas
+ this architecture offers is past its top: a 1248x704x121 clip is 13728 tokens, where the
+ unclamped line gives mu 5.5 and the resulting schedule spends 29 of 30 steps above sigma 0.54
+ before covering 0.54 -> 0.1 in one. Held at 2.05, the schedule is the released pipeline's
+ exactly -- ltx-core's ``LTX2Scheduler`` is called with no latent, so it always takes the
+ max-shift anchor, and the diffusers port's own default operating point is inside the range.
+ """
+ slope = (LTX2_MAX_SHIFT - LTX2_BASE_SHIFT) / (LTX2_MAX_SEQ_LEN - LTX2_BASE_SEQ_LEN)
+ shift = video_seq_len * slope + LTX2_BASE_SHIFT - slope * LTX2_BASE_SEQ_LEN
+
+ return min(max(shift, LTX2_BASE_SHIFT), LTX2_MAX_SHIFT)
+
+
+def build_sigmas(*, distilled: bool, num_steps: int, video_seq_len: int) -> torch.Tensor:
+ """The noise levels to sample, terminal 0 included, as ``[num_steps + 1]`` float32 on the CPU.
+
+ ``num_steps`` is ignored for the distilled schedule, whose eight levels are a property of the
+ checkpoint's distillation rather than a sampling budget; the caller reports that to the user.
+ """
+ if distilled:
+ return torch.tensor((*LTX2_DISTILLED_SIGMAS, 0.0), dtype=torch.float32)
+
+ if num_steps < 1:
+ raise ValueError(f"LTX-2 needs at least one step; got {num_steps}.")
+
+ # Built in float64 and narrowed once at the end. The shift divides mu by itself at sigma 1,
+ # which in float32 is the exact mu over a rounded one -- the schedule would not start at 1.
+ sigmas = torch.linspace(1.0, 1.0 / num_steps, num_steps, dtype=torch.float64)
+ mu = math.exp(calculate_shift(video_seq_len))
+ sigmas = mu / (mu + (1.0 / sigmas - 1.0))
+
+ # A single step is already the terminal one, and its `1 - sigma` is 0: there is nothing to
+ # stretch onto and the scale factor would be a division by zero.
+ if num_steps > 1:
+ one_minus = 1.0 - sigmas
+ sigmas = 1.0 - one_minus * (1.0 - LTX2_SHIFT_TERMINAL) / one_minus[-1]
+
+ return torch.cat([sigmas, torch.zeros(1, dtype=torch.float64)]).to(torch.float32)
+
+
+def flow_step(
+ sample: torch.Tensor,
+ denoised: torch.Tensor,
+ sigmas: torch.Tensor,
+ index: int,
+ *,
+ eta: float = 0.0,
+ s_noise: float = 1.0,
+ noise: torch.Tensor | None = None,
+) -> torch.Tensor:
+ """Advance one sampling step, from ``sigmas[index]`` to ``sigmas[index + 1]``.
+
+ ``denoised`` is the x0 prediction. With ``eta > 0`` the step advances deterministically to an
+ intermediate ``sigma_down`` and renoises back up, rescaling the signal component by
+ ``alpha_next / alpha_down`` (with ``alpha = 1 - sigma``, the rectified-flow parameterization)
+ so the transition stays variance preserving. ``eta = 0`` is the plain Euler step and needs no
+ noise. The terminal level returns the prediction itself.
+ """
+ sigma = sigmas[index].to(torch.float32)
+ sigma_next = sigmas[index + 1].to(torch.float32)
+ x = sample.to(torch.float32)
+ x0 = denoised.to(torch.float32)
+
+ if sigma_next == 0:
+ return x0
+
+ down_ratio = 1.0 + (sigma_next / sigma - 1.0) * eta
+ sigma_down = sigma_next * down_ratio
+
+ ratio = sigma_down / sigma
+ x_next = ratio * x + (1.0 - ratio) * x0
+
+ if eta > 0:
+ if noise is None:
+ raise ValueError("An ancestral LTX-2 step (eta > 0) needs a noise tensor.")
+ alpha_next = 1.0 - sigma_next
+ alpha_down = 1.0 - sigma_down
+ renoise = (sigma_next**2 - sigma_down**2 * alpha_next**2 / alpha_down**2).clamp(min=0) ** 0.5
+ x_next = (alpha_next / alpha_down) * x_next + noise.to(torch.float32) * s_noise * renoise
+
+ return x_next
diff --git a/invokeai/backend/ltx2/text_conditioning.py b/invokeai/backend/ltx2/text_conditioning.py
new file mode 100644
index 0000000000..66c5928c24
--- /dev/null
+++ b/invokeai/backend/ltx2/text_conditioning.py
@@ -0,0 +1,102 @@
+"""LTX-2 prompt conditioning: the Gemma-4 tower, then the text connectors.
+
+LTX-2 does not condition on a text encoder's last hidden state. It stacks the hidden states of
+*every* Gemma layer (48 plus the embedding output) into one 188160-wide per-token feature, and a
+separate connector model -- a per-token RMS norm, a per-modality projection and two small
+transformers with learnable registers -- turns that into the two streams the transformer's prompt
+cross-attention reads.
+
+The two stages are split across two functions because they are two models: the caller runs the
+12B tower under its own lock, releases it, and only then locks the connectors, so the largest
+prompt encode holds one of them on the device at a time.
+"""
+
+import torch
+
+from invokeai.backend.stable_diffusion.diffusion.conditioning_data import LTX2ConditioningInfo
+
+# Fixed costs of each stage's own activations, beside the per-layer states both of them carry.
+# Measured on a W7900 (gfx1100, released int8 Gemma-4 and bf16 connectors) at 1024 tokens, as peak
+# *reserved* minus the model: the tower needs 1.92 GiB against 0.72 GiB of states, the connectors
+# 1.74 GiB against 0.36 GiB. The multipliers below count the copies each stage holds at once -- the
+# tower keeps every layer's output and then the stacked tensor, the connectors normalize, scale and
+# project the stack per modality -- and the bases cover the rest, with 16-26% margin.
+_TOWER_STATE_COPIES = 2
+_TOWER_BASE_BYTES = 1536 * 2**20
+_CONNECTOR_STATE_COPIES = 4
+_CONNECTOR_BASE_BYTES = 768 * 2**20
+
+
+def estimate_tower_working_memory(text_encoder, max_sequence_length: int) -> int:
+ """Estimate the working memory for one Gemma-4 prompt encode.
+
+ Unlike the encoders every other architecture here runs, this one keeps *every* layer's hidden
+ state and then stacks them: at 48 layers, 3840 wide and 1024 tokens that is 368 MiB twice over,
+ which the cache would otherwise pack VRAM straight through.
+ """
+ config = getattr(text_encoder, "config", None)
+ layers = int(getattr(config, "num_hidden_layers", 48)) + 1
+ hidden = int(getattr(config, "hidden_size", 3840))
+ dtype = getattr(text_encoder, "dtype", torch.bfloat16)
+
+ return _TOWER_BASE_BYTES + _TOWER_STATE_COPIES * layers * max_sequence_length * hidden * dtype.itemsize
+
+
+def estimate_connector_working_memory(hidden_states: torch.Tensor) -> int:
+ """Estimate the working memory to project one prompt's stacked states into the two streams."""
+ return _CONNECTOR_BASE_BYTES + _CONNECTOR_STATE_COPIES * hidden_states.numel() * hidden_states.element_size()
+
+
+def encode_hidden_states(
+ text_encoder,
+ tokenizer,
+ prompt: str,
+ *,
+ max_sequence_length: int,
+ device: torch.device,
+) -> tuple[torch.Tensor, torch.Tensor]:
+ """Tokenize and run the Gemma tower; returns the packed per-layer states and the token mask.
+
+ The states are ``(1, max_sequence_length, hidden * (layers + 1))`` and the mask
+ ``(1, max_sequence_length)``. Every prompt is padded to the full length -- that is the shape the
+ connectors' registers are defined against -- so a short prompt costs the same as a long one.
+ """
+ # Gemma is trained with left padding, and the released pipelines set this on the tokenizer
+ # rather than per call. Both attributes are set to the same values on every call, so the shared
+ # cached tokenizer is left in the state any other caller would also put it in.
+ tokenizer.padding_side = "left"
+ if tokenizer.pad_token is None:
+ tokenizer.pad_token = tokenizer.eos_token
+
+ inputs = tokenizer(
+ [prompt.strip()],
+ padding="max_length",
+ max_length=max_sequence_length,
+ truncation=True,
+ add_special_tokens=True,
+ return_tensors="pt",
+ )
+ attention_mask = inputs.attention_mask.to(device)
+ outputs = text_encoder(
+ input_ids=inputs.input_ids.to(device),
+ attention_mask=attention_mask,
+ output_hidden_states=True,
+ )
+ return torch.stack(outputs.hidden_states, dim=-1).flatten(2, 3), attention_mask
+
+
+def apply_connectors(connectors, hidden_states: torch.Tensor, attention_mask: torch.Tensor) -> LTX2ConditioningInfo:
+ """Project the packed per-layer states into the video and audio prompt streams."""
+ device = next(connectors.parameters()).device
+ dtype = next(connectors.parameters()).dtype
+ video_embeds, audio_embeds, mask = connectors(
+ hidden_states.to(device=device, dtype=dtype),
+ attention_mask.to(device),
+ )
+ return LTX2ConditioningInfo(
+ video_embeds=video_embeds.detach().cpu(),
+ audio_embeds=audio_embeds.detach().cpu(),
+ attention_mask=mask.detach().cpu(),
+ )
diff --git a/invokeai/backend/ltx2/video_decoding.py b/invokeai/backend/ltx2/video_decoding.py
new file mode 100644
index 0000000000..04dbd05e6f
--- /dev/null
+++ b/invokeai/backend/ltx2/video_decoding.py
@@ -0,0 +1,163 @@
+"""Turning LTX-2 latents back into pixels and a waveform.
+
+The video VAE decodes 32x spatially and 8x temporally, so a full clip's activations do not fit on
+any card at generation resolutions: both halves of the decode are tiled, and the tiling state --
+which lives on the shared cached VAE instance, not on the call -- is restored afterwards.
+
+The audio path is three stages: the audio VAE decodes latents to a log-mel spectrogram, the vocoder
+turns that into a 16 kHz stereo waveform, and its bandwidth extender resynthesizes it at 48 kHz.
+"""
+
+from collections.abc import Callable, Iterator
+from contextlib import contextmanager
+
+import torch
+
+from invokeai.app.services.session_processor.session_processor_common import CanceledException
+from invokeai.backend.ltx2.packing import denormalize_audio_latents, denormalize_video_latents, unpack_audio_latents
+from invokeai.backend.model_manager.load.model_cache.utils import get_effective_device
+from invokeai.backend.util.cancel_hooks import cancel_before_forward
+
+# Attributes of the diffusers LTX-2 video VAE that carry tiling state. `enable_tiling` sets six of
+# them; the framewise flags it does not touch are what actually select the temporal tiling, and
+# `disable_tiling` clears neither. All of them are snapshotted and put back.
+_TILING_ATTRS = (
+ "use_tiling",
+ "use_framewise_encoding",
+ "use_framewise_decoding",
+ "tile_sample_min_height",
+ "tile_sample_min_width",
+ "tile_sample_min_num_frames",
+ "tile_sample_stride_height",
+ "tile_sample_stride_width",
+ "tile_sample_stride_num_frames",
+)
+
+# Fraction of a tile that the next one starts after, so a caller chooses a tile size without also
+# having to choose a stride that lands on the latent grid. 0.875 is the VAE's own spatial default
+# (512 minimum / 448 stride). On the temporal axis the grid is 8 pixel frames, so the ratio floors:
+# at the default 16-frame tile the stride becomes 8, i.e. every pixel frame is decoded about twice.
+# That is the geometry the working-memory estimate is fitted to, and a larger temporal tile trades
+# that redundant work for activation memory (measured: 3.85 GiB at 16 frames, 5.57 GiB at 32).
+_TILE_STRIDE_RATIO = 0.875
+
+
+def _raise_if_canceled(is_canceled: Callable[[], bool] | None) -> None:
+ if is_canceled is not None and is_canceled():
+ raise CanceledException
+
+
+@contextmanager
+def scoped_ltx2_tiling(vae, *, tile_size: int, temporal_tile: int) -> Iterator[None]:
+ """Tile this VAE spatially and temporally for the duration of the block, then restore it.
+
+ Sizes are in output pixels and pixel frames, and are snapped down onto the VAE's compression
+ grid: a tile that is not a whole number of latents decodes a band the blend cannot line up.
+ """
+ spatial = max(vae.spatial_compression_ratio, tile_size - tile_size % vae.spatial_compression_ratio)
+ frames = max(vae.temporal_compression_ratio, temporal_tile - temporal_tile % vae.temporal_compression_ratio)
+ spatial_stride = max(
+ vae.spatial_compression_ratio,
+ int(spatial * _TILE_STRIDE_RATIO) // vae.spatial_compression_ratio * vae.spatial_compression_ratio,
+ )
+ frame_stride = max(
+ vae.temporal_compression_ratio,
+ int(frames * _TILE_STRIDE_RATIO) // vae.temporal_compression_ratio * vae.temporal_compression_ratio,
+ )
+
+ original = {name: getattr(vae, name) for name in _TILING_ATTRS if hasattr(vae, name)}
+ try:
+ vae.enable_tiling(
+ tile_sample_min_height=spatial,
+ tile_sample_min_width=spatial,
+ tile_sample_min_num_frames=frames,
+ tile_sample_stride_height=spatial_stride,
+ tile_sample_stride_width=spatial_stride,
+ tile_sample_stride_num_frames=frame_stride,
+ )
+ vae.use_framewise_encoding = True
+ vae.use_framewise_decoding = True
+ yield
+ finally:
+ for name, value in original.items():
+ setattr(vae, name, value)
+
+
+def decode_video_latents(
+ vae,
+ latents: torch.Tensor,
+ *,
+ tile_size: int,
+ temporal_tile: int,
+ is_canceled: Callable[[], bool] | None = None,
+) -> torch.Tensor:
+ """Normalized 5D video latents -> a ``[3, frames, height, width]`` clip in [0, 1] on the CPU."""
+ if latents.ndim != 5 or latents.shape[0] != 1:
+ raise ValueError(f"LTX-2 video decode expects one 5D clip [1, C, F, H, W]; got {tuple(latents.shape)}.")
+ if latents.shape[1] != vae.config.latent_channels:
+ raise ValueError(
+ f"Latent channel mismatch: these latents have {latents.shape[1]} channels but the selected "
+ f"VAE expects {vae.config.latent_channels}."
+ )
+
+ device = get_effective_device(vae)
+ vae_dtype = next(iter(vae.parameters())).dtype
+ latents = latents.to(device=device, dtype=vae_dtype)
+
+ with scoped_ltx2_tiling(vae, tile_size=tile_size, temporal_tile=temporal_tile):
+ # One decoder forward per spatial tile of every temporal tile, so a cancel lands within one
+ # tile rather than at the end of a clip-long decode.
+ with torch.inference_mode(), cancel_before_forward([vae.decoder], is_canceled, device):
+ latents = denormalize_video_latents(
+ latents, vae.latents_mean, vae.latents_std, float(vae.config.scaling_factor)
+ )
+ # `timestep_conditioning` is off on 2.5, so the decoder takes no timestep and the
+ # released pipeline's decode-noise branch does not apply.
+ decoded = vae.decode(latents, None, return_dict=False)[0]
+ del latents
+
+ # Off-device BEFORE widening: the decoder returns bf16, and converting first would allocate a
+ # float32 copy of the whole clip on the card beside it (2.5 GiB at 1248x704x241) and then send
+ # twice as many bytes over the bus.
+ return (decoded[0].cpu().float() / 2 + 0.5).clamp_(0, 1)
+
+
+def decode_audio_latents(
+ audio_vae,
+ vocoder,
+ latents: torch.Tensor,
+ *,
+ is_canceled: Callable[[], bool] | None = None,
+) -> torch.Tensor:
+ """Normalized *packed* audio latents ``[1, L, 128]`` -> a ``[2, samples]`` waveform on the CPU.
+
+ The waveform is at the vocoder's own output rate; read it from ``vocoder.config``.
+ """
+ if latents.ndim != 3 or latents.shape[0] != 1:
+ raise ValueError(f"LTX-2 audio decode expects packed latents [1, L, 128]; got {tuple(latents.shape)}.")
+
+ device = get_effective_device(audio_vae)
+ vae_dtype = next(iter(audio_vae.parameters())).dtype
+ latents = latents.to(device=device, dtype=torch.float32)
+
+ # Each of the three stages is a single forward over the whole soundtrack, so a pre-hook on any
+ # one of them polls once and never again. Polling between them is all this path can offer, and
+ # it is what bounds a cancel to one stage rather than to the whole decode.
+ _raise_if_canceled(is_canceled)
+ with torch.inference_mode():
+ latents = denormalize_audio_latents(latents, audio_vae.latents_mean, audio_vae.latents_std)
+ mel = audio_vae.decode(unpack_audio_latents(latents).to(vae_dtype), return_dict=False)[0]
+ del latents
+
+ _raise_if_canceled(is_canceled)
+ vocoder_device = get_effective_device(vocoder)
+ vocoder_dtype = next(iter(vocoder.parameters())).dtype
+ with torch.inference_mode():
+ waveform = vocoder(mel.to(device=vocoder_device, dtype=vocoder_dtype))
+ del mel
+
+ if waveform.ndim != 3 or waveform.shape[0] != 1:
+ raise ValueError(f"The LTX-2 vocoder returned {tuple(waveform.shape)}; expected [1, channels, samples].")
+ return waveform[0].float().cpu()
diff --git a/invokeai/backend/util/vae_working_memory.py b/invokeai/backend/util/vae_working_memory.py
index e2e2dd4442..8ae953733b 100644
--- a/invokeai/backend/util/vae_working_memory.py
+++ b/invokeai/backend/util/vae_working_memory.py
@@ -21,6 +21,15 @@ from invokeai.backend.util.devices import TorchDevice
_CLASSIC_VAE_MID_BLOCK_HEADS = 1
_CLASSIC_VAE_MID_BLOCK_HEAD_DIM = 512
+# Fixed cost of the LTX-2 VAE's own buffers, and the marginal cost of a tile pixel-element.
+# See `estimate_vae_working_memory_ltx2` for the measurements these are fitted to.
+_LTX2_VAE_BASE_BYTES = 512 * 2**20
+_LTX2_AUDIO_BASE_BYTES = 128 * 2**20
+_LTX2_AUDIO_BYTES_PER_LATENT = 6.5 * 2**20
+_LTX2_VAE_DECODE_BYTES_PER_TILE_ELEMENT = 466
+_LTX2_DECODE_CLIP_COPIES = 3
+_LTX2_VAE_ENCODE_BYTES_PER_TILE_ELEMENT = 700
+
_WAN_VAE_SINGLE_FRAME_DECODE_SCALING_CONSTANT = 2900
_WAN_VAE_VIDEO_DECODE_SCALING_CONSTANT_A14B = 6500
_WAN_VAE_VIDEO_DECODE_SCALING_CONSTANT_TI2V = 7000
@@ -432,6 +441,90 @@ def estimate_vae_working_memory_minimax_h3(
return int((chunk_bytes + clip_bytes) * MINIMAX_H3_ALLOCATOR_HEADROOM)
+def estimate_vae_working_memory_ltx2(
+ operation: Literal["encode", "decode"],
+ vae: "torch.nn.Module",
+ pixel_height: int,
+ pixel_width: int,
+ pixel_frames: int,
+ tile_size: int | None = None,
+ temporal_tile: int | None = None,
+) -> int:
+ """Estimate the working memory to encode or decode with the LTX-2 video VAE.
+
+ The decode is always tiled in space and time (see
+ :func:`invokeai.backend.ltx2.video_decoding.scoped_ltx2_tiling`), so its activation term scales
+ with one tile's pixel volume and is almost flat in the clip's own size. Measured on a W7900
+ (gfx1100, bf16 weights, released 2.5 VAE), as peak *reserved* minus the weights, decoding
+ 1248x704:
+
+ | tile | temporal tile | frames | activation |
+ |------|---------------|--------|------------|
+ | 256 | 16 | 33 | 1.12 GiB |
+ | 512 | 16 | 33 | 3.85 GiB |
+ | 512 | 16 | 121 | 3.60 GiB |
+ | 512 | 32 | 33 | 5.57 GiB |
+ | 768 | 16 | 33 | 6.45 GiB |
+
+ A tile costs less than its volume suggests as it grows (the fixed cost of the decoder's own
+ buffers dominates a small tile), which is why the fit is affine rather than proportional; the
+ constants below bracket every row above by 11-55%. The clip term is added on top: the temporal
+ tiler holds both the decoded rows and the clip it concatenates them into, and the rows are not
+ one clip's worth: at the default 16-frame tile the latent stride is one, so a row is kept for
+ every latent frame and the accumulation runs to about two clips. Three is what that sums to,
+ and it is the term that grows with the clip -- the tile term does not, so a long clip would
+ otherwise eat the margin the measured rows show. Encode runs untiled (this architecture encodes
+ one frame) and is the same shape with one copy; 1248x704x1 measured 1.26 GiB against 1.65 GiB.
+ """
+ element_size = next(vae.parameters()).element_size()
+ spatial_ratio = int(getattr(vae, "spatial_compression_ratio", 32))
+ temporal_ratio = int(getattr(vae, "temporal_compression_ratio", 8))
+
+ if operation == "decode":
+ tile_height = max(
+ spatial_ratio, min(tile_size or int(getattr(vae, "tile_sample_min_height", 512)), pixel_height)
+ )
+ tile_width = max(spatial_ratio, min(tile_size or int(getattr(vae, "tile_sample_min_width", 512)), pixel_width))
+ # Not clamped to the clip's own frames: the temporal tile is two *latent* frames, which
+ # decode to a full tile of pixel frames even when the clip is shorter than one.
+ tile_frames = max(temporal_ratio, temporal_tile or int(getattr(vae, "tile_sample_min_num_frames", 16)))
+ bytes_per_element = _LTX2_VAE_DECODE_BYTES_PER_TILE_ELEMENT
+ clip_copies = _LTX2_DECODE_CLIP_COPIES
+ else:
+ tile_height, tile_width, tile_frames = pixel_height, pixel_width, pixel_frames
+ bytes_per_element = _LTX2_VAE_ENCODE_BYTES_PER_TILE_ELEMENT
+ clip_copies = 1
+
+ activation_bytes = tile_frames * tile_height * tile_width * element_size * bytes_per_element
+ clip_bytes = clip_copies * 3 * pixel_frames * pixel_height * pixel_width * element_size
+ return int(_LTX2_VAE_BASE_BYTES + activation_bytes + clip_bytes)
+
+
+def estimate_audio_working_memory_ltx2(num_audio_latents: int) -> int:
+ """Estimate the working memory to turn LTX-2 audio latents into a waveform.
+
+ Three stages run back to back over the whole soundtrack, none of them tiled: the audio VAE
+ decodes the latents to a log-mel spectrogram, the vocoder synthesizes a 16 kHz waveform from
+ it, and a bandwidth extender resynthesizes that at 48 kHz. Every intermediate is proportional
+ to the clip's length, so the estimate is a line in the latent count (25 latents per second).
+
+ Measured on a W7900 (gfx1100, released 2.5 audio VAE and vocoder, fp32 weights), as peak
+ *reserved* minus the two models:
+
+ | audio latents | duration | working set |
+ |---------------|----------|-------------|
+ | 126 | 5 s | 0.71 GiB |
+ | 251 | 10 s | 1.30 GiB |
+ | 501 | 20 s | 2.18 GiB |
+ | 1251 | 50 s | 6.93 GiB |
+
+ The constants bracket every row by 16-30%. They also make an absurd request fail at the
+ reservation rather than inside a forward: a 481-frame clip at 1 fps is 481 seconds of audio,
+ and asking the cache for the ~76 GiB that needs is the honest answer.
+ """
+ return int(_LTX2_AUDIO_BASE_BYTES + num_audio_latents * _LTX2_AUDIO_BYTES_PER_LATENT)
+
+
def estimate_vae_working_memory_wan(
operation: Literal["encode", "decode"],
vae: AutoencoderKLWan,
diff --git a/invokeai/frontend/web/openapi.json b/invokeai/frontend/web/openapi.json
index 9d6f22e799..7b3cb2ea34 100644
--- a/invokeai/frontend/web/openapi.json
+++ b/invokeai/frontend/web/openapi.json
@@ -39936,6 +39936,24 @@
{
"$ref": "#/components/schemas/Krea2TextEncoderInvocation"
},
+ {
+ "$ref": "#/components/schemas/LTX2DenoiseInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2IdealDimensionsInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2ImageConditioningInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2LatentsToVideoInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2ModelLoaderInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2TextEncoderInvocation"
+ },
{
"$ref": "#/components/schemas/LaMaInfillInvocation"
},
@@ -40662,6 +40680,18 @@
{
"$ref": "#/components/schemas/Krea2ModelLoaderOutput"
},
+ {
+ "$ref": "#/components/schemas/LTX2DenoiseOutput"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2ImageConditioningOutput"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2ModelLoaderOutput"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2TextEncoderOutput"
+ },
{
"$ref": "#/components/schemas/LatentsCollectionOutput"
},
@@ -49195,6 +49225,24 @@
{
"$ref": "#/components/schemas/Krea2TextEncoderInvocation"
},
+ {
+ "$ref": "#/components/schemas/LTX2DenoiseInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2IdealDimensionsInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2ImageConditioningInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2LatentsToVideoInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2ModelLoaderInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2TextEncoderInvocation"
+ },
{
"$ref": "#/components/schemas/LaMaInfillInvocation"
},
@@ -49878,6 +49926,18 @@
{
"$ref": "#/components/schemas/Krea2ModelLoaderOutput"
},
+ {
+ "$ref": "#/components/schemas/LTX2DenoiseOutput"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2ImageConditioningOutput"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2ModelLoaderOutput"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2TextEncoderOutput"
+ },
{
"$ref": "#/components/schemas/LatentsCollectionOutput"
},
@@ -50660,6 +50720,24 @@
{
"$ref": "#/components/schemas/Krea2TextEncoderInvocation"
},
+ {
+ "$ref": "#/components/schemas/LTX2DenoiseInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2IdealDimensionsInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2ImageConditioningInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2LatentsToVideoInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2ModelLoaderInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2TextEncoderInvocation"
+ },
{
"$ref": "#/components/schemas/LaMaInfillInvocation"
},
@@ -51734,6 +51812,24 @@
"lscale": {
"$ref": "#/components/schemas/LatentsOutput"
},
+ "ltx2_denoise": {
+ "$ref": "#/components/schemas/LTX2DenoiseOutput"
+ },
+ "ltx2_ideal_dimensions": {
+ "$ref": "#/components/schemas/IdealSizeOutput"
+ },
+ "ltx2_image_conditioning": {
+ "$ref": "#/components/schemas/LTX2ImageConditioningOutput"
+ },
+ "ltx2_latents_to_video": {
+ "$ref": "#/components/schemas/VideoOutput"
+ },
+ "ltx2_model_loader": {
+ "$ref": "#/components/schemas/LTX2ModelLoaderOutput"
+ },
+ "ltx2_text_encoder": {
+ "$ref": "#/components/schemas/LTX2TextEncoderOutput"
+ },
"main_model_loader": {
"$ref": "#/components/schemas/ModelLoaderOutput"
},
@@ -52360,6 +52456,12 @@
"lora_selector",
"lresize",
"lscale",
+ "ltx2_denoise",
+ "ltx2_ideal_dimensions",
+ "ltx2_image_conditioning",
+ "ltx2_latents_to_video",
+ "ltx2_model_loader",
+ "ltx2_text_encoder",
"main_model_loader",
"mask_combine",
"mask_edge",
@@ -53082,6 +53184,24 @@
{
"$ref": "#/components/schemas/Krea2TextEncoderInvocation"
},
+ {
+ "$ref": "#/components/schemas/LTX2DenoiseInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2IdealDimensionsInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2ImageConditioningInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2LatentsToVideoInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2ModelLoaderInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2TextEncoderInvocation"
+ },
{
"$ref": "#/components/schemas/LaMaInfillInvocation"
},
@@ -54222,6 +54342,24 @@
{
"$ref": "#/components/schemas/Krea2TextEncoderInvocation"
},
+ {
+ "$ref": "#/components/schemas/LTX2DenoiseInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2IdealDimensionsInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2ImageConditioningInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2LatentsToVideoInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2ModelLoaderInvocation"
+ },
+ {
+ "$ref": "#/components/schemas/LTX2TextEncoderInvocation"
+ },
{
"$ref": "#/components/schemas/LaMaInfillInvocation"
},
@@ -57880,11 +58018,1173 @@
"title": "LLMTaskProgressEvent",
"type": "object"
},
- "LTX2VariantType": {
- "type": "string",
- "enum": ["ltx2_dev", "ltx2_distilled"],
- "title": "LTX2VariantType",
- "description": "LTX-2 transformer variants. Dev and Distilled are key-for-key identical checkpoints of the same\narchitecture; the variant decides the sampling recipe (guided ~40-step schedule vs the fixed\n8-sigma distilled schedule with CFG off), so it must travel with the model record.\n\nValues carry the family prefix because variant values are globally unique across enums\n(`FluxVariantType.Dev` already owns \"dev\")."
+ "LTX2ConditioningField": {
+ "description": "An LTX-2 conditioning primitive value.\n\nLTX-2 conditioning is a pair of prompt streams, one per modality, already projected by the\ntext connectors, plus the token mask the connectors emit alongside them.",
+ "properties": {
+ "conditioning_name": {
+ "description": "The name of conditioning tensor",
+ "title": "Conditioning Name",
+ "type": "string"
+ }
+ },
+ "required": ["conditioning_name"],
+ "title": "LTX2ConditioningField",
+ "type": "object"
+ },
+ "LTX2DenoiseInvocation": {
+ "category": "latents",
+ "class": "invocation",
+ "classification": "prototype",
+ "description": "Generates LTX-2 video and audio latents together.\n\nOne transformer forward produces both modalities at every step, so the soundtrack is generated\nwith the picture rather than dubbed onto it. Wire an image conditioning to start the clip from\na frame.\n\nThe guidance-distilled checkpoint runs a fixed eight-step schedule with no guidance at all: its\nstep count and guidance scales below are ignored, and the negative prompt never reaches it.",
+ "node_pack": "invokeai",
+ "properties": {
+ "id": {
+ "description": "The id of this instance of an invocation. Must be unique among all instances of invocations.",
+ "field_kind": "node_attribute",
+ "title": "Id",
+ "type": "string"
+ },
+ "is_intermediate": {
+ "default": false,
+ "description": "Whether or not this is an intermediate invocation.",
+ "field_kind": "node_attribute",
+ "input": "direct",
+ "orig_required": true,
+ "title": "Is Intermediate",
+ "type": "boolean",
+ "ui_hidden": false,
+ "ui_type": "IsIntermediate"
+ },
+ "use_cache": {
+ "default": true,
+ "description": "Whether or not to use the cache",
+ "field_kind": "node_attribute",
+ "title": "Use Cache",
+ "type": "boolean"
+ },
+ "transformer": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LTX2TransformerField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "LTX-2 model (Transformer) to load",
+ "field_kind": "input",
+ "input": "connection",
+ "orig_required": true,
+ "title": "Transformer"
+ },
+ "positive_conditioning": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LTX2ConditioningField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Positive conditioning tensor",
+ "field_kind": "input",
+ "input": "connection",
+ "orig_required": true
+ },
+ "negative_conditioning": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LTX2ConditioningField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Conditioning for the unconditional pass. Required whenever a guidance scale is above 1.",
+ "field_kind": "input",
+ "input": "connection",
+ "orig_default": null,
+ "orig_required": false
+ },
+ "video_conditioning": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LTX2VideoConditioningField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "First-frame (VAE-latent) conditioning for LTX-2",
+ "field_kind": "input",
+ "input": "connection",
+ "orig_default": null,
+ "orig_required": false,
+ "title": "Image Conditioning"
+ },
+ "width": {
+ "default": 1248,
+ "description": "Canvas width.",
+ "exclusiveMinimum": 0,
+ "field_kind": "input",
+ "input": "any",
+ "multipleOf": 32,
+ "orig_default": 1248,
+ "orig_required": false,
+ "title": "Width",
+ "type": "integer"
+ },
+ "height": {
+ "default": 704,
+ "description": "Canvas height.",
+ "exclusiveMinimum": 0,
+ "field_kind": "input",
+ "input": "any",
+ "multipleOf": 32,
+ "orig_default": 704,
+ "orig_required": false,
+ "title": "Height",
+ "type": "integer"
+ },
+ "num_frames": {
+ "default": 121,
+ "description": "Frames to generate. The causal VAE encodes the first frame alone and then groups of eight, so this must be 8n + 1.",
+ "exclusiveMinimum": 0,
+ "field_kind": "input",
+ "input": "any",
+ "orig_default": 121,
+ "orig_required": false,
+ "title": "Num Frames",
+ "type": "integer"
+ },
+ "fps": {
+ "default": 24.0,
+ "description": "Frames per second. Sets the clip's duration, which is also what the audio stream is generated to fill, and the transformer's positional clock.",
+ "field_kind": "input",
+ "input": "any",
+ "maximum": 120,
+ "minimum": 1,
+ "orig_default": 24.0,
+ "orig_required": false,
+ "title": "Fps",
+ "type": "number"
+ },
+ "steps": {
+ "default": 30,
+ "description": "Number of denoising steps.",
+ "exclusiveMinimum": 0,
+ "field_kind": "input",
+ "input": "any",
+ "orig_default": 30,
+ "orig_required": false,
+ "title": "Steps",
+ "type": "integer"
+ },
+ "cfg_scale": {
+ "default": 3.0,
+ "description": "Classifier-free guidance scale for the video stream.",
+ "field_kind": "input",
+ "input": "any",
+ "minimum": 1.0,
+ "orig_default": 3.0,
+ "orig_required": false,
+ "title": "Cfg Scale",
+ "type": "number"
+ },
+ "audio_cfg_scale": {
+ "default": 7.0,
+ "description": "Classifier-free guidance scale for the audio stream. The release guides audio much harder than video.",
+ "field_kind": "input",
+ "input": "any",
+ "minimum": 1.0,
+ "orig_default": 7.0,
+ "orig_required": false,
+ "title": "Audio CFG Scale",
+ "type": "number"
+ },
+ "stg_scale": {
+ "default": 1.0,
+ "description": "Spatio-temporal guidance scale. Steers away from a pass whose self-attention is skipped in one block, which sharpens motion. 0 turns it off and saves a forward per step.",
+ "field_kind": "input",
+ "input": "any",
+ "minimum": 0.0,
+ "orig_default": 1.0,
+ "orig_required": false,
+ "title": "STG Scale",
+ "type": "number"
+ },
+ "modality_scale": {
+ "default": 3.0,
+ "description": "Modality-isolation guidance scale. Steers away from a pass with the audio/video cross-attention disabled, which tightens the two streams' agreement. 1 turns it off.",
+ "field_kind": "input",
+ "input": "any",
+ "minimum": 1.0,
+ "orig_default": 3.0,
+ "orig_required": false,
+ "title": "Modality Scale",
+ "type": "number"
+ },
+ "guidance_rescale": {
+ "default": 0.7,
+ "description": "How far to pull the guided prediction's contrast back toward the unguided one.",
+ "field_kind": "input",
+ "input": "any",
+ "maximum": 1.0,
+ "minimum": 0.0,
+ "orig_default": 0.7,
+ "orig_required": false,
+ "title": "Guidance Rescale",
+ "type": "number"
+ },
+ "schedule": {
+ "default": "auto",
+ "description": "Which noise schedule to sample. 'Auto' follows the loaded transformer's variant.",
+ "enum": ["auto", "dev", "distilled"],
+ "field_kind": "input",
+ "input": "any",
+ "orig_default": "auto",
+ "orig_required": false,
+ "title": "Schedule",
+ "type": "string",
+ "ui_choice_labels": {
+ "auto": "Auto (from the model's variant)",
+ "dev": "Dev (shifted, guided)",
+ "distilled": "Distilled (8 fixed steps, no guidance)"
+ }
+ },
+ "seed": {
+ "default": 0,
+ "description": "Randomness seed for reproducibility.",
+ "field_kind": "input",
+ "input": "any",
+ "maximum": 4294967295,
+ "minimum": 0,
+ "orig_default": 0,
+ "orig_required": false,
+ "title": "Seed",
+ "type": "integer"
+ },
+ "type": {
+ "const": "ltx2_denoise",
+ "default": "ltx2_denoise",
+ "field_kind": "node_attribute",
+ "title": "type",
+ "type": "string"
+ }
+ },
+ "required": ["type", "id"],
+ "tags": ["ltx", "ltx2", "video", "audio", "denoise"],
+ "title": "Denoise - LTX-2",
+ "type": "object",
+ "version": "1.0.0",
+ "output": {
+ "$ref": "#/components/schemas/LTX2DenoiseOutput"
+ }
+ },
+ "LTX2DenoiseOutput": {
+ "class": "output",
+ "description": "Joint video and audio latents from one LTX-2 denoise run.",
+ "properties": {
+ "video_latents": {
+ "$ref": "#/components/schemas/LatentsField",
+ "description": "Video latents [1, 128, T_lat, H/32, W/32].",
+ "field_kind": "output",
+ "ui_hidden": false
+ },
+ "audio_latents": {
+ "$ref": "#/components/schemas/LatentsField",
+ "description": "Packed audio latents [1, T_audio, 128].",
+ "field_kind": "output",
+ "ui_hidden": false
+ },
+ "width": {
+ "description": "Pixel width of the video latents.",
+ "field_kind": "output",
+ "title": "Width",
+ "type": "integer",
+ "ui_hidden": false
+ },
+ "height": {
+ "description": "Pixel height of the video latents.",
+ "field_kind": "output",
+ "title": "Height",
+ "type": "integer",
+ "ui_hidden": false
+ },
+ "num_frames": {
+ "description": "Pixel-frame count of the video latents.",
+ "field_kind": "output",
+ "title": "Num Frames",
+ "type": "integer",
+ "ui_hidden": false
+ },
+ "type": {
+ "const": "ltx2_denoise_output",
+ "default": "ltx2_denoise_output",
+ "field_kind": "node_attribute",
+ "title": "type",
+ "type": "string"
+ }
+ },
+ "required": ["output_meta", "video_latents", "audio_latents", "width", "height", "num_frames", "type", "type"],
+ "title": "LTX2DenoiseOutput",
+ "type": "object"
+ },
+ "LTX2IdealDimensionsInvocation": {
+ "category": "video",
+ "class": "invocation",
+ "classification": "prototype",
+ "description": "Ideal LTX-2 dimensions for a source image's aspect ratio.\n\nThe chosen preset pins the canvas's *short* edge and the long edge follows the source's aspect\nratio, each axis rounded to a multiple of 32 (the video VAE's spatial compression). Only the\nratio of the inputs matters. Wire the outputs into the width and height of both the image\nconditioning and the denoise node, which must share one canvas.\n\nCost grows with the token count, which is the canvas area over 1024: 768p is about 2.2x the\nwork of 512p at the same length.",
+ "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"
+ },
+ "width": {
+ "default": 1024,
+ "description": "Source image width in pixels.",
+ "exclusiveMinimum": 0,
+ "field_kind": "input",
+ "input": "any",
+ "orig_default": 1024,
+ "orig_required": false,
+ "title": "Width",
+ "type": "integer"
+ },
+ "height": {
+ "default": 1024,
+ "description": "Source image height in pixels.",
+ "exclusiveMinimum": 0,
+ "field_kind": "input",
+ "input": "any",
+ "orig_default": 1024,
+ "orig_required": false,
+ "title": "Height",
+ "type": "integer"
+ },
+ "target_resolution": {
+ "default": "704p",
+ "description": "Which short edge to pin the canvas to.",
+ "enum": ["512p", "704p", "768p"],
+ "field_kind": "input",
+ "input": "any",
+ "orig_default": "704p",
+ "orig_required": false,
+ "title": "Target Resolution",
+ "type": "string",
+ "ui_choice_labels": {
+ "512p": "512p (short edge 512 - fastest)",
+ "704p": "704p (short edge 704)",
+ "768p": "768p (short edge 768 - sharpest, slowest)"
+ }
+ },
+ "type": {
+ "const": "ltx2_ideal_dimensions",
+ "default": "ltx2_ideal_dimensions",
+ "field_kind": "node_attribute",
+ "title": "type",
+ "type": "string"
+ }
+ },
+ "required": ["type", "id"],
+ "tags": ["ltx", "ltx2", "video", "dimensions", "math"],
+ "title": "LTX-2 Ideal Dimensions",
+ "type": "object",
+ "version": "1.0.0",
+ "output": {
+ "$ref": "#/components/schemas/IdealSizeOutput"
+ }
+ },
+ "LTX2ImageConditioningInvocation": {
+ "category": "conditioning",
+ "class": "invocation",
+ "classification": "prototype",
+ "description": "Encodes an image as the first frame of an LTX-2 generation.\n\nThe image is re-compressed as a single H.264 frame before it is encoded. That is not an\noptimization: LTX-2 was trained on frames that had been through a video codec, and a pristine\nsource is far enough out of that distribution that the clip visibly drifts away from it over\nthe first second. 18 is the CRF LTX-2.5 was trained against.",
+ "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"
+ },
+ "image": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/ImageField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The image the video starts from.",
+ "field_kind": "input",
+ "input": "any",
+ "orig_required": true
+ },
+ "vae": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/VAEField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "VAE",
+ "field_kind": "input",
+ "input": "connection",
+ "orig_required": true,
+ "title": "Video VAE"
+ },
+ "width": {
+ "default": 1248,
+ "description": "Canvas width (must match Denoise).",
+ "exclusiveMinimum": 0,
+ "field_kind": "input",
+ "input": "any",
+ "multipleOf": 32,
+ "orig_default": 1248,
+ "orig_required": false,
+ "title": "Width",
+ "type": "integer"
+ },
+ "height": {
+ "default": 704,
+ "description": "Canvas height (must match Denoise).",
+ "exclusiveMinimum": 0,
+ "field_kind": "input",
+ "input": "any",
+ "multipleOf": 32,
+ "orig_default": 704,
+ "orig_required": false,
+ "title": "Height",
+ "type": "integer"
+ },
+ "strength": {
+ "default": 1.0,
+ "description": "How strongly the generation is held to this frame. 1 keeps it exactly; lower values let the model redraw it, which can hide a source that does not match the prompt.",
+ "exclusiveMinimum": 0.0,
+ "field_kind": "input",
+ "input": "any",
+ "maximum": 1.0,
+ "orig_default": 1.0,
+ "orig_required": false,
+ "title": "Strength",
+ "type": "number"
+ },
+ "crf": {
+ "default": 18,
+ "description": "H.264 quality factor the image is re-compressed at before encoding. Higher is more compressed; 0 skips re-compression, which is off-distribution for this model.",
+ "field_kind": "input",
+ "input": "any",
+ "maximum": 51,
+ "minimum": 0,
+ "orig_default": 18,
+ "orig_required": false,
+ "title": "Crf",
+ "type": "integer"
+ },
+ "type": {
+ "const": "ltx2_image_conditioning",
+ "default": "ltx2_image_conditioning",
+ "field_kind": "node_attribute",
+ "title": "type",
+ "type": "string"
+ }
+ },
+ "required": ["type", "id"],
+ "tags": ["conditioning", "image", "ltx", "ltx2", "video"],
+ "title": "Image Conditioning - LTX-2",
+ "type": "object",
+ "version": "1.0.0",
+ "output": {
+ "$ref": "#/components/schemas/LTX2ImageConditioningOutput"
+ }
+ },
+ "LTX2ImageConditioningOutput": {
+ "class": "output",
+ "description": "A VAE-encoded first frame for LTX-2 image-to-video.",
+ "properties": {
+ "video_conditioning": {
+ "$ref": "#/components/schemas/LTX2VideoConditioningField",
+ "description": "First-frame (VAE-latent) conditioning for LTX-2",
+ "field_kind": "output",
+ "ui_hidden": false
+ },
+ "type": {
+ "const": "ltx2_image_conditioning_output",
+ "default": "ltx2_image_conditioning_output",
+ "field_kind": "node_attribute",
+ "title": "type",
+ "type": "string"
+ }
+ },
+ "required": ["output_meta", "video_conditioning", "type", "type"],
+ "title": "LTX2ImageConditioningOutput",
+ "type": "object"
+ },
+ "LTX2LatentsToVideoInvocation": {
+ "category": "latents",
+ "class": "invocation",
+ "classification": "prototype",
+ "description": "Decodes LTX-2 video and audio latents into an MP4 with an AAC stereo track.",
+ "node_pack": "invokeai",
+ "properties": {
+ "board": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/BoardField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The board to save the image to",
+ "field_kind": "internal",
+ "input": "direct",
+ "orig_required": false,
+ "ui_hidden": false
+ },
+ "metadata": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/MetadataField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional metadata to be saved with the image",
+ "field_kind": "internal",
+ "input": "connection",
+ "orig_required": false,
+ "ui_hidden": false
+ },
+ "id": {
+ "description": "The id of this instance of an invocation. Must be unique among all instances of invocations.",
+ "field_kind": "node_attribute",
+ "title": "Id",
+ "type": "string"
+ },
+ "is_intermediate": {
+ "default": false,
+ "description": "Whether or not this is an intermediate invocation.",
+ "field_kind": "node_attribute",
+ "input": "direct",
+ "orig_required": true,
+ "title": "Is Intermediate",
+ "type": "boolean",
+ "ui_hidden": false,
+ "ui_type": "IsIntermediate"
+ },
+ "use_cache": {
+ "default": true,
+ "description": "Whether or not to use the cache",
+ "field_kind": "node_attribute",
+ "title": "Use Cache",
+ "type": "boolean"
+ },
+ "video_latents": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LatentsField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Latents tensor",
+ "field_kind": "input",
+ "input": "connection",
+ "orig_required": true
+ },
+ "audio_latents": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LatentsField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Packed audio latents from the denoise node. Omit for a silent video.",
+ "field_kind": "input",
+ "input": "connection",
+ "orig_default": null,
+ "orig_required": false
+ },
+ "vae": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/VAEField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "VAE",
+ "field_kind": "input",
+ "input": "connection",
+ "orig_required": true,
+ "title": "Video VAE"
+ },
+ "audio_vae": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/VAEField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Audio VAE (mel spectrogram) for LTX-2",
+ "field_kind": "input",
+ "input": "connection",
+ "orig_default": null,
+ "orig_required": false,
+ "title": "Audio VAE"
+ },
+ "vocoder": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LTX2VocoderField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Vocoder (48 kHz stereo) for LTX-2",
+ "field_kind": "input",
+ "input": "connection",
+ "orig_default": null,
+ "orig_required": false,
+ "title": "Vocoder"
+ },
+ "fps": {
+ "default": 24.0,
+ "description": "Frames per second of the output video.",
+ "field_kind": "input",
+ "input": "any",
+ "maximum": 120,
+ "minimum": 1,
+ "orig_default": 24.0,
+ "orig_required": false,
+ "title": "Fps",
+ "type": "number"
+ },
+ "tile_size": {
+ "default": 512,
+ "description": "Spatial decode tile, in output pixels. Smaller tiles need less VRAM and take longer.",
+ "field_kind": "input",
+ "input": "any",
+ "minimum": 64,
+ "orig_default": 512,
+ "orig_required": false,
+ "title": "Tile Size",
+ "type": "integer"
+ },
+ "temporal_tile": {
+ "default": 16,
+ "description": "Temporal decode tile, in output frames. Smaller tiles need less VRAM and take longer.",
+ "field_kind": "input",
+ "input": "any",
+ "minimum": 8,
+ "orig_default": 16,
+ "orig_required": false,
+ "title": "Temporal Tile",
+ "type": "integer"
+ },
+ "type": {
+ "const": "ltx2_latents_to_video",
+ "default": "ltx2_latents_to_video",
+ "field_kind": "node_attribute",
+ "title": "type",
+ "type": "string"
+ }
+ },
+ "required": ["type", "id"],
+ "tags": ["latents", "video", "audio", "vae", "l2v", "ltx", "ltx2"],
+ "title": "Latents to Video - LTX-2",
+ "type": "object",
+ "version": "1.0.0",
+ "output": {
+ "$ref": "#/components/schemas/VideoOutput"
+ }
+ },
+ "LTX2ModelLoaderInvocation": {
+ "category": "model",
+ "class": "invocation",
+ "classification": "prototype",
+ "description": "Loads an LTX-2 model, outputting its submodels.\n\nLTX-2 is distributed as separate files, and this node assembles one generation from up to\nthree installed records: the 22B transformer (a single-file checkpoint, or a component folder\nthat happens to carry one), the component folder that supplies the video VAE, audio VAE,\nvocoder and text connectors, and the Lightricks-tuned Gemma-4 text encoder.",
+ "node_pack": "invokeai",
+ "properties": {
+ "id": {
+ "description": "The id of this instance of an invocation. Must be unique among all instances of invocations.",
+ "field_kind": "node_attribute",
+ "title": "Id",
+ "type": "string"
+ },
+ "is_intermediate": {
+ "default": false,
+ "description": "Whether or not this is an intermediate invocation.",
+ "field_kind": "node_attribute",
+ "input": "direct",
+ "orig_required": true,
+ "title": "Is Intermediate",
+ "type": "boolean",
+ "ui_hidden": false,
+ "ui_type": "IsIntermediate"
+ },
+ "use_cache": {
+ "default": true,
+ "description": "Whether or not to use the cache",
+ "field_kind": "node_attribute",
+ "title": "Use Cache",
+ "type": "boolean"
+ },
+ "model": {
+ "$ref": "#/components/schemas/ModelIdentifierField",
+ "description": "LTX-2 model (Transformer) to load",
+ "field_kind": "input",
+ "input": "direct",
+ "orig_required": true,
+ "title": "Model",
+ "ui_model_base": ["ltx-2"],
+ "ui_model_type": ["main"]
+ },
+ "component_source": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/ModelIdentifierField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The LTX-2 component folder supplying the video VAE, audio VAE, vocoder and text connectors. Required unless the Model field is itself a folder that carries them.",
+ "field_kind": "input",
+ "input": "direct",
+ "orig_default": null,
+ "orig_required": false,
+ "title": "Components",
+ "ui_model_base": ["ltx-2"],
+ "ui_model_format": ["diffusers"],
+ "ui_model_type": ["main"]
+ },
+ "text_encoder_model": {
+ "$ref": "#/components/schemas/ModelIdentifierField",
+ "description": "Gemma-4 tokenizer and text encoder, and the LTX-2 text connectors",
+ "field_kind": "input",
+ "input": "direct",
+ "orig_required": true,
+ "title": "Text Encoder",
+ "ui_model_base": ["ltx-2"],
+ "ui_model_type": ["gemma4_encoder"]
+ },
+ "type": {
+ "const": "ltx2_model_loader",
+ "default": "ltx2_model_loader",
+ "field_kind": "node_attribute",
+ "title": "type",
+ "type": "string"
+ }
+ },
+ "required": ["model", "text_encoder_model", "type", "id"],
+ "tags": ["model", "ltx", "ltx2", "video"],
+ "title": "Main Model - LTX-2",
+ "type": "object",
+ "version": "1.0.0",
+ "output": {
+ "$ref": "#/components/schemas/LTX2ModelLoaderOutput"
+ }
+ },
+ "LTX2ModelLoaderOutput": {
+ "class": "output",
+ "description": "LTX-2 model loader output.",
+ "properties": {
+ "transformer": {
+ "$ref": "#/components/schemas/LTX2TransformerField",
+ "description": "LTX-2 model (Transformer) to load",
+ "field_kind": "output",
+ "title": "Transformer",
+ "ui_hidden": false
+ },
+ "text_encoder": {
+ "$ref": "#/components/schemas/LTX2TextEncoderField",
+ "description": "Gemma-4 tokenizer and text encoder, and the LTX-2 text connectors",
+ "field_kind": "output",
+ "title": "Gemma-4 Encoder",
+ "ui_hidden": false
+ },
+ "vae": {
+ "$ref": "#/components/schemas/VAEField",
+ "description": "VAE",
+ "field_kind": "output",
+ "title": "Video VAE",
+ "ui_hidden": false
+ },
+ "audio_vae": {
+ "$ref": "#/components/schemas/VAEField",
+ "description": "Audio VAE (mel spectrogram) for LTX-2",
+ "field_kind": "output",
+ "title": "Audio VAE",
+ "ui_hidden": false
+ },
+ "vocoder": {
+ "$ref": "#/components/schemas/LTX2VocoderField",
+ "description": "Vocoder (48 kHz stereo) for LTX-2",
+ "field_kind": "output",
+ "title": "Vocoder",
+ "ui_hidden": false
+ },
+ "model": {
+ "$ref": "#/components/schemas/ModelIdentifierField",
+ "description": "The LTX-2 transformer that was loaded.",
+ "field_kind": "output",
+ "title": "Model",
+ "ui_hidden": false
+ },
+ "component_source": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/ModelIdentifierField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The component folder the VAEs, vocoder and connectors came from.",
+ "field_kind": "output",
+ "title": "Components",
+ "ui_hidden": false
+ },
+ "text_encoder_model": {
+ "$ref": "#/components/schemas/ModelIdentifierField",
+ "description": "The Gemma-4 encoder that was loaded.",
+ "field_kind": "output",
+ "title": "Text Encoder",
+ "ui_hidden": false
+ },
+ "type": {
+ "const": "ltx2_model_loader_output",
+ "default": "ltx2_model_loader_output",
+ "field_kind": "node_attribute",
+ "title": "type",
+ "type": "string"
+ }
+ },
+ "required": [
+ "output_meta",
+ "transformer",
+ "text_encoder",
+ "vae",
+ "audio_vae",
+ "vocoder",
+ "model",
+ "component_source",
+ "text_encoder_model",
+ "type",
+ "type"
+ ],
+ "title": "LTX2ModelLoaderOutput",
+ "type": "object"
+ },
+ "LTX2TextEncoderField": {
+ "description": "Field for the LTX-2 prompt conditioner: the Gemma-4 tower and the text connectors.\n\nThe connectors are a separate model, not a submodel of the encoder: they consume the stacked\nper-layer hidden states and produce the two per-modality streams the transformer reads.",
+ "properties": {
+ "tokenizer": {
+ "$ref": "#/components/schemas/ModelIdentifierField",
+ "description": "Info to load tokenizer submodel"
+ },
+ "text_encoder": {
+ "$ref": "#/components/schemas/ModelIdentifierField",
+ "description": "Info to load text_encoder submodel"
+ },
+ "connectors": {
+ "$ref": "#/components/schemas/ModelIdentifierField",
+ "description": "Info to load the text connectors submodel"
+ }
+ },
+ "required": ["tokenizer", "text_encoder", "connectors"],
+ "title": "LTX2TextEncoderField",
+ "type": "object"
+ },
+ "LTX2TextEncoderInvocation": {
+ "category": "conditioning",
+ "class": "invocation",
+ "classification": "prototype",
+ "description": "Encodes a prompt, and optionally a negative prompt, for LTX-2.\n\nBoth prompts go through the same two stages: the Lightricks-tuned Gemma-4 tower, whose hidden\nstates are taken from every layer rather than just the last, and the text connectors, which\nproject them into the separate streams the video and audio halves of the transformer read.\n\nThe negative prompt only reaches the model through classifier-free guidance, so it is skipped\nentirely for a distilled checkpoint (which runs none) rather than paying a 12B encode for a\ntensor nothing will read.",
+ "node_pack": "invokeai",
+ "properties": {
+ "id": {
+ "description": "The id of this instance of an invocation. Must be unique among all instances of invocations.",
+ "field_kind": "node_attribute",
+ "title": "Id",
+ "type": "string"
+ },
+ "is_intermediate": {
+ "default": false,
+ "description": "Whether or not this is an intermediate invocation.",
+ "field_kind": "node_attribute",
+ "input": "direct",
+ "orig_required": true,
+ "title": "Is Intermediate",
+ "type": "boolean",
+ "ui_hidden": false,
+ "ui_type": "IsIntermediate"
+ },
+ "use_cache": {
+ "default": true,
+ "description": "Whether or not to use the cache",
+ "field_kind": "node_attribute",
+ "title": "Use Cache",
+ "type": "boolean"
+ },
+ "prompt": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Text prompt for LTX-2.",
+ "field_kind": "input",
+ "input": "any",
+ "orig_required": true,
+ "title": "Prompt",
+ "ui_component": "textarea"
+ },
+ "text_encoder": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LTX2TextEncoderField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Gemma-4 tokenizer and text encoder, and the LTX-2 text connectors",
+ "field_kind": "input",
+ "input": "connection",
+ "orig_required": true,
+ "title": "Gemma-4 Encoder"
+ },
+ "negative_prompt": {
+ "default": "has_subtitles, has_blurbox, transition from black, transition to black, speech_ending_short, blurry, out of focus, overexposed, underexposed, low contrast, washed out colors, excessive noise, grainy texture, poor lighting, flickering, motion blur, distorted proportions, unnatural skin tones, deformed facial features, asymmetrical face, missing facial features, extra limbs, disfigured hands, wrong hand count, artifacts around text, inconsistent perspective, camera shake, incorrect depth of field, background too sharp, background clutter, distracting reflections, harsh shadows, inconsistent lighting direction, color banding, cartoonish rendering, 3D CGI look, unrealistic materials, uncanny valley effect, incorrect ethnicity, wrong gender, exaggerated expressions, wrong gaze direction, mismatched lip sync, silent or muted audio, distorted voice, robotic voice, echo, background noise, off-sync audio, incorrect dialogue, added dialogue, repetitive speech, jittery movement, awkward pauses, incorrect timing, unnatural transitions, inconsistent framing, tilted camera, flat lighting, inconsistent tone, cinematic oversaturation, stylized filters, or AI artifacts.",
+ "description": "What to steer away from. Reaches the model only through classifier-free guidance.",
+ "field_kind": "input",
+ "input": "any",
+ "orig_default": "has_subtitles, has_blurbox, transition from black, transition to black, speech_ending_short, blurry, out of focus, overexposed, underexposed, low contrast, washed out colors, excessive noise, grainy texture, poor lighting, flickering, motion blur, distorted proportions, unnatural skin tones, deformed facial features, asymmetrical face, missing facial features, extra limbs, disfigured hands, wrong hand count, artifacts around text, inconsistent perspective, camera shake, incorrect depth of field, background too sharp, background clutter, distracting reflections, harsh shadows, inconsistent lighting direction, color banding, cartoonish rendering, 3D CGI look, unrealistic materials, uncanny valley effect, incorrect ethnicity, wrong gender, exaggerated expressions, wrong gaze direction, mismatched lip sync, silent or muted audio, distorted voice, robotic voice, echo, background noise, off-sync audio, incorrect dialogue, added dialogue, repetitive speech, jittery movement, awkward pauses, incorrect timing, unnatural transitions, inconsistent framing, tilted camera, flat lighting, inconsistent tone, cinematic oversaturation, stylized filters, or AI artifacts.",
+ "orig_required": false,
+ "title": "Negative Prompt",
+ "type": "string",
+ "ui_component": "textarea"
+ },
+ "encode_negative": {
+ "default": true,
+ "description": "Whether to encode the negative prompt. Turn off for a distilled checkpoint, which runs no unconditional pass.",
+ "field_kind": "input",
+ "input": "any",
+ "orig_default": true,
+ "orig_required": false,
+ "title": "Encode Negative",
+ "type": "boolean"
+ },
+ "max_sequence_length": {
+ "default": 1024,
+ "description": "Prompt tokens to keep. Every prompt is padded to this length, which is the length the connectors' learned registers are defined against.",
+ "exclusiveMinimum": 0,
+ "field_kind": "input",
+ "input": "any",
+ "maximum": 1024,
+ "orig_default": 1024,
+ "orig_required": false,
+ "title": "Max Sequence Length",
+ "type": "integer"
+ },
+ "type": {
+ "const": "ltx2_text_encoder",
+ "default": "ltx2_text_encoder",
+ "field_kind": "node_attribute",
+ "title": "type",
+ "type": "string"
+ }
+ },
+ "required": ["type", "id"],
+ "tags": ["prompt", "conditioning", "ltx", "ltx2", "video"],
+ "title": "Prompt - LTX-2",
+ "type": "object",
+ "version": "1.0.0",
+ "output": {
+ "$ref": "#/components/schemas/LTX2TextEncoderOutput"
+ }
+ },
+ "LTX2TextEncoderOutput": {
+ "class": "output",
+ "description": "The positive and (when classifier-free guidance will run) negative LTX-2 conditioning.",
+ "properties": {
+ "conditioning": {
+ "$ref": "#/components/schemas/LTX2ConditioningField",
+ "description": "Conditioning tensor",
+ "field_kind": "output",
+ "ui_hidden": false
+ },
+ "negative_conditioning": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LTX2ConditioningField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Conditioning for the unconditional guidance pass, if one was encoded.",
+ "field_kind": "output",
+ "ui_hidden": false
+ },
+ "type": {
+ "const": "ltx2_text_encoder_output",
+ "default": "ltx2_text_encoder_output",
+ "field_kind": "node_attribute",
+ "title": "type",
+ "type": "string"
+ }
+ },
+ "required": ["output_meta", "conditioning", "negative_conditioning", "type", "type"],
+ "title": "LTX2TextEncoderOutput",
+ "type": "object"
+ },
+ "LTX2TransformerField": {
+ "description": "Transformer field for LTX-2 models.",
+ "properties": {
+ "transformer": {
+ "$ref": "#/components/schemas/ModelIdentifierField",
+ "description": "Info to load Transformer submodel"
+ },
+ "variant": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The loaded transformer's variant ('ltx2_dev' / 'ltx2_distilled'), stamped by the model loader so the denoise node can pick the schedule the checkpoint was trained for.",
+ "title": "Variant"
+ }
+ },
+ "required": ["transformer"],
+ "title": "LTX2TransformerField",
+ "type": "object"
+ },
+ "LTX2VariantType": {
+ "type": "string",
+ "enum": ["ltx2_dev", "ltx2_distilled"],
+ "title": "LTX2VariantType",
+ "description": "LTX-2 transformer variants. Dev and Distilled are key-for-key identical checkpoints of the same\narchitecture; the variant decides the sampling recipe (guided ~40-step schedule vs the fixed\n8-sigma distilled schedule with CFG off), so it must travel with the model record.\n\nValues carry the family prefix because variant values are globally unique across enums\n(`FluxVariantType.Dev` already owns \"dev\")."
+ },
+ "LTX2VideoConditioningField": {
+ "description": "First-frame (VAE-latent) conditioning for LTX-2 image-to-video.\n\nThe canvas the frame was encoded at rides along so the denoise node can reject a mismatch\nwith a named error rather than a shape failure inside the transformer.",
+ "properties": {
+ "latents_name": {
+ "description": "Name of the saved [1, 128, 1, H/32, W/32] latent tensor.",
+ "title": "Latents Name",
+ "type": "string"
+ },
+ "width": {
+ "description": "Pixel width the frame was encoded at (matches denoise width).",
+ "title": "Width",
+ "type": "integer"
+ },
+ "height": {
+ "description": "Pixel height the frame was encoded at (matches denoise height).",
+ "title": "Height",
+ "type": "integer"
+ },
+ "strength": {
+ "default": 1.0,
+ "description": "How strongly the frame is held, 0 (ignored) to 1 (kept exactly).",
+ "title": "Strength",
+ "type": "number"
+ }
+ },
+ "required": ["latents_name", "width", "height"],
+ "title": "LTX2VideoConditioningField",
+ "type": "object"
+ },
+ "LTX2VocoderField": {
+ "description": "Vocoder field for LTX-2: mel spectrogram to 48 kHz stereo waveform.",
+ "properties": {
+ "vocoder": {
+ "$ref": "#/components/schemas/ModelIdentifierField",
+ "description": "Info to load vocoder submodel"
+ }
+ },
+ "required": ["vocoder"],
+ "title": "LTX2VocoderField",
+ "type": "object"
},
"LaMaInfillInvocation": {
"category": "inpaint",
diff --git a/invokeai/frontend/web/src/services/api/schema.ts b/invokeai/frontend/web/src/services/api/schema.ts
index 9bbec91df0..35cce19f36 100644
--- a/invokeai/frontend/web/src/services/api/schema.ts
+++ b/invokeai/frontend/web/src/services/api/schema.ts
@@ -16307,7 +16307,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"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["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"]["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"]["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"]["Krea2TextEncoderInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["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"]["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"]["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"]["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"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["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"]["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"]["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"]["Krea2TextEncoderInvocation"] | components["schemas"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentsToVideoInvocation"] | components["schemas"]["LTX2ModelLoaderInvocation"] | components["schemas"]["LTX2TextEncoderInvocation"] | 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"]["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"]["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"]["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
@@ -16344,7 +16344,7 @@ export type components = {
* @description The results of node executions
*/
results: {
- [key: string]: components["schemas"]["AnimaConditioningOutput"] | components["schemas"]["AnimaLLLiteOutput"] | components["schemas"]["AnimaLoRALoaderOutput"] | components["schemas"]["AnimaModelLoaderOutput"] | components["schemas"]["BooleanCollectionOutput"] | components["schemas"]["BooleanOutput"] | components["schemas"]["BoundingBoxCollectionOutput"] | components["schemas"]["BoundingBoxOutput"] | components["schemas"]["CLIPOutput"] | components["schemas"]["CLIPSkipInvocationOutput"] | components["schemas"]["CalculateImageTilesOutput"] | components["schemas"]["CogView4ConditioningOutput"] | components["schemas"]["CogView4ModelLoaderOutput"] | components["schemas"]["CollectInvocationOutput"] | components["schemas"]["CollectionCartesianInvocationOutput"] | components["schemas"]["CollectionConcatInvocationOutput"] | components["schemas"]["CollectionZipInvocationOutput"] | components["schemas"]["ColorCollectionOutput"] | components["schemas"]["ColorOutput"] | components["schemas"]["ConditioningCollectionOutput"] | components["schemas"]["ConditioningOutput"] | components["schemas"]["ControlOutput"] | components["schemas"]["DenoiseMaskOutput"] | components["schemas"]["ErnieImageConditioningOutput"] | components["schemas"]["ErnieImageModelLoaderOutput"] | components["schemas"]["ExtractVideoRangeOutput"] | components["schemas"]["FaceMaskOutput"] | components["schemas"]["FaceOffOutput"] | components["schemas"]["FloatCollectionOutput"] | components["schemas"]["FloatGeneratorOutput"] | components["schemas"]["FloatOutput"] | components["schemas"]["Flux2DevLoRALoaderOutput"] | components["schemas"]["Flux2DevModelLoaderOutput"] | components["schemas"]["Flux2KleinLoRALoaderOutput"] | components["schemas"]["Flux2KleinModelLoaderOutput"] | components["schemas"]["FluxConditioningCollectionOutput"] | components["schemas"]["FluxConditioningOutput"] | components["schemas"]["FluxControlLoRALoaderOutput"] | components["schemas"]["FluxControlNetOutput"] | components["schemas"]["FluxFillOutput"] | components["schemas"]["FluxKontextOutput"] | components["schemas"]["FluxLoRALoaderOutput"] | components["schemas"]["FluxModelLoaderOutput"] | components["schemas"]["FluxReduxOutput"] | components["schemas"]["ForInvocationOutput"] | components["schemas"]["ForReturnInvocationOutput"] | components["schemas"]["Gemma2EncoderOutput"] | components["schemas"]["GradientMaskOutput"] | components["schemas"]["IPAdapterOutput"] | components["schemas"]["IdealSizeOutput"] | components["schemas"]["Ideogram4ConditioningOutput"] | components["schemas"]["Ideogram4ModelLoaderOutput"] | components["schemas"]["IfInvocationOutput"] | components["schemas"]["ImageCollectionOutput"] | components["schemas"]["ImageGeneratorOutput"] | components["schemas"]["ImageOutput"] | components["schemas"]["ImagePanelCoordinateOutput"] | components["schemas"]["IntegerCollectionOutput"] | components["schemas"]["IntegerGeneratorOutput"] | components["schemas"]["IntegerOutput"] | components["schemas"]["IterateInvocationOutput"] | components["schemas"]["Krea2ConditioningOutput"] | components["schemas"]["Krea2LoRALoaderOutput"] | components["schemas"]["Krea2ModelLoaderOutput"] | components["schemas"]["LatentsCollectionOutput"] | components["schemas"]["LatentsMetaOutput"] | components["schemas"]["LatentsOutput"] | components["schemas"]["LoRALoaderOutput"] | components["schemas"]["LoRASelectorOutput"] | components["schemas"]["LoopStateOutput"] | components["schemas"]["LoopStateValueOutput"] | components["schemas"]["MDControlListOutput"] | components["schemas"]["MDIPAdapterListOutput"] | components["schemas"]["MDT2IAdapterListOutput"] | components["schemas"]["MaskOutput"] | components["schemas"]["MetadataItemOutput"] | components["schemas"]["MetadataOutput"] | components["schemas"]["MetadataToLorasCollectionOutput"] | components["schemas"]["MetadataToModelOutput"] | components["schemas"]["MetadataToSDXLModelOutput"] | components["schemas"]["MiniMaxH3ConditioningOutput"] | components["schemas"]["MiniMaxH3DenoiseOutput"] | components["schemas"]["MiniMaxH3FrameConditioningOutput"] | components["schemas"]["MiniMaxH3HybridOverlayOutput"] | components["schemas"]["MiniMaxH3LoRACollectionLoaderOutput"] | components["schemas"]["MiniMaxH3LoRALoaderOutput"] | components["schemas"]["MiniMaxH3ModelLoaderOutput"] | components["schemas"]["MiniMaxH3ReferenceConditioningOutput"] | components["schemas"]["MiniMaxH3ReferenceMediaOutput"] | components["schemas"]["ModelIdentifierOutput"] | components["schemas"]["ModelLoaderOutput"] | components["schemas"]["NoiseOutput"] | components["schemas"]["PBRMapsOutput"] | components["schemas"]["PairTileImageOutput"] | components["schemas"]["PiDDecoderOutput"] | components["schemas"]["PromptTemplateOutput"] | components["schemas"]["QwenImageConditioningOutput"] | components["schemas"]["QwenImageLoRALoaderOutput"] | components["schemas"]["QwenImageModelLoaderOutput"] | components["schemas"]["SD3ConditioningOutput"] | components["schemas"]["SDXLLoRALoaderOutput"] | components["schemas"]["SDXLModelLoaderOutput"] | components["schemas"]["SDXLRefinerModelLoaderOutput"] | components["schemas"]["SchedulerOutput"] | components["schemas"]["Sd3ModelLoaderOutput"] | components["schemas"]["SeamlessModeOutput"] | components["schemas"]["String2Output"] | components["schemas"]["StringCollectionOutput"] | components["schemas"]["StringGeneratorOutput"] | components["schemas"]["StringOutput"] | components["schemas"]["StringPosNegOutput"] | components["schemas"]["T2IAdapterOutput"] | components["schemas"]["TileToPropertiesOutput"] | components["schemas"]["UNetOutput"] | components["schemas"]["VAEOutput"] | components["schemas"]["VideoOutput"] | components["schemas"]["WanConditioningOutput"] | components["schemas"]["WanLoRALoaderOutput"] | components["schemas"]["WanModelLoaderOutput"] | components["schemas"]["WanRefImageOutput"] | components["schemas"]["WorkflowReturnGetOutput"] | components["schemas"]["WorkflowReturnOutput"] | components["schemas"]["WorkflowReturnValueOutput"] | components["schemas"]["ZImageConditioningOutput"] | components["schemas"]["ZImageControlOutput"] | components["schemas"]["ZImageLoRALoaderOutput"] | components["schemas"]["ZImageModelLoaderOutput"];
+ [key: string]: components["schemas"]["AnimaConditioningOutput"] | components["schemas"]["AnimaLLLiteOutput"] | components["schemas"]["AnimaLoRALoaderOutput"] | components["schemas"]["AnimaModelLoaderOutput"] | components["schemas"]["BooleanCollectionOutput"] | components["schemas"]["BooleanOutput"] | components["schemas"]["BoundingBoxCollectionOutput"] | components["schemas"]["BoundingBoxOutput"] | components["schemas"]["CLIPOutput"] | components["schemas"]["CLIPSkipInvocationOutput"] | components["schemas"]["CalculateImageTilesOutput"] | components["schemas"]["CogView4ConditioningOutput"] | components["schemas"]["CogView4ModelLoaderOutput"] | components["schemas"]["CollectInvocationOutput"] | components["schemas"]["CollectionCartesianInvocationOutput"] | components["schemas"]["CollectionConcatInvocationOutput"] | components["schemas"]["CollectionZipInvocationOutput"] | components["schemas"]["ColorCollectionOutput"] | components["schemas"]["ColorOutput"] | components["schemas"]["ConditioningCollectionOutput"] | components["schemas"]["ConditioningOutput"] | components["schemas"]["ControlOutput"] | components["schemas"]["DenoiseMaskOutput"] | components["schemas"]["ErnieImageConditioningOutput"] | components["schemas"]["ErnieImageModelLoaderOutput"] | components["schemas"]["ExtractVideoRangeOutput"] | components["schemas"]["FaceMaskOutput"] | components["schemas"]["FaceOffOutput"] | components["schemas"]["FloatCollectionOutput"] | components["schemas"]["FloatGeneratorOutput"] | components["schemas"]["FloatOutput"] | components["schemas"]["Flux2DevLoRALoaderOutput"] | components["schemas"]["Flux2DevModelLoaderOutput"] | components["schemas"]["Flux2KleinLoRALoaderOutput"] | components["schemas"]["Flux2KleinModelLoaderOutput"] | components["schemas"]["FluxConditioningCollectionOutput"] | components["schemas"]["FluxConditioningOutput"] | components["schemas"]["FluxControlLoRALoaderOutput"] | components["schemas"]["FluxControlNetOutput"] | components["schemas"]["FluxFillOutput"] | components["schemas"]["FluxKontextOutput"] | components["schemas"]["FluxLoRALoaderOutput"] | components["schemas"]["FluxModelLoaderOutput"] | components["schemas"]["FluxReduxOutput"] | components["schemas"]["ForInvocationOutput"] | components["schemas"]["ForReturnInvocationOutput"] | components["schemas"]["Gemma2EncoderOutput"] | components["schemas"]["GradientMaskOutput"] | components["schemas"]["IPAdapterOutput"] | components["schemas"]["IdealSizeOutput"] | components["schemas"]["Ideogram4ConditioningOutput"] | components["schemas"]["Ideogram4ModelLoaderOutput"] | components["schemas"]["IfInvocationOutput"] | components["schemas"]["ImageCollectionOutput"] | components["schemas"]["ImageGeneratorOutput"] | components["schemas"]["ImageOutput"] | components["schemas"]["ImagePanelCoordinateOutput"] | components["schemas"]["IntegerCollectionOutput"] | components["schemas"]["IntegerGeneratorOutput"] | components["schemas"]["IntegerOutput"] | components["schemas"]["IterateInvocationOutput"] | components["schemas"]["Krea2ConditioningOutput"] | components["schemas"]["Krea2LoRALoaderOutput"] | components["schemas"]["Krea2ModelLoaderOutput"] | components["schemas"]["LTX2DenoiseOutput"] | components["schemas"]["LTX2ImageConditioningOutput"] | components["schemas"]["LTX2ModelLoaderOutput"] | components["schemas"]["LTX2TextEncoderOutput"] | components["schemas"]["LatentsCollectionOutput"] | components["schemas"]["LatentsMetaOutput"] | components["schemas"]["LatentsOutput"] | components["schemas"]["LoRALoaderOutput"] | components["schemas"]["LoRASelectorOutput"] | components["schemas"]["LoopStateOutput"] | components["schemas"]["LoopStateValueOutput"] | components["schemas"]["MDControlListOutput"] | components["schemas"]["MDIPAdapterListOutput"] | components["schemas"]["MDT2IAdapterListOutput"] | components["schemas"]["MaskOutput"] | components["schemas"]["MetadataItemOutput"] | components["schemas"]["MetadataOutput"] | components["schemas"]["MetadataToLorasCollectionOutput"] | components["schemas"]["MetadataToModelOutput"] | components["schemas"]["MetadataToSDXLModelOutput"] | components["schemas"]["MiniMaxH3ConditioningOutput"] | components["schemas"]["MiniMaxH3DenoiseOutput"] | components["schemas"]["MiniMaxH3FrameConditioningOutput"] | components["schemas"]["MiniMaxH3HybridOverlayOutput"] | components["schemas"]["MiniMaxH3LoRACollectionLoaderOutput"] | components["schemas"]["MiniMaxH3LoRALoaderOutput"] | components["schemas"]["MiniMaxH3ModelLoaderOutput"] | components["schemas"]["MiniMaxH3ReferenceConditioningOutput"] | components["schemas"]["MiniMaxH3ReferenceMediaOutput"] | components["schemas"]["ModelIdentifierOutput"] | components["schemas"]["ModelLoaderOutput"] | components["schemas"]["NoiseOutput"] | components["schemas"]["PBRMapsOutput"] | components["schemas"]["PairTileImageOutput"] | components["schemas"]["PiDDecoderOutput"] | components["schemas"]["PromptTemplateOutput"] | components["schemas"]["QwenImageConditioningOutput"] | components["schemas"]["QwenImageLoRALoaderOutput"] | components["schemas"]["QwenImageModelLoaderOutput"] | components["schemas"]["SD3ConditioningOutput"] | components["schemas"]["SDXLLoRALoaderOutput"] | components["schemas"]["SDXLModelLoaderOutput"] | components["schemas"]["SDXLRefinerModelLoaderOutput"] | components["schemas"]["SchedulerOutput"] | components["schemas"]["Sd3ModelLoaderOutput"] | components["schemas"]["SeamlessModeOutput"] | components["schemas"]["String2Output"] | components["schemas"]["StringCollectionOutput"] | components["schemas"]["StringGeneratorOutput"] | components["schemas"]["StringOutput"] | components["schemas"]["StringPosNegOutput"] | components["schemas"]["T2IAdapterOutput"] | components["schemas"]["TileToPropertiesOutput"] | components["schemas"]["UNetOutput"] | components["schemas"]["VAEOutput"] | components["schemas"]["VideoOutput"] | components["schemas"]["WanConditioningOutput"] | components["schemas"]["WanLoRALoaderOutput"] | components["schemas"]["WanModelLoaderOutput"] | components["schemas"]["WanRefImageOutput"] | components["schemas"]["WorkflowReturnGetOutput"] | components["schemas"]["WorkflowReturnOutput"] | components["schemas"]["WorkflowReturnValueOutput"] | components["schemas"]["ZImageConditioningOutput"] | components["schemas"]["ZImageControlOutput"] | components["schemas"]["ZImageLoRALoaderOutput"] | components["schemas"]["ZImageModelLoaderOutput"];
};
/**
* Errors
@@ -20553,7 +20553,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"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["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"]["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"]["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"]["Krea2TextEncoderInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["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"]["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"]["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"]["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"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["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"]["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"]["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"]["Krea2TextEncoderInvocation"] | components["schemas"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentsToVideoInvocation"] | components["schemas"]["LTX2ModelLoaderInvocation"] | components["schemas"]["LTX2TextEncoderInvocation"] | 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"]["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"]["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"]["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
@@ -20563,7 +20563,7 @@ export type components = {
* Result
* @description The result of the invocation
*/
- result: components["schemas"]["AnimaConditioningOutput"] | components["schemas"]["AnimaLLLiteOutput"] | components["schemas"]["AnimaLoRALoaderOutput"] | components["schemas"]["AnimaModelLoaderOutput"] | components["schemas"]["BooleanCollectionOutput"] | components["schemas"]["BooleanOutput"] | components["schemas"]["BoundingBoxCollectionOutput"] | components["schemas"]["BoundingBoxOutput"] | components["schemas"]["CLIPOutput"] | components["schemas"]["CLIPSkipInvocationOutput"] | components["schemas"]["CalculateImageTilesOutput"] | components["schemas"]["CogView4ConditioningOutput"] | components["schemas"]["CogView4ModelLoaderOutput"] | components["schemas"]["CollectInvocationOutput"] | components["schemas"]["CollectionCartesianInvocationOutput"] | components["schemas"]["CollectionConcatInvocationOutput"] | components["schemas"]["CollectionZipInvocationOutput"] | components["schemas"]["ColorCollectionOutput"] | components["schemas"]["ColorOutput"] | components["schemas"]["ConditioningCollectionOutput"] | components["schemas"]["ConditioningOutput"] | components["schemas"]["ControlOutput"] | components["schemas"]["DenoiseMaskOutput"] | components["schemas"]["ErnieImageConditioningOutput"] | components["schemas"]["ErnieImageModelLoaderOutput"] | components["schemas"]["ExtractVideoRangeOutput"] | components["schemas"]["FaceMaskOutput"] | components["schemas"]["FaceOffOutput"] | components["schemas"]["FloatCollectionOutput"] | components["schemas"]["FloatGeneratorOutput"] | components["schemas"]["FloatOutput"] | components["schemas"]["Flux2DevLoRALoaderOutput"] | components["schemas"]["Flux2DevModelLoaderOutput"] | components["schemas"]["Flux2KleinLoRALoaderOutput"] | components["schemas"]["Flux2KleinModelLoaderOutput"] | components["schemas"]["FluxConditioningCollectionOutput"] | components["schemas"]["FluxConditioningOutput"] | components["schemas"]["FluxControlLoRALoaderOutput"] | components["schemas"]["FluxControlNetOutput"] | components["schemas"]["FluxFillOutput"] | components["schemas"]["FluxKontextOutput"] | components["schemas"]["FluxLoRALoaderOutput"] | components["schemas"]["FluxModelLoaderOutput"] | components["schemas"]["FluxReduxOutput"] | components["schemas"]["ForInvocationOutput"] | components["schemas"]["ForReturnInvocationOutput"] | components["schemas"]["Gemma2EncoderOutput"] | components["schemas"]["GradientMaskOutput"] | components["schemas"]["IPAdapterOutput"] | components["schemas"]["IdealSizeOutput"] | components["schemas"]["Ideogram4ConditioningOutput"] | components["schemas"]["Ideogram4ModelLoaderOutput"] | components["schemas"]["IfInvocationOutput"] | components["schemas"]["ImageCollectionOutput"] | components["schemas"]["ImageGeneratorOutput"] | components["schemas"]["ImageOutput"] | components["schemas"]["ImagePanelCoordinateOutput"] | components["schemas"]["IntegerCollectionOutput"] | components["schemas"]["IntegerGeneratorOutput"] | components["schemas"]["IntegerOutput"] | components["schemas"]["IterateInvocationOutput"] | components["schemas"]["Krea2ConditioningOutput"] | components["schemas"]["Krea2LoRALoaderOutput"] | components["schemas"]["Krea2ModelLoaderOutput"] | components["schemas"]["LatentsCollectionOutput"] | components["schemas"]["LatentsMetaOutput"] | components["schemas"]["LatentsOutput"] | components["schemas"]["LoRALoaderOutput"] | components["schemas"]["LoRASelectorOutput"] | components["schemas"]["LoopStateOutput"] | components["schemas"]["LoopStateValueOutput"] | components["schemas"]["MDControlListOutput"] | components["schemas"]["MDIPAdapterListOutput"] | components["schemas"]["MDT2IAdapterListOutput"] | components["schemas"]["MaskOutput"] | components["schemas"]["MetadataItemOutput"] | components["schemas"]["MetadataOutput"] | components["schemas"]["MetadataToLorasCollectionOutput"] | components["schemas"]["MetadataToModelOutput"] | components["schemas"]["MetadataToSDXLModelOutput"] | components["schemas"]["MiniMaxH3ConditioningOutput"] | components["schemas"]["MiniMaxH3DenoiseOutput"] | components["schemas"]["MiniMaxH3FrameConditioningOutput"] | components["schemas"]["MiniMaxH3HybridOverlayOutput"] | components["schemas"]["MiniMaxH3LoRACollectionLoaderOutput"] | components["schemas"]["MiniMaxH3LoRALoaderOutput"] | components["schemas"]["MiniMaxH3ModelLoaderOutput"] | components["schemas"]["MiniMaxH3ReferenceConditioningOutput"] | components["schemas"]["MiniMaxH3ReferenceMediaOutput"] | components["schemas"]["ModelIdentifierOutput"] | components["schemas"]["ModelLoaderOutput"] | components["schemas"]["NoiseOutput"] | components["schemas"]["PBRMapsOutput"] | components["schemas"]["PairTileImageOutput"] | components["schemas"]["PiDDecoderOutput"] | components["schemas"]["PromptTemplateOutput"] | components["schemas"]["QwenImageConditioningOutput"] | components["schemas"]["QwenImageLoRALoaderOutput"] | components["schemas"]["QwenImageModelLoaderOutput"] | components["schemas"]["SD3ConditioningOutput"] | components["schemas"]["SDXLLoRALoaderOutput"] | components["schemas"]["SDXLModelLoaderOutput"] | components["schemas"]["SDXLRefinerModelLoaderOutput"] | components["schemas"]["SchedulerOutput"] | components["schemas"]["Sd3ModelLoaderOutput"] | components["schemas"]["SeamlessModeOutput"] | components["schemas"]["String2Output"] | components["schemas"]["StringCollectionOutput"] | components["schemas"]["StringGeneratorOutput"] | components["schemas"]["StringOutput"] | components["schemas"]["StringPosNegOutput"] | components["schemas"]["T2IAdapterOutput"] | components["schemas"]["TileToPropertiesOutput"] | components["schemas"]["UNetOutput"] | components["schemas"]["VAEOutput"] | components["schemas"]["VideoOutput"] | components["schemas"]["WanConditioningOutput"] | components["schemas"]["WanLoRALoaderOutput"] | components["schemas"]["WanModelLoaderOutput"] | components["schemas"]["WanRefImageOutput"] | components["schemas"]["WorkflowReturnGetOutput"] | components["schemas"]["WorkflowReturnOutput"] | components["schemas"]["WorkflowReturnValueOutput"] | components["schemas"]["ZImageConditioningOutput"] | components["schemas"]["ZImageControlOutput"] | components["schemas"]["ZImageLoRALoaderOutput"] | components["schemas"]["ZImageModelLoaderOutput"];
+ result: components["schemas"]["AnimaConditioningOutput"] | components["schemas"]["AnimaLLLiteOutput"] | components["schemas"]["AnimaLoRALoaderOutput"] | components["schemas"]["AnimaModelLoaderOutput"] | components["schemas"]["BooleanCollectionOutput"] | components["schemas"]["BooleanOutput"] | components["schemas"]["BoundingBoxCollectionOutput"] | components["schemas"]["BoundingBoxOutput"] | components["schemas"]["CLIPOutput"] | components["schemas"]["CLIPSkipInvocationOutput"] | components["schemas"]["CalculateImageTilesOutput"] | components["schemas"]["CogView4ConditioningOutput"] | components["schemas"]["CogView4ModelLoaderOutput"] | components["schemas"]["CollectInvocationOutput"] | components["schemas"]["CollectionCartesianInvocationOutput"] | components["schemas"]["CollectionConcatInvocationOutput"] | components["schemas"]["CollectionZipInvocationOutput"] | components["schemas"]["ColorCollectionOutput"] | components["schemas"]["ColorOutput"] | components["schemas"]["ConditioningCollectionOutput"] | components["schemas"]["ConditioningOutput"] | components["schemas"]["ControlOutput"] | components["schemas"]["DenoiseMaskOutput"] | components["schemas"]["ErnieImageConditioningOutput"] | components["schemas"]["ErnieImageModelLoaderOutput"] | components["schemas"]["ExtractVideoRangeOutput"] | components["schemas"]["FaceMaskOutput"] | components["schemas"]["FaceOffOutput"] | components["schemas"]["FloatCollectionOutput"] | components["schemas"]["FloatGeneratorOutput"] | components["schemas"]["FloatOutput"] | components["schemas"]["Flux2DevLoRALoaderOutput"] | components["schemas"]["Flux2DevModelLoaderOutput"] | components["schemas"]["Flux2KleinLoRALoaderOutput"] | components["schemas"]["Flux2KleinModelLoaderOutput"] | components["schemas"]["FluxConditioningCollectionOutput"] | components["schemas"]["FluxConditioningOutput"] | components["schemas"]["FluxControlLoRALoaderOutput"] | components["schemas"]["FluxControlNetOutput"] | components["schemas"]["FluxFillOutput"] | components["schemas"]["FluxKontextOutput"] | components["schemas"]["FluxLoRALoaderOutput"] | components["schemas"]["FluxModelLoaderOutput"] | components["schemas"]["FluxReduxOutput"] | components["schemas"]["ForInvocationOutput"] | components["schemas"]["ForReturnInvocationOutput"] | components["schemas"]["Gemma2EncoderOutput"] | components["schemas"]["GradientMaskOutput"] | components["schemas"]["IPAdapterOutput"] | components["schemas"]["IdealSizeOutput"] | components["schemas"]["Ideogram4ConditioningOutput"] | components["schemas"]["Ideogram4ModelLoaderOutput"] | components["schemas"]["IfInvocationOutput"] | components["schemas"]["ImageCollectionOutput"] | components["schemas"]["ImageGeneratorOutput"] | components["schemas"]["ImageOutput"] | components["schemas"]["ImagePanelCoordinateOutput"] | components["schemas"]["IntegerCollectionOutput"] | components["schemas"]["IntegerGeneratorOutput"] | components["schemas"]["IntegerOutput"] | components["schemas"]["IterateInvocationOutput"] | components["schemas"]["Krea2ConditioningOutput"] | components["schemas"]["Krea2LoRALoaderOutput"] | components["schemas"]["Krea2ModelLoaderOutput"] | components["schemas"]["LTX2DenoiseOutput"] | components["schemas"]["LTX2ImageConditioningOutput"] | components["schemas"]["LTX2ModelLoaderOutput"] | components["schemas"]["LTX2TextEncoderOutput"] | components["schemas"]["LatentsCollectionOutput"] | components["schemas"]["LatentsMetaOutput"] | components["schemas"]["LatentsOutput"] | components["schemas"]["LoRALoaderOutput"] | components["schemas"]["LoRASelectorOutput"] | components["schemas"]["LoopStateOutput"] | components["schemas"]["LoopStateValueOutput"] | components["schemas"]["MDControlListOutput"] | components["schemas"]["MDIPAdapterListOutput"] | components["schemas"]["MDT2IAdapterListOutput"] | components["schemas"]["MaskOutput"] | components["schemas"]["MetadataItemOutput"] | components["schemas"]["MetadataOutput"] | components["schemas"]["MetadataToLorasCollectionOutput"] | components["schemas"]["MetadataToModelOutput"] | components["schemas"]["MetadataToSDXLModelOutput"] | components["schemas"]["MiniMaxH3ConditioningOutput"] | components["schemas"]["MiniMaxH3DenoiseOutput"] | components["schemas"]["MiniMaxH3FrameConditioningOutput"] | components["schemas"]["MiniMaxH3HybridOverlayOutput"] | components["schemas"]["MiniMaxH3LoRACollectionLoaderOutput"] | components["schemas"]["MiniMaxH3LoRALoaderOutput"] | components["schemas"]["MiniMaxH3ModelLoaderOutput"] | components["schemas"]["MiniMaxH3ReferenceConditioningOutput"] | components["schemas"]["MiniMaxH3ReferenceMediaOutput"] | components["schemas"]["ModelIdentifierOutput"] | components["schemas"]["ModelLoaderOutput"] | components["schemas"]["NoiseOutput"] | components["schemas"]["PBRMapsOutput"] | components["schemas"]["PairTileImageOutput"] | components["schemas"]["PiDDecoderOutput"] | components["schemas"]["PromptTemplateOutput"] | components["schemas"]["QwenImageConditioningOutput"] | components["schemas"]["QwenImageLoRALoaderOutput"] | components["schemas"]["QwenImageModelLoaderOutput"] | components["schemas"]["SD3ConditioningOutput"] | components["schemas"]["SDXLLoRALoaderOutput"] | components["schemas"]["SDXLModelLoaderOutput"] | components["schemas"]["SDXLRefinerModelLoaderOutput"] | components["schemas"]["SchedulerOutput"] | components["schemas"]["Sd3ModelLoaderOutput"] | components["schemas"]["SeamlessModeOutput"] | components["schemas"]["String2Output"] | components["schemas"]["StringCollectionOutput"] | components["schemas"]["StringGeneratorOutput"] | components["schemas"]["StringOutput"] | components["schemas"]["StringPosNegOutput"] | components["schemas"]["T2IAdapterOutput"] | components["schemas"]["TileToPropertiesOutput"] | components["schemas"]["UNetOutput"] | components["schemas"]["VAEOutput"] | components["schemas"]["VideoOutput"] | components["schemas"]["WanConditioningOutput"] | components["schemas"]["WanLoRALoaderOutput"] | components["schemas"]["WanModelLoaderOutput"] | components["schemas"]["WanRefImageOutput"] | components["schemas"]["WorkflowReturnGetOutput"] | components["schemas"]["WorkflowReturnOutput"] | components["schemas"]["WorkflowReturnValueOutput"] | components["schemas"]["ZImageConditioningOutput"] | components["schemas"]["ZImageControlOutput"] | components["schemas"]["ZImageLoRALoaderOutput"] | components["schemas"]["ZImageModelLoaderOutput"];
};
/**
* InvocationErrorEvent
@@ -20617,7 +20617,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"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["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"]["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"]["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"]["Krea2TextEncoderInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["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"]["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"]["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"]["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"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["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"]["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"]["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"]["Krea2TextEncoderInvocation"] | components["schemas"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentsToVideoInvocation"] | components["schemas"]["LTX2ModelLoaderInvocation"] | components["schemas"]["LTX2TextEncoderInvocation"] | 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"]["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"]["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"]["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
@@ -20823,6 +20823,12 @@ export type components = {
lora_selector: components["schemas"]["LoRASelectorOutput"];
lresize: components["schemas"]["LatentsOutput"];
lscale: components["schemas"]["LatentsOutput"];
+ ltx2_denoise: components["schemas"]["LTX2DenoiseOutput"];
+ ltx2_ideal_dimensions: components["schemas"]["IdealSizeOutput"];
+ ltx2_image_conditioning: components["schemas"]["LTX2ImageConditioningOutput"];
+ ltx2_latents_to_video: components["schemas"]["VideoOutput"];
+ ltx2_model_loader: components["schemas"]["LTX2ModelLoaderOutput"];
+ ltx2_text_encoder: components["schemas"]["LTX2TextEncoderOutput"];
main_model_loader: components["schemas"]["ModelLoaderOutput"];
mask_combine: components["schemas"]["ImageOutput"];
mask_edge: components["schemas"]["ImageOutput"];
@@ -21023,7 +21029,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"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["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"]["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"]["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"]["Krea2TextEncoderInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["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"]["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"]["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"]["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"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["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"]["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"]["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"]["Krea2TextEncoderInvocation"] | components["schemas"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentsToVideoInvocation"] | components["schemas"]["LTX2ModelLoaderInvocation"] | components["schemas"]["LTX2TextEncoderInvocation"] | 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"]["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"]["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"]["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
@@ -21110,7 +21116,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"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["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"]["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"]["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"]["Krea2TextEncoderInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["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"]["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"]["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"]["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"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["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"]["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"]["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"]["Krea2TextEncoderInvocation"] | components["schemas"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentsToVideoInvocation"] | components["schemas"]["LTX2ModelLoaderInvocation"] | components["schemas"]["LTX2TextEncoderInvocation"] | 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"]["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"]["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"]["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
@@ -22994,6 +23000,624 @@ export type components = {
*/
total_tokens: number | null;
};
+ /**
+ * LTX2ConditioningField
+ * @description An LTX-2 conditioning primitive value.
+ *
+ * LTX-2 conditioning is a pair of prompt streams, one per modality, already projected by the
+ * text connectors, plus the token mask the connectors emit alongside them.
+ */
+ LTX2ConditioningField: {
+ /**
+ * Conditioning Name
+ * @description The name of conditioning tensor
+ */
+ conditioning_name: string;
+ };
+ /**
+ * Denoise - LTX-2
+ * @description Generates LTX-2 video and audio latents together.
+ *
+ * One transformer forward produces both modalities at every step, so the soundtrack is generated
+ * with the picture rather than dubbed onto it. Wire an image conditioning to start the clip from
+ * a frame.
+ *
+ * The guidance-distilled checkpoint runs a fixed eight-step schedule with no guidance at all: its
+ * step count and guidance scales below are ignored, and the negative prompt never reaches it.
+ */
+ LTX2DenoiseInvocation: {
+ /**
+ * Id
+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.
+ */
+ id: string;
+ /**
+ * Is Intermediate
+ * @description Whether or not this is an intermediate invocation.
+ * @default false
+ */
+ is_intermediate?: boolean;
+ /**
+ * Use Cache
+ * @description Whether or not to use the cache
+ * @default true
+ */
+ use_cache?: boolean;
+ /**
+ * Transformer
+ * @description LTX-2 model (Transformer) to load
+ * @default null
+ */
+ transformer?: components["schemas"]["LTX2TransformerField"] | null;
+ /**
+ * @description Positive conditioning tensor
+ * @default null
+ */
+ positive_conditioning?: components["schemas"]["LTX2ConditioningField"] | null;
+ /**
+ * @description Conditioning for the unconditional pass. Required whenever a guidance scale is above 1.
+ * @default null
+ */
+ negative_conditioning?: components["schemas"]["LTX2ConditioningField"] | null;
+ /**
+ * Image Conditioning
+ * @description First-frame (VAE-latent) conditioning for LTX-2
+ * @default null
+ */
+ video_conditioning?: components["schemas"]["LTX2VideoConditioningField"] | null;
+ /**
+ * Width
+ * @description Canvas width.
+ * @default 1248
+ */
+ width?: number;
+ /**
+ * Height
+ * @description Canvas height.
+ * @default 704
+ */
+ height?: number;
+ /**
+ * Num Frames
+ * @description Frames to generate. The causal VAE encodes the first frame alone and then groups of eight, so this must be 8n + 1.
+ * @default 121
+ */
+ num_frames?: number;
+ /**
+ * Fps
+ * @description Frames per second. Sets the clip's duration, which is also what the audio stream is generated to fill, and the transformer's positional clock.
+ * @default 24
+ */
+ fps?: number;
+ /**
+ * Steps
+ * @description Number of denoising steps.
+ * @default 30
+ */
+ steps?: number;
+ /**
+ * Cfg Scale
+ * @description Classifier-free guidance scale for the video stream.
+ * @default 3
+ */
+ cfg_scale?: number;
+ /**
+ * Audio CFG Scale
+ * @description Classifier-free guidance scale for the audio stream. The release guides audio much harder than video.
+ * @default 7
+ */
+ audio_cfg_scale?: number;
+ /**
+ * STG Scale
+ * @description Spatio-temporal guidance scale. Steers away from a pass whose self-attention is skipped in one block, which sharpens motion. 0 turns it off and saves a forward per step.
+ * @default 1
+ */
+ stg_scale?: number;
+ /**
+ * Modality Scale
+ * @description Modality-isolation guidance scale. Steers away from a pass with the audio/video cross-attention disabled, which tightens the two streams' agreement. 1 turns it off.
+ * @default 3
+ */
+ modality_scale?: number;
+ /**
+ * Guidance Rescale
+ * @description How far to pull the guided prediction's contrast back toward the unguided one.
+ * @default 0.7
+ */
+ guidance_rescale?: number;
+ /**
+ * Schedule
+ * @description Which noise schedule to sample. 'Auto' follows the loaded transformer's variant.
+ * @default auto
+ * @enum {string}
+ */
+ schedule?: "auto" | "dev" | "distilled";
+ /**
+ * Seed
+ * @description Randomness seed for reproducibility.
+ * @default 0
+ */
+ seed?: number;
+ /**
+ * type
+ * @default ltx2_denoise
+ * @constant
+ */
+ type: "ltx2_denoise";
+ };
+ /**
+ * LTX2DenoiseOutput
+ * @description Joint video and audio latents from one LTX-2 denoise run.
+ */
+ LTX2DenoiseOutput: {
+ /** @description Video latents [1, 128, T_lat, H/32, W/32]. */
+ video_latents: components["schemas"]["LatentsField"];
+ /** @description Packed audio latents [1, T_audio, 128]. */
+ audio_latents: components["schemas"]["LatentsField"];
+ /**
+ * Width
+ * @description Pixel width of the video latents.
+ */
+ width: number;
+ /**
+ * Height
+ * @description Pixel height of the video latents.
+ */
+ height: number;
+ /**
+ * Num Frames
+ * @description Pixel-frame count of the video latents.
+ */
+ num_frames: number;
+ /**
+ * type
+ * @default ltx2_denoise_output
+ * @constant
+ */
+ type: "ltx2_denoise_output";
+ };
+ /**
+ * LTX-2 Ideal Dimensions
+ * @description Ideal LTX-2 dimensions for a source image's aspect ratio.
+ *
+ * The chosen preset pins the canvas's *short* edge and the long edge follows the source's aspect
+ * ratio, each axis rounded to a multiple of 32 (the video VAE's spatial compression). Only the
+ * ratio of the inputs matters. Wire the outputs into the width and height of both the image
+ * conditioning and the denoise node, which must share one canvas.
+ *
+ * Cost grows with the token count, which is the canvas area over 1024: 768p is about 2.2x the
+ * work of 512p at the same length.
+ */
+ LTX2IdealDimensionsInvocation: {
+ /**
+ * 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;
+ /**
+ * Width
+ * @description Source image width in pixels.
+ * @default 1024
+ */
+ width?: number;
+ /**
+ * Height
+ * @description Source image height in pixels.
+ * @default 1024
+ */
+ height?: number;
+ /**
+ * Target Resolution
+ * @description Which short edge to pin the canvas to.
+ * @default 704p
+ * @enum {string}
+ */
+ target_resolution?: "512p" | "704p" | "768p";
+ /**
+ * type
+ * @default ltx2_ideal_dimensions
+ * @constant
+ */
+ type: "ltx2_ideal_dimensions";
+ };
+ /**
+ * Image Conditioning - LTX-2
+ * @description Encodes an image as the first frame of an LTX-2 generation.
+ *
+ * The image is re-compressed as a single H.264 frame before it is encoded. That is not an
+ * optimization: LTX-2 was trained on frames that had been through a video codec, and a pristine
+ * source is far enough out of that distribution that the clip visibly drifts away from it over
+ * the first second. 18 is the CRF LTX-2.5 was trained against.
+ */
+ LTX2ImageConditioningInvocation: {
+ /**
+ * Id
+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.
+ */
+ id: string;
+ /**
+ * Is Intermediate
+ * @description Whether or not this is an intermediate invocation.
+ * @default false
+ */
+ is_intermediate?: boolean;
+ /**
+ * Use Cache
+ * @description Whether or not to use the cache
+ * @default true
+ */
+ use_cache?: boolean;
+ /**
+ * @description The image the video starts from.
+ * @default null
+ */
+ image?: components["schemas"]["ImageField"] | null;
+ /**
+ * Video VAE
+ * @description VAE
+ * @default null
+ */
+ vae?: components["schemas"]["VAEField"] | null;
+ /**
+ * Width
+ * @description Canvas width (must match Denoise).
+ * @default 1248
+ */
+ width?: number;
+ /**
+ * Height
+ * @description Canvas height (must match Denoise).
+ * @default 704
+ */
+ height?: number;
+ /**
+ * Strength
+ * @description How strongly the generation is held to this frame. 1 keeps it exactly; lower values let the model redraw it, which can hide a source that does not match the prompt.
+ * @default 1
+ */
+ strength?: number;
+ /**
+ * Crf
+ * @description H.264 quality factor the image is re-compressed at before encoding. Higher is more compressed; 0 skips re-compression, which is off-distribution for this model.
+ * @default 18
+ */
+ crf?: number;
+ /**
+ * type
+ * @default ltx2_image_conditioning
+ * @constant
+ */
+ type: "ltx2_image_conditioning";
+ };
+ /**
+ * LTX2ImageConditioningOutput
+ * @description A VAE-encoded first frame for LTX-2 image-to-video.
+ */
+ LTX2ImageConditioningOutput: {
+ /** @description First-frame (VAE-latent) conditioning for LTX-2 */
+ video_conditioning: components["schemas"]["LTX2VideoConditioningField"];
+ /**
+ * type
+ * @default ltx2_image_conditioning_output
+ * @constant
+ */
+ type: "ltx2_image_conditioning_output";
+ };
+ /**
+ * Latents to Video - LTX-2
+ * @description Decodes LTX-2 video and audio latents into an MP4 with an AAC stereo track.
+ */
+ LTX2LatentsToVideoInvocation: {
+ /**
+ * @description The board to save the image to
+ * @default null
+ */
+ board?: components["schemas"]["BoardField"] | null;
+ /**
+ * @description Optional metadata to be saved with the image
+ * @default null
+ */
+ metadata?: components["schemas"]["MetadataField"] | null;
+ /**
+ * Id
+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.
+ */
+ id: string;
+ /**
+ * Is Intermediate
+ * @description Whether or not this is an intermediate invocation.
+ * @default false
+ */
+ is_intermediate?: boolean;
+ /**
+ * Use Cache
+ * @description Whether or not to use the cache
+ * @default true
+ */
+ use_cache?: boolean;
+ /**
+ * @description Latents tensor
+ * @default null
+ */
+ video_latents?: components["schemas"]["LatentsField"] | null;
+ /**
+ * @description Packed audio latents from the denoise node. Omit for a silent video.
+ * @default null
+ */
+ audio_latents?: components["schemas"]["LatentsField"] | null;
+ /**
+ * Video VAE
+ * @description VAE
+ * @default null
+ */
+ vae?: components["schemas"]["VAEField"] | null;
+ /**
+ * Audio VAE
+ * @description Audio VAE (mel spectrogram) for LTX-2
+ * @default null
+ */
+ audio_vae?: components["schemas"]["VAEField"] | null;
+ /**
+ * Vocoder
+ * @description Vocoder (48 kHz stereo) for LTX-2
+ * @default null
+ */
+ vocoder?: components["schemas"]["LTX2VocoderField"] | null;
+ /**
+ * Fps
+ * @description Frames per second of the output video.
+ * @default 24
+ */
+ fps?: number;
+ /**
+ * Tile Size
+ * @description Spatial decode tile, in output pixels. Smaller tiles need less VRAM and take longer.
+ * @default 512
+ */
+ tile_size?: number;
+ /**
+ * Temporal Tile
+ * @description Temporal decode tile, in output frames. Smaller tiles need less VRAM and take longer.
+ * @default 16
+ */
+ temporal_tile?: number;
+ /**
+ * type
+ * @default ltx2_latents_to_video
+ * @constant
+ */
+ type: "ltx2_latents_to_video";
+ };
+ /**
+ * Main Model - LTX-2
+ * @description Loads an LTX-2 model, outputting its submodels.
+ *
+ * LTX-2 is distributed as separate files, and this node assembles one generation from up to
+ * three installed records: the 22B transformer (a single-file checkpoint, or a component folder
+ * that happens to carry one), the component folder that supplies the video VAE, audio VAE,
+ * vocoder and text connectors, and the Lightricks-tuned Gemma-4 text encoder.
+ */
+ LTX2ModelLoaderInvocation: {
+ /**
+ * 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;
+ /**
+ * Model
+ * @description LTX-2 model (Transformer) to load
+ */
+ model: components["schemas"]["ModelIdentifierField"];
+ /**
+ * Components
+ * @description The LTX-2 component folder supplying the video VAE, audio VAE, vocoder and text connectors. Required unless the Model field is itself a folder that carries them.
+ * @default null
+ */
+ component_source?: components["schemas"]["ModelIdentifierField"] | null;
+ /**
+ * Text Encoder
+ * @description Gemma-4 tokenizer and text encoder, and the LTX-2 text connectors
+ */
+ text_encoder_model: components["schemas"]["ModelIdentifierField"];
+ /**
+ * type
+ * @default ltx2_model_loader
+ * @constant
+ */
+ type: "ltx2_model_loader";
+ };
+ /**
+ * LTX2ModelLoaderOutput
+ * @description LTX-2 model loader output.
+ */
+ LTX2ModelLoaderOutput: {
+ /**
+ * Transformer
+ * @description LTX-2 model (Transformer) to load
+ */
+ transformer: components["schemas"]["LTX2TransformerField"];
+ /**
+ * Gemma-4 Encoder
+ * @description Gemma-4 tokenizer and text encoder, and the LTX-2 text connectors
+ */
+ text_encoder: components["schemas"]["LTX2TextEncoderField"];
+ /**
+ * Video VAE
+ * @description VAE
+ */
+ vae: components["schemas"]["VAEField"];
+ /**
+ * Audio VAE
+ * @description Audio VAE (mel spectrogram) for LTX-2
+ */
+ audio_vae: components["schemas"]["VAEField"];
+ /**
+ * Vocoder
+ * @description Vocoder (48 kHz stereo) for LTX-2
+ */
+ vocoder: components["schemas"]["LTX2VocoderField"];
+ /**
+ * Model
+ * @description The LTX-2 transformer that was loaded.
+ */
+ model: components["schemas"]["ModelIdentifierField"];
+ /**
+ * Components
+ * @description The component folder the VAEs, vocoder and connectors came from.
+ * @default null
+ */
+ component_source: components["schemas"]["ModelIdentifierField"] | null;
+ /**
+ * Text Encoder
+ * @description The Gemma-4 encoder that was loaded.
+ */
+ text_encoder_model: components["schemas"]["ModelIdentifierField"];
+ /**
+ * type
+ * @default ltx2_model_loader_output
+ * @constant
+ */
+ type: "ltx2_model_loader_output";
+ };
+ /**
+ * LTX2TextEncoderField
+ * @description Field for the LTX-2 prompt conditioner: the Gemma-4 tower and the text connectors.
+ *
+ * The connectors are a separate model, not a submodel of the encoder: they consume the stacked
+ * per-layer hidden states and produce the two per-modality streams the transformer reads.
+ */
+ LTX2TextEncoderField: {
+ /** @description Info to load tokenizer submodel */
+ tokenizer: components["schemas"]["ModelIdentifierField"];
+ /** @description Info to load text_encoder submodel */
+ text_encoder: components["schemas"]["ModelIdentifierField"];
+ /** @description Info to load the text connectors submodel */
+ connectors: components["schemas"]["ModelIdentifierField"];
+ };
+ /**
+ * Prompt - LTX-2
+ * @description Encodes a prompt, and optionally a negative prompt, for LTX-2.
+ *
+ * Both prompts go through the same two stages: the Lightricks-tuned Gemma-4 tower, whose hidden
+ * states are taken from every layer rather than just the last, and the text connectors, which
+ * project them into the separate streams the video and audio halves of the transformer read.
+ *
+ * The negative prompt only reaches the model through classifier-free guidance, so it is skipped
+ * entirely for a distilled checkpoint (which runs none) rather than paying a 12B encode for a
+ * tensor nothing will read.
+ */
+ LTX2TextEncoderInvocation: {
+ /**
+ * Id
+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.
+ */
+ id: string;
+ /**
+ * Is Intermediate
+ * @description Whether or not this is an intermediate invocation.
+ * @default false
+ */
+ is_intermediate?: boolean;
+ /**
+ * Use Cache
+ * @description Whether or not to use the cache
+ * @default true
+ */
+ use_cache?: boolean;
+ /**
+ * Prompt
+ * @description Text prompt for LTX-2.
+ * @default null
+ */
+ prompt?: string | null;
+ /**
+ * Gemma-4 Encoder
+ * @description Gemma-4 tokenizer and text encoder, and the LTX-2 text connectors
+ * @default null
+ */
+ text_encoder?: components["schemas"]["LTX2TextEncoderField"] | null;
+ /**
+ * Negative Prompt
+ * @description What to steer away from. Reaches the model only through classifier-free guidance.
+ * @default has_subtitles, has_blurbox, transition from black, transition to black, speech_ending_short, blurry, out of focus, overexposed, underexposed, low contrast, washed out colors, excessive noise, grainy texture, poor lighting, flickering, motion blur, distorted proportions, unnatural skin tones, deformed facial features, asymmetrical face, missing facial features, extra limbs, disfigured hands, wrong hand count, artifacts around text, inconsistent perspective, camera shake, incorrect depth of field, background too sharp, background clutter, distracting reflections, harsh shadows, inconsistent lighting direction, color banding, cartoonish rendering, 3D CGI look, unrealistic materials, uncanny valley effect, incorrect ethnicity, wrong gender, exaggerated expressions, wrong gaze direction, mismatched lip sync, silent or muted audio, distorted voice, robotic voice, echo, background noise, off-sync audio, incorrect dialogue, added dialogue, repetitive speech, jittery movement, awkward pauses, incorrect timing, unnatural transitions, inconsistent framing, tilted camera, flat lighting, inconsistent tone, cinematic oversaturation, stylized filters, or AI artifacts.
+ */
+ negative_prompt?: string;
+ /**
+ * Encode Negative
+ * @description Whether to encode the negative prompt. Turn off for a distilled checkpoint, which runs no unconditional pass.
+ * @default true
+ */
+ encode_negative?: boolean;
+ /**
+ * Max Sequence Length
+ * @description Prompt tokens to keep. Every prompt is padded to this length, which is the length the connectors' learned registers are defined against.
+ * @default 1024
+ */
+ max_sequence_length?: number;
+ /**
+ * type
+ * @default ltx2_text_encoder
+ * @constant
+ */
+ type: "ltx2_text_encoder";
+ };
+ /**
+ * LTX2TextEncoderOutput
+ * @description The positive and (when classifier-free guidance will run) negative LTX-2 conditioning.
+ */
+ LTX2TextEncoderOutput: {
+ /** @description Conditioning tensor */
+ conditioning: components["schemas"]["LTX2ConditioningField"];
+ /**
+ * @description Conditioning for the unconditional guidance pass, if one was encoded.
+ * @default null
+ */
+ negative_conditioning: components["schemas"]["LTX2ConditioningField"] | null;
+ /**
+ * type
+ * @default ltx2_text_encoder_output
+ * @constant
+ */
+ type: "ltx2_text_encoder_output";
+ };
+ /**
+ * LTX2TransformerField
+ * @description Transformer field for LTX-2 models.
+ */
+ LTX2TransformerField: {
+ /** @description Info to load Transformer submodel */
+ transformer: components["schemas"]["ModelIdentifierField"];
+ /**
+ * Variant
+ * @description The loaded transformer's variant ('ltx2_dev' / 'ltx2_distilled'), stamped by the model loader so the denoise node can pick the schedule the checkpoint was trained for.
+ * @default null
+ */
+ variant?: string | null;
+ };
/**
* LTX2VariantType
* @description LTX-2 transformer variants. Dev and Distilled are key-for-key identical checkpoints of the same
@@ -23005,6 +23629,44 @@ export type components = {
* @enum {string}
*/
LTX2VariantType: "ltx2_dev" | "ltx2_distilled";
+ /**
+ * LTX2VideoConditioningField
+ * @description First-frame (VAE-latent) conditioning for LTX-2 image-to-video.
+ *
+ * The canvas the frame was encoded at rides along so the denoise node can reject a mismatch
+ * with a named error rather than a shape failure inside the transformer.
+ */
+ LTX2VideoConditioningField: {
+ /**
+ * Latents Name
+ * @description Name of the saved [1, 128, 1, H/32, W/32] latent tensor.
+ */
+ latents_name: string;
+ /**
+ * Width
+ * @description Pixel width the frame was encoded at (matches denoise width).
+ */
+ width: number;
+ /**
+ * Height
+ * @description Pixel height the frame was encoded at (matches denoise height).
+ */
+ height: number;
+ /**
+ * Strength
+ * @description How strongly the frame is held, 0 (ignored) to 1 (kept exactly).
+ * @default 1
+ */
+ strength?: number;
+ };
+ /**
+ * LTX2VocoderField
+ * @description Vocoder field for LTX-2: mel spectrogram to 48 kHz stereo waveform.
+ */
+ LTX2VocoderField: {
+ /** @description Info to load vocoder submodel */
+ vocoder: components["schemas"]["ModelIdentifierField"];
+ };
/**
* LaMa Infill
* @description Infills transparent areas of an image using the LaMa model
diff --git a/invokeai/frontend/webv2/.oxfmtrc.json b/invokeai/frontend/webv2/.oxfmtrc.json
index 515c343a56..23258f74ff 100644
--- a/invokeai/frontend/webv2/.oxfmtrc.json
+++ b/invokeai/frontend/webv2/.oxfmtrc.json
@@ -9,6 +9,7 @@
"node_modules/**",
"stats.html",
"src/features/generation/core/__snapshots__/generateGraphNodeTypes.json",
+ "src/features/video/core/__snapshots__/videoGraphNodeTypes.json",
"src/features/generation/core/__fixtures__/architectureCapabilities.json"
],
"printWidth": 120,
diff --git a/invokeai/frontend/webv2/public/locales/en.json b/invokeai/frontend/webv2/public/locales/en.json
index ed6414547a..b1ae228df3 100644
--- a/invokeai/frontend/webv2/public/locales/en.json
+++ b/invokeai/frontend/webv2/public/locales/en.json
@@ -3901,6 +3901,8 @@
"h3TextEncoderCheckpointHelp": "Required when the Model Components install is components-only (no text-encoder weights); a full install provides its own.",
"h3TextEncoderOptionalHelp": "Optional single-file Qwen3-VL encoder used in place of the main model’s text encoder.",
"h3TextEncoderRequiredHelp": "Required: this install has no text-encoder weights, so the text encoder must come from a single-file Qwen3-VL checkpoint.",
+ "ltx2ComponentSourceHelp": "The LTX-2 components install supplying the VAEs, vocoder and text connectors.",
+ "ltx2TextEncoderHelp": "LTX-2’s Gemma-4 text encoder. Required: no LTX-2 model carries one.",
"wanComponentSourceHelp": "Select a Diffusers Wan model to provide VAE and text-encoder components.",
"wanLowNoiseHelp": "Optional second A14B expert. Without it the high-noise expert runs the whole schedule.",
"wanOptionalWithSourceHelp": "Required unless a Diffusers component source is available."
@@ -3945,7 +3947,15 @@
"referencesHelp": "Add up to 3 videos and 9 images to condition the generation. A video reference can contribute its image track, its soundtrack, or both. In the text prompt, refer to the conditionings as <Picture 1>, <Video 1>, <Audio 1> and so forth.",
"removeReference": "Remove reference",
"staleReferences": "References are set but the selected model cannot use them.",
- "uploadVideoReference": "Upload video or audio"
+ "uploadVideoReference": "Upload video or audio",
+ "advancedGuidance": "Advanced guidance",
+ "audioCfg": "Audio CFG",
+ "audioCfgHelp": "How hard the soundtrack follows the prompt. LTX-2 guides audio far harder than picture.",
+ "stg": "STG",
+ "stgHelp": "Spatio-temporal guidance sharpens motion by steering away from a pass with one attention block skipped. 0 turns it off and saves a forward per step.",
+ "modality": "Modality guidance",
+ "modalityHelp": "How tightly the picture and its soundtrack are held to each other. 1 turns it off and saves a forward per step.",
+ "stepsFixed": "This checkpoint samples a fixed schedule of {{steps}} steps."
}
},
"workflowLibrary": {
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 8168a08c74..22456acf9d 100644
--- a/invokeai/frontend/webv2/src/features/generation/core/__fixtures__/architectureCapabilities.json
+++ b/invokeai/frontend/webv2/src/features/generation/core/__fixtures__/architectureCapabilities.json
@@ -602,7 +602,7 @@
},
"dimension_grid": 32,
"guidance_label": "CFG",
- "guidance_min": 0.0,
+ "guidance_min": 1.0,
"guidance_max": null,
"scheduler_set": null,
"scheduler_applies_to_graph": false,
@@ -622,10 +622,10 @@
"vae": null,
"vae_precision": null,
"scheduler": null,
- "steps": 40,
+ "steps": 30,
"cfg_scale": 3.0,
"cfg_rescale_multiplier": null,
- "width": 1280,
+ "width": 1248,
"height": 704,
"guidance": null,
"cpu_only": null,
@@ -643,7 +643,7 @@
},
"dimension_grid": 32,
"guidance_label": "CFG",
- "guidance_min": 0.0,
+ "guidance_min": 1.0,
"guidance_max": null,
"scheduler_set": null,
"scheduler_applies_to_graph": false,
@@ -666,7 +666,7 @@
"steps": 8,
"cfg_scale": 1.0,
"cfg_rescale_multiplier": null,
- "width": 1280,
+ "width": 1248,
"height": 704,
"guidance": null,
"cpu_only": null,
diff --git a/invokeai/frontend/webv2/src/features/models/core/baseIdentity.test.ts b/invokeai/frontend/webv2/src/features/models/core/baseIdentity.test.ts
index 7cc1d7e87e..aeb18206d2 100644
--- a/invokeai/frontend/webv2/src/features/models/core/baseIdentity.test.ts
+++ b/invokeai/frontend/webv2/src/features/models/core/baseIdentity.test.ts
@@ -45,6 +45,7 @@ describe('MODEL_BASES', () => {
expect(getModelBaseInfo('flux2')).toMatchObject({ label: 'FLUX.2', colorPalette: 'ice' });
expect(getModelBaseInfo('qwen-image')).toMatchObject({ label: 'Qwen Image', colorPalette: 'cyan' });
expect(getModelBaseInfo('minimax-h3')).toMatchObject({ label: 'MiniMax H3', colorPalette: 'coral' });
+ expect(getModelBaseInfo('ltx-2')).toMatchObject({ label: 'LTX-2', colorPalette: 'steel' });
expect(isConvertibleToDiffusers(createModel({ base: 'sdxl', format: 'checkpoint', type: 'main' }))).toBe(true);
expect(isConvertibleToDiffusers(createModel({ base: 'flux', format: 'checkpoint', type: 'main' }))).toBe(false);
});
@@ -84,6 +85,7 @@ describe('MODEL_BASES', () => {
'anima',
'wan',
'minimax-h3',
+ 'ltx-2',
'any',
'external',
'unknown',
diff --git a/invokeai/frontend/webv2/src/features/models/core/baseIdentity.ts b/invokeai/frontend/webv2/src/features/models/core/baseIdentity.ts
index a2863c7a27..17aca1e560 100644
--- a/invokeai/frontend/webv2/src/features/models/core/baseIdentity.ts
+++ b/invokeai/frontend/webv2/src/features/models/core/baseIdentity.ts
@@ -128,6 +128,12 @@ export const MODEL_BASES = {
colorPalette: 'coral',
description: 'Video architecture that generates video with synchronized audio.',
},
+ 'ltx-2': {
+ base: 'ltx-2',
+ label: 'LTX-2',
+ colorPalette: 'steel',
+ description: 'Video architecture that generates video with synchronized audio.',
+ },
any: {
base: 'any',
label: 'Any',
diff --git a/invokeai/frontend/webv2/src/features/models/core/relationships.ts b/invokeai/frontend/webv2/src/features/models/core/relationships.ts
index 87aba45561..09d52d3356 100644
--- a/invokeai/frontend/webv2/src/features/models/core/relationships.ts
+++ b/invokeai/frontend/webv2/src/features/models/core/relationships.ts
@@ -147,6 +147,7 @@ const SINGLETON_LINK_TYPES: ReadonlySet<ModelTaxonomyType> = new Set<ModelTaxono
'qwen3_vl_encoder',
'mistral_encoder',
'gemma2_encoder',
+ 'gemma4_encoder',
]);
/** The full candidate rule for the link picker: compatible bases, and no same-type pair of a single-slot type. */
diff --git a/invokeai/frontend/webv2/src/features/models/core/taxonomy.ts b/invokeai/frontend/webv2/src/features/models/core/taxonomy.ts
index ff686a324f..6f8992d441 100644
--- a/invokeai/frontend/webv2/src/features/models/core/taxonomy.ts
+++ b/invokeai/frontend/webv2/src/features/models/core/taxonomy.ts
@@ -31,6 +31,7 @@ export const MODEL_CATEGORIES: CategoryDefinition[] = [
{ label: 'Qwen3 VL Encoder', pluralLabel: 'Qwen3 VL Encoders', type: 'qwen3_vl_encoder' },
{ label: 'Mistral Encoder', pluralLabel: 'Mistral Encoders', type: 'mistral_encoder' },
{ label: 'Gemma 2 Encoder', pluralLabel: 'Gemma 2 Encoders', type: 'gemma2_encoder' },
+ { label: 'Gemma 4 Encoder', pluralLabel: 'Gemma 4 Encoders', type: 'gemma4_encoder' },
{ label: 'PiD Decoder', pluralLabel: 'PiD Decoders', type: 'pid_decoder' },
{ label: 'CLIP Embed', pluralLabel: 'CLIP Embeds', type: 'clip_embed' },
{ label: 'CLIP Vision', pluralLabel: 'CLIP Visions', type: 'clip_vision' },
@@ -145,6 +146,8 @@ export const MODEL_VARIANT_LABELS: Record<string, string> = {
res2k_sr4x: 'PiD 2K (4x SR)',
res2kto4k_sr4x: 'PiD 4K (4x SR Upscale)',
schnell: 'FLUX Schnell',
+ ltx2_dev: 'LTX-2 Dev',
+ ltx2_distilled: 'LTX-2 Distilled',
t2v_a14b: 'Wan 2.2 T2V A14B',
ti2v_5b: 'Wan 2.2 TI2V 5B',
turbo: 'Z-Image Turbo',
@@ -159,6 +162,7 @@ const MAIN_VARIANTS_BY_BASE: Record<string, readonly string[]> = {
flux: ['schnell', 'dev', 'dev_fill'],
flux2: ['klein_4b', 'klein_4b_base', 'klein_9b', 'klein_9b_base', 'dev'],
'krea-2': ['krea2_turbo', 'krea2_base'],
+ 'ltx-2': ['ltx2_dev', 'ltx2_distilled'],
'minimax-h3': ['fl2va', 'ref2va'],
'qwen-image': ['generate', 'edit'],
'sd-1': ['normal', 'inpaint'],
diff --git a/invokeai/frontend/webv2/src/features/models/core/types.ts b/invokeai/frontend/webv2/src/features/models/core/types.ts
index 22c5d25896..81e4922ec2 100644
--- a/invokeai/frontend/webv2/src/features/models/core/types.ts
+++ b/invokeai/frontend/webv2/src/features/models/core/types.ts
@@ -27,6 +27,8 @@ export type ModelBase =
| 'wan'
/** MiniMax H3. A video architecture that generates video with synchronized audio. */
| 'minimax-h3'
+ /** LTX-2. A video architecture that generates video with synchronized audio. */
+ | 'ltx-2'
| 'external'
| 'unknown'
| (string & {});
@@ -50,6 +52,7 @@ export type ModelTaxonomyType =
| 'wan_t5_encoder'
| 'mistral_encoder'
| 'gemma2_encoder'
+ | 'gemma4_encoder'
| 'pid_decoder'
| 'siglip'
| 'spandrel_image_to_image'
@@ -77,6 +80,7 @@ export type ModelFileFormat =
| 'qwen3_vl_encoder'
| 'wan_t5_encoder'
| 'gemma2_encoder'
+ | 'gemma4_encoder'
| 'bnb_quantized_int8b'
| 'bnb_quantized_nf4b'
| 'gguf_quantized'
diff --git a/invokeai/frontend/webv2/src/features/video/core/__snapshots__/videoGraphNodeTypes.json b/invokeai/frontend/webv2/src/features/video/core/__snapshots__/videoGraphNodeTypes.json
new file mode 100644
index 0000000000..3f06e9e5ca
--- /dev/null
+++ b/invokeai/frontend/webv2/src/features/video/core/__snapshots__/videoGraphNodeTypes.json
@@ -0,0 +1,746 @@
+{
+ "_comment": "Generated by src/features/video/core/videoGraphCoverage.test.ts; regenerate with `vitest -u`. Excluded from oxfmt so the test alone owns its layout. Consumed by tests/app/invocations/test_frontend_graph_node_types.py, which checks every node type, edge field and literal input value below against the backend invocation registry. An empty literalInputs value list means the field is set to something other than a scalar, so only its name is checked.",
+ "byBase": {
+ "ltx-2": {
+ "modes": [
+ "first-frame",
+ "txt2vid"
+ ],
+ "nodeTypes": [
+ "core_metadata",
+ "integer",
+ "ltx2_denoise",
+ "ltx2_image_conditioning",
+ "ltx2_latents_to_video",
+ "ltx2_model_loader",
+ "ltx2_text_encoder",
+ "string"
+ ]
+ },
+ "minimax-h3": {
+ "modes": [
+ "extend",
+ "first-frame",
+ "first-last",
+ "last-frame",
+ "reference",
+ "txt2vid"
+ ],
+ "nodeTypes": [
+ "collect",
+ "core_metadata",
+ "extract_video_range",
+ "integer",
+ "minimax_h3_denoise",
+ "minimax_h3_frame_conditioning",
+ "minimax_h3_image_reference",
+ "minimax_h3_latents_to_video",
+ "minimax_h3_model_loader",
+ "minimax_h3_reference_conditioning",
+ "minimax_h3_text_encoder",
+ "string",
+ "video_concat",
+ "video_frame_extract"
+ ]
+ },
+ "wan": {
+ "modes": [
+ "extend",
+ "first-frame",
+ "first-last",
+ "txt2vid"
+ ],
+ "nodeTypes": [
+ "collect",
+ "core_metadata",
+ "extract_video_range",
+ "float_to_int",
+ "integer",
+ "string",
+ "video_concat",
+ "video_frame_extract",
+ "wan_l2v",
+ "wan_model_loader",
+ "wan_ref_image_encoder",
+ "wan_text_encoder",
+ "wan_video_denoise"
+ ]
+ }
+ },
+ "fieldsByNodeType": {
+ "collect": {
+ "inputs": [
+ "collection",
+ "item"
+ ],
+ "literalInputs": {
+ "is_intermediate": [
+ true
+ ],
+ "use_cache": [
+ true
+ ]
+ },
+ "outputs": [
+ "collection"
+ ]
+ },
+ "core_metadata": {
+ "inputs": [
+ "first_frame_image",
+ "negative_prompt",
+ "positive_prompt",
+ "seed"
+ ],
+ "literalInputs": {
+ "cfg_scale": [
+ 1,
+ 3,
+ 5
+ ],
+ "first_frame_image": [],
+ "fps": [
+ 16,
+ 24
+ ],
+ "generation_mode": [
+ "ltx2_i2v",
+ "ltx2_t2v",
+ "minimax_h3_extend_video",
+ "minimax_h3_flf2v",
+ "minimax_h3_i2v",
+ "minimax_h3_lf2v",
+ "minimax_h3_ref2v",
+ "minimax_h3_t2v",
+ "wan_extend_video",
+ "wan_i2v",
+ "wan_interpolate",
+ "wan_t2v"
+ ],
+ "height": [
+ 704,
+ 720,
+ 768
+ ],
+ "is_intermediate": [
+ true
+ ],
+ "last_frame_image": [],
+ "ltx2_audio_cfg_scale": [
+ 7
+ ],
+ "ltx2_component_source": [],
+ "ltx2_modality_scale": [
+ 3
+ ],
+ "ltx2_stg_scale": [
+ 1
+ ],
+ "ltx2_text_encoder_model": [],
+ "minimax_h3_component_source": [],
+ "minimax_h3_references": [],
+ "minimax_h3_text_encoder_model": [],
+ "model": [],
+ "num_frames": [
+ 121,
+ 124,
+ 81
+ ],
+ "source_video": [],
+ "source_video_end_frame": [
+ 47
+ ],
+ "source_video_start_frame": [
+ 0
+ ],
+ "steps": [
+ 30,
+ 40,
+ 50,
+ 8
+ ],
+ "use_cache": [
+ true
+ ],
+ "vae": [],
+ "wan_guidance_scale_low_noise": [
+ 4
+ ],
+ "wan_t5_encoder_model": [],
+ "width": [
+ 1248,
+ 1280,
+ 1344
+ ]
+ },
+ "outputs": [
+ "metadata"
+ ]
+ },
+ "extract_video_range": {
+ "inputs": [],
+ "literalInputs": {
+ "end_frame": [
+ -1
+ ],
+ "fps": [
+ 24
+ ],
+ "is_intermediate": [
+ true
+ ],
+ "start_frame": [
+ 0
+ ],
+ "use_cache": [
+ false
+ ],
+ "video": []
+ },
+ "outputs": [
+ "fps",
+ "video"
+ ]
+ },
+ "float_to_int": {
+ "inputs": [
+ "value"
+ ],
+ "literalInputs": {
+ "is_intermediate": [
+ true
+ ],
+ "method": [
+ "Nearest"
+ ],
+ "multiple": [
+ 1
+ ],
+ "use_cache": [
+ true
+ ]
+ },
+ "outputs": [
+ "value"
+ ]
+ },
+ "integer": {
+ "inputs": [],
+ "literalInputs": {
+ "is_intermediate": [
+ true
+ ],
+ "use_cache": [
+ true
+ ]
+ },
+ "outputs": [
+ "value"
+ ]
+ },
+ "ltx2_denoise": {
+ "inputs": [
+ "negative_conditioning",
+ "positive_conditioning",
+ "seed",
+ "transformer",
+ "video_conditioning"
+ ],
+ "literalInputs": {
+ "audio_cfg_scale": [
+ 1,
+ 7
+ ],
+ "cfg_scale": [
+ 1,
+ 3
+ ],
+ "fps": [
+ 24
+ ],
+ "height": [
+ 704
+ ],
+ "is_intermediate": [
+ true
+ ],
+ "modality_scale": [
+ 1,
+ 3
+ ],
+ "num_frames": [
+ 121
+ ],
+ "schedule": [
+ "auto"
+ ],
+ "steps": [
+ 30,
+ 8
+ ],
+ "stg_scale": [
+ 0,
+ 1
+ ],
+ "use_cache": [
+ true
+ ],
+ "width": [
+ 1248
+ ]
+ },
+ "outputs": [
+ "audio_latents",
+ "video_latents"
+ ]
+ },
+ "ltx2_image_conditioning": {
+ "inputs": [
+ "vae"
+ ],
+ "literalInputs": {
+ "height": [
+ 704
+ ],
+ "image": [],
+ "is_intermediate": [
+ true
+ ],
+ "use_cache": [
+ true
+ ],
+ "width": [
+ 1248
+ ]
+ },
+ "outputs": [
+ "video_conditioning"
+ ]
+ },
+ "ltx2_latents_to_video": {
+ "inputs": [
+ "audio_latents",
+ "audio_vae",
+ "metadata",
+ "vae",
+ "video_latents",
+ "vocoder"
+ ],
+ "literalInputs": {
+ "fps": [
+ 24
+ ],
+ "is_intermediate": [
+ false
+ ],
+ "use_cache": [
+ false
+ ]
+ },
+ "outputs": []
+ },
+ "ltx2_model_loader": {
+ "inputs": [],
+ "literalInputs": {
+ "component_source": [],
+ "is_intermediate": [
+ true
+ ],
+ "model": [],
+ "text_encoder_model": [],
+ "use_cache": [
+ true
+ ]
+ },
+ "outputs": [
+ "audio_vae",
+ "text_encoder",
+ "transformer",
+ "vae",
+ "vocoder"
+ ]
+ },
+ "ltx2_text_encoder": {
+ "inputs": [
+ "negative_prompt",
+ "prompt",
+ "text_encoder"
+ ],
+ "literalInputs": {
+ "encode_negative": [
+ false,
+ true
+ ],
+ "is_intermediate": [
+ true
+ ],
+ "use_cache": [
+ true
+ ]
+ },
+ "outputs": [
+ "conditioning",
+ "negative_conditioning"
+ ]
+ },
+ "minimax_h3_denoise": {
+ "inputs": [
+ "frame_conditioning",
+ "positive_conditioning",
+ "reference_conditioning",
+ "seed",
+ "transformer"
+ ],
+ "literalInputs": {
+ "height": [
+ 768
+ ],
+ "is_intermediate": [
+ true
+ ],
+ "num_frames": [
+ "124"
+ ],
+ "steps": [
+ 51
+ ],
+ "use_cache": [
+ true
+ ],
+ "width": [
+ 1344
+ ]
+ },
+ "outputs": [
+ "audio_latents",
+ "video_latents"
+ ]
+ },
+ "minimax_h3_frame_conditioning": {
+ "inputs": [
+ "first_image",
+ "vae"
+ ],
+ "literalInputs": {
+ "first_image": [],
+ "height": [
+ 768
+ ],
+ "is_intermediate": [
+ true
+ ],
+ "last_image": [],
+ "use_cache": [
+ true
+ ],
+ "width": [
+ 1344
+ ]
+ },
+ "outputs": [
+ "frame_conditioning"
+ ]
+ },
+ "minimax_h3_image_reference": {
+ "inputs": [],
+ "literalInputs": {
+ "detail": [
+ "max"
+ ],
+ "image": [],
+ "is_intermediate": [
+ true
+ ],
+ "use_cache": [
+ true
+ ]
+ },
+ "outputs": [
+ "reference"
+ ]
+ },
+ "minimax_h3_latents_to_video": {
+ "inputs": [
+ "audio_latents",
+ "audio_vae",
+ "metadata",
+ "vae",
+ "video_latents"
+ ],
+ "literalInputs": {
+ "is_intermediate": [
+ false,
+ true
+ ],
+ "use_cache": [
+ false
+ ]
+ },
+ "outputs": [
+ "video"
+ ]
+ },
+ "minimax_h3_model_loader": {
+ "inputs": [],
+ "literalInputs": {
+ "is_intermediate": [
+ true
+ ],
+ "model": [],
+ "text_encoder_model": [],
+ "transformer_model": [],
+ "use_cache": [
+ true
+ ]
+ },
+ "outputs": [
+ "audio_vae",
+ "text_encoder",
+ "transformer",
+ "vae"
+ ]
+ },
+ "minimax_h3_reference_conditioning": {
+ "inputs": [
+ "audio_vae",
+ "references",
+ "vae"
+ ],
+ "literalInputs": {
+ "height": [
+ 768
+ ],
+ "is_intermediate": [
+ true
+ ],
+ "num_frames": [
+ 124
+ ],
+ "use_cache": [
+ true
+ ],
+ "width": [
+ 1344
+ ]
+ },
+ "outputs": [
+ "reference_conditioning"
+ ]
+ },
+ "minimax_h3_text_encoder": {
+ "inputs": [
+ "first_image",
+ "prompt",
+ "references",
+ "text_encoder"
+ ],
+ "literalInputs": {
+ "first_image": [],
+ "height": [
+ 768
+ ],
+ "is_intermediate": [
+ true
+ ],
+ "last_image": [],
+ "num_frames": [
+ 124
+ ],
+ "use_cache": [
+ true
+ ],
+ "width": [
+ 1344
+ ]
+ },
+ "outputs": [
+ "conditioning"
+ ]
+ },
+ "string": {
+ "inputs": [],
+ "literalInputs": {
+ "is_intermediate": [
+ true
+ ],
+ "use_cache": [
+ true
+ ]
+ },
+ "outputs": [
+ "value"
+ ]
+ },
+ "video_concat": {
+ "inputs": [
+ "fps",
+ "metadata",
+ "videos"
+ ],
+ "literalInputs": {
+ "is_intermediate": [
+ false
+ ],
+ "size_mismatch": [
+ "match_first"
+ ],
+ "transition": [
+ "crossfade"
+ ],
+ "transition_frames": [
+ 2
+ ],
+ "use_cache": [
+ false
+ ]
+ },
+ "outputs": []
+ },
+ "video_frame_extract": {
+ "inputs": [
+ "video"
+ ],
+ "literalInputs": {
+ "frame_index": [
+ -1
+ ],
+ "is_intermediate": [
+ true
+ ],
+ "use_cache": [
+ false
+ ]
+ },
+ "outputs": [
+ "image"
+ ]
+ },
+ "wan_l2v": {
+ "inputs": [
+ "fps",
+ "latents",
+ "metadata",
+ "vae"
+ ],
+ "literalInputs": {
+ "fps": [
+ 16
+ ],
+ "is_intermediate": [
+ false,
+ true
+ ],
+ "use_cache": [
+ false
+ ]
+ },
+ "outputs": [
+ "video"
+ ]
+ },
+ "wan_model_loader": {
+ "inputs": [],
+ "literalInputs": {
+ "is_intermediate": [
+ true
+ ],
+ "model": [],
+ "use_cache": [
+ true
+ ],
+ "vae_model": [],
+ "wan_t5_encoder_model": []
+ },
+ "outputs": [
+ "transformer",
+ "vae",
+ "wan_t5_encoder"
+ ]
+ },
+ "wan_ref_image_encoder": {
+ "inputs": [
+ "image",
+ "vae"
+ ],
+ "literalInputs": {
+ "end_image": [],
+ "height": [
+ 704,
+ 720
+ ],
+ "image": [],
+ "is_intermediate": [
+ true
+ ],
+ "num_frames": [
+ 81
+ ],
+ "use_cache": [
+ true
+ ],
+ "width": [
+ 1280
+ ]
+ },
+ "outputs": [
+ "ref_image"
+ ]
+ },
+ "wan_text_encoder": {
+ "inputs": [
+ "prompt",
+ "wan_t5_encoder"
+ ],
+ "literalInputs": {
+ "is_intermediate": [
+ true
+ ],
+ "use_cache": [
+ true
+ ]
+ },
+ "outputs": [
+ "conditioning"
+ ]
+ },
+ "wan_video_denoise": {
+ "inputs": [
+ "negative_conditioning",
+ "positive_conditioning",
+ "ref_image",
+ "seed",
+ "transformer"
+ ],
+ "literalInputs": {
+ "guidance_scale": [
+ 5
+ ],
+ "guidance_scale_low_noise": [
+ 4
+ ],
+ "height": [
+ 704,
+ 720
+ ],
+ "is_intermediate": [
+ true
+ ],
+ "num_frames": [
+ 81
+ ],
+ "steps": [
+ 40
+ ],
+ "use_cache": [
+ true
+ ],
+ "width": [
+ 1280
+ ]
+ },
+ "outputs": [
+ "latents"
+ ]
+ }
+ }
+}
diff --git a/invokeai/frontend/webv2/src/features/video/core/dimensions.test.ts b/invokeai/frontend/webv2/src/features/video/core/dimensions.test.ts
index d1db267c6a..ae8f6a558c 100644
--- a/invokeai/frontend/webv2/src/features/video/core/dimensions.test.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/dimensions.test.ts
@@ -11,11 +11,18 @@ import {
resolveMiniMaxH3Canvas,
resolveMiniMaxH3ReferenceImage,
scaleAndSnapWanDimensions,
- snapMiniMaxH3NumFrames,
- snapWanNumFrames,
+ LTX2_NUM_FRAMES_DEFAULT,
+ LTX2_NUM_FRAMES_MAX,
+ LTX2_NUM_FRAMES_MIN,
+ LTX2_NUM_FRAMES_STEP,
+ resolveLtx2Canvas,
+ snapNumFramesToChoices,
+ snapNumFramesToGrid,
WAN_A14B_PIXEL_MULTIPLE,
WAN_NUM_FRAMES_DEFAULT,
WAN_NUM_FRAMES_MAX,
+ WAN_NUM_FRAMES_MIN,
+ WAN_NUM_FRAMES_STEP,
WAN_TI2V_PIXEL_MULTIPLE,
} from './dimensions';
@@ -108,6 +115,20 @@ describe('aspect ratio helpers', () => {
});
});
+const WAN_GRID = {
+ defaultValue: WAN_NUM_FRAMES_DEFAULT,
+ max: WAN_NUM_FRAMES_MAX,
+ min: WAN_NUM_FRAMES_MIN,
+ step: WAN_NUM_FRAMES_STEP,
+};
+const snapWanFrames = (numFrames: number) => snapNumFramesToGrid(WAN_GRID, numFrames);
+
+const H3_CHOICES = {
+ choices: MINIMAX_H3_NUM_FRAMES_CHOICES,
+ defaultValue: MINIMAX_H3_NUM_FRAMES_DEFAULT,
+};
+const snapH3Frames = (numFrames: number) => snapNumFramesToChoices(H3_CHOICES, numFrames);
+
describe('Wan frame counts', () => {
it('accepts only 4n + 1 counts within bounds', () => {
expect(isValidWanNumFrames(81)).toBe(true);
@@ -118,12 +139,12 @@ describe('Wan frame counts', () => {
});
it('snaps onto the grid and clamps to the slider bounds', () => {
- expect(snapWanNumFrames(81)).toBe(81);
- expect(snapWanNumFrames(80)).toBe(81);
- expect(snapWanNumFrames(1)).toBe(5);
- expect(snapWanNumFrames(10_000)).toBe(WAN_NUM_FRAMES_MAX);
- expect(snapWanNumFrames(Number.NaN)).toBe(WAN_NUM_FRAMES_DEFAULT);
- expect(isValidWanNumFrames(snapWanNumFrames(123.7))).toBe(true);
+ expect(snapWanFrames(81)).toBe(81);
+ expect(snapWanFrames(80)).toBe(81);
+ expect(snapWanFrames(1)).toBe(5);
+ expect(snapWanFrames(10_000)).toBe(WAN_NUM_FRAMES_MAX);
+ expect(snapWanFrames(Number.NaN)).toBe(WAN_NUM_FRAMES_DEFAULT);
+ expect(isValidWanNumFrames(snapWanFrames(123.7))).toBe(true);
});
});
@@ -143,11 +164,44 @@ describe('MiniMax H3 frame counts', () => {
it('validates and snaps onto the choice list', () => {
expect(isValidMiniMaxH3NumFrames(124)).toBe(true);
expect(isValidMiniMaxH3NumFrames(120)).toBe(false);
- expect(snapMiniMaxH3NumFrames(124)).toBe(124);
- expect(snapMiniMaxH3NumFrames(100)).toBe(107);
- expect(snapMiniMaxH3NumFrames(0)).toBe(90);
- expect(snapMiniMaxH3NumFrames(10_000)).toBe(345);
- expect(snapMiniMaxH3NumFrames(Number.NaN)).toBe(MINIMAX_H3_NUM_FRAMES_DEFAULT);
+ expect(snapH3Frames(124)).toBe(124);
+ expect(snapH3Frames(100)).toBe(107);
+ expect(snapH3Frames(0)).toBe(90);
+ expect(snapH3Frames(10_000)).toBe(345);
+ expect(snapH3Frames(Number.NaN)).toBe(MINIMAX_H3_NUM_FRAMES_DEFAULT);
+ });
+});
+
+describe('LTX-2 canvas and frame grid', () => {
+ it('pins the short edge and snaps both axes onto the 32 grid', () => {
+ // Independently: 704 short edge at 16:9 -> 1251.6 long -> 1248 on the grid.
+ expect(resolveLtx2Canvas(16, 9, '704p')).toEqual({ height: 704, width: 1248 });
+ expect(resolveLtx2Canvas(9, 16, '704p')).toEqual({ height: 1248, width: 704 });
+ expect(resolveLtx2Canvas(1, 1, '768p')).toEqual({ height: 768, width: 768 });
+ expect(resolveLtx2Canvas(1920, 1080, '512p')).toEqual({ height: 512, width: 896 });
+ });
+
+ it('rejects degenerate inputs rather than returning a canvas', () => {
+ expect(resolveLtx2Canvas(0, 100, '704p')).toBeNull();
+ expect(resolveLtx2Canvas(Number.NaN, 100, '704p')).toBeNull();
+ });
+
+ it('snaps frame counts onto the 8n + 1 grid, rounding a tie up', () => {
+ const grid = {
+ defaultValue: LTX2_NUM_FRAMES_DEFAULT,
+ max: LTX2_NUM_FRAMES_MAX,
+ min: LTX2_NUM_FRAMES_MIN,
+ step: LTX2_NUM_FRAMES_STEP,
+ };
+
+ expect(snapNumFramesToGrid(grid, 121)).toBe(121);
+ expect(snapNumFramesToGrid(grid, 122)).toBe(121);
+ // Halfway between 121 and 129: the longer clip is the better answer.
+ expect(snapNumFramesToGrid(grid, 125)).toBe(129);
+ expect(snapNumFramesToGrid(grid, 1)).toBe(LTX2_NUM_FRAMES_MIN);
+ expect(snapNumFramesToGrid(grid, 10_000)).toBe(LTX2_NUM_FRAMES_MAX);
+ expect(snapNumFramesToGrid(grid, Number.NaN)).toBe(LTX2_NUM_FRAMES_DEFAULT);
+ expect((LTX2_NUM_FRAMES_MAX - 1) % LTX2_NUM_FRAMES_STEP).toBe(0);
});
});
diff --git a/invokeai/frontend/webv2/src/features/video/core/dimensions.ts b/invokeai/frontend/webv2/src/features/video/core/dimensions.ts
index a147a9b868..04e4727c6c 100644
--- a/invokeai/frontend/webv2/src/features/video/core/dimensions.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/dimensions.ts
@@ -1,4 +1,5 @@
import type {
+ Ltx2TargetResolution,
MiniMaxH3TargetResolution,
VideoAspectRatioId,
VideoReferenceImageDetail,
@@ -13,6 +14,7 @@ import type {
* ("nearest" rounding — the node default; the other modes are workflow-only).
* - MiniMax H3: `resolve_canvas_size` in `invokeai/backend/minimax_h3/packing.py`
* and `resolve_lowres_canvas_size` in `invokeai/backend/minimax_h3/presets.py`.
+ * - LTX-2: `resolve_canvas` in `invokeai/backend/ltx2/packing.py`.
* - Ref2VA image references: `resolve_reference_image_short_edge` and
* `normalize_reference_image` in `invokeai/backend/minimax_h3/reference_conditioning.py`.
*
@@ -211,6 +213,56 @@ export const resolveMiniMaxH3ReferenceImage = (
return { dimensions, rows: (dimensions.width * dimensions.height) / MINIMAX_H3_ROW_PIXELS };
};
+export const LTX2_CANVAS_MULTIPLE = 32;
+
+/** Short-side pixel count for each LTX-2 preset ("p" names the short dimension). */
+export const LTX2_TARGET_RESOLUTION_PX: Record<Ltx2TargetResolution, number> = {
+ '512p': 512,
+ '704p': 704,
+ '768p': 768,
+};
+
+/**
+ * The LTX-2 canvas for an aspect ratio: the preset pins the SHORT edge, the long
+ * edge follows the source's ratio, and both axes snap to the VAE's 32-pixel grid.
+ * LTX-2 declares no aspect-ratio limit and no area cap, so only degenerate inputs
+ * return null. Only the ratio of the inputs matters.
+ */
+export const resolveLtx2Canvas = (
+ width: number,
+ height: number,
+ targetResolution: Ltx2TargetResolution
+): VideoDimensions | null => {
+ if (!Number.isFinite(width) || !Number.isFinite(height) || width <= 0 || height <= 0) {
+ return null;
+ }
+
+ const shortEdge = LTX2_TARGET_RESOLUTION_PX[targetResolution];
+ const ratio = width / height;
+ const raw =
+ ratio >= 1 ? { height: shortEdge, width: shortEdge * ratio } : { height: shortEdge / ratio, width: shortEdge };
+
+ return {
+ height: snapToMultiple(raw.height, LTX2_CANVAS_MULTIPLE),
+ width: snapToMultiple(raw.width, LTX2_CANVAS_MULTIPLE),
+ };
+};
+
+// LTX-2's causal VAE encodes the first frame alone and then groups of 8, so
+// (n - 1) % 8 == 0. 121 frames is 5 s at the model's 24 fps default, the length
+// the released pipeline generates; the slider stops at 241 (10 s) because the
+// sequence length — and with it both time and VRAM — grows linearly past it,
+// while the field still accepts up to 481 for a deliberate long render.
+export const LTX2_NUM_FRAMES_MIN = 9;
+export const LTX2_NUM_FRAMES_MAX = 481;
+export const LTX2_NUM_FRAMES_SLIDER_MAX = 241;
+export const LTX2_NUM_FRAMES_STEP = 8;
+export const LTX2_NUM_FRAMES_DEFAULT = 121;
+
+export const LTX2_FPS_MIN = 1;
+export const LTX2_FPS_MAX = 60;
+export const LTX2_FPS_DEFAULT = 24;
+
/** The width/height parts of a preset ratio, for feeding the canvas resolvers. */
export const getVideoAspectRatioParts = (id: VideoAspectRatioId): VideoDimensions => {
const [width = 1, height = 1] = id.split(':').map(Number);
@@ -241,14 +293,29 @@ export const WAN_FPS_DEFAULT = 16;
export const isValidWanNumFrames = (numFrames: number): boolean =>
Number.isInteger(numFrames) && numFrames >= WAN_NUM_FRAMES_MIN && (numFrames - 1) % WAN_NUM_FRAMES_STEP === 0;
-export const snapWanNumFrames = (numFrames: number): number => {
+/** A frame count's grid, as the variant policies declare it. */
+export interface VideoFramesGrid {
+ min: number;
+ max: number;
+ step: number;
+ defaultValue: number;
+}
+
+/**
+ * The nearest frame count on a family's grid, clamped to its range. Ties round
+ * UP: a count halfway between two grid points is as close to either, and
+ * rounding a short request down toward the floor is the worse answer (it can
+ * collapse a clip to the minimum). Matches `snap_num_frames` in
+ * `invokeai/backend/ltx2/packing.py`.
+ */
+export const snapNumFramesToGrid = (grid: VideoFramesGrid, numFrames: number): number => {
if (!Number.isFinite(numFrames)) {
- return WAN_NUM_FRAMES_DEFAULT;
+ return grid.defaultValue;
}
- const clamped = Math.min(WAN_NUM_FRAMES_MAX, Math.max(WAN_NUM_FRAMES_MIN, numFrames));
+ const clamped = Math.min(grid.max, Math.max(grid.min, numFrames));
- return Math.round((clamped - 1) / WAN_NUM_FRAMES_STEP) * WAN_NUM_FRAMES_STEP + 1;
+ return Math.floor((clamped - grid.min) / grid.step + 0.5) * grid.step + grid.min;
};
export const MINIMAX_H3_FPS = 24;
@@ -263,15 +330,22 @@ export const MINIMAX_H3_NUM_FRAMES_DEFAULT = 124;
export const isValidMiniMaxH3NumFrames = (numFrames: number): boolean =>
MINIMAX_H3_NUM_FRAMES_CHOICES.includes(numFrames);
-export const snapMiniMaxH3NumFrames = (numFrames: number): number => {
+/** A frame count's choice list, as the variant policies declare it. */
+export interface VideoFramesChoices {
+ choices: readonly number[];
+ defaultValue: number;
+}
+
+/** The nearest offered frame count; the first of two equally near ones wins. */
+export const snapNumFramesToChoices = (policy: VideoFramesChoices, numFrames: number): number => {
if (!Number.isFinite(numFrames)) {
- return MINIMAX_H3_NUM_FRAMES_DEFAULT;
+ return policy.defaultValue;
}
- let best = MINIMAX_H3_NUM_FRAMES_DEFAULT;
+ let best = policy.defaultValue;
let bestDistance = Number.POSITIVE_INFINITY;
- for (const choice of MINIMAX_H3_NUM_FRAMES_CHOICES) {
+ for (const choice of policy.choices) {
const distance = Math.abs(choice - numFrames);
if (distance < bestDistance) {
@@ -286,3 +360,23 @@ export const snapMiniMaxH3NumFrames = (numFrames: number): number => {
/** Clip length in seconds; matches the backend's `n / fps` labeling. */
export const getVideoDurationSeconds = (numFrames: number, fps: number): number | null =>
Number.isFinite(numFrames) && Number.isFinite(fps) && fps > 0 && numFrames >= 0 ? numFrames / fps : null;
+
+/**
+ * The negative prompt LTX-2 was released with: a list of artifact and audio-defect tags its dev
+ * checkpoint guides against at CFG 3. Mirrors `LTX2_DEFAULT_NEGATIVE_PROMPT` in
+ * `invokeai/backend/ltx2/constants.py`, which is the text-encoder node's own default — the panel
+ * seeds it so a fresh LTX-2 panel runs the released recipe rather than steering against nothing.
+ */
+export const LTX2_DEFAULT_NEGATIVE_PROMPT =
+ 'has_subtitles, has_blurbox, transition from black, transition to black, speech_ending_short, ' +
+ 'blurry, out of focus, overexposed, underexposed, low contrast, washed out colors, excessive noise, ' +
+ 'grainy texture, poor lighting, flickering, motion blur, distorted proportions, unnatural skin tones, ' +
+ 'deformed facial features, asymmetrical face, missing facial features, extra limbs, disfigured hands, ' +
+ 'wrong hand count, artifacts around text, inconsistent perspective, camera shake, incorrect depth of ' +
+ 'field, background too sharp, background clutter, distracting reflections, harsh shadows, inconsistent ' +
+ 'lighting direction, color banding, cartoonish rendering, 3D CGI look, unrealistic materials, uncanny ' +
+ 'valley effect, incorrect ethnicity, wrong gender, exaggerated expressions, wrong gaze direction, ' +
+ 'mismatched lip sync, silent or muted audio, distorted voice, robotic voice, echo, background noise, ' +
+ 'off-sync audio, incorrect dialogue, added dialogue, repetitive speech, jittery movement, awkward ' +
+ 'pauses, incorrect timing, unnatural transitions, inconsistent framing, tilted camera, flat lighting, ' +
+ 'inconsistent tone, cinematic oversaturation, stylized filters, or AI artifacts.';
diff --git a/invokeai/frontend/webv2/src/features/video/core/graph.test.ts b/invokeai/frontend/webv2/src/features/video/core/graph.test.ts
index ecc40757fc..90f6161501 100644
--- a/invokeai/frontend/webv2/src/features/video/core/graph.test.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/graph.test.ts
@@ -737,3 +737,181 @@ describe('compileVideoGraph — MiniMax H3 Ref2VA', () => {
});
});
});
+
+const ltx2Model = (variant: string, format = 'checkpoint', key = `ltx2-${variant}-${format}`): MainModelConfig => ({
+ base: 'ltx-2',
+ format,
+ key,
+ name: `LTX-2 ${variant}`,
+ type: 'main',
+ variant,
+});
+
+const LTX2_COMPONENTS: MainModelConfig = {
+ base: 'ltx-2',
+ format: 'diffusers',
+ key: 'ltx2-components',
+ name: 'LTX-2.5 Components',
+ type: 'main',
+ variant: 'ltx2_dev',
+};
+const LTX2_ENCODER = { base: 'ltx-2', key: 'gemma4', name: 'LTX-2.5 Text Encoder', type: 'gemma4_encoder' as const };
+
+const ltx2SettingsFor = (model: MainModelConfig, overrides: Partial<VideoSettings> = {}): VideoSettings =>
+ settingsFor(model, {
+ componentSourceModel: model.format === 'diffusers' ? null : LTX2_COMPONENTS,
+ ltx2TextEncoderModel: LTX2_ENCODER,
+ ...overrides,
+ });
+
+describe('compileVideoGraph — LTX-2', () => {
+ it('assembles the generation from the transformer, the component folder and the Gemma-4 encoder', () => {
+ const model = ltx2Model('ltx2_dev');
+ const { backendGraph } = compileVideoGraph(ltx2SettingsFor(model), model);
+ const loader = nodeOfType(backendGraph, 'ltx2_model_loader');
+
+ expect(loader.model).toEqual(model);
+ expect(loader.component_source).toEqual(LTX2_COMPONENTS);
+ expect(loader.text_encoder_model).toEqual(LTX2_ENCODER);
+ });
+
+ it('decodes through the video VAE, the audio VAE and the vocoder', () => {
+ const model = ltx2Model('ltx2_dev');
+ const { backendGraph } = compileVideoGraph(ltx2SettingsFor(model), model);
+ const output = nodeOfType(backendGraph, 'ltx2_latents_to_video');
+
+ // The soundtrack is generated with the picture, so its whole decode chain has to be wired or
+ // the clip comes out silent.
+ expect(hasEdge(backendGraph, 'denoise_latents', 'video_latents', output.id, 'video_latents')).toBe(true);
+ expect(hasEdge(backendGraph, 'denoise_latents', 'audio_latents', output.id, 'audio_latents')).toBe(true);
+ expect(hasEdge(backendGraph, 'model_loader', 'vae', output.id, 'vae')).toBe(true);
+ expect(hasEdge(backendGraph, 'model_loader', 'audio_vae', output.id, 'audio_vae')).toBe(true);
+ expect(hasEdge(backendGraph, 'model_loader', 'vocoder', output.id, 'vocoder')).toBe(true);
+ });
+
+ it('encodes the negative prompt whenever either classifier-free scale will consume it', () => {
+ const model = ltx2Model('ltx2_dev');
+ const isWired = (settings: Partial<VideoSettings>) => {
+ const graph = compileVideoGraph(ltx2SettingsFor(model, settings), model).backendGraph;
+
+ return {
+ denoise: nodeOfType(graph, 'ltx2_denoise'),
+ encodes: nodeOfType(graph, 'ltx2_text_encoder').encode_negative,
+ wired: hasEdge(graph, 'pos_cond', 'negative_conditioning', 'denoise_latents', 'negative_conditioning'),
+ };
+ };
+
+ const guided = isWired({ cfgScale: 3, audioCfgScale: 7 });
+
+ expect([guided.encodes, guided.wired]).toEqual([true, true]);
+
+ // One unconditional pass serves both streams, so audio guidance alone still consumes the
+ // negative prompt — and the node refuses an audio scale above 1 with nothing wired.
+ const audioOnly = isWired({ cfgScale: 1, audioCfgScale: 7 });
+
+ expect([audioOnly.encodes, audioOnly.wired]).toEqual([true, true]);
+
+ // Both at 1: no unconditional pass, so a 12B encode of the negative prompt would be wasted.
+ const unguided = isWired({ cfgScale: 1, audioCfgScale: 1 });
+
+ expect([unguided.encodes, unguided.wired]).toEqual([false, false]);
+ });
+
+ it('holds both classifier-free scales at 1 when the negative prompt is switched off', () => {
+ // Otherwise the panel's own switch queues a graph the denoise node refuses — after the 12B
+ // prompt encode and the 22B transformer load.
+ const model = ltx2Model('ltx2_dev');
+ const settings = ltx2SettingsFor(model, { negativePromptEnabled: false, cfgScale: 3, audioCfgScale: 7 });
+ const { backendGraph } = compileVideoGraph(settings, model);
+ const denoise = nodeOfType(backendGraph, 'ltx2_denoise');
+
+ expect(nodeOfType(backendGraph, 'ltx2_text_encoder').encode_negative).toBe(false);
+ expect(denoise.cfg_scale).toBe(1);
+ expect(denoise.audio_cfg_scale).toBe(1);
+ // The other two passes steer against the positive conditioning, so they keep running.
+ expect(denoise.stg_scale).toBe(1);
+ expect(denoise.modality_scale).toBe(3);
+
+ // Metadata records the run, not the panel: recalling this video must not restore a CFG of 3
+ // that the generation never used.
+ const metadata = nodeOfType(backendGraph, 'core_metadata');
+
+ expect(metadata.cfg_scale).toBe(1);
+ expect(metadata.ltx2_audio_cfg_scale).toBe(1);
+ });
+
+ it('writes the guidance the dev schedule runs and lets the backend resolve the schedule itself', () => {
+ const model = ltx2Model('ltx2_dev');
+ const settings = ltx2SettingsFor(model);
+ const { backendGraph } = compileVideoGraph(settings, model);
+ const denoise = nodeOfType(backendGraph, 'ltx2_denoise');
+
+ expect(denoise.cfg_scale).toBe(3);
+ expect(denoise.audio_cfg_scale).toBe(7);
+ expect(denoise.stg_scale).toBe(1);
+ expect(denoise.modality_scale).toBe(3);
+ expect(denoise.steps).toBe(30);
+ // The loader stamps the schedule from the checkpoint, which outranks the panel's own reading of
+ // a variant it may not recognise.
+ expect(denoise.schedule).toBe('auto');
+ });
+
+ it('collapses the guidance to its inert values on the distilled schedule', () => {
+ const model = ltx2Model('ltx2_distilled');
+ const { backendGraph } = compileVideoGraph(ltx2SettingsFor(model), model);
+ const denoise = nodeOfType(backendGraph, 'ltx2_denoise');
+
+ // The node ignores the scales on a distilled checkpoint; the graph should say what runs.
+ expect(denoise.cfg_scale).toBe(1);
+ expect(denoise.audio_cfg_scale).toBe(1);
+ expect(denoise.stg_scale).toBe(0);
+ expect(denoise.modality_scale).toBe(1);
+ expect(denoise.steps).toBe(8);
+ expect(nodesOfType(backendGraph, 'ltx2_text_encoder')[0]?.encode_negative).toBe(false);
+ });
+
+ it('conditions on a first frame through the image-conditioning node at the denoise canvas', () => {
+ const model = ltx2Model('ltx2_dev');
+ const settings = ltx2SettingsFor(model, { firstFrameImage: FIRST_FRAME });
+ const { backendGraph } = compileVideoGraph(settings, model);
+ const conditioning = nodeOfType(backendGraph, 'ltx2_image_conditioning');
+ const denoise = nodeOfType(backendGraph, 'ltx2_denoise');
+
+ expect(conditioning.image).toEqual({ image_name: FIRST_FRAME.image_name });
+ // A canvas mismatch is what the denoise node refuses, so the same dimensions must reach both.
+ expect(conditioning.width).toBe(denoise.width);
+ expect(conditioning.height).toBe(denoise.height);
+ expect(hasEdge(backendGraph, 'model_loader', 'vae', conditioning.id, 'vae')).toBe(true);
+ expect(hasEdge(backendGraph, conditioning.id, 'video_conditioning', denoise.id, 'video_conditioning')).toBe(true);
+ expect(nodeOfType(backendGraph, 'core_metadata').generation_mode).toBe('ltx2_i2v');
+ });
+
+ it('records what recall needs and nothing it can derive', () => {
+ const model = ltx2Model('ltx2_dev');
+ const { backendGraph } = compileVideoGraph(ltx2SettingsFor(model), model);
+ const metadata = nodeOfType(backendGraph, 'core_metadata');
+
+ expect(metadata.generation_mode).toBe('ltx2_t2v');
+ expect(metadata.ltx2_component_source).toEqual(LTX2_COMPONENTS);
+ expect(metadata.ltx2_text_encoder_model).toEqual(LTX2_ENCODER);
+ expect(metadata.ltx2_audio_cfg_scale).toBe(7);
+ expect(metadata.ltx2_stg_scale).toBe(1);
+ expect(metadata.ltx2_modality_scale).toBe(3);
+ expect(metadata.fps).toBe(24);
+ });
+
+ it('needs no component folder when the model is a full install', () => {
+ const model = ltx2Model('ltx2_dev', 'diffusers');
+ const { backendGraph } = compileVideoGraph(ltx2SettingsFor(model), model);
+
+ expect(nodeOfType(backendGraph, 'ltx2_model_loader').component_source).toBeUndefined();
+ });
+
+ it('refuses to compile without the Gemma-4 encoder no LTX-2 model carries', () => {
+ const model = ltx2Model('ltx2_dev');
+
+ expect(() => compileVideoGraph(ltx2SettingsFor(model, { ltx2TextEncoderModel: null }), model)).toThrow(
+ /Gemma-4 text encoder/
+ );
+ });
+});
diff --git a/invokeai/frontend/webv2/src/features/video/core/graph.ts b/invokeai/frontend/webv2/src/features/video/core/graph.ts
index d71aeadc8b..fafd2a4bc5 100644
--- a/invokeai/frontend/webv2/src/features/video/core/graph.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/graph.ts
@@ -17,6 +17,7 @@ import {
import { getCompatibleDiffusersComponentSource } from '@features/generation/settings';
import type { VideoGenerationMode, VideoReferenceItem, VideoSettings, VideoSourceClip } from './types';
+import type { SupportedVideoBase } from './videoPolicies';
import { MINIMAX_H3_FPS } from './dimensions';
import { MINIMAX_H3_HYBRID_BLOCK_RANGE, resolveVideoMode } from './settings';
@@ -45,6 +46,11 @@ const WAN_GENERATION_MODES: Partial<Record<VideoGenerationMode, string>> = {
txt2vid: 'wan_t2v',
};
+const LTX2_GENERATION_MODES: Partial<Record<VideoGenerationMode, string>> = {
+ 'first-frame': 'ltx2_i2v',
+ txt2vid: 'ltx2_t2v',
+};
+
const MINIMAX_H3_GENERATION_MODES: Record<VideoGenerationMode, string> = {
extend: 'minimax_h3_extend_video',
'first-frame': 'minimax_h3_i2v',
@@ -711,6 +717,162 @@ const buildMiniMaxH3VideoGraph = (settings: VideoSettings, model: MainModelConfi
return graph;
};
+/**
+ * LTX-2: one transformer generates video and its soundtrack together, so there
+ * is a single denoise and a single decode; what varies is how much guidance the
+ * checkpoint's schedule wants. The dev checkpoint runs up to four forwards per
+ * step (conditional, unconditional, spatio-temporal, modality-isolation); the
+ * distilled one runs a fixed eight steps with none, which is why the guidance
+ * literals below collapse to their inert values rather than being omitted — the
+ * graph should state what will actually run.
+ */
+const buildLtx2VideoGraph = (settings: VideoSettings, model: MainModelConfig): BackendGraphContract => {
+ const mode = resolveVideoMode(settings);
+ const policy = getVideoModelPolicy(model, settings);
+ const dimensions = getVideoDimensions(model, settings);
+
+ if (!dimensions) {
+ throw new Error('Video dimensions could not be derived from the current settings.');
+ }
+
+ // No LTX-2 main carries text-encoder weights, and a single-file transformer
+ // carries none of the VAEs, vocoder or connectors either. Validation requires
+ // both slots; these throws are backstops for direct callers.
+ const componentSource = model.format === 'diffusers' ? null : settings.componentSourceModel;
+
+ if (model.format !== 'diffusers' && !componentSource) {
+ throw new Error('A single-file LTX-2 transformer needs an LTX-2 components install under Model Components.');
+ }
+ if (!settings.ltx2TextEncoderModel) {
+ throw new Error('LTX-2 needs its Gemma-4 text encoder selected under Model Components.');
+ }
+
+ const graph: BackendGraphContract = { edges: [], id: createId('ltx2_video_graph'), nodes: {} };
+ const { negativePrompt, positivePrompt, seed } = addPromptAndSeedNodes(graph);
+ const modelLoader = addNode(graph, {
+ component_source: componentSource ?? undefined,
+ id: 'model_loader',
+ model,
+ text_encoder_model: settings.ltx2TextEncoderModel,
+ type: 'ltx2_model_loader',
+ });
+
+ // The negative prompt only reaches the model through classifier-free
+ // guidance, so a schedule that runs none skips a 12B encode entirely.
+ const negativeWired = policy.prompt.negativeUsedInGraph;
+ const textEncoder = addNode(graph, {
+ encode_negative: negativeWired,
+ id: 'pos_cond',
+ type: 'ltx2_text_encoder',
+ });
+
+ addEdge(graph, modelLoader, 'text_encoder', textEncoder, 'text_encoder');
+ addEdge(graph, positivePrompt, 'value', textEncoder, 'prompt');
+ if (negativeWired) {
+ addEdge(graph, negativePrompt, 'value', textEncoder, 'negative_prompt');
+ }
+
+ // Both classifier-free scales are held at 1 without a negative prompt: they are the only terms
+ // that consume one, and the node refuses a scale above 1 with nothing wired. The spatio-temporal
+ // and modality passes steer against the *positive* conditioning, so they keep running — turning
+ // the negative prompt off is not a request to stop guiding. Metadata records these rather than
+ // the panel's own numbers, so a recall reproduces the run instead of the settings.
+ const guidance = policy.ui.cfgVisible
+ ? {
+ audio_cfg_scale: negativeWired ? (settings.audioCfgScale ?? policy.defaults.audioCfgScale ?? 1) : 1,
+ cfg_scale: negativeWired ? settings.cfgScale : 1,
+ modality_scale: settings.modalityScale ?? policy.defaults.modalityScale ?? 1,
+ stg_scale: settings.stgScale ?? policy.defaults.stgScale ?? 0,
+ }
+ : { audio_cfg_scale: 1, cfg_scale: 1, modality_scale: 1, stg_scale: 0 };
+
+ const denoise = addNode(graph, {
+ fps: settings.fps,
+ height: dimensions.height,
+ id: 'denoise_latents',
+ num_frames: settings.numFrames,
+ // 'auto' rather than the panel's own reading of the variant: the loader
+ // stamps the schedule off the checkpoint itself, which is the authority
+ // when a release the panel does not recognise falls back to the dev policy.
+ schedule: 'auto',
+ steps: settings.steps,
+ type: 'ltx2_denoise',
+ width: dimensions.width,
+ ...guidance,
+ });
+
+ addEdge(graph, modelLoader, 'transformer', denoise, 'transformer');
+ addEdge(graph, textEncoder, 'conditioning', denoise, 'positive_conditioning');
+ if (negativeWired) {
+ addEdge(graph, textEncoder, 'negative_conditioning', denoise, 'negative_conditioning');
+ }
+ addEdge(graph, seed, 'value', denoise, 'seed');
+
+ if (mode === 'first-frame') {
+ if (!settings.firstFrameImage) {
+ throw new Error('A first frame is required for image-to-video generation.');
+ }
+
+ const imageConditioning = addNode(graph, {
+ height: dimensions.height,
+ id: 'image_conditioning',
+ image: toImageField(settings.firstFrameImage),
+ type: 'ltx2_image_conditioning',
+ width: dimensions.width,
+ });
+
+ addEdge(graph, modelLoader, 'vae', imageConditioning, 'vae');
+ addEdge(graph, imageConditioning, 'video_conditioning', denoise, 'video_conditioning');
+ }
+
+ const output = addNode(graph, {
+ fps: settings.fps,
+ id: 'video_output',
+ is_intermediate: false,
+ type: 'ltx2_latents_to_video',
+ use_cache: false,
+ });
+
+ addEdge(graph, denoise, 'video_latents', output, 'video_latents');
+ addEdge(graph, denoise, 'audio_latents', output, 'audio_latents');
+ addEdge(graph, modelLoader, 'vae', output, 'vae');
+ addEdge(graph, modelLoader, 'audio_vae', output, 'audio_vae');
+ addEdge(graph, modelLoader, 'vocoder', output, 'vocoder');
+
+ addVideoMetadata({
+ extras: {
+ cfg_scale: guidance.cfg_scale,
+ fps: settings.fps,
+ ltx2_text_encoder_model: settings.ltx2TextEncoderModel,
+ ...(componentSource ? { ltx2_component_source: componentSource } : {}),
+ ...(policy.ui.audioCfgVisible ? { ltx2_audio_cfg_scale: guidance.audio_cfg_scale } : {}),
+ ...(policy.ui.stgVisible ? { ltx2_stg_scale: guidance.stg_scale } : {}),
+ ...(policy.ui.modalityVisible ? { ltx2_modality_scale: guidance.modality_scale } : {}),
+ },
+ generationMode: LTX2_GENERATION_MODES[mode] ?? 'ltx2_t2v',
+ graph,
+ height: dimensions.height,
+ model,
+ negativeWired,
+ outputs: [output],
+ settings,
+ width: dimensions.width,
+ });
+
+ return graph;
+};
+
+/**
+ * One builder per supported family. A record rather than a conditional so a new
+ * family cannot compile without one — the failure would otherwise be a Wan
+ * graph built for someone else's model.
+ */
+const VIDEO_GRAPH_BUILDERS = {
+ 'ltx-2': buildLtx2VideoGraph,
+ 'minimax-h3': buildMiniMaxH3VideoGraph,
+ wan: buildWanVideoGraph,
+} satisfies Record<SupportedVideoBase, (settings: VideoSettings, model: MainModelConfig) => BackendGraphContract>;
+
export const compileVideoGraph = (settings: VideoSettings, model: MainModelConfig): CompiledVideoGraph => {
const validationReasons = getVideoValidationReasons(model, settings);
@@ -718,8 +880,13 @@ export const compileVideoGraph = (settings: VideoSettings, model: MainModelConfi
throw new Error(validationReasons[0]);
}
- const backendGraph =
- model.base === 'minimax-h3' ? buildMiniMaxH3VideoGraph(settings, model) : buildWanVideoGraph(settings, model);
+ const builder = VIDEO_GRAPH_BUILDERS[model.base as SupportedVideoBase];
+
+ if (!builder) {
+ throw new Error(`No video graph builder for ${model.base}.`);
+ }
+
+ const backendGraph = builder(settings, model);
return {
backendGraph,
diff --git a/invokeai/frontend/webv2/src/features/video/core/settings.ts b/invokeai/frontend/webv2/src/features/video/core/settings.ts
index 1ef73c08d2..0e44a10cbc 100644
--- a/invokeai/frontend/webv2/src/features/video/core/settings.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/settings.ts
@@ -16,6 +16,7 @@ import {
import { isSeedMode } from '@platform/core/seed';
import type {
+ Ltx2TargetResolution,
MiniMaxH3TargetResolution,
VideoAspectRatioId,
VideoGenerationMode,
@@ -64,11 +65,13 @@ export const isVideoAspectRatioId = (value: unknown): value is VideoAspectRatioI
export const WAN_TARGET_RESOLUTIONS: readonly WanTargetResolution[] = ['480p', '720p', '1080p'];
export const MINIMAX_H3_TARGET_RESOLUTIONS: readonly MiniMaxH3TargetResolution[] = ['768 highres', '768 lowres'];
+export const LTX2_TARGET_RESOLUTIONS: readonly Ltx2TargetResolution[] = ['512p', '704p', '768p'];
export const isVideoTargetResolution = (value: unknown): value is VideoTargetResolution =>
typeof value === 'string' &&
((WAN_TARGET_RESOLUTIONS as readonly string[]).includes(value) ||
- (MINIMAX_H3_TARGET_RESOLUTIONS as readonly string[]).includes(value));
+ (MINIMAX_H3_TARGET_RESOLUTIONS as readonly string[]).includes(value) ||
+ (LTX2_TARGET_RESOLUTIONS as readonly string[]).includes(value));
export const isImageWithDims = (value: unknown): value is ImageWithDims =>
isRecord(value) &&
@@ -412,6 +415,12 @@ export const normalizeVideoSettings = (values: unknown): VideoSettings | null =>
batchCount: sanitizeBatchCount(values.batchCount),
cfgScale: hasFiniteNumber(values, 'cfgScale') ? (values.cfgScale as number) : SETTINGS_FALLBACKS.cfgScale,
cfgScaleLowNoise: hasFiniteNumber(values, 'cfgScaleLowNoise') ? (values.cfgScaleLowNoise as number) : null,
+ // Null is the healed value for every per-family guidance scale: the model
+ // selection transition fills in the family's own default, and a number
+ // healed in here would be another family's.
+ audioCfgScale: hasFiniteNumber(values, 'audioCfgScale') ? (values.audioCfgScale as number) : null,
+ modalityScale: hasFiniteNumber(values, 'modalityScale') ? (values.modalityScale as number) : null,
+ stgScale: hasFiniteNumber(values, 'stgScale') ? (values.stgScale as number) : null,
firstFrameImage,
fps: hasFiniteNumber(values, 'fps') ? (values.fps as number) : SETTINGS_FALLBACKS.fps,
h3HybridBaseModel: isMainModelConfig(values.h3HybridBaseModel) ? values.h3HybridBaseModel : null,
@@ -426,6 +435,7 @@ export const normalizeVideoSettings = (values: unknown): VideoSettings | null =>
),
h3TextEncoderModel: isModelIdentifierConfig(values.h3TextEncoderModel) ? values.h3TextEncoderModel : null,
h3TransformerModel: isMainModelConfig(values.h3TransformerModel) ? values.h3TransformerModel : null,
+ ltx2TextEncoderModel: isModelIdentifierConfig(values.ltx2TextEncoderModel) ? values.ltx2TextEncoderModel : null,
acceleratorEnabled,
acceleratorLoraKeys: acceleratorEnabled ? acceleratorLoraKeys : [],
lastFrameImage: !hasReferences && isImageWithDims(values.lastFrameImage) ? values.lastFrameImage : null,
@@ -492,6 +502,9 @@ export const isVideoSettings = (values: unknown): values is VideoSettings => {
hasFiniteNumber(values, 'negativePromptHeightPx') &&
hasFiniteNumber(values, 'positivePromptHeightPx') &&
(values.cfgScaleLowNoise === null || hasFiniteNumber(values, 'cfgScaleLowNoise')) &&
+ (values.audioCfgScale === null || hasFiniteNumber(values, 'audioCfgScale')) &&
+ (values.stgScale === null || hasFiniteNumber(values, 'stgScale')) &&
+ (values.modalityScale === null || hasFiniteNumber(values, 'modalityScale')) &&
(values.firstFrameImage === null || isImageWithDims(values.firstFrameImage)) &&
(values.lastFrameImage === null || isImageWithDims(values.lastFrameImage)) &&
(values.sourceVideo === null || isVideoSourceClip(values.sourceVideo)) &&
@@ -511,6 +524,7 @@ export const isVideoSettings = (values: unknown): values is VideoSettings => {
(values.h3TransformerModel === null || isMainModelConfig(values.h3TransformerModel)) &&
(values.h3TextEncoderModel === null || isModelIdentifierConfig(values.h3TextEncoderModel)) &&
(values.h3HybridBaseModel === null || isMainModelConfig(values.h3HybridBaseModel)) &&
+ (values.ltx2TextEncoderModel === null || isModelIdentifierConfig(values.ltx2TextEncoderModel)) &&
hasFiniteNumber(values, 'h3HybridStartBlock')
);
};
@@ -545,6 +559,7 @@ export const cloneVideoWidgetValues = (values: VideoWidgetValues): VideoWidgetVa
h3TransformerModel: values.h3TransformerModel ? { ...values.h3TransformerModel } : null,
lastFrameImage: values.lastFrameImage ? { ...values.lastFrameImage } : null,
loras: values.loras.map((lora) => ({ ...lora, model: { ...lora.model } })),
+ ltx2TextEncoderModel: values.ltx2TextEncoderModel ? { ...values.ltx2TextEncoderModel } : null,
model: values.model ? { ...values.model } : null,
references: values.references.map((reference) =>
reference.kind === 'video'
diff --git a/invokeai/frontend/webv2/src/features/video/core/types.ts b/invokeai/frontend/webv2/src/features/video/core/types.ts
index c7b0569ee8..c1686d9d27 100644
--- a/invokeai/frontend/webv2/src/features/video/core/types.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/types.ts
@@ -81,7 +81,9 @@ export type VideoReferenceItem =
export type WanTargetResolution = '480p' | '720p' | '1080p';
export type MiniMaxH3TargetResolution = '768 highres' | '768 lowres';
-export type VideoTargetResolution = WanTargetResolution | MiniMaxH3TargetResolution;
+/** LTX-2 presets pin the canvas's SHORT edge; the long edge follows the aspect ratio. */
+export type Ltx2TargetResolution = '512p' | '704p' | '768p';
+export type VideoTargetResolution = WanTargetResolution | MiniMaxH3TargetResolution | Ltx2TargetResolution;
/**
* The preset ratios the video panel offers. No `Free` and no width/height
@@ -130,6 +132,24 @@ export interface VideoSettings {
cfgScale: number;
/** Guidance for the low-noise half of a Wan A14B schedule; null reuses `cfgScale`. */
cfgScaleLowNoise: number | null;
+ /**
+ * LTX-2 guides its audio stream separately from its video, and far harder
+ * (the release uses 7 against video's 3). Null on a family with one guidance
+ * scale, the way `cfgScaleLowNoise` is null outside Wan A14B.
+ */
+ audioCfgScale: number | null;
+ /**
+ * LTX-2 spatio-temporal guidance: steers away from a pass whose self-attention
+ * is skipped in one transformer block, which sharpens motion. 0 turns it off
+ * and saves a forward per step. Null on families without it.
+ */
+ stgScale: number | null;
+ /**
+ * LTX-2 modality-isolation guidance: steers away from a pass with the
+ * audio/video cross-attention disabled, tightening the two streams'
+ * agreement. 1 turns it off. Null on families without it.
+ */
+ modalityScale: number | null;
/**
* The family's distillation fast path: the Lightning LoRA pair at 4 steps /
* CFG 1 for Wan A14B, the Turbo LoRA at 6 steps for MiniMax H3. Toggling it
@@ -169,6 +189,12 @@ export interface VideoSettings {
h3TransformerModel: MainModelConfig | null;
/** Optional single-file MiniMax H3 Qwen3-VL text-encoder override. */
h3TextEncoderModel: ModelIdentifierConfig | null;
+ /**
+ * LTX-2's Lightricks-tuned Gemma-4 text encoder. Required, not an override:
+ * no LTX-2 main carries text-encoder weights, so a generation cannot run
+ * without one selected.
+ */
+ ltx2TextEncoderModel: ModelIdentifierConfig | null;
/**
* MiniMax H3 hybrid: with a Ref2VA transformer selected, an FL2VA checkpoint
* that supplies every weight except the AdaLN modulation projections from
diff --git a/invokeai/frontend/webv2/src/features/video/core/videoGraphCoverage.test.ts b/invokeai/frontend/webv2/src/features/video/core/videoGraphCoverage.test.ts
new file mode 100644
index 0000000000..604ac20db1
--- /dev/null
+++ b/invokeai/frontend/webv2/src/features/video/core/videoGraphCoverage.test.ts
@@ -0,0 +1,326 @@
+/**
+ * Every supported video base, variant and generation mode compiles a graph — the systematic
+ * counterpart to `graph.test.ts`, and the video twin of
+ * `src/features/generation/core/graphCoverage.test.ts`.
+ *
+ * `graph.test.ts` asserts what an individual family wires, one hand-written case at a time. A
+ * variant added to `VIDEO_GENERATION` but never given a case is silently untested, and so is a mode
+ * a variant declares but no case exercises. This file iterates the registry itself, so a new
+ * architecture is covered the moment it is registered.
+ *
+ * It also records the node types, edge fields and literal input values each case emits into a
+ * committed fixture. That fixture is the frontend half of a cross-stack contract:
+ * `tests/app/invocations/test_frontend_graph_node_types.py` reads it, alongside the Generate
+ * panel's own, and checks every type and field against the backend's `InvocationRegistry`. The
+ * frontend never sees a backend schema,
+ * so a node renamed or a field moved is otherwise an enqueue-time error on a graph the user cannot
+ * edit — after the model has loaded.
+ *
+ * The snapshot file is written by this test and by nothing else; `.oxfmtrc.json` excludes it so
+ * the formatter and this test are not both in charge of the same bytes.
+ */
+
+import type { GenerationModelCatalogItem as ModelConfig, MainModelConfig } from '@features/generation/contracts';
+import type { BackendGraphContract } from '@features/generation/core/contracts';
+
+import { describe, expect, it } from 'vitest';
+
+import type { VideoGenerationMode, VideoSettings, VideoSourceClip } from './types';
+import type { VideoComponentPolicyContext, VideoComponentSlotPolicy, VideoComponentValueKey } from './videoPolicies';
+
+import { compileVideoGraph } from './graph';
+import {
+ getDefaultVideoSettings,
+ getVideoComponentSectionPolicy,
+ getVideoValidationReasons,
+ isVideoModelSelectable,
+ SUPPORTED_VIDEO_BASES,
+ VIDEO_GENERATION,
+} from './videoPolicies';
+
+const IMAGE = { height: 704, image_name: 'frame.png', width: 1248 };
+const CLIP: VideoSourceClip = {
+ endFrame: 47,
+ fps: 24,
+ height: 704,
+ numFrames: 48,
+ startFrame: 0,
+ video_name: 'clip.mp4',
+ width: 1248,
+};
+
+/** The conditioning each mode needs; `resolveVideoMode` infers the mode back from it. */
+const MODE_INPUTS: Record<VideoGenerationMode, Partial<VideoSettings>> = {
+ extend: { sourceVideo: CLIP },
+ 'first-frame': { firstFrameImage: IMAGE },
+ 'first-last': { firstFrameImage: IMAGE, lastFrameImage: IMAGE },
+ 'last-frame': { lastFrameImage: IMAGE },
+ reference: { references: [{ detail: 'max', image: IMAGE, kind: 'image' }] },
+ txt2vid: {},
+};
+
+/**
+ * Candidate components for the slot filters to choose from — a search over a pool rather than a
+ * hand-written model per slot, so the test agrees with the policy rather than with itself.
+ */
+const CANDIDATE_BASES = ['any', ...SUPPORTED_VIDEO_BASES] as const;
+const CANDIDATE_VARIANTS = [undefined, 'fl2va', 'ref2va', 't2v_a14b', 'i2v_a14b', 'ti2v_5b', 'ltx2_dev'] as const;
+const CANDIDATE_LATENT_CHANNELS = [undefined, 16, 48] as const;
+
+const candidatesForSlot = (slot: VideoComponentSlotPolicy): ModelConfig[] => {
+ const candidates: ModelConfig[] = [];
+
+ for (const type of slot.modelTypes) {
+ for (const base of CANDIDATE_BASES) {
+ for (const variant of CANDIDATE_VARIANTS) {
+ for (const latentChannels of type === 'vae' ? CANDIDATE_LATENT_CHANNELS : [undefined]) {
+ candidates.push({
+ base,
+ // A component source has to be a bundled install; every other slot takes a
+ // single file, and the H3/LTX-2 encoder slots do not care either way.
+ format: slot.valueKind === 'main' ? 'diffusers' : 'checkpoint',
+ key: `${base}-${type}-${variant ?? 'novariant'}${latentChannels ? `-${latentChannels}` : ''}`,
+ name: `${base} ${type} ${variant ?? ''}`.trim(),
+ type,
+ variant: variant ?? null,
+ ...(latentChannels ? { latent_channels: latentChannels } : {}),
+ } as ModelConfig);
+ }
+ }
+ }
+ }
+
+ return candidates;
+};
+
+const buildContext = (
+ model: MainModelConfig,
+ settings: VideoSettings,
+ slots: readonly VideoComponentSlotPolicy[]
+): VideoComponentPolicyContext => {
+ const selectedComponents = {} as VideoComponentPolicyContext['selectedComponents'];
+
+ for (const slot of slots) {
+ selectedComponents[slot.key] = settings[slot.key] as never;
+ }
+
+ return { model, selectedComponents, settings };
+};
+
+/**
+ * Fill every required slot with something its own filter accepts. Iterated to a fixpoint because
+ * slots are interdependent: picking a component source can make another slot stop being required.
+ */
+const satisfyRequiredComponents = (
+ model: MainModelConfig,
+ initial: VideoSettings
+): { settings: VideoSettings; filled: VideoComponentValueKey[] } => {
+ let settings = initial;
+ const filled: VideoComponentValueKey[] = [];
+
+ for (let pass = 0; pass < 5; pass++) {
+ const { slots } = getVideoComponentSectionPolicy(model, settings);
+ const context = buildContext(model, settings, slots);
+ let changed = false;
+
+ for (const slot of slots) {
+ if (!slot.required?.(context) || settings[slot.key]) {
+ continue;
+ }
+
+ const candidate = candidatesForSlot(slot).find((c) => !slot.filter || slot.filter(c, context));
+
+ if (candidate) {
+ settings = { ...settings, [slot.key]: candidate as never };
+ filled.push(slot.key);
+ changed = true;
+ }
+ }
+
+ if (!changed) {
+ break;
+ }
+ }
+
+ return { filled: filled.sort(), settings };
+};
+
+interface Case {
+ base: string;
+ variant: string;
+ mode: VideoGenerationMode;
+ format: 'diffusers' | 'checkpoint';
+ label: string;
+}
+
+const createModel = (testCase: Case): MainModelConfig =>
+ ({
+ base: testCase.base,
+ format: testCase.format,
+ key: `${testCase.base}-${testCase.variant}-${testCase.format}`,
+ name: `${testCase.base} ${testCase.variant} (${testCase.format})`,
+ type: 'main',
+ variant: testCase.variant,
+ }) as MainModelConfig;
+
+/**
+ * Both model shapes per variant: a bundled install supplies its own components, a single file
+ * forces the component-source path, and the two produce different graphs. A shape the panel would
+ * not let the user pick at all is dropped — which shapes those are is the policy's answer
+ * (`isVideoModelSelectable`), not a list kept here: H3's Ref2VA folder install is supported state
+ * but not runnable as the model, and hard-coding that would go stale.
+ */
+const cases: Case[] = SUPPORTED_VIDEO_BASES.flatMap((base) =>
+ Object.entries(VIDEO_GENERATION[base].variants).flatMap(([variant, config]) =>
+ config.modes.flatMap((mode) =>
+ (['diffusers', 'checkpoint'] as const)
+ .map((format) => ({
+ base,
+ format,
+ label: `${base} / ${variant} / ${mode} / ${format}`,
+ mode,
+ variant,
+ }))
+ .filter((testCase) => isVideoModelSelectable(createModel(testCase)))
+ )
+ )
+);
+
+const compileForCase = (testCase: Case): { filled: VideoComponentValueKey[]; graph: BackendGraphContract } => {
+ const model = createModel(testCase);
+ const { filled, settings } = satisfyRequiredComponents(model, {
+ ...getDefaultVideoSettings(model),
+ ...MODE_INPUTS[testCase.mode],
+ positivePrompt: 'a test prompt',
+ seed: 1,
+ seedMode: 'fixed',
+ });
+
+ // Compiling an invalid selection throws only the first reason; asserting here reports every
+ // unmet requirement at once, and doubles as the check that the policy is satisfiable at all.
+ expect(getVideoValidationReasons(model, settings), `${testCase.label} is not satisfiable`).toEqual([]);
+
+ return { filled, graph: compileVideoGraph(settings, model).backendGraph };
+};
+
+describe('video graph coverage', () => {
+ it('registers a variant set for every supported base', () => {
+ for (const base of SUPPORTED_VIDEO_BASES) {
+ expect(Object.keys(VIDEO_GENERATION[base].variants).length, `${base} registers no variants`).toBeGreaterThan(0);
+ }
+ });
+
+ it('compiles at least one case for every registered variant', () => {
+ // The selectability filter above drops shapes the panel refuses; a variant it drops entirely
+ // would leave this suite silently covering nothing for it.
+ const covered = new Set(cases.map((testCase) => `${testCase.base}/${testCase.variant}`));
+ const registered = SUPPORTED_VIDEO_BASES.flatMap((base) =>
+ Object.keys(VIDEO_GENERATION[base].variants).map((variant) => `${base}/${variant}`)
+ );
+
+ expect([...covered].sort()).toEqual(registered.sort());
+ });
+
+ it.each(cases)('compiles a structurally sound graph for $label', (testCase) => {
+ const { graph } = compileForCase(testCase);
+ const nodeIds = new Set(Object.keys(graph.nodes));
+
+ expect(nodeIds.size).toBeGreaterThan(0);
+
+ for (const [id, node] of Object.entries(graph.nodes)) {
+ expect(node.id, `node keyed '${id}' carries a mismatched id`).toBe(id);
+ expect(node.type, `node '${id}' has no type`).toBeTruthy();
+ }
+
+ for (const edge of graph.edges) {
+ const description = `${edge.source.node_id}.${edge.source.field} -> ${edge.destination.node_id}.${edge.destination.field}`;
+
+ expect(nodeIds.has(edge.source.node_id), `dangling source in edge ${description}`).toBe(true);
+ expect(nodeIds.has(edge.destination.node_id), `dangling destination in edge ${description}`).toBe(true);
+ expect(edge.source.field, `edge ${description} has no source field`).toBeTruthy();
+ expect(edge.destination.field, `edge ${description} has no destination field`).toBeTruthy();
+ }
+ });
+
+ it('emits the node types and fields the backend has to provide', async () => {
+ const byBase: Record<string, { modes: string[]; nodeTypes: string[] }> = {};
+ const fields: Record<
+ string,
+ { inputs: Set<string>; literals: Map<string, Map<string, unknown>>; outputs: Set<string> }
+ > = {};
+
+ const fieldsFor = (nodeType: string) =>
+ (fields[nodeType] ??= { inputs: new Set(), literals: new Map(), outputs: new Set() });
+
+ for (const testCase of cases) {
+ const { graph } = compileForCase(testCase);
+ const entry = (byBase[testCase.base] ??= { modes: [], nodeTypes: [] });
+
+ entry.modes = [...new Set([...entry.modes, testCase.mode])].sort();
+ entry.nodeTypes = [
+ ...new Set([...entry.nodeTypes, ...Object.values(graph.nodes).map((node) => node.type)]),
+ ].sort();
+
+ for (const node of Object.values(graph.nodes)) {
+ const { literals } = fieldsFor(node.type);
+
+ for (const [field, value] of Object.entries(node)) {
+ // `id` and `type` address the node rather than feed it, and an undefined value is not
+ // serialized into the request at all — the builders use it to mean "leave the default".
+ if (field === 'id' || field === 'type' || value === undefined) {
+ continue;
+ }
+
+ const values = literals.get(field) ?? new Map<string, unknown>();
+ literals.set(field, values);
+
+ // Scalars only: the object-valued inputs are model identifiers and media fields built
+ // from this file's synthetic fixtures, so validating them would assert something about
+ // the fixture rather than about the contract.
+ if (value === null || typeof value !== 'object') {
+ values.set(JSON.stringify(value), value);
+ }
+ }
+ }
+
+ for (const edge of graph.edges) {
+ fieldsFor(graph.nodes[edge.source.node_id]!.type).outputs.add(edge.source.field);
+ fieldsFor(graph.nodes[edge.destination.node_id]!.type).inputs.add(edge.destination.field);
+ }
+ }
+
+ const contract = {
+ _comment:
+ 'Generated by src/features/video/core/videoGraphCoverage.test.ts; regenerate with ' +
+ '`vitest -u`. Excluded from oxfmt so the test alone owns its layout. Consumed by ' +
+ 'tests/app/invocations/test_frontend_graph_node_types.py, which checks every node type, ' +
+ 'edge field and literal input value below against the backend invocation registry. An ' +
+ 'empty literalInputs value list means the field is set to something other than a scalar, ' +
+ 'so only its name is checked.',
+ byBase,
+ fieldsByNodeType: Object.fromEntries(
+ Object.entries(fields)
+ .sort(([a], [b]) => a.localeCompare(b))
+ .map(([nodeType, { inputs, literals, outputs }]) => [
+ nodeType,
+ {
+ inputs: [...inputs].sort(),
+ literalInputs: Object.fromEntries(
+ [...literals]
+ .sort(([a], [b]) => a.localeCompare(b))
+ .map(([field, values]) => [
+ field,
+ [...values].sort(([a], [b]) => a.localeCompare(b)).map(([, value]) => value),
+ ])
+ ),
+ outputs: [...outputs].sort(),
+ },
+ ])
+ ),
+ };
+
+ await expect(`${JSON.stringify(contract, null, 2)}\n`).toMatchFileSnapshot(
+ './__snapshots__/videoGraphNodeTypes.json'
+ );
+ });
+});
diff --git a/invokeai/frontend/webv2/src/features/video/core/videoPolicies.test.ts b/invokeai/frontend/webv2/src/features/video/core/videoPolicies.test.ts
index 71b00e7e49..7251a2d7fe 100644
--- a/invokeai/frontend/webv2/src/features/video/core/videoPolicies.test.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/videoPolicies.test.ts
@@ -1,6 +1,8 @@
import type { GenerationModelCatalogItem, MainModelConfig } from '@features/generation/contracts';
import { architectureCapabilitiesFixture } from '@features/generation/core/architectureCapabilities.testing';
+import { LTX2_DEFAULT_NEGATIVE_PROMPT } from '@features/video/core/dimensions';
+import { isVideoTargetResolution, normalizeVideoSettings } from '@features/video/core/settings';
import { describe, expect, it } from 'vitest';
import type { VideoSettings } from './types';
@@ -221,6 +223,7 @@ describe('getVideoDimensions', () => {
describe('getVideoPromptPolicy', () => {
const promptSettings = (overrides: Partial<Parameters<typeof getVideoPromptPolicy>[1]> = {}) => ({
+ audioCfgScale: null,
cfgScale: 5,
cfgScaleLowNoise: null,
negativePromptEnabled: true,
@@ -1509,3 +1512,219 @@ describe('reference-extend policy', () => {
expect(backToFl.settings.sourceVideo).toEqual(initialVideo);
});
});
+
+const ltx2 = (variant: string, overrides: Partial<MainModelConfig> = {}): MainModelConfig => ({
+ base: 'ltx-2',
+ format: 'checkpoint',
+ key: `ltx2-${variant}`,
+ name: `LTX-2 ${variant}`,
+ type: 'main',
+ variant,
+ ...overrides,
+});
+
+const LTX2_COMPONENTS = ltx2('ltx2_dev', {
+ format: 'diffusers',
+ key: 'ltx2-components',
+ name: 'LTX-2.5 Components',
+});
+const LTX2_ENCODER = {
+ base: 'ltx-2',
+ key: 'gemma4',
+ name: 'LTX-2.5 Text Encoder',
+ type: 'gemma4_encoder' as const,
+};
+
+describe('LTX-2 policy', () => {
+ it('offers text-to-video and first-frame conditioning on both checkpoints', () => {
+ expect(getVideoModes(ltx2('ltx2_dev'))).toEqual(['txt2vid', 'first-frame']);
+ expect(getVideoModes(ltx2('ltx2_distilled'))).toEqual(['txt2vid', 'first-frame']);
+ });
+
+ it('exposes the per-modality guidance controls on dev and none on distilled', () => {
+ const dev = getVideoModelPolicy(ltx2('ltx2_dev'), getDefaultVideoSettings(ltx2('ltx2_dev')));
+
+ expect(dev.ui.cfgVisible).toBe(true);
+ expect([dev.ui.audioCfgVisible, dev.ui.stgVisible, dev.ui.modalityVisible]).toEqual([true, true, true]);
+ expect(dev.ui.stepsEditable).toBe(true);
+ expect(dev.ui.audioOutput).toBe(true);
+
+ const distilled = getVideoModelPolicy(ltx2('ltx2_distilled'), getDefaultVideoSettings(ltx2('ltx2_distilled')));
+
+ expect(distilled.ui.cfgVisible).toBe(false);
+ expect([distilled.ui.audioCfgVisible, distilled.ui.stgVisible, distilled.ui.modalityVisible]).toEqual([
+ false,
+ false,
+ false,
+ ]);
+ // The schedule is eight fixed noise levels; a step count the user could change would be a lie.
+ expect(distilled.ui.stepsEditable).toBe(false);
+ expect(distilled.defaults.steps).toBe(8);
+ });
+
+ it("seeds the release's own negative prompt, which dev guides against", () => {
+ const settings = getDefaultVideoSettings(ltx2('ltx2_dev'), [LTX2_COMPONENTS, LTX2_ENCODER]);
+
+ expect(settings.negativePrompt).toBe(LTX2_DEFAULT_NEGATIVE_PROMPT);
+ expect(settings.negativePromptEnabled).toBe(true);
+ // Families without one still start empty.
+ expect(getDefaultVideoSettings(wanModel('t2v_a14b')).negativePrompt).toBe('');
+ });
+
+ it('keeps a hidden CFG so a detour through another family does not destroy it', () => {
+ // MiniMax H3 hides CFG and never reads it; a value the user tuned for Wan has to survive
+ // selecting H3 and coming back.
+ const wan = wanModel('t2v_a14b');
+ const tuned = { ...getDefaultVideoSettings(wan), cfgScale: 8 };
+ const viaH3 = getVideoModelSelectionResult({ currentSettings: tuned, model: h3Model(), models: [] });
+ const back = getVideoModelSelectionResult({ currentSettings: viaH3.settings, model: wan, models: [] });
+
+ expect(back.settings.cfgScale).toBe(8);
+ });
+
+ it('seeds the components and encoder a picked model cannot run without', () => {
+ const model = ltx2('ltx2_dev');
+ const settings = getDefaultVideoSettings(model, [LTX2_COMPONENTS, LTX2_ENCODER]);
+
+ expect(settings.componentSourceModel).toEqual(LTX2_COMPONENTS);
+ expect(settings.ltx2TextEncoderModel).toEqual(LTX2_ENCODER);
+ expect(settings.audioCfgScale).toBe(7);
+ expect(settings.stgScale).toBe(1);
+ expect(settings.modalityScale).toBe(3);
+ });
+
+ it('requires the Gemma-4 encoder on every LTX-2 model shape', () => {
+ for (const model of [ltx2('ltx2_dev'), ltx2('ltx2_dev', { format: 'diffusers', key: 'ltx2-folder' })]) {
+ const settings = { ...getDefaultVideoSettings(model), ltx2TextEncoderModel: null };
+
+ expect(getVideoValidationReasons(model, { ...settings, componentSourceModel: LTX2_COMPONENTS })).toContain(
+ 'LTX-2 needs its Gemma-4 text encoder — no LTX-2 model carries one.'
+ );
+ }
+ });
+
+ it('names the fix for a components-only install picked as the model', () => {
+ const componentsOnly = ltx2('ltx2_dev', {
+ components_only: true,
+ format: 'diffusers',
+ key: 'ltx2-components-only',
+ name: 'LTX-2.5 Components',
+ } as Partial<MainModelConfig>);
+
+ expect(isVideoModelSelectable(componentsOnly as GenerationModelCatalogItem)).toBe(false);
+ expect(getVideoValidationReasons(componentsOnly, getDefaultVideoSettings(componentsOnly))[0]).toContain(
+ 'single-file LTX-2 transformer'
+ );
+ });
+
+ it('snaps frame counts onto the 8n + 1 grid and says so when one is off it', () => {
+ const model = ltx2('ltx2_dev');
+
+ expect(snapVideoNumFrames(model, 121)).toBe(121);
+ expect(snapVideoNumFrames(model, 100)).toBe(97);
+ expect(isValidVideoNumFrames(model, 121)).toBe(true);
+ expect(isValidVideoNumFrames(model, 120)).toBe(false);
+
+ const settings = {
+ ...getDefaultVideoSettings(model, [LTX2_COMPONENTS, LTX2_ENCODER]),
+ numFrames: 120,
+ };
+
+ expect(getVideoValidationReasons(model, settings).join(' ')).toContain('8·n + 1');
+ });
+
+ it('derives the canvas from the short-edge preset', () => {
+ const model = ltx2('ltx2_dev');
+ const settings = getDefaultVideoSettings(model);
+
+ expect(getVideoDimensions(model, settings)).toEqual({ height: 704, source: 'aspect-ratio', width: 1248 });
+ expect(getVideoDimensions(model, { ...settings, targetResolution: '768p' })).toEqual({
+ height: 768,
+ source: 'aspect-ratio',
+ width: 1376,
+ });
+ });
+
+ it('rebuilds the guidance and step count when the model family changes', () => {
+ const wanSettings = {
+ ...getDefaultVideoSettings(wanModel('t2v_a14b')),
+ audioCfgScale: null,
+ steps: 40,
+ };
+ const model = ltx2('ltx2_dev');
+ const toDev = getVideoModelSelectionResult({
+ currentSettings: wanSettings,
+ model,
+ models: [LTX2_COMPONENTS, LTX2_ENCODER],
+ });
+
+ expect(toDev.settings.audioCfgScale).toBe(7);
+ expect(toDev.settings.stgScale).toBe(1);
+ expect(toDev.settings.modalityScale).toBe(3);
+ // Filling in controls the panel did not have a moment ago is not a clearing, and reporting it
+ // would name three settings the user has never seen.
+ expect(toDev.clearedLabels).not.toContain('Advanced guidance');
+
+ // Moving to the fixed schedule drops both the scales and a carried-over step count.
+ const distilled = ltx2('ltx2_distilled');
+ const toDistilled = getVideoModelSelectionResult({
+ currentSettings: toDev.settings,
+ model: distilled,
+ models: [LTX2_COMPONENTS, LTX2_ENCODER],
+ });
+
+ expect(toDistilled.settings.audioCfgScale).toBeNull();
+ expect(toDistilled.settings.stgScale).toBeNull();
+ expect(toDistilled.settings.modalityScale).toBeNull();
+ expect(toDistilled.settings.steps).toBe(8);
+ expect(toDistilled.clearedLabels).toEqual(expect.arrayContaining(['Steps', 'Advanced guidance']));
+ });
+
+ it('keeps the negative prompt whenever either classifier-free scale consumes it', () => {
+ // One unconditional pass serves both streams (LTX2Guidance.passes), so the panel's rule has to
+ // be the same OR the backend's — a mismatch queues a graph the denoise node refuses.
+ const model = ltx2('ltx2_dev');
+ const base = getDefaultVideoSettings(model, [LTX2_COMPONENTS, LTX2_ENCODER]);
+ const used = (overrides: Partial<VideoSettings>) =>
+ getVideoPromptPolicy(model, { ...base, ...overrides }).negativeUsedInGraph;
+
+ expect(used({ cfgScale: 3, audioCfgScale: 7 })).toBe(true);
+ expect(used({ cfgScale: 1, audioCfgScale: 7 })).toBe(true);
+ expect(used({ cfgScale: 3, audioCfgScale: 1 })).toBe(true);
+ expect(used({ cfgScale: 1, audioCfgScale: 1 })).toBe(false);
+ expect(used({ cfgScale: 3, audioCfgScale: 7, negativePromptEnabled: false })).toBe(false);
+ });
+
+ it('accepts its own target-resolution presets as stored values', () => {
+ // The panel writes the preset through `isVideoTargetResolution`; a preset the guard does not
+ // know is dropped on the way in, leaving the control inert and healing the stored value to
+ // another family's preset.
+ const model = ltx2('ltx2_dev');
+
+ for (const option of getVideoModelPolicy(model, getDefaultVideoSettings(model)).targetResolutions) {
+ expect(isVideoTargetResolution(option.id), `${option.id} is not accepted`).toBe(true);
+
+ const healed = normalizeVideoSettings({
+ ...getDefaultVideoSettings(model),
+ targetResolution: option.id,
+ });
+
+ expect(healed?.targetResolution).toBe(option.id);
+ }
+ });
+
+ it('rejects a guidance scale the denoise node would refuse at enqueue', () => {
+ const model = ltx2('ltx2_dev');
+ const settings = {
+ ...getDefaultVideoSettings(model, [LTX2_COMPONENTS, LTX2_ENCODER]),
+ audioCfgScale: 0.5,
+ modalityScale: 0.2,
+ stgScale: -1,
+ };
+ const reasons = getVideoValidationReasons(model, settings);
+
+ expect(reasons).toContain('Audio CFG must be at least 1.');
+ expect(reasons).toContain('STG must be at least 0.');
+ expect(reasons).toContain('Modality guidance must be at least 1.');
+ });
+});
diff --git a/invokeai/frontend/webv2/src/features/video/core/videoPolicies.ts b/invokeai/frontend/webv2/src/features/video/core/videoPolicies.ts
index 350f81239f..f7cca4f91c 100644
--- a/invokeai/frontend/webv2/src/features/video/core/videoPolicies.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/videoPolicies.ts
@@ -15,17 +15,34 @@ import {
} from '@features/generation/settings';
import { SEED_MAX } from '@platform/core/seed';
-import type { VideoAspectRatioId, VideoGenerationMode, VideoSettings, VideoTargetResolution } from './types';
+import type {
+ Ltx2TargetResolution,
+ VideoAspectRatioId,
+ VideoGenerationMode,
+ VideoSettings,
+ VideoTargetResolution,
+} from './types';
import {
getVideoAspectRatioParts,
+ LTX2_CANVAS_MULTIPLE,
+ LTX2_DEFAULT_NEGATIVE_PROMPT,
+ LTX2_FPS_DEFAULT,
+ LTX2_FPS_MAX,
+ LTX2_FPS_MIN,
+ LTX2_NUM_FRAMES_DEFAULT,
+ LTX2_NUM_FRAMES_MAX,
+ LTX2_NUM_FRAMES_MIN,
+ LTX2_NUM_FRAMES_SLIDER_MAX,
+ LTX2_NUM_FRAMES_STEP,
MINIMAX_H3_FPS,
MINIMAX_H3_NUM_FRAMES_CHOICES,
MINIMAX_H3_NUM_FRAMES_DEFAULT,
+ resolveLtx2Canvas,
resolveMiniMaxH3Canvas,
scaleAndSnapWanDimensions,
- snapMiniMaxH3NumFrames,
- snapWanNumFrames,
+ snapNumFramesToChoices,
+ snapNumFramesToGrid,
WAN_A14B_PIXEL_MULTIPLE,
WAN_FPS_DEFAULT,
WAN_FPS_MAX,
@@ -36,6 +53,8 @@ import {
WAN_NUM_FRAMES_STEP,
WAN_TI2V_PIXEL_MULTIPLE,
type VideoDimensions,
+ type VideoFramesChoices,
+ type VideoFramesGrid,
} from './dimensions';
import {
applyReferenceExtendSourceVideo,
@@ -52,7 +71,7 @@ import {
// enough. Display identity stays in @features/models; graph topology will stay
// explicit in graph.ts.
-export type SupportedVideoBase = 'wan' | 'minimax-h3';
+export type SupportedVideoBase = 'wan' | 'minimax-h3' | 'ltx-2';
export type VideoNegativePromptUsage = 'always' | 'cfg-gated' | 'never';
@@ -61,19 +80,21 @@ export interface VideoTargetResolutionOption {
label: string;
}
-export interface VideoFramesGridPolicy {
+/**
+ * Extends the shape `snapNumFramesToGrid` takes, so the two cannot drift: the snapper is the
+ * production consumer of this policy, and a field added here has to remain assignable to it.
+ */
+export interface VideoFramesGridPolicy extends VideoFramesGrid {
kind: 'grid';
- min: number;
- max: number;
- /** Valid counts are `min + k * step` (Wan: 4k + 1, from the VAE's temporal compression). */
- step: number;
- defaultValue: number;
+ /**
+ * Where the slider stops, when that is below `max`. The field still accepts
+ * anything up to `max`: the cap is a recommendation about cost, not a limit.
+ */
+ sliderMax?: number;
}
-export interface VideoFramesChoicesPolicy {
+export interface VideoFramesChoicesPolicy extends VideoFramesChoices {
kind: 'choices';
- choices: readonly number[];
- defaultValue: number;
}
export type VideoFramesPolicy = VideoFramesGridPolicy | VideoFramesChoicesPolicy;
@@ -115,11 +136,20 @@ interface VideoVariantConfig {
steps: number;
cfgScale: number;
cfgScaleLowNoise: number | null;
+ audioCfgScale: number | null;
+ stgScale: number | null;
+ modalityScale: number | null;
};
minSteps: number;
+ /** False when the checkpoint's schedule is fixed and the step count is not the user's to set. */
+ stepsEditable: boolean;
frames: VideoFramesPolicy;
fps: VideoFpsPolicy;
cfg: { visible: boolean; lowNoiseVisible: boolean };
+ /** The guidance terms beyond the primary CFG scale that this family exposes. */
+ guidance: { audioVisible: boolean; stgVisible: boolean; modalityVisible: boolean };
+ /** What a fresh panel seeds the negative prompt with, when the family ships one. */
+ defaultNegativePrompt?: string;
negativePrompt: { visible: boolean; usage: VideoNegativePromptUsage };
accelerator: VideoAcceleratorConfig | null;
audioOutput: boolean;
@@ -127,6 +157,10 @@ interface VideoVariantConfig {
references?: { maxVideos: number; maxImages: number; extend?: boolean };
}
+/** A family whose only guidance control is the primary CFG scale. */
+const NO_EXTRA_GUIDANCE = { audioVisible: false, modalityVisible: false, stgVisible: false } as const;
+const NO_EXTRA_GUIDANCE_DEFAULTS = { audioCfgScale: null, modalityScale: null, stgScale: null } as const;
+
export const WAN_LIGHTNING_ACCELERATOR: VideoAcceleratorConfig = {
cfgScale: 1,
cfgScaleLowNoise: 1,
@@ -187,10 +221,18 @@ const WAN_FPS: VideoFpsPolicy = { defaultValue: WAN_FPS_DEFAULT, editable: true,
const WAN_A14B_COMMON = {
accelerator: WAN_LIGHTNING_ACCELERATOR,
cfg: { lowNoiseVisible: true, visible: true },
- defaults: { cfgScale: 5, cfgScaleLowNoise: 4, steps: 40, targetResolution: '720p' as const },
+ defaults: {
+ ...NO_EXTRA_GUIDANCE_DEFAULTS,
+ cfgScale: 5,
+ cfgScaleLowNoise: 4,
+ steps: 40,
+ targetResolution: '720p' as const,
+ },
fps: WAN_FPS,
frames: WAN_FRAMES,
+ guidance: NO_EXTRA_GUIDANCE,
minSteps: 1,
+ stepsEditable: true,
audioOutput: false,
negativePrompt: { usage: 'cfg-gated' as const, visible: true },
pixelMultiple: WAN_A14B_PIXEL_MULTIPLE,
@@ -211,7 +253,13 @@ const WAN_VARIANTS: Record<string, VideoVariantConfig> = {
...WAN_A14B_COMMON,
accelerator: null,
cfg: { lowNoiseVisible: false, visible: true },
- defaults: { cfgScale: 5, cfgScaleLowNoise: null, steps: 40, targetResolution: '720p' },
+ defaults: {
+ ...NO_EXTRA_GUIDANCE_DEFAULTS,
+ cfgScale: 5,
+ cfgScaleLowNoise: null,
+ steps: 40,
+ targetResolution: '720p',
+ },
modes: ['txt2vid', 'first-frame', 'extend'],
pixelMultiple: WAN_TI2V_PIXEL_MULTIPLE,
},
@@ -229,10 +277,18 @@ const MINIMAX_H3_FL2VA: VideoVariantConfig = {
accelerator: MINIMAX_H3_TURBO_ACCELERATOR,
audioOutput: true,
cfg: { lowNoiseVisible: false, visible: false },
- defaults: { cfgScale: 1, cfgScaleLowNoise: null, steps: 50, targetResolution: '768 highres' },
+ defaults: {
+ ...NO_EXTRA_GUIDANCE_DEFAULTS,
+ cfgScale: 1,
+ cfgScaleLowNoise: null,
+ steps: 50,
+ targetResolution: '768 highres',
+ },
fps: { defaultValue: MINIMAX_H3_FPS, editable: false, max: MINIMAX_H3_FPS, min: MINIMAX_H3_FPS },
frames: { choices: MINIMAX_H3_NUM_FRAMES_CHOICES, defaultValue: MINIMAX_H3_NUM_FRAMES_DEFAULT, kind: 'choices' },
+ guidance: NO_EXTRA_GUIDANCE,
minSteps: 2,
+ stepsEditable: true,
modes: ['txt2vid', 'first-frame', 'last-frame', 'first-last', 'extend'],
negativePrompt: { usage: 'never', visible: false },
pixelMultiple: 32,
@@ -251,12 +307,91 @@ const MINIMAX_H3_REF2VA: VideoVariantConfig = {
references: { extend: true, maxImages: 9, maxVideos: 3 },
};
+const LTX2_TARGET_RESOLUTION_OPTIONS: readonly VideoTargetResolutionOption[] = [
+ { id: '512p', label: '512p (fastest)' },
+ { id: '704p', label: '704p' },
+ { id: '768p', label: '768p (sharpest)' },
+];
+
+const LTX2_FRAMES: VideoFramesGridPolicy = {
+ defaultValue: LTX2_NUM_FRAMES_DEFAULT,
+ kind: 'grid',
+ max: LTX2_NUM_FRAMES_MAX,
+ min: LTX2_NUM_FRAMES_MIN,
+ sliderMax: LTX2_NUM_FRAMES_SLIDER_MAX,
+ step: LTX2_NUM_FRAMES_STEP,
+};
+
+const LTX2_COMMON = {
+ accelerator: null,
+ audioOutput: true,
+ cfg: { lowNoiseVisible: false, visible: true },
+ fps: { defaultValue: LTX2_FPS_DEFAULT, editable: true, max: LTX2_FPS_MAX, min: LTX2_FPS_MIN },
+ frames: LTX2_FRAMES,
+ minSteps: 1,
+ // Text-to-video and first-frame image-to-video, both with a generated
+ // soundtrack. Keyframes, extension and the audio-conditioned modes follow.
+ modes: ['txt2vid', 'first-frame'] as const,
+ pixelMultiple: LTX2_CANVAS_MULTIPLE,
+ targetResolutions: LTX2_TARGET_RESOLUTION_OPTIONS,
+};
+
+/**
+ * The dev checkpoint: a guided 30-step schedule with all four of LTX-2's
+ * guidance terms. The scales are the released pipeline's for this generation
+ * (ltx-pipelines `PipelineParams`), including an audio CFG far above the
+ * video's — audio follows the prompt much less readily.
+ */
+const LTX2_DEV: VideoVariantConfig = {
+ ...LTX2_COMMON,
+ // The release guides against this list, not against an empty string: it is as much a part of the
+ // recipe as the scales are. Mirrors LTX2_DEFAULT_NEGATIVE_PROMPT in
+ // invokeai/backend/ltx2/constants.py, which is the node's own default.
+ defaultNegativePrompt: LTX2_DEFAULT_NEGATIVE_PROMPT,
+ defaults: {
+ audioCfgScale: 7,
+ cfgScale: 3,
+ cfgScaleLowNoise: null,
+ modalityScale: 3,
+ steps: 30,
+ stgScale: 1,
+ targetResolution: '704p',
+ },
+ guidance: { audioVisible: true, modalityVisible: true, stgVisible: true },
+ negativePrompt: { usage: 'cfg-gated', visible: true },
+ stepsEditable: true,
+};
+
+/**
+ * The guidance-distilled checkpoint: eight fixed noise levels, one forward per
+ * step, and no guidance at all — the denoise node ignores the scales rather
+ * than letting them wreck the output, so the panel offers none of them and
+ * shows the step count as the fixed value it is.
+ */
+const LTX2_DISTILLED: VideoVariantConfig = {
+ ...LTX2_COMMON,
+ cfg: { lowNoiseVisible: false, visible: false },
+ defaults: {
+ ...NO_EXTRA_GUIDANCE_DEFAULTS,
+ cfgScale: 1,
+ cfgScaleLowNoise: null,
+ steps: 8,
+ targetResolution: '704p',
+ },
+ guidance: NO_EXTRA_GUIDANCE,
+ negativePrompt: { usage: 'never', visible: false },
+ stepsEditable: false,
+};
+
export const VIDEO_GENERATION: Record<
SupportedVideoBase,
{ variants: Record<string, VideoVariantConfig>; fallback: VideoVariantConfig }
> = {
// ref2va is REGISTERED, never the fallback: an unknown future variant may fall back to
// fl2va's config, but a known ref2va transformer must not silently get fl2va's modes.
+ // Dev is the fallback: an unrecognised variant gets the guided schedule, which
+ // is merely slow on a distilled checkpoint, where the reverse produces noise.
+ 'ltx-2': { fallback: LTX2_DEV, variants: { ltx2_dev: LTX2_DEV, ltx2_distilled: LTX2_DISTILLED } },
'minimax-h3': { fallback: MINIMAX_H3_FL2VA, variants: { fl2va: MINIMAX_H3_FL2VA, ref2va: MINIMAX_H3_REF2VA } },
wan: { fallback: WAN_FALLBACK_VARIANT, variants: WAN_VARIANTS },
};
@@ -276,7 +411,8 @@ export const isSupportedVideoModel = <T extends { base: string; type: string; fo
): model is T & MainModelConfig =>
model.type === 'main' &&
(model.base === 'wan' ||
- (model.base === 'minimax-h3' && (model.format === 'diffusers' || model.format === 'checkpoint')));
+ ((model.base === 'minimax-h3' || model.base === 'ltx-2') &&
+ (model.format === 'diffusers' || model.format === 'checkpoint')));
/**
* What the top model selector offers — like the image Generate panel, the top
@@ -290,7 +426,7 @@ export const isSupportedVideoModel = <T extends { base: string; type: string; fo
*/
export const isVideoModelSelectable = <T extends ModelConfig>(model: T): boolean =>
isSupportedVideoModel(model) &&
- !isComponentsOnlyH3Main(model) &&
+ !isComponentsOnlyVideoMain(model) &&
!(model.base === 'minimax-h3' && model.format === 'diffusers' && model.variant === 'ref2va');
/**
@@ -299,11 +435,13 @@ export const isVideoModelSelectable = <T extends ModelConfig>(model: T): boolean
* `components_only` on the config precisely so the UI can require the
* single-file overrides up front instead of failing mid-generation.
*/
-export const isComponentsOnlyH3Main = (model: MainModelConfig): boolean =>
+export const isComponentsOnlyVideoMain = (model: MainModelConfig): boolean =>
// Demand the full config, not a Pick: a narrowed object would type-check
// here but silently read `components_only` as absent — a false negative
// that re-opens the fail-mid-generation hole this helper exists to close.
- model.base === 'minimax-h3' && model.format === 'diffusers' && model.components_only === true;
+ (model.base === 'minimax-h3' || model.base === 'ltx-2') &&
+ model.format === 'diffusers' &&
+ model.components_only === true;
const getVideoVariantConfig = (
model: Pick<MainModelConfig, 'base' | 'type' | 'variant' | 'format'> | undefined
@@ -357,9 +495,13 @@ const coerceTargetResolution = (
export const snapVideoNumFrames = (model: MainModelConfig | undefined, numFrames: number): number => {
const frames = getVideoConfig(model).frames;
- return frames.kind === 'grid' ? snapWanNumFrames(numFrames) : snapMiniMaxH3NumFrames(numFrames);
+ return frames.kind === 'grid' ? snapNumFramesToGrid(frames, numFrames) : snapNumFramesToChoices(frames, numFrames);
};
+/** How a grid family states its rule, e.g. "8·n + 1" — the form the backend node rejects on. */
+export const describeVideoFramesGrid = (frames: VideoFramesGridPolicy): string =>
+ `${frames.step}·n + ${frames.min - frames.step}`;
+
export const isValidVideoNumFrames = (model: MainModelConfig | undefined, numFrames: number): boolean => {
const frames = getVideoConfig(model).frames;
@@ -412,19 +554,24 @@ export const getVideoDimensions = (
const dimensions =
model?.base === 'minimax-h3'
? resolveMiniMaxH3Canvas(inputs.width, inputs.height, targetResolution as '768 highres' | '768 lowres')
- : scaleAndSnapWanDimensions(
- inputs.width,
- inputs.height,
- targetResolution as '480p' | '720p' | '1080p',
- config.pixelMultiple
- );
+ : model?.base === 'ltx-2'
+ ? resolveLtx2Canvas(inputs.width, inputs.height, targetResolution as Ltx2TargetResolution)
+ : scaleAndSnapWanDimensions(
+ inputs.width,
+ inputs.height,
+ targetResolution as '480p' | '720p' | '1080p',
+ config.pixelMultiple
+ );
return dimensions ? { ...dimensions, source: inputs.source } : null;
};
export const getVideoPromptPolicy = (
model: MainModelConfig | undefined,
- settings: Pick<VideoSettings, 'cfgScale' | 'cfgScaleLowNoise' | 'negativePromptEnabled' | 'wanLowNoiseModel'>
+ settings: Pick<
+ VideoSettings,
+ 'audioCfgScale' | 'cfgScale' | 'cfgScaleLowNoise' | 'negativePromptEnabled' | 'wanLowNoiseModel'
+ >
) => {
const config = getVideoConfig(model);
// Mirrors wan_video_denoise's do_cfg: negative conditioning is also consumed
@@ -435,10 +582,13 @@ export const getVideoPromptPolicy = (
(model?.format === 'diffusers' || settings.wanLowNoiseModel !== null) &&
settings.cfgScaleLowNoise !== null &&
settings.cfgScaleLowNoise > 1;
+ // And LTX-2's audio stream is guided on its own scale, off one shared unconditional pass
+ // (`LTX2Guidance.passes`): audio CFG above 1 consumes the negative prompt even at video CFG 1.
+ const audioCfgActive = config.guidance.audioVisible && settings.audioCfgScale !== null && settings.audioCfgScale > 1;
const negativeUsedInGraph =
settings.negativePromptEnabled &&
(config.negativePrompt.usage === 'always' ||
- (config.negativePrompt.usage === 'cfg-gated' && (settings.cfgScale > 1 || lowNoiseCfgActive)));
+ (config.negativePrompt.usage === 'cfg-gated' && (settings.cfgScale > 1 || lowNoiseCfgActive || audioCfgActive)));
return {
negativeVisible: config.negativePrompt.visible,
@@ -462,6 +612,9 @@ export interface VideoModelPolicy {
steps: number;
cfgScale: number;
cfgScaleLowNoise: number | null;
+ audioCfgScale: number | null;
+ stgScale: number | null;
+ modalityScale: number | null;
};
prompt: {
negativeVisible: boolean;
@@ -474,7 +627,13 @@ export interface VideoModelPolicy {
ui: {
cfgVisible: boolean;
cfgLowNoiseVisible: boolean;
+ /** LTX-2's per-modality guidance controls; all false on the other families. */
+ audioCfgVisible: boolean;
+ stgVisible: boolean;
+ modalityVisible: boolean;
fpsVisible: boolean;
+ /** False when the schedule is fixed: the steps control shows the count read-only. */
+ stepsEditable: boolean;
/** The family's distillation fast path, or null when it has none. */
accelerator: VideoAcceleratorConfig | null;
/** Steps for the fast path as currently configured, or null when it has none. */
@@ -502,6 +661,7 @@ export const getVideoModelPolicy = (model: MainModelConfig | undefined, settings
targetResolutions: config.targetResolutions,
ui: {
accelerator: config.accelerator,
+ audioCfgVisible: config.guidance.audioVisible,
// The step count the help text quotes is the one the *running*
// accelerator LoRA was distilled for — with the 8-step LightX2V Turbo
// LoRA on, "6 steps" would be a lie. It is deliberately NOT folded into
@@ -514,6 +674,9 @@ export const getVideoModelPolicy = (model: MainModelConfig | undefined, settings
cfgLowNoiseVisible: config.cfg.lowNoiseVisible,
cfgVisible: config.cfg.visible,
fpsVisible: config.fps.editable,
+ modalityVisible: config.guidance.modalityVisible,
+ stepsEditable: config.stepsEditable,
+ stgVisible: config.guidance.stgVisible,
},
};
};
@@ -946,7 +1109,8 @@ export type VideoComponentValueKey =
| 'componentSourceModel'
| 'h3TransformerModel'
| 'h3TextEncoderModel'
- | 'h3HybridBaseModel';
+ | 'h3HybridBaseModel'
+ | 'ltx2TextEncoderModel';
export interface VideoComponentPolicyContext {
model: MainModelConfig;
@@ -974,6 +1138,7 @@ export interface VideoComponentSectionPolicy {
const VIDEO_COMPONENT_SETTING_LABELS: Record<VideoComponentValueKey, string> = {
componentSourceModel: 'Component source',
+ ltx2TextEncoderModel: 'Gemma-4 encoder',
h3HybridBaseModel: 'Hybrid quality base',
h3TextEncoderModel: 'Text encoder (single file)',
h3TransformerModel: 'Transformer (single file)',
@@ -1134,6 +1299,43 @@ export const getVideoComponentSectionPolicy = (
return createComponentPolicy(model.format !== 'diffusers', slots);
}
+ // LTX-2 is distributed as separate files, so a generation is assembled from up
+ // to three records: the transformer (the top selection), the component folder
+ // that supplies the VAEs, vocoder and text connectors, and the Gemma-4 encoder
+ // — which no LTX-2 main carries, making its slot required rather than an
+ // override.
+ if (model.base === 'ltx-2') {
+ const needsComponentSource = model.format !== 'diffusers' || isComponentsOnlyVideoMain(model);
+
+ return createComponentPolicy(needsComponentSource, [
+ ...(needsComponentSource
+ ? [
+ {
+ filter: (candidate: ModelConfig, ctx: VideoComponentPolicyContext) =>
+ isDiffusersMainForBase('ltx-2')(candidate) && candidate.key !== ctx.model.key,
+ helpTextKey: 'widgets.video.componentSlots.ltx2ComponentSourceHelp',
+ key: 'componentSourceModel',
+ label: 'Model components',
+ missingMessage: `${model.name} is a single-file transformer — select an LTX-2 components install under Model Components.`,
+ modelTypes: ['main'],
+ required: () => true,
+ valueKind: 'main',
+ } satisfies VideoComponentSlotPolicy,
+ ]
+ : []),
+ {
+ filter: (candidate) => candidate.type === 'gemma4_encoder' && candidate.base === 'ltx-2',
+ helpTextKey: 'widgets.video.componentSlots.ltx2TextEncoderHelp',
+ key: 'ltx2TextEncoderModel',
+ label: 'Gemma-4 encoder',
+ missingMessage: 'LTX-2 needs its Gemma-4 text encoder — no LTX-2 model carries one.',
+ modelTypes: ['gemma4_encoder'],
+ required: () => true,
+ valueKind: 'component',
+ },
+ ]);
+ }
+
// MiniMax H3. The top model selection carries the task identity (its variant
// decides the panel's generation mode); this section supplies what that
// selection does not bundle:
@@ -1148,7 +1350,7 @@ export const getVideoComponentSectionPolicy = (
// (it is no longer selectable); validation steers the user to pick a
// single-file transformer as the model, and the encoder slot stays
// required so the panel keeps showing what the install cannot provide.
- const componentsOnly = isComponentsOnlyH3Main(model);
+ const componentsOnly = isComponentsOnlyVideoMain(model);
return createComponentPolicy(componentsOnly, [
{
@@ -1234,7 +1436,7 @@ const getH3ComponentSource = (ctx: VideoComponentPolicyContext): MainModelConfig
const isH3TextEncoderSatisfied = (ctx: VideoComponentPolicyContext): boolean => {
const source = getH3ComponentSource(ctx);
- return source !== null && !isComponentsOnlyH3Main(source);
+ return source !== null && !isComponentsOnlyVideoMain(source);
};
const getVideoComponentPolicyContext = (
@@ -1245,6 +1447,7 @@ const getVideoComponentPolicyContext = (
selectedComponents: {
componentSourceModel: settings.componentSourceModel,
h3HybridBaseModel: settings.h3HybridBaseModel,
+ ltx2TextEncoderModel: settings.ltx2TextEncoderModel,
h3TextEncoderModel: settings.h3TextEncoderModel,
h3TransformerModel: settings.h3TransformerModel,
vae: settings.vae,
@@ -1329,9 +1532,20 @@ const findH3ComponentSource = (models: readonly ModelConfig[]): MainModelConfig
candidate.type === 'main' && candidate.base === 'minimax-h3' && candidate.format === 'diffusers'
);
- return candidates.find((candidate) => !isComponentsOnlyH3Main(candidate)) ?? candidates[0] ?? null;
+ return candidates.find((candidate) => !isComponentsOnlyVideoMain(candidate)) ?? candidates[0] ?? null;
};
+/** The LTX-2 component folder a generation draws its VAEs, vocoder and connectors from. */
+const findLtx2ComponentSource = (models: readonly ModelConfig[]): MainModelConfig | null =>
+ models.find(
+ (candidate): candidate is ModelConfig & MainModelConfig =>
+ candidate.type === 'main' && candidate.base === 'ltx-2' && candidate.format === 'diffusers'
+ ) ?? null;
+
+/** The Gemma-4 encoder every LTX-2 generation needs; no main model carries one. */
+const findLtx2TextEncoder = (models: readonly ModelConfig[]): ModelConfig | null =>
+ models.find((candidate) => candidate.type === 'gemma4_encoder' && candidate.base === 'ltx-2') ?? null;
+
export const getDefaultVideoSettings = (
model?: MainModelConfig,
models: readonly ModelConfig[] = []
@@ -1348,8 +1562,13 @@ export const getDefaultVideoSettings = (
// A single-file H3 main cannot run without a Diffusers install in the
// Model Components slot, so defaults (and reset, which reuses them) seed
// one from the catalog instead of starting un-invokable.
+ audioCfgScale: config.defaults.audioCfgScale,
componentSourceModel:
- model && model.base === 'minimax-h3' && model.format === 'checkpoint' ? findH3ComponentSource(models) : null,
+ model && model.base === 'minimax-h3' && model.format === 'checkpoint'
+ ? findH3ComponentSource(models)
+ : model && model.base === 'ltx-2' && model.format !== 'diffusers'
+ ? findLtx2ComponentSource(models)
+ : null,
firstFrameImage: null,
fps: config.fps.defaultValue,
h3HybridBaseModel: null,
@@ -1358,8 +1577,11 @@ export const getDefaultVideoSettings = (
h3TransformerModel: null,
lastFrameImage: null,
loras: [],
+ // Required, not an override: seeded so a picked LTX-2 model is invokable.
+ ltx2TextEncoderModel: model && model.base === 'ltx-2' ? findLtx2TextEncoder(models) : null,
+ modalityScale: config.defaults.modalityScale,
modelKey: model?.key ?? '',
- negativePrompt: '',
+ negativePrompt: config.defaultNegativePrompt ?? '',
negativePromptEnabled: true,
negativePromptHeightPx: 56,
numFrames: config.frames.defaultValue,
@@ -1370,6 +1592,7 @@ export const getDefaultVideoSettings = (
seedMode: 'random',
sourceVideo: null,
steps: config.defaults.steps,
+ stgScale: config.defaults.stgScale,
targetResolution: config.defaults.targetResolution,
vae: null,
wanLowNoiseModel: null,
@@ -1406,6 +1629,7 @@ export const getVideoSettingsWithModelDefaults = (
// The default-bearing layout/component choices reset too: a mispicked
// VAE or expert is exactly what a user reaches for reset to undo.
aspectRatioId: modelDefaults.aspectRatioId,
+ audioCfgScale: modelDefaults.audioCfgScale,
cfgScale: modelDefaults.cfgScale,
cfgScaleLowNoise: modelDefaults.cfgScaleLowNoise,
componentSourceModel: modelDefaults.componentSourceModel,
@@ -1420,6 +1644,8 @@ export const getVideoSettingsWithModelDefaults = (
),
...modelDefaults.loras,
].map((lora) => (isLoraCompatibleWithModel(lora.model, model) ? lora : { ...lora, isEnabled: false })),
+ ltx2TextEncoderModel: modelDefaults.ltx2TextEncoderModel,
+ modalityScale: modelDefaults.modalityScale,
modelKey: model.key,
numFrames: modelDefaults.numFrames,
// A reset clears the references list along with the components: on an
@@ -1428,6 +1654,7 @@ export const getVideoSettingsWithModelDefaults = (
// untouched: they remain valid under the FL2VA policy.)
references: modelDefaults.references,
steps: modelDefaults.steps,
+ stgScale: modelDefaults.stgScale,
targetResolution: modelDefaults.targetResolution,
vae: modelDefaults.vae,
wanLowNoiseModel: modelDefaults.wanLowNoiseModel,
@@ -1577,6 +1804,37 @@ export const getVideoModelSelectionResult = ({
addClearedLabel(clearedLabels, 'CFG (Low Noise)');
}
+ // The per-modality guidance scales follow the same rule as CFG (Low Noise): a
+ // family that does not offer a control carries no value for it, and one that
+ // does starts from its own default rather than another family's number.
+ const guidanceTransitions = [
+ ['audioCfgScale', config.guidance.audioVisible],
+ ['stgScale', config.guidance.stgVisible],
+ ['modalityScale', config.guidance.modalityVisible],
+ ] as const;
+
+ for (const [key, visible] of guidanceTransitions) {
+ const wanted = visible ? (next[key] ?? config.defaults[key]) : null;
+
+ if (wanted !== next[key]) {
+ const dropped = next[key] !== null;
+
+ next[key] = wanted;
+ // Only a value the panel is taking away is a clearing; filling one in for a family that has
+ // the control is not. One label for the section rather than one per scale, because they
+ // live together under a collapsed "Advanced guidance" heading.
+ if (dropped) {
+ addClearedLabel(clearedLabels, 'Advanced guidance');
+ }
+ }
+ }
+
+ // A fixed-schedule checkpoint's step count is not the user's to carry over.
+ if (!config.stepsEditable && next.steps !== config.defaults.steps) {
+ next.steps = config.defaults.steps;
+ addClearedLabel(clearedLabels, 'Steps');
+ }
+
const compatibleLoras = next.loras.filter((lora) => isLoraCompatibleWithModel(lora.model, model));
if (compatibleLoras.length !== next.loras.length) {
@@ -1613,6 +1871,16 @@ export const getVideoModelSelectionResult = ({
next.componentSourceModel = findH3ComponentSource(models);
}
+ // Same for LTX-2, whose encoder slot is required on every model shape.
+ if (model.base === 'ltx-2') {
+ if (model.format !== 'diffusers' && !next.componentSourceModel) {
+ next.componentSourceModel = findLtx2ComponentSource(models);
+ }
+ if (!next.ltx2TextEncoderModel) {
+ next.ltx2TextEncoderModel = findLtx2TextEncoder(models);
+ }
+ }
+
return { clearedLabels, settings: next };
};
@@ -1666,9 +1934,11 @@ export const getVideoValidationReasons = (model: MainModelConfig, settings: Vide
// Supported-but-not-selectable H3 shapes can reach the model slot as stored
// or recalled state; name the actual fix instead of failing downstream.
- if (isComponentsOnlyH3Main(model)) {
+ if (isComponentsOnlyVideoMain(model)) {
+ const family = model.base === 'ltx-2' ? 'LTX-2' : 'MiniMax H3';
+
return [
- `${model.name} is a components-only install. Select a single-file MiniMax H3 transformer as the model; this install then provides its components.`,
+ `${model.name} is a components-only install. Select a single-file ${family} transformer as the model; this install then provides its components.`,
];
}
if (model.base === 'minimax-h3' && model.format === 'diffusers' && model.variant === 'ref2va') {
@@ -1747,7 +2017,7 @@ export const getVideoValidationReasons = (model: MainModelConfig, settings: Vide
if (!isValidVideoNumFrames(model, settings.numFrames)) {
reasons.push(
config.frames.kind === 'grid'
- ? `Frame count must be between ${config.frames.min} and ${config.frames.max} in steps of ${config.frames.step} (4·n + 1).`
+ ? `Frame count must be between ${config.frames.min} and ${config.frames.max} in steps of ${config.frames.step} (${describeVideoFramesGrid(config.frames)}).`
: `Frame count must be one of the ${model.name} grid values (17·n + 5, ${config.frames.choices[0]}–${config.frames.choices[config.frames.choices.length - 1]}).`
);
}
@@ -1774,6 +2044,20 @@ export const getVideoValidationReasons = (model: MainModelConfig, settings: Vide
reasons.push('CFG (Low Noise) must be at least 0.');
}
+ // The floors are the denoise node's own `ge`: a value below one fails
+ // pydantic validation at enqueue, after the graph has been built.
+ const guidanceBounds = [
+ { floor: 1, label: 'Audio CFG', value: config.guidance.audioVisible ? settings.audioCfgScale : null },
+ { floor: 0, label: 'STG', value: config.guidance.stgVisible ? settings.stgScale : null },
+ { floor: 1, label: 'Modality guidance', value: config.guidance.modalityVisible ? settings.modalityScale : null },
+ ];
+
+ for (const { floor, label, value } of guidanceBounds) {
+ if (value !== null && (!Number.isFinite(value) || value < floor)) {
+ reasons.push(`${label} must be at least ${floor}.`);
+ }
+ }
+
if (settings.acceleratorEnabled && !config.accelerator) {
reasons.push(`${model.name} has no distillation fast path. Turn the accelerator off to generate with it.`);
}
diff --git a/invokeai/frontend/webv2/src/features/video/core/widgetValues.test.ts b/invokeai/frontend/webv2/src/features/video/core/widgetValues.test.ts
index e647479408..bbaeca26da 100644
--- a/invokeai/frontend/webv2/src/features/video/core/widgetValues.test.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/widgetValues.test.ts
@@ -243,7 +243,7 @@ describe('getVideoWidgetValidationReasons', () => {
it('requires a model first', () => {
const values = { ...createDefaultVideoWidgetValues(), model: null };
- expect(getVideoWidgetValidationReasons(values)).toEqual(['Video needs a Wan 2.2 or MiniMax H3 main model.']);
+ expect(getVideoWidgetValidationReasons(values)).toEqual(['Video needs a Wan 2.2, MiniMax H3 or LTX-2 main model.']);
});
it('passes through settings validation and availability checks', () => {
diff --git a/invokeai/frontend/webv2/src/features/video/core/widgetValues.ts b/invokeai/frontend/webv2/src/features/video/core/widgetValues.ts
index a652a2e3ad..c3a5dee3ea 100644
--- a/invokeai/frontend/webv2/src/features/video/core/widgetValues.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/widgetValues.ts
@@ -184,6 +184,7 @@ export const syncVideoWidgetValuesWithModels = (
h3TextEncoderModel: syncComponent('h3TextEncoderModel', base.h3TextEncoderModel),
h3TransformerModel: syncComponent('h3TransformerModel', base.h3TransformerModel),
loras,
+ ltx2TextEncoderModel: syncComponent('ltx2TextEncoderModel', base.ltx2TextEncoderModel),
model,
modelKey: model?.key ?? base.modelKey,
vae: syncComponent('vae', base.vae),
@@ -211,6 +212,7 @@ export const syncVideoWidgetValuesWithModels = (
next.h3TransformerModel === values.h3TransformerModel &&
next.h3TextEncoderModel === values.h3TextEncoderModel &&
next.h3HybridBaseModel === values.h3HybridBaseModel &&
+ next.ltx2TextEncoderModel === values.ltx2TextEncoderModel &&
next.references === values.references &&
next.loras.length === values.loras.length &&
next.loras.every((lora, index) => lora.model === values.loras[index]?.model);
@@ -224,7 +226,7 @@ export const getVideoWidgetValidationReasons = (
models?: readonly ModelConfig[]
): string[] => {
if (!values.model) {
- return ['Video needs a Wan 2.2 or MiniMax H3 main model.'];
+ return ['Video needs a Wan 2.2, MiniMax H3 or LTX-2 main model.'];
}
const reasons = getVideoValidationReasons(values.model, values);
diff --git a/invokeai/frontend/webv2/src/features/video/ui/VideoWidgetView.tsx b/invokeai/frontend/webv2/src/features/video/ui/VideoWidgetView.tsx
index 537bc63d1e..89edf0bb52 100644
--- a/invokeai/frontend/webv2/src/features/video/ui/VideoWidgetView.tsx
+++ b/invokeai/frontend/webv2/src/features/video/ui/VideoWidgetView.tsx
@@ -12,6 +12,7 @@ import {
applyReferenceExtendSourceVideo,
applyReferenceExtendNumFrames,
canPlaceReferenceExtendAnchor,
+ isVideoTargetResolution,
pinReferenceExtendAnchor,
normalizeVideoWidgetValues,
resolveVideoMode,
@@ -59,9 +60,7 @@ const ASPECT_RATIO_COLLECTION = createListCollection({
});
const toTargetResolution = (value: string | undefined): VideoWidgetValues['targetResolution'] | null =>
- value === '480p' || value === '720p' || value === '1080p' || value === '768 highres' || value === '768 lowres'
- ? value
- : null;
+ isVideoTargetResolution(value) ? value : null;
const DURATION_FORMATTER = new Intl.NumberFormat(undefined, {
maximumFractionDigits: 2,
@@ -251,6 +250,9 @@ export const VideoWidgetView = () => {
},
cfgScale: (cfgScale: number) => patch({ cfgScale }),
cfgScaleLowNoise: (cfgScaleLowNoise: number) => patch({ cfgScaleLowNoise }),
+ audioCfgScale: (audioCfgScale: number) => patch({ audioCfgScale }),
+ modalityScale: (modalityScale: number) => patch({ modalityScale }),
+ stgScale: (stgScale: number) => patch({ stgScale }),
fps: (fps: number) => patch({ fps }),
steps: (steps: number) => patch({ steps }),
targetResolution: ({ value }: { value: string[] }) => {
@@ -430,8 +432,14 @@ export const VideoWidgetView = () => {
const framesSlider = useMemo(
() =>
policy.frames.kind === 'grid'
- ? { max: policy.frames.max, min: policy.frames.min, step: policy.frames.step }
+ ? {
+ inputMax: policy.frames.max,
+ max: policy.frames.sliderMax ?? policy.frames.max,
+ min: policy.frames.min,
+ step: policy.frames.step,
+ }
: {
+ inputMax: policy.frames.choices[policy.frames.choices.length - 1] ?? 0,
max: policy.frames.choices[policy.frames.choices.length - 1] ?? 0,
min: policy.frames.choices[0] ?? 0,
step:
@@ -440,6 +448,7 @@ export const VideoWidgetView = () => {
[policy.frames]
);
+ const hasAdvancedGuidance = policy.ui.audioCfgVisible || policy.ui.stgVisible || policy.ui.modalityVisible;
const mode = resolveVideoMode(values);
const supportsFirstFrame = policy.modes.includes('first-frame') || policy.modes.includes('first-last');
const supportsLastFrame = policy.modes.includes('first-last') || policy.modes.includes('last-frame');
@@ -637,6 +646,7 @@ export const VideoWidgetView = () => {
</Field>
<ScrubberField
helpText={durationText}
+ inputMax={framesSlider.inputMax}
label={t('widgets.video.frames')}
max={framesSlider.max}
min={framesSlider.min}
@@ -683,16 +693,23 @@ export const VideoWidgetView = () => {
</Switch.Root>
</Field>
) : null}
- <ScrubberField
- hint="steps"
- inputMax={500}
- label={t('widgets.video.steps')}
- max={100}
- min={policy.minSteps}
- step={1}
- value={values.steps}
- onChange={set.steps}
- />
+ {policy.ui.stepsEditable ? (
+ <ScrubberField
+ defaultValue={policy.defaults.steps}
+ hint="steps"
+ inputMax={500}
+ label={t('widgets.video.steps')}
+ max={100}
+ min={policy.minSteps}
+ step={1}
+ value={values.steps}
+ onChange={set.steps}
+ />
+ ) : (
+ <Text color="fg.muted" fontSize="2xs">
+ {t('widgets.video.stepsFixed', { steps: policy.defaults.steps })}
+ </Text>
+ )}
{policy.ui.cfgVisible ? (
<ScrubberField
hint="cfgScale"
@@ -727,6 +744,52 @@ export const VideoWidgetView = () => {
</Stack>
</GenerationSettingsSection>
+ {hasAdvancedGuidance ? (
+ <GenerationSettingsSection label={t('widgets.video.advancedGuidance')} sectionId="video-guidance">
+ <Stack gap="3" p="2">
+ {policy.ui.audioCfgVisible ? (
+ <ScrubberField
+ defaultValue={policy.defaults.audioCfgScale ?? undefined}
+ helpText={t('widgets.video.audioCfgHelp')}
+ inputMax={100}
+ label={t('widgets.video.audioCfg')}
+ max={15}
+ min={1}
+ step={0.1}
+ value={values.audioCfgScale ?? policy.defaults.audioCfgScale ?? 1}
+ onChange={set.audioCfgScale}
+ />
+ ) : null}
+ {policy.ui.stgVisible ? (
+ <ScrubberField
+ defaultValue={policy.defaults.stgScale ?? undefined}
+ helpText={t('widgets.video.stgHelp')}
+ inputMax={10}
+ label={t('widgets.video.stg')}
+ max={3}
+ min={0}
+ step={0.1}
+ value={values.stgScale ?? policy.defaults.stgScale ?? 0}
+ onChange={set.stgScale}
+ />
+ ) : null}
+ {policy.ui.modalityVisible ? (
+ <ScrubberField
+ defaultValue={policy.defaults.modalityScale ?? undefined}
+ helpText={t('widgets.video.modalityHelp')}
+ inputMax={10}
+ label={t('widgets.video.modality')}
+ max={5}
+ min={1}
+ step={0.1}
+ value={values.modalityScale ?? policy.defaults.modalityScale ?? 1}
+ onChange={set.modalityScale}
+ />
+ ) : null}
+ </Stack>
+ </GenerationSettingsSection>
+ ) : null}
+
<VideoConceptsSection loras={values.loras} model={values.model} onChangeLoras={setLoras} />
<VideoComponentsSection values={values} onPatch={patch} />
</Stack>
diff --git a/invokeai/frontend/webv2/src/features/video/ui/videoComparators.ts b/invokeai/frontend/webv2/src/features/video/ui/videoComparators.ts
index 23f9f871bf..c8e69e831c 100644
--- a/invokeai/frontend/webv2/src/features/video/ui/videoComparators.ts
+++ b/invokeai/frontend/webv2/src/features/video/ui/videoComparators.ts
@@ -44,6 +44,9 @@ export const areVideoValuesEqual = (left: VideoWidgetValues, right: VideoWidgetV
left.steps === right.steps &&
left.cfgScale === right.cfgScale &&
left.cfgScaleLowNoise === right.cfgScaleLowNoise &&
+ left.audioCfgScale === right.audioCfgScale &&
+ left.stgScale === right.stgScale &&
+ left.modalityScale === right.modalityScale &&
left.acceleratorEnabled === right.acceleratorEnabled &&
stableStringify(left.acceleratorLoraKeys) === stableStringify(right.acceleratorLoraKeys) &&
left.seed === right.seed &&
@@ -60,6 +63,7 @@ export const areVideoValuesEqual = (left: VideoWidgetValues, right: VideoWidgetV
stableStringify(left.componentSourceModel) === stableStringify(right.componentSourceModel) &&
stableStringify(left.h3TransformerModel) === stableStringify(right.h3TransformerModel) &&
stableStringify(left.h3TextEncoderModel) === stableStringify(right.h3TextEncoderModel) &&
+ stableStringify(left.ltx2TextEncoderModel) === stableStringify(right.ltx2TextEncoderModel) &&
stableStringify(left.h3HybridBaseModel) === stableStringify(right.h3HybridBaseModel) &&
left.h3HybridStartBlock === right.h3HybridStartBlock
);
diff --git a/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.test.ts b/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.test.ts
index 07c0276de7..7faada9964 100644
--- a/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.test.ts
+++ b/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.test.ts
@@ -1,6 +1,7 @@
import type { GenerationModelCatalogItem, MainModelConfig } from '@features/generation/contracts';
import { createDefaultVideoWidgetValues } from '@features/video';
+import { getVideoPromptPolicy } from '@features/video/core/videoPolicies';
import { describe, expect, it } from 'vitest';
import {
@@ -822,3 +823,132 @@ describe('portable records (metadata_version 1.0.0)', () => {
expect(getVideoRecallCapabilities({ generation_mode: 'wan_t2v', model: { hash: 'blake3:x' } }).remix).toBe(true);
});
});
+
+const ltx2Model = (variant: string, format = 'checkpoint', key = `ltx2-${variant}`): MainModelConfig => ({
+ base: 'ltx-2',
+ format,
+ key,
+ name: `LTX-2 ${variant}`,
+ type: 'main',
+ variant,
+});
+
+const LTX2_DEV = ltx2Model('ltx2_dev');
+const LTX2_DISTILLED = ltx2Model('ltx2_distilled');
+const LTX2_COMPONENTS = ltx2Model('ltx2_dev', 'diffusers', 'ltx2-components');
+const LTX2_ENCODER: GenerationModelCatalogItem = {
+ base: 'ltx-2',
+ key: 'gemma4',
+ name: 'LTX-2.5 Text Encoder',
+ type: 'gemma4_encoder',
+};
+
+const ltx2Metadata = (extra: Record<string, unknown> = {}): Record<string, unknown> => ({
+ cfg_scale: 3,
+ fps: 24,
+ generation_mode: 'ltx2_t2v',
+ height: 704,
+ ltx2_audio_cfg_scale: 7,
+ ltx2_component_source: LTX2_COMPONENTS,
+ ltx2_modality_scale: 3,
+ ltx2_stg_scale: 1,
+ ltx2_text_encoder_model: LTX2_ENCODER,
+ model: LTX2_DEV,
+ negative_prompt: 'blurry',
+ num_frames: 121,
+ positive_prompt: 'a ginger cat',
+ seed: 99,
+ steps: 30,
+ width: 1248,
+ ...extra,
+});
+
+describe('LTX-2 recall', () => {
+ const catalog = [LTX2_DEV, LTX2_DISTILLED, LTX2_COMPONENTS, LTX2_ENCODER, WAN_T2V];
+ const currentValues = createDefaultVideoWidgetValues([WAN_T2V]);
+
+ it('treats both LTX-2 modes as recallable video metadata', () => {
+ // The mode id is the gate for every Recall button; a string the set does not know silently
+ // hides them all, with nothing failing.
+ for (const mode of ['ltx2_t2v', 'ltx2_i2v']) {
+ expect(isVideoGenerationMetadata({ generation_mode: mode, seed: 1 })).toBe(true);
+ expect(getVideoRecallCapabilities(ltx2Metadata({ generation_mode: mode }))).toEqual({
+ all: true,
+ prompts: true,
+ remix: true,
+ seed: true,
+ });
+ }
+ });
+
+ it('restores the model, both component slots and every guidance scale', () => {
+ const result = buildVideoRecallSettings({ currentValues, kind: 'all', metadata: ltx2Metadata(), models: catalog });
+
+ expect(result?.values.model).toMatchObject({ key: LTX2_DEV.key });
+ expect(result?.values.componentSourceModel).toMatchObject({ key: LTX2_COMPONENTS.key });
+ expect(result?.values.ltx2TextEncoderModel).toMatchObject({ key: LTX2_ENCODER.key });
+ expect(result?.values).toMatchObject({
+ audioCfgScale: 7,
+ cfgScale: 3,
+ fps: 24,
+ modalityScale: 3,
+ numFrames: 121,
+ seed: 99,
+ steps: 30,
+ stgScale: 1,
+ });
+ expect(result?.fields).toEqual(expect.arrayContaining(['model', 'components', 'cfg', 'frames', 'steps']));
+ });
+
+ it('recalls the size back onto the preset that produced it', () => {
+ const result = buildVideoRecallSettings({ currentValues, kind: 'all', metadata: ltx2Metadata(), models: catalog });
+
+ expect(result?.values.targetResolution).toBe('704p');
+ expect(result?.values.aspectRatioId).toBe('16:9');
+ });
+
+ it('does not put a step count on a checkpoint whose schedule is fixed', () => {
+ // The distilled schedule ignores whatever reaches it, so a recalled 30 would leave a disabled
+ // control showing a number the run will not use — and re-record it on the next generation.
+ const result = buildVideoRecallSettings({
+ currentValues,
+ kind: 'all',
+ metadata: ltx2Metadata({ model: LTX2_DISTILLED, steps: 30 }),
+ models: catalog,
+ });
+
+ expect(result?.values.model).toMatchObject({ key: LTX2_DISTILLED.key });
+ expect(result?.values.steps).toBe(8);
+ expect(result?.fields).not.toContain('steps');
+ });
+
+ it('reproduces a run made with the negative prompt switched off', () => {
+ // Whether the negative prompt is on changes the LTX-2 graph — it decides whether an
+ // unconditional pass runs at all — and nothing records that bit directly. What is recorded is
+ // the guidance the run actually used, which is the same thing: both scales at 1 mean no
+ // unconditional pass, so recalling them rebuilds the same graph even with the prompt back on.
+ const result = buildVideoRecallSettings({
+ currentValues,
+ kind: 'all',
+ metadata: ltx2Metadata({ cfg_scale: 1, ltx2_audio_cfg_scale: 1 }),
+ models: catalog,
+ });
+
+ expect(result?.values.cfgScale).toBe(1);
+ expect(result?.values.audioCfgScale).toBe(1);
+ expect(getVideoPromptPolicy(result!.values.model!, result!.values).negativeUsedInGraph).toBe(false);
+ });
+
+ it('drops the per-modality scales when recalled onto a family without them', () => {
+ const result = buildVideoRecallSettings({
+ currentValues,
+ kind: 'all',
+ metadata: { ...ltx2Metadata(), model: WAN_T2V, generation_mode: 'wan_t2v' },
+ models: catalog,
+ });
+
+ expect(result?.values.audioCfgScale).toBeNull();
+ expect(result?.values.stgScale).toBeNull();
+ expect(result?.values.modalityScale).toBeNull();
+ });
+});
diff --git a/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.ts b/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.ts
index eb38974617..18dceb5d46 100644
--- a/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.ts
+++ b/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.ts
@@ -56,6 +56,8 @@ const VIDEO_GENERATION_MODE_IDS: ReadonlySet<string> = new Set([
'minimax_h3_flf2v',
'minimax_h3_extend_video',
'minimax_h3_ref2v',
+ 'ltx2_t2v',
+ 'ltx2_i2v',
]);
export type VideoRecallKind = 'all' | 'remix' | 'prompts' | 'seed';
@@ -297,6 +299,8 @@ const VIDEO_COMPONENT_METADATA_KEYS = [
['minimax_h3_component_source', 'componentSourceModel'],
['minimax_h3_text_encoder_model', 'h3TextEncoderModel'],
['minimax_h3_hybrid_base_model', 'h3HybridBaseModel'],
+ ['ltx2_component_source', 'componentSourceModel'],
+ ['ltx2_text_encoder_model', 'ltx2TextEncoderModel'],
] as const;
/**
@@ -552,16 +556,18 @@ export const buildVideoRecallSettings = ({
fields.push('frames');
}
+ const policy = getVideoModelPolicy(model, values);
const steps = getInteger(metadata, 'steps');
- if (steps !== null && steps >= 1) {
+ // A fixed-schedule checkpoint ignores whatever step count reaches it, so recalling one would
+ // leave a disabled control showing a number the run will not use — and re-record it next time.
+ if (policy.ui.stepsEditable && steps !== null && steps >= 1) {
values = { ...values, steps };
fields.push('steps');
}
const cfgScale = getNumber(metadata, 'cfg_scale');
const cfgScaleLowNoise = getNumber(metadata, 'wan_guidance_scale_low_noise');
- const policy = getVideoModelPolicy(model, values);
if (policy.ui.cfgVisible && cfgScale !== null && cfgScale >= 1) {
values = {
@@ -576,6 +582,26 @@ export const buildVideoRecallSettings = ({
fields.push('cfg');
}
+ // The per-modality scales ride with CFG: they are the same run's guidance,
+ // and a family that does not offer a control must not be handed a number.
+ const guidanceRecall = [
+ { floor: 1, key: 'audioCfgScale', metadataKey: 'ltx2_audio_cfg_scale', visible: policy.ui.audioCfgVisible },
+ { floor: 0, key: 'stgScale', metadataKey: 'ltx2_stg_scale', visible: policy.ui.stgVisible },
+ { floor: 1, key: 'modalityScale', metadataKey: 'ltx2_modality_scale', visible: policy.ui.modalityVisible },
+ ] as const;
+
+ for (const { floor, key, metadataKey, visible } of guidanceRecall) {
+ const recalled = getNumber(metadata, metadataKey);
+
+ if (visible && recalled !== null && recalled >= floor) {
+ values = { ...values, [key]: recalled };
+
+ if (!fields.includes('cfg')) {
+ fields.push('cfg');
+ }
+ }
+ }
+
const fps = getInteger(metadata, 'fps');
// Wan records the delivered frame rate (H3 records its fixed 24, which its
diff --git a/tests/app/invocations/test_frontend_graph_node_types.py b/tests/app/invocations/test_frontend_graph_node_types.py
index ed98c89921..b249e03c11 100644
--- a/tests/app/invocations/test_frontend_graph_node_types.py
+++ b/tests/app/invocations/test_frontend_graph_node_types.py
@@ -6,11 +6,11 @@ schema, so a node type or field that moves, is renamed, or loses its module impo
suite sees that on its own: the frontend only knows the strings it emits, and the backend only knows
the invocations it has.
-The contract in between is `generateGraphNodeTypes.json`, written by
-`src/features/generation/core/graphCoverage.test.ts` (regenerate with `vitest -u`). It records every
-node type, every edge field, and every *literal* input value — the ones webv2 writes straight onto a
-node, with no edge to record them — that `compileGenerateGraph` produces for every supported
-architecture. This module checks all of it against the real registry.
+The contracts in between are `generateGraphNodeTypes.json` and `videoGraphNodeTypes.json`, written
+by `graphCoverage.test.ts` and `videoGraphCoverage.test.ts` (regenerate with `vitest -u`). Each
+records every node type, every edge field, and every *literal* input value — the ones webv2 writes
+straight onto a node, with no edge to record them — that its compiler produces for every supported
+architecture. This module checks both against the real registry.
The literal values are checked against the field's own annotation, not merely against its name. That
is where the frontend is blindest: it picks a scheduler from its own `FLOW_SCHEDULER_OPTIONS` while
@@ -28,27 +28,27 @@ from pydantic import TypeAdapter, ValidationError
from invokeai.app.invocations.baseinvocation import BaseInvocation, InvocationRegistry
from invokeai.app.services.shared.graph import * # noqa: F401 F403 -- imports all invocations, populating the registry
-CONTRACT_PATH = (
- Path(__file__).parents[3]
- / "invokeai"
- / "frontend"
- / "webv2"
- / "src"
- / "features"
- / "generation"
- / "core"
- / "__snapshots__"
- / "generateGraphNodeTypes.json"
-)
+_WEBV2 = Path(__file__).parents[3] / "invokeai" / "frontend" / "webv2" / "src" / "features"
+CONTRACT_PATHS = {
+ "generate": _WEBV2 / "generation" / "core" / "__snapshots__" / "generateGraphNodeTypes.json",
+ "video": _WEBV2 / "video" / "core" / "__snapshots__" / "videoGraphNodeTypes.json",
+}
+
+CONTRACTS: dict[str, dict[str, Any]] = {
+ name: json.loads(path.read_text(encoding="utf-8")) for name, path in CONTRACT_PATHS.items()
+}
-def _contract() -> dict[str, Any]:
- return json.loads(CONTRACT_PATH.read_text(encoding="utf-8"))
+# The two panels compile different graphs from different tables, so each contract is checked on its
+# own; every assertion below is parameterized over both.
+BASE_CASES = [(name, base) for name, contract in CONTRACTS.items() for base in sorted(contract["byBase"])]
+NODE_CASES = [
+ (name, node_type) for name, contract in CONTRACTS.items() for node_type in sorted(contract["fieldsByNodeType"])
+]
-CONTRACT = _contract()
-BY_BASE: dict[str, dict[str, Any]] = CONTRACT["byBase"]
-FIELDS_BY_NODE_TYPE: dict[str, dict[str, Any]] = CONTRACT["fieldsByNodeType"]
+def _fields(contract: str, node_type: str) -> dict[str, Any]:
+ return CONTRACTS[contract]["fieldsByNodeType"][node_type]
def _invocation(node_type: str) -> type[BaseInvocation]:
@@ -61,58 +61,69 @@ def _invocation(node_type: str) -> type[BaseInvocation]:
return cls
-def test_the_contract_covers_every_supported_base() -> None:
- """Guard against a contract that silently stopped being regenerated.
+# The number of architectures each panel supports. A contract that silently stopped being
+# regenerated would make every assertion below vacuous, so the count is pinned: a new architecture
+# updates this number and the fixture in the same commit.
+SUPPORTED_BASE_COUNTS = {"generate": 14, "video": 3}
- An empty or truncated file would make every assertion below vacuous. 14 is the current length of
- webv2's `SUPPORTED_GENERATE_BASES`; a new architecture should update this number and the file in
- the same commit.
- """
- assert len(BY_BASE) == 14
- assert all(entry["nodeTypes"] for entry in BY_BASE.values())
+# Floors separating "the fixture records literals" from "it records a fraction of them". Set just
+# under the current numbers (generate: 58 node types carrying 252 scalar values; video: 25 carrying
+# 142) rather than far below them: a recording bug that dropped most of the values while keeping the
+# names would otherwise leave every annotation check below passing over a short list. They are not
+# per-architecture expectations, so removing an architecture means lowering them deliberately.
+LITERAL_FLOORS = {"generate": (55, 240), "video": (23, 135)}
+
+
[email protected]("contract", sorted(CONTRACTS), ids=lambda contract: contract)
+def test_the_contract_covers_every_supported_base(contract: str) -> None:
+ by_base = CONTRACTS[contract]["byBase"]
+
+ assert len(by_base) == SUPPORTED_BASE_COUNTS[contract]
+ assert all(entry["nodeTypes"] for entry in by_base.values())
-def test_the_contract_records_the_values_webv2_writes_onto_nodes() -> None:
[email protected]("contract", sorted(CONTRACTS), ids=lambda contract: contract)
+def test_the_contract_records_the_values_webv2_writes_onto_nodes(contract: str) -> None:
"""The literal section going vacuous is the failure mode the edge-only contract already had.
A recording bug that dropped the values while keeping the names would leave every annotation
- check below passing over an empty list. Both floors are well under the current numbers (58 node
- types carry literals, 241 scalar values between them) — they separate "recorded" from "empty",
- not one architecture from the next.
+ check below passing over an empty list.
"""
- with_literals = [node_type for node_type, entry in FIELDS_BY_NODE_TYPE.items() if entry["literalInputs"]]
+ fields_by_node_type = CONTRACTS[contract]["fieldsByNodeType"]
+ with_literals = [node_type for node_type, entry in fields_by_node_type.items() if entry["literalInputs"]]
recorded_values = sum(
- len(values) for entry in FIELDS_BY_NODE_TYPE.values() for values in entry["literalInputs"].values()
+ len(values) for entry in fields_by_node_type.values() for values in entry["literalInputs"].values()
)
+ node_floor, value_floor = LITERAL_FLOORS[contract]
- assert len(with_literals) >= 40
- assert recorded_values >= 150
+ assert len(with_literals) >= node_floor
+ assert recorded_values >= value_floor
[email protected]("base", sorted(BY_BASE), ids=lambda base: base)
-def test_every_node_type_a_base_compiles_is_registered(base: str) -> None:
[email protected](("contract", "base"), BASE_CASES, ids=lambda value: value)
+def test_every_node_type_a_base_compiles_is_registered(contract: str, base: str) -> None:
missing = [
node_type
- for node_type in BY_BASE[base]["nodeTypes"]
+ for node_type in CONTRACTS[contract]["byBase"][base]["nodeTypes"]
if node_type not in InvocationRegistry.get_invocations_map()
]
assert missing == [], f"webv2's '{base}' graph uses unregistered node types: {missing}"
[email protected]("node_type", sorted(FIELDS_BY_NODE_TYPE), ids=lambda node_type: node_type)
-def test_edge_destination_fields_are_real_invocation_fields(node_type: str) -> None:
[email protected](("contract", "node_type"), NODE_CASES, ids=lambda value: value)
+def test_edge_destination_fields_are_real_invocation_fields(contract: str, node_type: str) -> None:
"""An edge into a field the invocation does not have is rejected when the graph is enqueued."""
cls = _invocation(node_type)
- unknown = sorted(set(FIELDS_BY_NODE_TYPE[node_type]["inputs"]) - set(cls.model_fields))
+ unknown = sorted(set(_fields(contract, node_type)["inputs"]) - set(cls.model_fields))
assert unknown == [], f"webv2 wires edges into unknown inputs on '{node_type}': {unknown}"
[email protected]("node_type", sorted(FIELDS_BY_NODE_TYPE), ids=lambda node_type: node_type)
-def test_edge_source_fields_are_real_output_fields(node_type: str) -> None:
[email protected](("contract", "node_type"), NODE_CASES, ids=lambda value: value)
+def test_edge_source_fields_are_real_output_fields(contract: str, node_type: str) -> None:
"""The other half: an edge out of a field the invocation's output does not expose."""
cls = _invocation(node_type)
output_fields = set(cls.get_output_annotation().model_fields)
- unknown = sorted(set(FIELDS_BY_NODE_TYPE[node_type]["outputs"]) - output_fields)
+ unknown = sorted(set(_fields(contract, node_type)["outputs"]) - output_fields)
assert unknown == [], f"webv2 wires edges out of unknown outputs on '{node_type}': {unknown}"
@@ -143,8 +154,8 @@ because `BaseInvocation` does not forbid extra fields.
"""
[email protected]("node_type", sorted(FIELDS_BY_NODE_TYPE), ids=lambda node_type: node_type)
-def test_literal_inputs_are_real_invocation_fields(node_type: str) -> None:
[email protected](("contract", "node_type"), NODE_CASES, ids=lambda value: value)
+def test_literal_inputs_are_real_invocation_fields(contract: str, node_type: str) -> None:
"""The half no edge records: a field webv2 sets directly, with no edge to point at it."""
cls = _invocation(node_type)
if cls.model_config.get("extra") == "allow":
@@ -152,15 +163,15 @@ def test_literal_inputs_are_real_invocation_fields(node_type: str) -> None:
# into the image's metadata record — so there is no closed field set to check against.
pytest.skip(f"'{node_type}' accepts extra fields by design")
- unknown = sorted(set(FIELDS_BY_NODE_TYPE[node_type]["literalInputs"]) - set(cls.model_fields))
+ unknown = sorted(set(_fields(contract, node_type)["literalInputs"]) - set(cls.model_fields))
assert unknown == sorted(SILENTLY_IGNORED.get(node_type, set())), (
f"webv2 sets inputs '{node_type}' does not declare: {unknown}. They are ignored rather than "
f"rejected, so whatever they were meant to do silently does not happen."
)
[email protected]("node_type", sorted(FIELDS_BY_NODE_TYPE), ids=lambda node_type: node_type)
-def test_literal_input_values_satisfy_the_field_they_are_written_to(node_type: str) -> None:
[email protected](("contract", "node_type"), NODE_CASES, ids=lambda value: value)
+def test_literal_input_values_satisfy_the_field_they_are_written_to(contract: str, node_type: str) -> None:
"""A name that still exists but no longer accepts the value is the same enqueue failure.
The scheduler fields are the motivating case: webv2 offers its own option list per base, the
@@ -170,7 +181,7 @@ def test_literal_input_values_satisfy_the_field_they_are_written_to(node_type: s
cls = _invocation(node_type)
rejected: list[str] = []
- for field_name, values in sorted(FIELDS_BY_NODE_TYPE[node_type]["literalInputs"].items()):
+ for field_name, values in sorted(_fields(contract, node_type)["literalInputs"].items()):
if field_name not in cls.model_fields:
continue # Reported by the test above; a missing field has no annotation to check.
adapter = TypeAdapter(_annotation(cls, field_name))
diff --git a/tests/app/invocations/test_ideal_size.py b/tests/app/invocations/test_ideal_size.py
index f702473124..0625fb706c 100644
--- a/tests/app/invocations/test_ideal_size.py
+++ b/tests/app/invocations/test_ideal_size.py
@@ -53,9 +53,9 @@ IDEAL_SIZE_AT_NODE_DEFAULTS: dict[BaseModelType, tuple[int, int]] = {
BaseModelType.Flux2: (1360, 768),
BaseModelType.Ideogram4: (1360, 768),
BaseModelType.Krea2: (1360, 768),
- # Declared 1280x704 (non-square, like H3): 901120 px at 1.7778 -> height sqrt(506880) = 711.95
- # -> 711 -> 704 on the 32 grid; width 1265.7 -> 1265 -> 1248.
- BaseModelType.LTX2: (1248, 704),
+ # Declared 1248x704 (non-square, like H3): 878592 px at 1.7778 -> height sqrt(494208) = 703.0
+ # -> 703 -> 672 on the 32 grid; width 1249.9 -> 1249 -> 1248.
+ BaseModelType.LTX2: (1248, 672),
# The one architecture whose declared default is not square (1344x768). Squaring its width
# asked for 1.75x the area it was trained on and returned (1792, 992); taking both
# dimensions as an area keeps it at its own scale. Every other row is unchanged by that,
diff --git a/tests/app/invocations/test_ltx2_nodes.py b/tests/app/invocations/test_ltx2_nodes.py
new file mode 100644
index 0000000000..ac6f74263f
--- /dev/null
+++ b/tests/app/invocations/test_ltx2_nodes.py
@@ -0,0 +1,300 @@
+"""LTX-2 node contracts that do not need a model: what each node refuses, and why."""
+
+import wave
+from pathlib import Path
+from types import SimpleNamespace
+from unittest.mock import MagicMock
+
+import pytest
+import torch
+from PIL import Image
+
+import invokeai.app.invocations.vae.ltx2_latents_to_video as ltx2_latents_to_video
+from invokeai.app.invocations.fields import LatentsField, LTX2ConditioningField, LTX2VideoConditioningField
+from invokeai.app.invocations.ltx2.ltx2_denoise import LTX2DenoiseInvocation
+from invokeai.app.invocations.ltx2.ltx2_ideal_dimensions import LTX2IdealDimensionsInvocation
+from invokeai.app.invocations.ltx2.ltx2_model_loader import LTX2ModelLoaderInvocation
+from invokeai.app.invocations.model import (
+ LTX2TransformerField,
+ LTX2VocoderField,
+ ModelIdentifierField,
+ VAEField,
+)
+from invokeai.app.invocations.vae.ltx2_latents_to_video import LTX2LatentsToVideoInvocation
+from invokeai.backend.ltx2.image_conditioning import fit_to_canvas, recompress_h264
+from invokeai.backend.model_manager.configs.main import Main_Diffusers_LTX2_Config
+from invokeai.backend.model_manager.taxonomy import BaseModelType, LTX2VariantType, ModelFormat, ModelType
+from invokeai.backend.stable_diffusion.diffusion.conditioning_data import LTX2ConditioningInfo
+
+
+def _identifier(key: str = "transformer") -> ModelIdentifierField:
+ return ModelIdentifierField(
+ key=key, hash="hash", name=key, base=BaseModelType.LTX2, type=ModelType.Main, format=ModelFormat.Checkpoint
+ )
+
+
+def _denoise(**kwargs) -> LTX2DenoiseInvocation:
+ defaults = {
+ "transformer": LTX2TransformerField(transformer=_identifier(), variant=LTX2VariantType.Dev.value),
+ "positive_conditioning": LTX2ConditioningField(conditioning_name="positive"),
+ "negative_conditioning": LTX2ConditioningField(conditioning_name="negative"),
+ }
+ return LTX2DenoiseInvocation(id="denoise", **{**defaults, **kwargs})
+
+
+def _context() -> MagicMock:
+ context = MagicMock()
+ context.logger = MagicMock()
+ return context
+
+
+ ("variant", "schedule", "expected"),
+ [
+ (LTX2VariantType.Distilled.value, "auto", True),
+ (LTX2VariantType.Dev.value, "auto", False),
+ (LTX2VariantType.Dev.value, "distilled", True),
+ (LTX2VariantType.Distilled.value, "dev", False),
+ ],
+)
+def test_the_schedule_follows_the_variant_unless_it_is_set_explicitly(
+ variant: str, schedule: str, expected: bool
+) -> None:
+ """Sampling a distilled checkpoint on the dev schedule returns noise, so the default reads the
+ variant the loader stamped rather than trusting a literal in the graph."""
+ node = _denoise(transformer=LTX2TransformerField(transformer=_identifier(), variant=variant), schedule=schedule)
+ assert node._resolve_distilled() is expected
+
+
+def test_an_unstamped_transformer_cannot_resolve_the_schedule_automatically() -> None:
+ node = _denoise(transformer=LTX2TransformerField(transformer=_identifier(), variant=None), schedule="auto")
+ with pytest.raises(ValueError, match="Auto"):
+ node._resolve_distilled()
+
+
+def test_the_distilled_schedule_ignores_the_guidance_scales_and_says_so() -> None:
+ """Guidance is baked into the distilled weights; steering it produces a saturated, broken clip,
+ so this is not a preference a graph gets to override."""
+ context = _context()
+ guidance = _denoise()._resolve_guidance(context, distilled=True)
+
+ assert guidance.passes == ("cond",)
+ assert (guidance.cfg_scale, guidance.audio_cfg_scale, guidance.stg_scale, guidance.modality_scale) == (
+ 1.0,
+ 1.0,
+ 0.0,
+ 1.0,
+ )
+ assert context.logger.info.called
+
+
+def test_the_dev_schedule_passes_the_graphs_guidance_scales_through() -> None:
+ node = _denoise(cfg_scale=4.0, audio_cfg_scale=6.0, stg_scale=0.5, modality_scale=2.0, guidance_rescale=0.3)
+ guidance = node._resolve_guidance(_context(), distilled=False)
+ assert (guidance.cfg_scale, guidance.audio_cfg_scale, guidance.stg_scale, guidance.modality_scale) == (
+ 4.0,
+ 6.0,
+ 0.5,
+ 2.0,
+ )
+ assert guidance.rescale == 0.3
+
+
+def test_guidance_without_a_negative_prompt_is_refused_before_a_model_loads() -> None:
+ node = _denoise(negative_conditioning=None)
+ context = _context()
+ context.conditioning.load.return_value = SimpleNamespace(
+ conditionings=[
+ LTX2ConditioningInfo(
+ video_embeds=torch.zeros(1, 4, 8),
+ audio_embeds=torch.zeros(1, 4, 6),
+ attention_mask=torch.ones(1, 4, dtype=torch.int64),
+ )
+ ]
+ )
+ with pytest.raises(ValueError, match="negative conditioning"):
+ node.invoke(context)
+
+
+def test_an_image_conditioning_from_another_canvas_is_refused_with_both_sizes() -> None:
+ node = _denoise(
+ width=1248,
+ height=704,
+ video_conditioning=LTX2VideoConditioningField(latents_name="latents", width=768, height=512),
+ )
+ with pytest.raises(ValueError, match="768x512"):
+ node._load_image_latents(_context())
+
+
[email protected]("num_frames", [120, 122])
+def test_a_frame_count_off_the_vae_grid_is_refused(num_frames: int) -> None:
+ with pytest.raises(ValueError, match="8n \\+ 1"):
+ _denoise(num_frames=num_frames).invoke(_context())
+
+
+def test_the_working_memory_estimate_grows_with_the_sequence() -> None:
+ """Under-reserving packs VRAM with weights and kills the first forward; the estimate has to
+ follow the row count rather than being a constant."""
+ small = LTX2DenoiseInvocation._estimate_working_memory(320, 9)
+ large = LTX2DenoiseInvocation._estimate_working_memory(13728, 126)
+ assert large > small
+ # Measured on a W7900 at these shapes: 0.46 GiB and 2.81 GiB.
+ assert small > 0.46 * 2**30
+ assert large > 2.81 * 2**30
+
+
+def test_the_model_loader_refuses_a_single_file_transformer_with_no_component_folder() -> None:
+ """A checkpoint carries the transformer alone; without a folder there is no VAE to decode with,
+ and the failure would otherwise surface minutes later inside a loader."""
+ node = LTX2ModelLoaderInvocation(
+ id="loader",
+ model=_identifier(),
+ text_encoder_model=_identifier("encoder"),
+ )
+ context = _context()
+ context.models.exists.return_value = True
+ context.models.get_config.return_value = SimpleNamespace(
+ base=BaseModelType.LTX2, type=ModelType.Main, name="LTX-2.5 Dev", format=ModelFormat.Checkpoint
+ )
+ with pytest.raises(ValueError, match="Components field"):
+ node.invoke(context)
+
+
+def test_the_model_loader_refuses_a_components_only_folder_as_the_model() -> None:
+ node = LTX2ModelLoaderInvocation(id="loader", model=_identifier(), text_encoder_model=_identifier("encoder"))
+ context = _context()
+ context.models.exists.return_value = True
+ context.models.get_config.return_value = Main_Diffusers_LTX2_Config.model_construct(
+ base=BaseModelType.LTX2, type=ModelType.Main, name="LTX-2.5 Components", components_only=True
+ )
+ with pytest.raises(ValueError, match="components-only"):
+ node.invoke(context)
+
+
+def test_the_model_loader_refuses_a_model_from_another_architecture() -> None:
+ node = LTX2ModelLoaderInvocation(id="loader", model=_identifier(), text_encoder_model=_identifier("encoder"))
+ context = _context()
+ context.models.exists.return_value = True
+ context.models.get_config.return_value = SimpleNamespace(
+ base=BaseModelType.Wan, type=ModelType.Main, name="Wan", format=ModelFormat.Diffusers
+ )
+ with pytest.raises(ValueError, match="Model field needs an LTX-2 main model"):
+ node.invoke(context)
+
+
+ ("source", "preset", "expected"),
+ [((1920, 1080), "704p", (1248, 704)), ((1080, 1920), "512p", (512, 896)), ((1024, 1024), "768p", (768, 768))],
+)
+def test_the_ideal_dimensions_pin_the_short_edge(source, preset, expected) -> None:
+ node = LTX2IdealDimensionsInvocation(id="dims", width=source[0], height=source[1], target_resolution=preset)
+ output = node.invoke(MagicMock())
+ assert (output.width, output.height) == expected
+
+
+def test_fitting_an_image_to_the_canvas_crops_rather_than_stretches() -> None:
+ """A stretched first frame teaches the model the wrong geometry for the whole clip."""
+ source = Image.new("RGB", (1000, 500), "red")
+ source.paste(Image.new("RGB", (100, 100), "blue"), (450, 200))
+
+ fitted = fit_to_canvas(source, 704, 704)
+
+ assert fitted.size == (704, 704)
+ # A 2:1 source cover-cropped to a square keeps the centre, so the blue patch survives.
+ assert fitted.getpixel((352, 352)) == (0, 0, 255)
+
+
+def test_the_crf_round_trip_returns_a_recompressed_frame_of_the_same_size() -> None:
+ """The conditioning image has to carry codec artefacts; the round trip goes through ffmpeg,
+ whose two-process pipe is easy to get subtly wrong."""
+ torch.manual_seed(0)
+ noise = (torch.rand(96, 128, 3) * 255).byte().numpy()
+ source = Image.fromarray(noise, "RGB")
+
+ recompressed = recompress_h264(source, 18)
+
+ assert recompressed.size == source.size
+ assert recompressed.tobytes() != source.tobytes()
+ assert recompress_h264(source, 0) is source
+
+
+def test_an_odd_sized_image_is_cropped_to_what_h264_can_encode() -> None:
+ source = Image.new("RGB", (65, 33), "green")
+ assert recompress_h264(source, 18).size == (64, 32)
+
+
+def _latents_to_video(**kwargs) -> LTX2LatentsToVideoInvocation:
+ defaults = {
+ "video_latents": LatentsField(latents_name="video"),
+ "audio_latents": LatentsField(latents_name="audio"),
+ "vae": VAEField(vae=_identifier("vae")),
+ "audio_vae": VAEField(vae=_identifier("audio_vae")),
+ "vocoder": LTX2VocoderField(vocoder=_identifier("vocoder")),
+ }
+ return LTX2LatentsToVideoInvocation(id="l2v", **{**defaults, **kwargs})
+
+
+def test_audio_latents_without_their_decoders_name_both_missing_models() -> None:
+ """The graph always wires all three, so this catches a hand-built workflow before it decodes a
+ whole clip and then finds it has nothing to turn the soundtrack into."""
+ node = _latents_to_video(audio_vae=None, vocoder=None)
+
+ with pytest.raises(ValueError, match="Audio VAE and Vocoder"):
+ node._decode_audio_to_wav(_context(), 5.0)
+
+
+ ("decoded_seconds", "clip_seconds"),
+ [
+ # The audio VAE's causal decoder drops its first few mel frames, so the soundtrack comes
+ # back a fraction short of the clip: the normal case, and the one the pad exists for.
+ (4.97, 5.0),
+ # And a grid that overshoots has to be cut, or the mux would run past the last frame.
+ (5.2, 5.0),
+ (5.0, 5.0),
+ ],
+)
+def test_the_soundtrack_is_written_at_exactly_the_clip_duration(
+ monkeypatch: pytest.MonkeyPatch, tmp_path: Path, decoded_seconds: float, clip_seconds: float
+) -> None:
+ sample_rate = 48000
+ decoded = torch.zeros(2, int(decoded_seconds * sample_rate))
+ decoded[:, : decoded.shape[1] // 2] = 0.5
+
+ monkeypatch.setattr(ltx2_latents_to_video, "decode_audio_latents", lambda *_a, **_k: decoded)
+ context = _context()
+ context.tensors.load.return_value = torch.zeros(1, 126, 128)
+ context.models.load.return_value.model_on_device.return_value.__enter__.return_value = (
+ None,
+ SimpleNamespace(config=SimpleNamespace(output_sampling_rate=sample_rate)),
+ )
+
+ wav_path = _latents_to_video()._decode_audio_to_wav(context, clip_seconds)
+ try:
+ with wave.open(str(wav_path)) as handle:
+ assert handle.getnchannels() == 2
+ assert handle.getframerate() == sample_rate
+ assert handle.getnframes() == int(round(clip_seconds * sample_rate))
+ finally:
+ wav_path.unlink(missing_ok=True)
+
+
+def test_a_mono_soundtrack_is_refused_rather_than_written_as_half_a_file(monkeypatch: pytest.MonkeyPatch) -> None:
+ monkeypatch.setattr(ltx2_latents_to_video, "decode_audio_latents", lambda *_a, **_k: torch.zeros(1, 48000))
+ context = _context()
+ context.tensors.load.return_value = torch.zeros(1, 126, 128)
+ context.models.load.return_value.model_on_device.return_value.__enter__.return_value = (
+ None,
+ SimpleNamespace(config=SimpleNamespace(output_sampling_rate=48000)),
+ )
+
+ with pytest.raises(ValueError, match="expected stereo"):
+ _latents_to_video()._decode_audio_to_wav(context, 1.0)
+
+
+def test_unpacked_audio_latents_are_refused_before_a_model_is_locked() -> None:
+ context = _context()
+ context.tensors.load.return_value = torch.zeros(1, 8, 126, 16)
+
+ with pytest.raises(ValueError, match=r"packed \[1, L, 128\]"):
+ _latents_to_video()._decode_audio_to_wav(context, 5.0)
diff --git a/tests/backend/architectures/test_default_settings.py b/tests/backend/architectures/test_default_settings.py
index 08efaa133e..29f65bab25 100644
--- a/tests/backend/architectures/test_default_settings.py
+++ b/tests/backend/architectures/test_default_settings.py
@@ -243,13 +243,13 @@ DEFAULT_SETTINGS_MATRIX: list[tuple[str, BaseModelType, AnyVariant | None, str |
{"scheduler": "euler", "steps": 40, "cfg_scale": 4.0, **_SQUARE_1024},
),
("minimax-h3", BaseModelType.MiniMaxH3, None, None, {"steps": 50, "cfg_scale": 1.0, "width": 1344, "height": 768}),
- ("ltx-2", BaseModelType.LTX2, None, None, {"steps": 40, "cfg_scale": 3.0, "width": 1280, "height": 704}),
+ ("ltx-2", BaseModelType.LTX2, None, None, {"steps": 30, "cfg_scale": 3.0, "width": 1248, "height": 704}),
(
"ltx-2-distilled",
BaseModelType.LTX2,
LTX2VariantType.Distilled,
None,
- {"steps": 8, "cfg_scale": 1.0, "width": 1280, "height": 704},
+ {"steps": 8, "cfg_scale": 1.0, "width": 1248, "height": 704},
),
("anima", BaseModelType.Anima, None, None, {"scheduler": "euler", "steps": 35, "cfg_scale": 4.5, **_SQUARE_1024}),
]
diff --git a/tests/backend/architectures/test_guidance_range.py b/tests/backend/architectures/test_guidance_range.py
index a275a1163f..0bcda6ef71 100644
--- a/tests/backend/architectures/test_guidance_range.py
+++ b/tests/backend/architectures/test_guidance_range.py
@@ -40,6 +40,7 @@ GUIDANCE_FIELD: dict[BaseModelType, tuple[str, str]] = {
BaseModelType.Anima: ("anima_denoise", "guidance_scale"),
BaseModelType.ErnieImage: ("ernie_image_denoise", "guidance_scale"),
BaseModelType.Wan: ("wan_denoise", "guidance_scale"),
+ BaseModelType.LTX2: ("ltx2_denoise", "cfg_scale"),
BaseModelType.ZImage: ("z_image_denoise", "guidance_scale"),
}
"""Where the one guidance slider's value ends up, per architecture.
@@ -61,9 +62,6 @@ NO_GUIDANCE_SLIDER = frozenset(
BaseModelType.MiniMaxH3,
# A second pass over someone else's latents rather than a model you generate with.
BaseModelType.StableDiffusionXLRefiner,
- # Its denoise node (and the guidance field the slider would reach) lands with the LTX-2
- # generation nodes; the model-manager foundation declares no range until then.
- BaseModelType.LTX2,
}
)
diff --git a/tests/backend/ltx2/test_ltx2_decoding.py b/tests/backend/ltx2/test_ltx2_decoding.py
new file mode 100644
index 0000000000..a91d58e182
--- /dev/null
+++ b/tests/backend/ltx2/test_ltx2_decoding.py
@@ -0,0 +1,209 @@
+"""LTX-2 model plumbing: the tiling scope, the decode guards, and what the reservations price."""
+
+from types import SimpleNamespace
+
+import pytest
+import torch
+
+from invokeai.app.services.session_processor.session_processor_common import CanceledException
+from invokeai.backend.ltx2.text_conditioning import (
+ estimate_connector_working_memory,
+ estimate_tower_working_memory,
+)
+from invokeai.backend.ltx2.video_decoding import decode_audio_latents, decode_video_latents, scoped_ltx2_tiling
+from invokeai.backend.util.vae_working_memory import (
+ estimate_audio_working_memory_ltx2,
+ estimate_vae_working_memory_ltx2,
+)
+
+TILING_ATTRS = (
+ "use_tiling",
+ "use_framewise_encoding",
+ "use_framewise_decoding",
+ "tile_sample_min_height",
+ "tile_sample_min_width",
+ "tile_sample_min_num_frames",
+ "tile_sample_stride_height",
+ "tile_sample_stride_width",
+ "tile_sample_stride_num_frames",
+)
+
+
+class VaeStub(torch.nn.Module):
+ """The tiling surface of ``AutoencoderKLLTX2Video``, at its released defaults."""
+
+ def __init__(self) -> None:
+ super().__init__()
+ self.weight = torch.nn.Parameter(torch.zeros(1, dtype=torch.bfloat16))
+ self.spatial_compression_ratio = 32
+ self.temporal_compression_ratio = 8
+ self.use_tiling = False
+ self.use_framewise_encoding = False
+ self.use_framewise_decoding = False
+ self.tile_sample_min_height = 512
+ self.tile_sample_min_width = 512
+ self.tile_sample_min_num_frames = 16
+ self.tile_sample_stride_height = 448
+ self.tile_sample_stride_width = 448
+ self.tile_sample_stride_num_frames = 8
+
+ def enable_tiling(self, **kwargs) -> None:
+ self.use_tiling = True
+ for name, value in kwargs.items():
+ if value:
+ setattr(self, name, value)
+
+
+def _snapshot(vae: VaeStub) -> dict[str, object]:
+ return {name: getattr(vae, name) for name in TILING_ATTRS}
+
+
+def test_the_tiling_scope_restores_every_attribute_it_touches() -> None:
+ """The VAE belongs to the model cache and is shared across invocations. `disable_tiling` clears
+ neither the geometry nor the framewise flags, so leaving any of them set would silently change
+ every later decode in the session."""
+ vae = VaeStub()
+ before = _snapshot(vae)
+
+ with scoped_ltx2_tiling(vae, tile_size=768, temporal_tile=32):
+ assert vae.use_tiling is True
+ assert vae.use_framewise_decoding is True
+ assert vae.tile_sample_min_height == 768
+ assert vae.tile_sample_min_num_frames == 32
+
+ assert _snapshot(vae) == before
+
+
+def test_the_tiling_scope_restores_after_a_cancel() -> None:
+ vae = VaeStub()
+ before = _snapshot(vae)
+
+ with pytest.raises(CanceledException), scoped_ltx2_tiling(vae, tile_size=512, temporal_tile=16):
+ raise CanceledException
+
+ assert _snapshot(vae) == before
+
+
+ ("tile_size", "temporal_tile", "expected"),
+ [
+ # The released defaults, which the working-memory estimate is fitted to.
+ (512, 16, (512, 448, 16, 8)),
+ # Snapped down onto the compression grid: a tile that is not a whole number of latents
+ # decodes a band the blend cannot line up.
+ (700, 20, (672, 576, 16, 8)),
+ # Never below one latent in either axis, however small the request.
+ (1, 1, (32, 32, 8, 8)),
+ ],
+)
+def test_the_tile_geometry_stays_on_the_compression_grid(
+ tile_size: int, temporal_tile: int, expected: tuple[int, int, int, int]
+) -> None:
+ vae = VaeStub()
+
+ with scoped_ltx2_tiling(vae, tile_size=tile_size, temporal_tile=temporal_tile):
+ geometry = (
+ vae.tile_sample_min_height,
+ vae.tile_sample_stride_height,
+ vae.tile_sample_min_num_frames,
+ vae.tile_sample_stride_num_frames,
+ )
+
+ assert geometry == expected
+ assert geometry[0] % vae.spatial_compression_ratio == 0
+ assert geometry[2] % vae.temporal_compression_ratio == 0
+
+
+ ("latents", "match"),
+ [
+ (torch.zeros(1, 128, 2, 4, 4), "channels"),
+ (torch.zeros(2, 128, 2, 4, 4), "one 5D clip"),
+ (torch.zeros(1, 128, 4, 4), "one 5D clip"),
+ ],
+)
+def test_a_video_decode_refuses_latents_it_cannot_be_asked_to_decode(latents: torch.Tensor, match: str) -> None:
+ """A channel or rank mismatch would otherwise surface as a shape error inside the decoder,
+ after the VAE has been locked onto the device."""
+ vae = VaeStub()
+ vae.config = SimpleNamespace(latent_channels=32, scaling_factor=1.0)
+
+ with pytest.raises(ValueError, match=match):
+ decode_video_latents(vae, latents, tile_size=512, temporal_tile=16)
+
+
+def test_an_audio_decode_refuses_unpacked_latents() -> None:
+ """Packed rows are what the audio statistics are defined against; a 4D tensor here would
+ denormalize against the wrong axis and come back as noise rather than an error."""
+ with pytest.raises(ValueError, match=r"packed latents"):
+ decode_audio_latents(VaeStub(), VaeStub(), torch.zeros(1, 8, 4, 16))
+
+
+def test_the_video_reservation_follows_the_tile_and_the_clip() -> None:
+ """It has to hold at the shapes it was measured at, and it has to keep responding to the knobs
+ the node exposes -- a flat number would be wrong for every size but one."""
+ vae = VaeStub()
+ at = lambda **kwargs: estimate_vae_working_memory_ltx2("decode", vae, 704, 1248, 33, **kwargs) / 2**30 # noqa: E731
+
+ # Measured on a W7900 at these shapes: 1.12 GiB, 3.85 GiB, 6.45 GiB.
+ assert at(tile_size=256, temporal_tile=16) > 1.12
+ assert at(tile_size=512, temporal_tile=16) > 3.85
+ assert at(tile_size=768, temporal_tile=16) > 6.45
+
+ assert at(tile_size=256, temporal_tile=16) < at(tile_size=512, temporal_tile=16)
+ assert at(tile_size=512, temporal_tile=16) < at(tile_size=512, temporal_tile=32)
+ # The clip term grows with the clip even though the tile term does not.
+ assert estimate_vae_working_memory_ltx2("decode", vae, 704, 1248, 121) > estimate_vae_working_memory_ltx2(
+ "decode", vae, 704, 1248, 33
+ )
+
+
+def test_the_video_reservation_covers_a_clip_far_longer_than_the_measured_ones() -> None:
+ """The tile term is flat in clip length and holds all the fitted margin; the clip term is the
+ one that grows, so the longest clip the field accepts is where an under-count would surface."""
+ vae = VaeStub()
+ # 481 frames at 1248x704: the temporal tiler holds ~2 clips of rows plus the concatenated clip,
+ # which is 7.04 GiB of bf16 pixels on top of ~1.8 GiB of tile activation.
+ assert estimate_vae_working_memory_ltx2("decode", vae, 704, 1248, 481, tile_size=512, temporal_tile=16) > int(
+ 8.9 * 2**30
+ )
+
+
+def test_the_video_reservation_prices_a_tile_the_clip_cannot_fill() -> None:
+ """A clip shorter than one temporal tile still decodes a whole tile: the tile is two *latent*
+ frames, which cover 16 pixel frames however few the clip has."""
+ vae = VaeStub()
+ short = estimate_vae_working_memory_ltx2("decode", vae, 704, 1248, 9, tile_size=512, temporal_tile=16)
+ long = estimate_vae_working_memory_ltx2("decode", vae, 704, 1248, 33, tile_size=512, temporal_tile=16)
+
+ assert short > 3.0 * 2**30
+ assert short < long
+
+
+def test_the_audio_reservation_is_a_line_in_the_clip_length() -> None:
+ """Nothing in the audio path is tiled, so the whole soundtrack is decoded at once and an absurd
+ request has to fail at the reservation rather than inside a forward."""
+ # Measured on a W7900: 0.71, 1.30, 2.18 and 6.93 GiB.
+ for latents, measured in ((126, 0.71), (251, 1.30), (501, 2.18), (1251, 6.93)):
+ assert estimate_audio_working_memory_ltx2(latents) / 2**30 > measured
+
+ # 481 frames at 1 fps is eight minutes of audio; asking the cache for that is the honest answer.
+ assert estimate_audio_working_memory_ltx2(12025) > 70 * 2**30
+
+
+def test_the_prompt_encode_reservations_cover_what_each_stage_holds() -> None:
+ """The Gemma tower is the only encoder here that keeps every layer's hidden state and then
+ stacks them, so its reservation has to follow the layer count and the padded length rather than
+ being a constant -- and the connectors then hold that whole stack again, per modality."""
+ tower = SimpleNamespace(config=SimpleNamespace(num_hidden_layers=48, hidden_size=3840), dtype=torch.bfloat16)
+
+ # Measured on a W7900 at 1024 tokens: 1.92 GiB for the tower, 1.74 GiB for the connectors.
+ at_1024 = estimate_tower_working_memory(tower, 1024)
+ assert at_1024 / 2**30 > 1.92
+ assert at_1024 > estimate_tower_working_memory(tower, 512)
+
+ smaller = SimpleNamespace(config=SimpleNamespace(num_hidden_layers=24, hidden_size=3840), dtype=torch.bfloat16)
+ assert estimate_tower_working_memory(smaller, 1024) < at_1024
+
+ states = torch.zeros(1, 1024, 3840 * 49, dtype=torch.bfloat16)
+ assert estimate_connector_working_memory(states) / 2**30 > 1.74
diff --git a/tests/backend/ltx2/test_ltx2_denoise.py b/tests/backend/ltx2/test_ltx2_denoise.py
new file mode 100644
index 0000000000..a0d9a8e147
--- /dev/null
+++ b/tests/backend/ltx2/test_ltx2_denoise.py
@@ -0,0 +1,220 @@
+"""The LTX-2 denoising loop, over a transformer stub that records what it was asked."""
+
+from types import SimpleNamespace
+
+import pytest
+import torch
+
+from invokeai.app.services.session_processor.session_processor_common import CanceledException
+from invokeai.backend.ltx2.constants import LTX2_LATENT_CHANNELS
+from invokeai.backend.ltx2.denoise import build_denoise_state, denoise, preview_latent_frame
+from invokeai.backend.ltx2.guidance import LTX2Guidance
+from invokeai.backend.ltx2.packing import pack_video_latents, unpack_video_latents
+from invokeai.backend.stable_diffusion.diffusion.conditioning_data import LTX2ConditioningInfo
+
+WIDTH, HEIGHT, FRAMES = 64, 64, 9
+LATENT = (2, 2, 2) # frames, height, width at 32x/8x compression
+ROWS = LATENT[0] * LATENT[1] * LATENT[2]
+OFF = {"cfg_scale": 1.0, "audio_cfg_scale": 1.0, "stg_scale": 0.0, "modality_scale": 1.0, "rescale": 0.0}
+
+
+def _conditioning(seed: int) -> LTX2ConditioningInfo:
+ generator = torch.Generator().manual_seed(seed)
+ return LTX2ConditioningInfo(
+ video_embeds=torch.randn(1, 4, 8, generator=generator),
+ audio_embeds=torch.randn(1, 4, 6, generator=generator),
+ attention_mask=torch.ones(1, 4, dtype=torch.int64),
+ )
+
+
+class TransformerStub(torch.nn.Module):
+ """Returns a velocity that denoises toward a fixed target, and records every call."""
+
+ def __init__(self, target: torch.Tensor | None = None) -> None:
+ super().__init__()
+ self.config = SimpleNamespace(timestep_scale_multiplier=1000, patch_size=1, patch_size_t=1)
+ self.rope = SimpleNamespace(
+ prepare_video_coords=lambda b, f, h, w, device, fps: torch.zeros(b, 3, f * h * w, 2, device=device)
+ )
+ self.audio_rope = SimpleNamespace(
+ prepare_audio_coords=lambda b, n, device: torch.zeros(b, 1, n, 2, device=device)
+ )
+ self.transformer_blocks = torch.nn.ModuleList([torch.nn.Identity()])
+ self.calls: list[dict] = []
+ self.target = target
+
+ def forward(self, **kwargs):
+ # Run the block the cancel hook is attached to, the way the real forward does.
+ self.transformer_blocks[0](kwargs["hidden_states"])
+ self.calls.append(kwargs)
+ video, audio = kwargs["hidden_states"].float(), kwargs["audio_hidden_states"].float()
+ if self.target is None:
+ return torch.zeros_like(video), torch.zeros_like(audio)
+ # x0 = x - sigma * v, so this velocity predicts `target` at any sigma.
+ sigma = float(kwargs["sigma"][0]) / 1000.0
+ return (video - self.target) / max(sigma, 1e-6), torch.zeros_like(audio)
+
+
+def _denoise(transformer, state, guidance, negative=None, **kwargs):
+ return denoise(
+ transformer=transformer,
+ state=state,
+ positive=_conditioning(1),
+ negative=negative,
+ guidance=guidance,
+ fps=24.0,
+ dtype=torch.float32,
+ device=torch.device("cpu"),
+ **kwargs,
+ )
+
+
+def _state(**kwargs):
+ return build_denoise_state(
+ num_frames=FRAMES, height=HEIGHT, width=WIDTH, fps=24.0, seed=7, distilled=False, num_steps=3, **kwargs
+ )
+
+
+def test_every_pass_runs_once_per_step_with_its_own_conditioning_and_flags() -> None:
+ transformer = TransformerStub()
+ guidance = LTX2Guidance(cfg_scale=3.0, audio_cfg_scale=7.0, stg_scale=1.0, modality_scale=3.0, rescale=0.0)
+ negative = _conditioning(2)
+
+ _denoise(transformer, _state(), guidance, negative=negative)
+
+ assert len(transformer.calls) == 3 * 4
+ first_step = transformer.calls[:4]
+ assert [call["spatio_temporal_guidance_blocks"] for call in first_step] == [None, None, [28], None]
+ assert [call["isolate_modalities"] for call in first_step] == [False, False, False, True]
+ # Only the unconditional pass sees the negative prompt.
+ assert torch.equal(first_step[1]["encoder_hidden_states"], negative.video_embeds)
+ for index in (0, 2, 3):
+ assert torch.equal(first_step[index]["encoder_hidden_states"], _conditioning(1).video_embeds)
+
+
+def test_an_unguided_run_costs_one_forward_per_step() -> None:
+ transformer = TransformerStub()
+ _denoise(transformer, _state(), LTX2Guidance(**OFF))
+ assert len(transformer.calls) == 3
+
+
+def test_classifier_free_guidance_without_negative_conditioning_is_refused() -> None:
+ with pytest.raises(ValueError, match="negative conditioning"):
+ _denoise(TransformerStub(), _state(), LTX2Guidance())
+
+
+def test_the_timestep_is_the_sigma_on_the_transformers_own_scale() -> None:
+ transformer = TransformerStub()
+ state = _state()
+ _denoise(transformer, state, LTX2Guidance(**OFF))
+
+ for index, call in enumerate(transformer.calls):
+ assert float(call["timestep"][0]) == pytest.approx(float(state.sigmas[index]) * 1000)
+ assert torch.equal(call["timestep"], call["audio_timestep"])
+ assert torch.equal(call["timestep"], call["sigma"])
+
+
+def test_a_conditioned_token_is_presented_as_clean_and_never_drifts() -> None:
+ """The one mechanism behind every kind of conditioning: the anchor's timestep is zero at every
+ forward, and its value is the encode it came from at the end of the run."""
+ image_latents = torch.randn(1, LTX2_LATENT_CHANNELS, 1, LATENT[1], LATENT[2])
+ state = _state(image_latents=image_latents)
+ transformer = TransformerStub(target=torch.randn(1, ROWS, LTX2_LATENT_CHANNELS))
+
+ video, _ = _denoise(transformer, state, LTX2Guidance(**OFF))
+
+ anchor_rows = LATENT[1] * LATENT[2]
+ for call in transformer.calls:
+ assert call["timestep"].shape == (1, ROWS)
+ assert torch.equal(call["timestep"][0, :anchor_rows], torch.zeros(anchor_rows))
+ assert (call["timestep"][0, anchor_rows:] > 0).all()
+
+ unpacked = unpack_video_latents(video, *LATENT)
+ assert torch.allclose(unpacked[:, :, :1], image_latents, atol=1e-5)
+
+
+def test_a_partial_conditioning_strength_holds_the_anchor_partway() -> None:
+ image_latents = torch.randn(1, LTX2_LATENT_CHANNELS, 1, LATENT[1], LATENT[2])
+ state = _state(image_latents=image_latents, conditioning_strength=0.5)
+ transformer = TransformerStub(target=torch.randn(1, ROWS, LTX2_LATENT_CHANNELS))
+
+ video, _ = _denoise(transformer, state, LTX2Guidance(**OFF))
+
+ anchor_rows = LATENT[1] * LATENT[2]
+ half = float(state.sigmas[0]) * 1000 * 0.5
+ assert transformer.calls[0]["timestep"][0, :anchor_rows].tolist() == pytest.approx([half] * anchor_rows)
+ assert not torch.allclose(unpack_video_latents(video, *LATENT)[:, :, :1], image_latents, atol=1e-3)
+
+
[email protected]("strength", [0.0, -0.5, 1.5])
+def test_a_conditioning_strength_outside_the_unit_interval_is_refused(strength: float) -> None:
+ with pytest.raises(ValueError, match="strength"):
+ _state(
+ image_latents=torch.randn(1, LTX2_LATENT_CHANNELS, 1, LATENT[1], LATENT[2]), conditioning_strength=strength
+ )
+
+
+def test_an_image_conditioning_encoded_for_another_canvas_is_refused() -> None:
+ with pytest.raises(ValueError, match="needs"):
+ _state(image_latents=torch.randn(1, LTX2_LATENT_CHANNELS, 1, 4, 4))
+
+
+def test_the_ancestral_branch_renoises_and_puts_the_anchor_back() -> None:
+ """The distilled schedule injects noise at every step; without the restore the anchor would be
+ noised along with everything else."""
+ image_latents = torch.randn(1, LTX2_LATENT_CHANNELS, 1, LATENT[1], LATENT[2])
+ state = build_denoise_state(
+ num_frames=FRAMES,
+ height=HEIGHT,
+ width=WIDTH,
+ fps=24.0,
+ seed=7,
+ distilled=True,
+ num_steps=8,
+ image_latents=image_latents,
+ )
+ assert state.eta == 1.0
+
+ video, _ = _denoise(TransformerStub(target=torch.randn(1, ROWS, LTX2_LATENT_CHANNELS)), state, LTX2Guidance(**OFF))
+ assert torch.allclose(unpack_video_latents(video, *LATENT)[:, :, :1], image_latents, atol=1e-5)
+
+
+def test_a_cancel_stops_the_run_inside_a_forward() -> None:
+ """A step is a whole transformer forward, so a cancel polled between steps would leave the GPU
+ busy for the rest of it; the hook fires per block instead."""
+ transformer = TransformerStub()
+ with pytest.raises(CanceledException):
+ _denoise(transformer, _state(), LTX2Guidance(**OFF), is_canceled=lambda: True)
+ assert transformer.calls == []
+
+
+def test_the_preview_frame_is_the_middle_frame_of_the_unpacked_clip() -> None:
+ """The preview slices the packed rows instead of unpacking the clip, which is only valid
+ because the rows are frame-major; the expectation is the unpacked tensor it replaces."""
+ latents = torch.randn(1, LTX2_LATENT_CHANNELS, 5, 3, 4)
+ state = build_denoise_state(num_frames=33, height=96, width=128, fps=24.0, seed=1, distilled=False, num_steps=1)
+ packed = pack_video_latents(latents)
+
+ assert (state.latent_frames, state.latent_height, state.latent_width) == (5, 3, 4)
+ assert torch.equal(preview_latent_frame(packed, state), latents[:, :, 2])
+
+
+def test_the_step_callback_reports_progress_and_a_previewable_frame() -> None:
+ reported: list[tuple[int, int, tuple[int, ...]]] = []
+ state = _state()
+
+ def callback(step: int, total: int, video_x0: torch.Tensor) -> None:
+ reported.append((step, total, tuple(preview_latent_frame(video_x0, state).shape)))
+
+ _denoise(TransformerStub(), state, LTX2Guidance(**OFF), step_callback=callback)
+ assert reported == [(i, 3, (1, LTX2_LATENT_CHANNELS, LATENT[1], LATENT[2])) for i in (1, 2, 3)]
+
+
+def test_the_run_is_reproducible_from_its_seed_and_differs_without_it() -> None:
+ same = [_denoise(TransformerStub(), _state(), LTX2Guidance(**OFF))[0] for _ in range(2)]
+ assert torch.equal(*same)
+
+ other = build_denoise_state(
+ num_frames=FRAMES, height=HEIGHT, width=WIDTH, fps=24.0, seed=8, distilled=False, num_steps=3
+ )
+ assert not torch.equal(_denoise(TransformerStub(), other, LTX2Guidance(**OFF))[0], same[0])
diff --git a/tests/backend/ltx2/test_ltx2_geometry.py b/tests/backend/ltx2/test_ltx2_geometry.py
new file mode 100644
index 0000000000..3f1e492f89
--- /dev/null
+++ b/tests/backend/ltx2/test_ltx2_geometry.py
@@ -0,0 +1,109 @@
+"""LTX-2 latent geometry: what the canvas rules allow and how latents pack."""
+
+import pytest
+import torch
+
+from invokeai.backend.ltx2.packing import (
+ audio_latent_count,
+ latent_frame_count,
+ pack_audio_latents,
+ pack_video_latents,
+ require_patch_geometry,
+ resolve_canvas,
+ snap_num_frames,
+ unpack_audio_latents,
+ unpack_video_latents,
+ validate_canvas,
+ validate_num_frames,
+ video_sequence_length,
+)
+
+
+def test_a_packed_row_is_the_channel_vector_at_its_latent_position() -> None:
+ """The packing is what places a token in space, so its order is a contract with the model.
+
+ Rows run frame-major, then row-major within a frame; each row is that position's channels. The
+ expectation is built by indexing the 5D tensor, not by rerunning the permutation.
+ """
+ latents = torch.randn(1, 4, 3, 2, 5)
+ packed = pack_video_latents(latents)
+ assert packed.shape == (1, 3 * 2 * 5, 4)
+
+ for index, (frame, row, column) in enumerate((f, h, w) for f in range(3) for h in range(2) for w in range(5)):
+ assert torch.equal(packed[0, index], latents[0, :, frame, row, column])
+
+
+def test_unpacking_video_latents_restores_the_original_tensor() -> None:
+ latents = torch.randn(1, 8, 4, 3, 6)
+ assert torch.equal(unpack_video_latents(pack_video_latents(latents), 4, 3, 6), latents)
+
+
+def test_an_audio_row_is_one_latent_frame_with_mel_bins_inside_channels() -> None:
+ latents = torch.randn(1, 3, 4, 2)
+ packed = pack_audio_latents(latents)
+ assert packed.shape == (1, 4, 6)
+ for frame in range(4):
+ assert torch.equal(packed[0, frame], latents[0, :, frame, :].reshape(-1))
+ assert torch.equal(unpack_audio_latents(packed, mel_bins=2), latents)
+
+
[email protected](("num_frames", "expected"), [(1, 1), (9, 2), (17, 3), (121, 16), (241, 31)])
+def test_the_latent_frame_count_follows_the_causal_vae_grouping(num_frames: int, expected: int) -> None:
+ """The first frame is encoded alone and every further group of eight shares a latent frame."""
+ assert latent_frame_count(num_frames) == expected
+
+
+def test_the_sequence_length_is_the_latent_grid(num_frames: int = 121) -> None:
+ assert video_sequence_length(num_frames, 704, 1248) == 16 * 22 * 39
+
+
[email protected](("num_frames", "fps", "expected"), [(121, 24.0, 126), (9, 24.0, 9), (25, 25.0, 25)])
+def test_the_audio_latent_count_covers_the_clip_duration(num_frames: int, fps: float, expected: int) -> None:
+ """25 audio latents a second, from the clip's duration rather than its frame count."""
+ assert audio_latent_count(num_frames, fps) == expected
+
+
[email protected]("num_frames", [0, 2, 8, 10, 120])
+def test_a_frame_count_off_the_grid_is_refused_with_the_nearest_valid_one(num_frames: int) -> None:
+ with pytest.raises(ValueError, match="8n \\+ 1"):
+ validate_num_frames(num_frames)
+
+
[email protected](("requested", "expected"), [(1, 1), (3, 1), (5, 9), (8, 9), (100, 97), (122, 121)])
+def test_snapping_a_frame_count_rounds_a_tie_up(requested: int, expected: int) -> None:
+ """A 5-frame request is equidistant from 1 and 9; a single still frame is not what it meant."""
+ assert snap_num_frames(requested) == expected
+ validate_num_frames(snap_num_frames(requested))
+
+
[email protected]("size", [(704, 1250), (700, 1248), (0, 1248)])
+def test_a_canvas_off_the_32_grid_is_refused(size: tuple[int, int]) -> None:
+ with pytest.raises(ValueError):
+ validate_canvas(*size)
+
+
+ ("source", "short_edge", "expected"),
+ [
+ ((1920, 1080), 704, (704, 1248)),
+ ((1080, 1920), 704, (1248, 704)),
+ ((512, 512), 768, (768, 768)),
+ ((4000, 3000), 512, (512, 672)),
+ ],
+)
+def test_the_canvas_pins_the_short_edge_and_stays_on_the_grid(
+ source: tuple[int, int], short_edge: int, expected: tuple[int, int]
+) -> None:
+ height, width = resolve_canvas(source[0], source[1], short_edge)
+ assert (height, width) == expected
+ validate_canvas(height, width)
+ assert min(height, width) == short_edge
+
+
+def test_a_transformer_that_patches_differently_is_refused_before_anything_is_packed() -> None:
+ """Every packing here assumes 1x1x1 patching; a 2x2 checkpoint would silently mis-shape."""
+ from types import SimpleNamespace
+
+ require_patch_geometry(SimpleNamespace(patch_size=1, patch_size_t=1))
+ with pytest.raises(ValueError, match="patches the latent grid"):
+ require_patch_geometry(SimpleNamespace(patch_size=2, patch_size_t=1))
diff --git a/tests/backend/ltx2/test_ltx2_guidance.py b/tests/backend/ltx2/test_ltx2_guidance.py
new file mode 100644
index 0000000000..014c29c6f5
--- /dev/null
+++ b/tests/backend/ltx2/test_ltx2_guidance.py
@@ -0,0 +1,80 @@
+"""Which passes LTX-2 guidance runs, and how their predictions combine."""
+
+import pytest
+import torch
+
+from invokeai.backend.ltx2.guidance import PASS_COND, PASS_MODALITY, PASS_STG, PASS_UNCOND, LTX2Guidance
+
+OFF = {"cfg_scale": 1.0, "audio_cfg_scale": 1.0, "stg_scale": 0.0, "modality_scale": 1.0, "rescale": 0.0}
+
+
+def test_all_guidance_off_costs_one_forward() -> None:
+ assert LTX2Guidance(**OFF).passes == (PASS_COND,)
+ assert not LTX2Guidance(**OFF).needs_negative_conditioning
+
+
+def test_an_audio_only_cfg_scale_still_buys_the_unconditional_pass() -> None:
+ """One forward produces both modalities, so a pass either modality wants is a pass for both."""
+ guidance = LTX2Guidance(**{**OFF, "audio_cfg_scale": 7.0})
+ assert guidance.passes == (PASS_COND, PASS_UNCOND)
+ assert guidance.needs_negative_conditioning
+
+
+def test_each_term_adds_exactly_one_pass() -> None:
+ assert LTX2Guidance(**{**OFF, "stg_scale": 1.0}).passes == (PASS_COND, PASS_STG)
+ assert LTX2Guidance(**{**OFF, "modality_scale": 3.0}).passes == (PASS_COND, PASS_MODALITY)
+ assert LTX2Guidance().passes == (PASS_COND, PASS_UNCOND, PASS_STG, PASS_MODALITY)
+
+
+def test_spatio_temporal_guidance_needs_blocks_to_perturb() -> None:
+ """A scale with no block list would pay for a forward identical to the conditional one."""
+ assert LTX2Guidance(**{**OFF, "stg_scale": 1.0}, stg_blocks=()).passes == (PASS_COND,)
+
+
+def test_the_combine_is_the_reference_delta_formulation() -> None:
+ torch.manual_seed(0)
+ preds = {
+ PASS_COND: torch.randn(1, 8, 4),
+ PASS_UNCOND: torch.randn(1, 8, 4),
+ PASS_STG: torch.randn(1, 8, 4),
+ PASS_MODALITY: torch.randn(1, 8, 4),
+ }
+ guidance = LTX2Guidance(cfg_scale=3.0, audio_cfg_scale=7.0, stg_scale=1.0, modality_scale=3.0, rescale=0.0)
+
+ cond = preds[PASS_COND]
+ expected = (
+ cond + 2.0 * (cond - preds[PASS_UNCOND]) + 1.0 * (cond - preds[PASS_STG]) + 2.0 * (cond - preds[PASS_MODALITY])
+ )
+ assert torch.allclose(guidance.combine_video(preds), expected, atol=1e-6)
+
+ # The audio stream differs only in its CFG scale.
+ audio_expected = expected + 4.0 * (cond - preds[PASS_UNCOND])
+ assert torch.allclose(guidance.combine_audio(preds), audio_expected, atol=1e-6)
+
+
+def test_an_inert_scale_contributes_nothing_when_the_other_modality_bought_the_pass() -> None:
+ preds = {PASS_COND: torch.randn(1, 8, 4), PASS_UNCOND: torch.randn(1, 8, 4)}
+ guidance = LTX2Guidance(**{**OFF, "audio_cfg_scale": 7.0})
+ assert torch.equal(guidance.combine_video(preds), preds[PASS_COND])
+
+
+def test_the_rescale_pulls_the_guided_prediction_back_toward_the_conditional_scale() -> None:
+ """Guidance deltas inflate the prediction's spread; the rescale is what stops the clip blowing
+ out. At rescale 1 the result carries the conditional prediction's standard deviation exactly."""
+ torch.manual_seed(0)
+ preds = {PASS_COND: torch.randn(1, 512, 16), PASS_UNCOND: torch.randn(1, 512, 16) * 0.2}
+
+ unrescaled = LTX2Guidance(**{**OFF, "cfg_scale": 5.0}).combine_video(preds)
+ rescaled = LTX2Guidance(**{**OFF, "cfg_scale": 5.0, "rescale": 1.0}).combine_video(preds)
+
+ assert float(unrescaled.std()) > float(preds[PASS_COND].std())
+ assert float(rescaled.std()) == pytest.approx(float(preds[PASS_COND].std()), rel=1e-5)
+
+
+def test_an_unguided_step_returns_the_conditional_prediction_untouched() -> None:
+ """What the distilled checkpoint runs on every step. Rescaling a prediction against its own
+ standard deviation is a no-op, so it has to be skipped rather than computed."""
+ preds = {PASS_COND: torch.randn(1, 8, 4)}
+ guidance = LTX2Guidance(**{**OFF, "rescale": 0.7})
+ assert guidance.combine_video(preds) is preds[PASS_COND]
+ assert guidance.combine_audio(preds) is preds[PASS_COND]
diff --git a/tests/backend/ltx2/test_ltx2_real_files.py b/tests/backend/ltx2/test_ltx2_real_files.py
index 9c143c4a88..2426d429eb 100644
--- a/tests/backend/ltx2/test_ltx2_real_files.py
+++ b/tests/backend/ltx2/test_ltx2_real_files.py
@@ -6,12 +6,15 @@ built by ``Gemma4TextModel`` runs. Skipped unless the ``DeepBeepMeep/LTX-2`` sna
Hugging Face cache (``INVOKEAI_LTX2_SNAPSHOT`` overrides the path).
"""
+import gc
import os
from pathlib import Path
from types import SimpleNamespace
+import numpy as np
import pytest
import torch
+from PIL import Image
from invokeai.backend.ltx2 import checkpoint_layout as layout
from invokeai.backend.model_manager.configs.gemma4_encoder import Gemma4Encoder_Gemma4Encoder_LTX2_Config
@@ -55,11 +58,11 @@ requires_weights = pytest.mark.skipif(
)
-def _loader(cls):
+def _loader(cls, device: torch.device | None = None):
loader = object.__new__(cls)
loader._ram_cache = SimpleNamespace(make_room=lambda _n: None)
loader._logger = SimpleNamespace(info=lambda *_a, **_k: None, warning=lambda *_a, **_k: None)
- loader._torch_device = torch.device("cpu")
+ loader._torch_device = device or torch.device("cpu")
loader._apply_fp8_layerwise_casting = lambda model, _c, _s: model
return loader
@@ -153,3 +156,183 @@ def test_the_mirror_s_nvfp4_transformer_is_refused_for_naming_no_layer() -> None
)
with pytest.raises(ValueError, match="nvfp4"):
_loader(LTX2CheckpointModel)._load_model(config, SubModelType.Transformer)
+
+
+# --- Generation over the released weights ---------------------------------------------------------
+#
+# These run the real recipe end to end on an accelerator. They install the wide-head SDPA guard
+# themselves: it is normally installed by application startup, which a test process never runs, and
+# without it Gemma-4's 512-wide full-attention layers return wrong values on ROCm -- the tower's
+# hidden states go non-finite part-way through the stack, and every generation that follows is NaN.
+
+_PROMPT = "A ginger cat sits on a windowsill, purring, as rain patters on the glass."
+
+
+def _accelerator() -> torch.device:
+ device = TorchDevice.choose_torch_device()
+ if device.type == "cpu":
+ pytest.skip("needs an accelerator")
+ from invokeai.backend.util.attention import install_rocm_sdpa_head_dim_guard
+
+ install_rocm_sdpa_head_dim_guard()
+ return device
+
+
+def _folder_config() -> Main_Diffusers_LTX2_Config:
+ return Main_Diffusers_LTX2_Config.model_construct(
+ path=str(SNAPSHOT), components=dict(COMPONENTS), components_only=True, variant=LTX2VariantType.Dev
+ )
+
+
+def _encode_prompts(device: torch.device, prompts: list[str]):
+ """The full two-stage prompt encode, one model resident at a time."""
+ from invokeai.backend.ltx2.text_conditioning import apply_connectors, encode_hidden_states
+
+ weight = "gemma4-12b-ltx-v1_int8_convrot.safetensors"
+ root = SNAPSHOT / "gemma4-12b-ltx-v1"
+ if not (root / weight).exists():
+ pytest.skip("the int8 Gemma-4 encoder is not downloaded")
+
+ config = Gemma4Encoder_Gemma4Encoder_LTX2_Config.model_construct(
+ path=str(SNAPSHOT), subfolder="gemma4-12b-ltx-v1", weight_file=weight
+ )
+ loader = _loader(LTX2Gemma4EncoderModel, device)
+ tokenizer = loader._load_model(config, SubModelType.Tokenizer)
+ encoder = loader._load_model(config, SubModelType.TextEncoder).to(device).eval()
+ states = [
+ tuple(t.cpu() for t in encode_hidden_states(encoder, tokenizer, p, max_sequence_length=1024, device=device))
+ for p in prompts
+ ]
+ del encoder
+ gc.collect()
+ TorchDevice.empty_cache()
+
+ connectors = _loader(LTX2FolderModel, device)._load_model(_folder_config(), SubModelType.Connectors)
+ connectors = connectors.to(device).eval()
+ conditionings = [apply_connectors(connectors, *state) for state in states]
+ del connectors
+ gc.collect()
+ TorchDevice.empty_cache()
+ return states, conditionings
+
+
+@requires_weights
+def test_the_prompt_encode_stays_finite_at_the_padded_length_the_connectors_need() -> None:
+ """Every prompt is padded to 1024 tokens, which is the length the connectors' registers are
+ defined against. The tower's full-attention layers are 512 wide, and on a build whose fused
+ attention kernels are wrong at that width the states go non-finite around layer 30 -- finite at
+ a shorter padding, so only the real length catches it."""
+ device = _accelerator()
+ states, conditionings = _encode_prompts(device, [_PROMPT])
+
+ hidden, mask = states[0]
+ assert hidden.shape == (1, 1024, 3840 * 49)
+ assert torch.isfinite(hidden).all()
+ assert int(mask.sum()) < 1024
+
+ conditioning = conditionings[0]
+ assert conditioning.video_embeds.shape == (1, 1024, 4096)
+ assert conditioning.audio_embeds.shape == (1, 1024, 2048)
+ assert torch.isfinite(conditioning.video_embeds).all()
+ assert torch.isfinite(conditioning.audio_embeds).all()
+
+
+@requires_weights
+def test_the_distilled_checkpoint_generates_a_clip_with_a_soundtrack() -> None:
+ """The whole recipe: eight ancestral steps, then both decoders. A wrong sigma schedule, a
+ mis-packed sequence or a mis-ordered guidance combine all land here as noise or NaN."""
+ from invokeai.backend.ltx2.denoise import build_denoise_state, denoise
+ from invokeai.backend.ltx2.guidance import LTX2Guidance
+ from invokeai.backend.ltx2.packing import unpack_video_latents
+ from invokeai.backend.ltx2.video_decoding import decode_audio_latents, decode_video_latents
+
+ transformer_path = SNAPSHOT / "ltx-2.5-22b-distilled_diffusion_model_int8_convrot.safetensors"
+ if not transformer_path.exists():
+ pytest.skip("the int8 distilled transformer is not downloaded")
+
+ device = _accelerator()
+ _, conditionings = _encode_prompts(device, [_PROMPT])
+
+ width, height, num_frames = 512, 320, 9
+ state = build_denoise_state(
+ num_frames=num_frames, height=height, width=width, fps=24.0, seed=42, distilled=True, num_steps=8
+ )
+ assert state.eta == 1.0, "LTX-2.5 samples its distilled schedule ancestrally"
+
+ transformer = _loader(LTX2CheckpointModel, device)._load_model(
+ Main_Checkpoint_LTX2_Config.model_construct(
+ path=str(transformer_path), variant=LTX2VariantType.Distilled, generation="2.5", fp8_storage=None
+ ),
+ SubModelType.Transformer,
+ )
+ transformer = transformer.to(device).eval()
+ video, audio = denoise(
+ transformer=transformer,
+ state=state,
+ positive=conditionings[0],
+ negative=None,
+ guidance=LTX2Guidance(cfg_scale=1.0, audio_cfg_scale=1.0, stg_scale=0.0, modality_scale=1.0, rescale=0.0),
+ fps=24.0,
+ dtype=torch.bfloat16,
+ device=device,
+ )
+ del transformer
+ gc.collect()
+ TorchDevice.empty_cache()
+
+ assert torch.isfinite(video).all() and torch.isfinite(audio).all()
+
+ vae = _loader(LTX2FolderModel, device)._load_model(_folder_config(), SubModelType.VAE).to(device).eval()
+ clip = decode_video_latents(
+ vae,
+ unpack_video_latents(video, state.latent_frames, state.latent_height, state.latent_width),
+ tile_size=512,
+ temporal_tile=16,
+ )
+ del vae
+ gc.collect()
+ TorchDevice.empty_cache()
+
+ assert clip.shape == (3, num_frames, height, width)
+ # A clip, not a flat field: the released model at this size returns a photographic image.
+ assert 0.1 < float(clip.mean()) < 0.9
+ assert float(clip.std()) > 0.1
+
+ audio_vae = _loader(LTX2FolderModel, device)._load_model(_folder_config(), SubModelType.AudioVAE)
+ vocoder = _loader(LTX2FolderModel, device)._load_model(_folder_config(), SubModelType.Vocoder)
+ waveform = decode_audio_latents(audio_vae.to(device).eval(), vocoder.to(device).eval(), audio)
+
+ assert waveform.shape[0] == 2
+ # The audio VAE's causal decoder drops its first few mel frames, so the soundtrack comes back
+ # a fraction of a second short of the clip and the latents-to-video node pads it out.
+ nominal = num_frames / 24.0 * vocoder.config.output_sampling_rate
+ assert 0.85 * nominal <= waveform.shape[1] <= nominal
+ assert float(waveform.abs().max()) <= 1.0
+ assert float(waveform.pow(2).mean().sqrt()) > 1e-3, "the soundtrack is silent"
+
+
+@requires_weights
+def test_an_image_conditioning_survives_the_round_trip_to_the_first_decoded_frame() -> None:
+ """The conditioning mask is what every later conditioning feature is built on, so the anchor
+ has to come back out of the decoder as the frame that went in."""
+ from invokeai.backend.ltx2.image_conditioning import encode_image_latents, fit_to_canvas, recompress_h264
+ from invokeai.backend.ltx2.video_decoding import decode_video_latents
+
+ device = _accelerator()
+ width, height = 512, 320
+ source = fit_to_canvas(
+ recompress_h264(Image.effect_mandelbrot((1024, 768), (-2.5, -1.5, 1.5, 1.5), 60).convert("RGB"), 18),
+ height,
+ width,
+ )
+
+ vae = _loader(LTX2FolderModel, device)._load_model(_folder_config(), SubModelType.VAE).to(device).eval()
+ latents = encode_image_latents(vae, source, device=device)
+ assert latents.shape == (1, 128, 1, height // 32, width // 32)
+
+ decoded = decode_video_latents(vae, latents, tile_size=512, temporal_tile=16)
+ assert decoded.shape == (3, 1, height, width)
+
+ original = torch.from_numpy(np.asarray(source, dtype=np.float32) / 255.0).permute(2, 0, 1)
+ psnr = 10 * torch.log10(1.0 / torch.mean((decoded[:, 0] - original) ** 2))
+ assert float(psnr) > 25.0, f"the VAE round trip lost the conditioning frame ({float(psnr):.1f} dB)"
diff --git a/tests/backend/ltx2/test_ltx2_sampling.py b/tests/backend/ltx2/test_ltx2_sampling.py
new file mode 100644
index 0000000000..5ea7451db5
--- /dev/null
+++ b/tests/backend/ltx2/test_ltx2_sampling.py
@@ -0,0 +1,134 @@
+"""The LTX-2 noise schedules and the step that walks them."""
+
+import math
+
+import pytest
+import torch
+
+from invokeai.backend.ltx2.constants import LTX2_DISTILLED_SIGMAS, LTX2_MAX_SEQ_LEN
+from invokeai.backend.ltx2.packing import video_sequence_length
+from invokeai.backend.ltx2.sampling import LTX2_SHIFT_TERMINAL, build_sigmas, calculate_shift, flow_step
+
+
+def test_the_distilled_schedule_is_the_released_one_with_a_terminal_zero() -> None:
+ sigmas = build_sigmas(distilled=True, num_steps=99, video_seq_len=1)
+ assert sigmas.tolist() == pytest.approx([*LTX2_DISTILLED_SIGMAS, 0.0], abs=1e-6)
+
+
[email protected]("num_steps", [2, 8, 30, 50])
[email protected]("video_seq_len", [320, 6144, 13728])
+def test_a_dev_schedule_starts_at_one_descends_and_ends_on_the_terminal(num_steps: int, video_seq_len: int) -> None:
+ """The terminal stretch is load-bearing: `mu` is extrapolated well past its 4096-token anchor,
+ and without it a 14k-token clip never drops below sigma ~0.9 and comes back as noise."""
+ sigmas = build_sigmas(distilled=False, num_steps=num_steps, video_seq_len=video_seq_len)
+
+ assert sigmas.numel() == num_steps + 1
+ assert sigmas[0] == pytest.approx(1.0)
+ assert sigmas[-1] == 0.0
+ assert (sigmas[:-1] - sigmas[1:] > 0).all()
+ assert sigmas[-2] == pytest.approx(LTX2_SHIFT_TERMINAL)
+
+
+def test_a_single_step_schedule_is_just_the_two_endpoints() -> None:
+ """The stretch divides by `1 - sigma` at the last sampled level, which is 0 for one step."""
+ assert build_sigmas(distilled=False, num_steps=1, video_seq_len=4096).tolist() == [1.0, 0.0]
+
+
+def test_the_shift_interpolates_between_the_anchors_and_holds_outside_them() -> None:
+ """Independently: mu is 0.95 at 1024 tokens and 2.05 at 4096, linear in between, flat outside.
+
+ Extrapolating instead is what makes the schedule degenerate at real canvases -- see below."""
+ assert calculate_shift(1024) == pytest.approx(0.95)
+ assert calculate_shift(4096) == pytest.approx(2.05)
+ assert calculate_shift(2560) == pytest.approx(1.5)
+ assert calculate_shift(320) == pytest.approx(0.95)
+ assert calculate_shift(7168) == pytest.approx(2.05)
+ assert calculate_shift(13728) == pytest.approx(2.05)
+
+
+def test_the_schedule_keeps_spending_steps_where_the_clip_is_formed() -> None:
+ """The failure the shift clamp exists to prevent: an unclamped mu at a real canvas piles every
+ step into the high-noise end and then jumps to the terminal in one. Stated as a property rather
+ than a pinned list -- no step may be more than a third of the whole range."""
+ for video_seq_len in (320, 6144, 13728, 24576):
+ sigmas = build_sigmas(distilled=False, num_steps=30, video_seq_len=video_seq_len)
+ deltas = (sigmas[:-1] - sigmas[1:]).tolist()
+
+ assert max(deltas) < 0.34, f"{video_seq_len} tokens: largest step is {max(deltas):.2f}"
+ # And the schedule reaches the middle of the range rather than clinging to the top.
+ assert float(sigmas[len(sigmas) // 2]) < 0.9
+
+
+def test_every_canvas_the_panel_offers_samples_the_released_schedule() -> None:
+ """All three presets are past the 4096-token anchor, so all three get the released pipeline's
+ own schedule rather than three different extrapolations of it."""
+ reference = build_sigmas(distilled=False, num_steps=30, video_seq_len=LTX2_MAX_SEQ_LEN)
+
+ for width, height in ((928, 512), (1248, 704), (1376, 768)):
+ sigmas = build_sigmas(distilled=False, num_steps=30, video_seq_len=video_sequence_length(121, height, width))
+ assert torch.equal(sigmas, reference)
+
+
+def test_a_deterministic_step_is_the_flow_match_euler_step_in_velocity_space() -> None:
+ """The expectation is the reference's own formulation -- step the velocity prediction by the
+ sigma difference -- which this module deliberately rewrites in x0 space."""
+ sigmas = torch.tensor([0.9, 0.4, 0.0])
+ sample = torch.randn(1, 6, 4)
+ denoised = torch.randn(1, 6, 4)
+
+ velocity = (sample - denoised) / sigmas[0]
+ expected = sample + (sigmas[1] - sigmas[0]) * velocity
+
+ assert torch.allclose(flow_step(sample, denoised, sigmas, 0), expected, atol=1e-6)
+
+
+def test_the_terminal_step_returns_the_prediction_itself() -> None:
+ sigmas = torch.tensor([0.4, 0.0])
+ sample, denoised = torch.randn(1, 4, 2), torch.randn(1, 4, 2)
+ assert torch.equal(flow_step(sample, denoised, sigmas, 0, eta=1.0, noise=torch.randn(1, 4, 2)), denoised)
+
+
+def test_an_ancestral_step_needs_noise_and_a_zero_eta_does_not() -> None:
+ sigmas = torch.tensor([0.9, 0.4, 0.0])
+ sample, denoised = torch.randn(1, 4, 2), torch.randn(1, 4, 2)
+
+ flow_step(sample, denoised, sigmas, 0, eta=0.0)
+ with pytest.raises(ValueError, match="needs a noise tensor"):
+ flow_step(sample, denoised, sigmas, 0, eta=1.0)
+
+
+def test_an_ancestral_step_lands_on_the_next_noise_level() -> None:
+ """The step drops to an intermediate sigma and renoises back up, rescaling the signal so the
+ transition is variance preserving. With x = alpha*x0 + sigma*noise at the current level, the
+ result should be the same mixture at the next one."""
+ torch.manual_seed(0)
+ sigmas = torch.tensor([0.9, 0.5, 0.0])
+ x0 = torch.randn(1, 4096, 8)
+ noise = torch.randn_like(x0)
+ sample = (1 - sigmas[0]) * x0 + sigmas[0] * noise
+
+ stepped = flow_step(sample, x0, sigmas, 0, eta=1.0, s_noise=1.0, noise=torch.randn_like(x0))
+
+ residual = stepped - (1 - sigmas[1]) * x0
+ assert float(residual.std()) == pytest.approx(float(sigmas[1]), rel=0.05)
+
+
+def test_a_zero_eta_ancestral_step_is_the_deterministic_one() -> None:
+ sigmas = torch.tensor([0.8, 0.3, 0.0])
+ sample, denoised = torch.randn(1, 5, 3), torch.randn(1, 5, 3)
+ assert torch.allclose(
+ flow_step(sample, denoised, sigmas, 0, eta=0.0),
+ flow_step(sample, denoised, sigmas, 0, eta=0.0, noise=torch.randn(1, 5, 3)),
+ )
+
+
+def test_the_shifted_schedule_matches_the_reference_transformation() -> None:
+ """Independently: shift sigma -> e^mu / (e^mu + 1/sigma - 1), then stretch onto the terminal."""
+ num_steps, seq_len = 10, 2048
+ mu = math.exp(calculate_shift(seq_len))
+ raw = [mu / (mu + 1 / s - 1) for s in torch.linspace(1.0, 0.1, num_steps).tolist()]
+ scale = (1 - raw[-1]) / (1 - LTX2_SHIFT_TERMINAL)
+ expected = [1 - (1 - s) / scale for s in raw]
+
+ sigmas = build_sigmas(distilled=False, num_steps=num_steps, video_seq_len=seq_len)
+ assert sigmas[:-1].tolist() == pytest.approx(expected, abs=1e-6)