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): audio-to-video and video-to-audio conditioning

Lincoln Steind16ef7e36c4b
diff --git a/invokeai/app/invocations/fields.py b/invokeai/app/invocations/fields.py
index a070fd381f..16971403cd 100644
--- a/invokeai/app/invocations/fields.py
+++ b/invokeai/app/invocations/fields.py
@@ -198,6 +198,8 @@ class FieldDescriptions:
ltx2_audio_vae = "Audio VAE (mel spectrogram) for LTX-2"
ltx2_vocoder = "Vocoder (48 kHz stereo) for LTX-2"
ltx2_latent_upsampler = "x2 spatial latent upscaler for LTX-2's refine pass"
+ ltx2_audio_conditioning = "A soundtrack to generate a picture for (audio-to-video)"
+ ltx2_full_video_conditioning = "A clip to generate a soundtrack for (video-to-audio)"
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"
@@ -491,6 +493,38 @@ class LTX2VideoConditioningField(BaseModel):
strength: float = Field(default=1.0, description="How strongly the frame is held, 0 (ignored) to 1 (kept exactly).")
+class LTX2AudioConditioningField(BaseModel):
+ """A soundtrack held frozen while the picture is generated (audio-to-video).
+
+ LTX-2 conditions both streams through one mask, so this is the audio-side mirror of
+ :class:`LTX2VideoConditioningField`: the rows it names are held clean and the video is free.
+ The clip's own length decides the generation's, so the frame count it implies rides along and
+ the denoise node refuses a mismatch by name.
+ """
+
+ latents_name: str = Field(description="Name of the saved packed [1, L, 128] audio latent tensor.")
+ num_audio_latents: int = Field(description="Rows in the saved tensor; 25 per second of source audio.")
+ num_frames: int = Field(description="Pixel frames the soundtrack covers, snapped down to 8n + 1.")
+ fps: float = Field(description="Frame rate the frame count was derived at.")
+ source_video_name: str = Field(description="The clip the soundtrack was taken from, for muxing it back.")
+
+
+class LTX2FullVideoConditioningField(BaseModel):
+ """A whole clip held frozen while its soundtrack is generated (video-to-audio).
+
+ Distinct from :class:`LTX2VideoConditioningField`, which anchors a single frame: this one holds
+ *every* video token, so the transformer's video stream is a given and only the audio is
+ sampled. The canvas and length ride along for the same reason the first-frame field carries a
+ canvas -- a mismatch should be named, not discovered inside the transformer.
+ """
+
+ latents_name: str = Field(description="Name of the saved [1, 128, T, H/32, W/32] latent tensor.")
+ width: int = Field(description="Pixel width the clip was encoded at.")
+ height: int = Field(description="Pixel height the clip was encoded at.")
+ num_frames: int = Field(description="Pixel frames the clip covers.")
+ fps: float = Field(description="The clip's own frame rate, which the generation adopts.")
+
+
class MiniMaxH3FrameConditioningField(BaseModel):
"""First/last-keyframe conditioning for MiniMax H3 (FL2VA).
diff --git a/invokeai/app/invocations/ltx2/ltx2_audio_conditioning.py b/invokeai/app/invocations/ltx2/ltx2_audio_conditioning.py
new file mode 100644
index 0000000000..8273150578
--- /dev/null
+++ b/invokeai/app/invocations/ltx2/ltx2_audio_conditioning.py
@@ -0,0 +1,152 @@
+"""A clip's soundtrack as LTX-2 conditioning: generate a picture for existing audio."""
+
+import torch
+
+from invokeai.app.invocations.baseinvocation import (
+ BaseInvocation,
+ BaseInvocationOutput,
+ Classification,
+ invocation,
+ invocation_output,
+)
+from invokeai.app.invocations.fields import (
+ FieldDescriptions,
+ Input,
+ InputField,
+ LTX2AudioConditioningField,
+ OutputField,
+ VideoField,
+)
+from invokeai.app.invocations.model import LTX2VocoderField, VAEField
+from invokeai.app.services.shared.invocation_context import InvocationContext
+from invokeai.app.util.video_audio import extract_audio_pcm
+from invokeai.backend.ltx2.audio_conditioning import encode_audio_latents
+from invokeai.backend.ltx2.constants import (
+ LTX2_AUDIO_LATENTS_PER_SECOND,
+ LTX2_DEFAULT_FPS,
+ LTX2_NUM_FRAMES_MAX,
+)
+from invokeai.backend.ltx2.packing import audio_latent_count, snap_num_frames_down
+from invokeai.backend.model_manager.taxonomy import BaseModelType
+from invokeai.backend.util.vae_working_memory import estimate_audio_working_memory_ltx2
+
+
+@invocation_output("ltx2_audio_conditioning_output")
+class LTX2AudioConditioningOutput(BaseInvocationOutput):
+ """A soundtrack to generate a picture for, and the clip length it implies."""
+
+ audio_conditioning: LTX2AudioConditioningField = OutputField(
+ description=FieldDescriptions.ltx2_audio_conditioning, title="Audio Conditioning"
+ )
+ num_frames: int = OutputField(description="Frames the soundtrack covers, snapped down to 8n + 1.")
+ fps: float = OutputField(description="The frame rate that count was derived at.")
+
+
+@invocation(
+ "ltx2_audio_conditioning",
+ title="Audio Conditioning - LTX-2",
+ tags=["ltx", "ltx2", "video", "audio", "conditioning"],
+ category="conditioning",
+ version="1.0.0",
+ classification=Classification.Prototype,
+)
+class LTX2AudioConditioningInvocation(BaseInvocation):
+ """Encodes a clip's soundtrack so LTX-2 can generate a picture for it.
+
+ LTX-2 conditions picture and sound through one mask, so this is the mirror of first-frame image
+ conditioning: the audio rows are held clean at every step and the video is sampled freely.
+
+ The soundtrack's own length decides the generation's. Audio is encoded at 25 latents per second
+ and the resulting frame count is snapped *down* to the VAE's 8n + 1 grid, so a clip is never
+ asked to cover more picture than it has sound for; the remainder is dropped.
+ """
+
+ video: VideoField = InputField(description="The clip whose soundtrack conditions the generation.")
+ audio_vae: VAEField = InputField(
+ description=FieldDescriptions.ltx2_audio_vae, input=Input.Connection, title="Audio VAE"
+ )
+ vocoder: LTX2VocoderField = InputField(
+ # The vocoder is here for its analysis filters, not to synthesise anything: the log-mel
+ # transform the audio VAE encodes from ships as buffers on the vocoder and nowhere else.
+ description="The vocoder, whose checkpoint carries the log-mel filters the VAE encodes from.",
+ input=Input.Connection,
+ title="Vocoder",
+ )
+ fps: float = InputField(
+ default=LTX2_DEFAULT_FPS,
+ ge=1,
+ le=120,
+ description="Frame rate to convert the soundtrack's duration into a frame count.",
+ )
+
+ @torch.no_grad()
+ def invoke(self, context: InvocationContext) -> LTX2AudioConditioningOutput:
+ path = context.videos.get_path(self.video.video_name)
+ decoded = extract_audio_pcm(path, float_pcm=True)
+
+ if decoded is None:
+ raise ValueError(
+ f"'{self.video.video_name}' has no audio track, so there is nothing to generate a picture for. "
+ f"Pick a clip with sound, or use text-to-video."
+ )
+
+ samples, sample_rate = decoded
+ audio_vae_info = context.models.load(self.audio_vae.vae)
+ if audio_vae_info.config.base is not BaseModelType.LTX2:
+ raise ValueError(f"Expected an LTX-2 audio VAE; got a {audio_vae_info.config.base.value} one.")
+ vocoder_info = context.models.load(self.vocoder.vocoder)
+
+ # The recording's own length is the only thing bounding this encode -- the STFT, the mel and
+ # the VAE forward all run untiled over the whole signal -- so it is capped before any of
+ # them, at the longest generation the model will make. Everything past that is soundtrack
+ # the run could not cover anyway.
+ seconds_cap = snap_num_frames_down(LTX2_NUM_FRAMES_MAX) / self.fps
+ if samples.shape[1] > seconds_cap * sample_rate:
+ samples = samples[:, : int(seconds_cap * sample_rate)]
+
+ # The same shape as the decode's estimate, which is fitted per audio latent: the encode runs
+ # the same three stages backwards over the same signal.
+ working_memory = estimate_audio_working_memory_ltx2(
+ int(samples.shape[1] / sample_rate * LTX2_AUDIO_LATENTS_PER_SECOND)
+ )
+ context.util.signal_progress("Encoding the soundtrack for LTX-2 conditioning")
+ with (
+ audio_vae_info.model_on_device(working_mem_bytes=working_memory) as (_, audio_vae),
+ vocoder_info.model_on_device() as (_, vocoder),
+ ):
+ latents = encode_audio_latents(audio_vae, vocoder, torch.from_numpy(samples), sample_rate=sample_rate)
+
+ encoded = int(latents.shape[1])
+ seconds = encoded / LTX2_AUDIO_LATENTS_PER_SECOND
+ num_frames = snap_num_frames_down(int(seconds * self.fps))
+
+ if num_frames < 1 + 8:
+ raise ValueError(
+ f"'{self.video.video_name}' is {seconds:.2f}s long, which is under one frame group at "
+ f"{self.fps:g} fps. Use a longer clip."
+ )
+
+ # Trimmed to the count the reported frame span covers. The frame count was snapped *down*,
+ # so it spans slightly less than the recording, and the denoise sizes the audio stream from
+ # it -- `audio_latent_count` is the same function `build_denoise_state` uses, so the two
+ # agree by construction rather than by coincidence. The dropped tail is the fraction of a
+ # second past the last whole frame group; the mux keeps the recording's own samples.
+ num_audio_latents = audio_latent_count(num_frames, self.fps)
+ if num_audio_latents > encoded:
+ raise ValueError(
+ f"'{self.video.video_name}' encoded to {encoded} audio latents but {num_frames} frames at "
+ f"{self.fps:g} fps need {num_audio_latents}. Use a longer clip."
+ )
+ latents = latents[:, :num_audio_latents]
+
+ return LTX2AudioConditioningOutput(
+ audio_conditioning=LTX2AudioConditioningField(
+ latents_name=context.tensors.save(tensor=latents),
+ num_audio_latents=num_audio_latents,
+ num_frames=num_frames,
+ fps=self.fps,
+ source_video_name=self.video.video_name,
+ ),
+ num_frames=num_frames,
+ fps=self.fps,
+ )
diff --git a/invokeai/app/invocations/ltx2/ltx2_denoise.py b/invokeai/app/invocations/ltx2/ltx2_denoise.py
index 591e71649d..d542f1b8c2 100644
--- a/invokeai/app/invocations/ltx2/ltx2_denoise.py
+++ b/invokeai/app/invocations/ltx2/ltx2_denoise.py
@@ -17,7 +17,9 @@ from invokeai.app.invocations.fields import (
Input,
InputField,
LatentsField,
+ LTX2AudioConditioningField,
LTX2ConditioningField,
+ LTX2FullVideoConditioningField,
LTX2VideoConditioningField,
OutputField,
)
@@ -76,7 +78,7 @@ class LTX2DenoiseOutput(BaseInvocationOutput):
title="Denoise - LTX-2",
tags=["ltx", "ltx2", "video", "audio", "denoise"],
category="latents",
- version="1.1.0",
+ version="1.2.0",
classification=Classification.Prototype,
)
class LTX2DenoiseInvocation(BaseInvocation):
@@ -107,6 +109,18 @@ class LTX2DenoiseInvocation(BaseInvocation):
input=Input.Connection,
title="Image Conditioning",
)
+ audio_conditioning: LTX2AudioConditioningField | None = InputField(
+ default=None,
+ description=FieldDescriptions.ltx2_audio_conditioning,
+ input=Input.Connection,
+ title="Audio Conditioning",
+ )
+ full_video_conditioning: LTX2FullVideoConditioningField | None = InputField(
+ default=None,
+ description=FieldDescriptions.ltx2_full_video_conditioning,
+ input=Input.Connection,
+ title="Video 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(
@@ -248,6 +262,24 @@ class LTX2DenoiseInvocation(BaseInvocation):
assert isinstance(info, LTX2ConditioningInfo)
return info
+ def _require_matching(
+ self,
+ node_title: str,
+ integers: dict[str, tuple[int, int]],
+ floats: dict[str, tuple[float, float]],
+ ) -> None:
+ """Refuse a conditioning encode prepared for a different run than this node will make."""
+ mismatched = [
+ f"{name} {theirs} vs {mine}"
+ for name, (theirs, mine) in ((*integers.items(), *floats.items()))
+ if (theirs != mine if name not in floats else abs(float(theirs) - float(mine)) > 1e-6)
+ ]
+ if mismatched:
+ raise ValueError(
+ f"The conditioning from {node_title} was prepared for a different run than this denoise: "
+ f"{', '.join(mismatched)}. Wire this node's own values into that one, or take its outputs."
+ )
+
def _load_image_latents(self, context: InvocationContext) -> torch.Tensor | None:
if self.video_conditioning is None:
return None
@@ -281,6 +313,40 @@ class LTX2DenoiseInvocation(BaseInvocation):
"Audio latents were wired without video latents. The refine pass takes both or neither; "
"a base pass generates its own audio."
)
+ frozen = self.audio_conditioning is not None or self.full_video_conditioning is not None
+
+ # A refine pass re-noises every token, so a modality held clean in the base pass would be
+ # regenerated here unless it were re-applied -- and for video that needs a fresh encode at
+ # the refine canvas, exactly as the first frame does. Rather than silently drop the
+ # conditioning, the combination is refused until that path exists.
+ if frozen and self.latents is not None:
+ raise ValueError(
+ "Audio- and video-conditioned generation does not run a refine pass yet: the held "
+ "modality would have to be re-encoded at the second canvas. Use a single-stage "
+ "target resolution."
+ )
+
+ # The geometry each conditioning field carries is checked here rather than left to the
+ # latent-shape check in `build_denoise_state`: that one cannot see `fps` at all -- no tensor
+ # shape encodes it -- and a mismatch there would surface as a raw tuple after the text
+ # encoder has run. A graph that sets these separately from the node is a wiring mistake.
+ if self.audio_conditioning is not None:
+ self._require_matching(
+ "Audio Conditioning - LTX-2",
+ {"num_frames": (self.audio_conditioning.num_frames, self.num_frames)},
+ {"fps": (self.audio_conditioning.fps, self.fps)},
+ )
+ if self.full_video_conditioning is not None:
+ self._require_matching(
+ "Video Conditioning - LTX-2",
+ {
+ "num_frames": (self.full_video_conditioning.num_frames, self.num_frames),
+ "width": (self.full_video_conditioning.width, self.width),
+ "height": (self.full_video_conditioning.height, self.height),
+ },
+ {"fps": (self.full_video_conditioning.fps, self.fps)},
+ )
+
distilled = self._resolve_distilled()
guidance = self._resolve_guidance(context, distilled)
if distilled and self.steps != LTX2_DISTILLED_STEPS:
@@ -328,6 +394,16 @@ class LTX2DenoiseInvocation(BaseInvocation):
num_steps=self.steps,
image_latents=self._load_image_latents(context),
conditioning_strength=self.video_conditioning.strength if self.video_conditioning else 1.0,
+ frozen_audio_latents=(
+ context.tensors.load(self.audio_conditioning.latents_name)
+ if self.audio_conditioning is not None
+ else None
+ ),
+ frozen_video_latents=(
+ context.tensors.load(self.full_video_conditioning.latents_name)
+ if self.full_video_conditioning is not None
+ else None
+ ),
)
device = TorchDevice.choose_torch_device()
diff --git a/invokeai/app/invocations/ltx2/ltx2_video_conditioning.py b/invokeai/app/invocations/ltx2/ltx2_video_conditioning.py
new file mode 100644
index 0000000000..78df48dab0
--- /dev/null
+++ b/invokeai/app/invocations/ltx2/ltx2_video_conditioning.py
@@ -0,0 +1,204 @@
+"""A whole clip as LTX-2 conditioning: generate a soundtrack for existing picture."""
+
+import numpy as np
+import torch
+from PIL import Image
+
+from invokeai.app.invocations.baseinvocation import (
+ BaseInvocation,
+ BaseInvocationOutput,
+ Classification,
+ invocation,
+ invocation_output,
+)
+from invokeai.app.invocations.fields import (
+ FieldDescriptions,
+ Input,
+ InputField,
+ LTX2FullVideoConditioningField,
+ OutputField,
+ VideoField,
+)
+from invokeai.app.invocations.model import VAEField
+from invokeai.app.services.shared.invocation_context import InvocationContext
+from invokeai.app.util.video_thumbnails import iter_video_frames
+from invokeai.backend.ltx2.constants import (
+ LTX2_CANVAS_MULTIPLE,
+ LTX2_DEFAULT_TEMPORAL_TILE,
+ LTX2_DEFAULT_TILE_SIZE,
+ LTX2_FRAME_MODULUS,
+ LTX2_LATENT_CHANNELS,
+ LTX2_NUM_FRAMES_MAX,
+)
+from invokeai.backend.ltx2.image_conditioning import fit_to_canvas
+from invokeai.backend.ltx2.packing import normalize_video_latents, snap_num_frames_down, video_latent_shape
+from invokeai.backend.ltx2.video_decoding import scoped_ltx2_tiling
+from invokeai.backend.model_manager.load.model_cache.utils import get_effective_device
+from invokeai.backend.model_manager.taxonomy import BaseModelType
+from invokeai.backend.util.cancel_hooks import cancel_before_forward
+from invokeai.backend.util.vae_working_memory import estimate_vae_working_memory_ltx2
+
+# How often the frame-reading loop reports. Decoding and cover-cropping a long clip is tens of
+# seconds; without this the bar sits still for all of it.
+_PROGRESS_FRAME_INTERVAL = 48
+
+
+@invocation_output("ltx2_video_conditioning_output")
+class LTX2VideoConditioningOutput(BaseInvocationOutput):
+ """A clip to generate a soundtrack for, and the geometry it pins."""
+
+ video_conditioning: LTX2FullVideoConditioningField = OutputField(
+ description=FieldDescriptions.ltx2_full_video_conditioning, title="Video Conditioning"
+ )
+ width: int = OutputField(description="Pixel width the clip was encoded at.")
+ height: int = OutputField(description="Pixel height the clip was encoded at.")
+ num_frames: int = OutputField(description="Frames encoded, snapped down to 8n + 1.")
+
+
+@invocation(
+ "ltx2_video_conditioning",
+ title="Video Conditioning - LTX-2",
+ tags=["ltx", "ltx2", "video", "audio", "conditioning"],
+ category="conditioning",
+ version="1.0.0",
+ classification=Classification.Prototype,
+)
+class LTX2VideoConditioningInvocation(BaseInvocation):
+ """Encodes a whole clip so LTX-2 can generate a soundtrack for it.
+
+ The mirror of audio conditioning: every video token is held clean at each step and only the
+ audio is sampled. The clip decides the generation's geometry -- its canvas, its length and its
+ frame rate -- because the picture is a given rather than something being made.
+
+ Frames are fitted to the canvas by cover-crop, as first-frame conditioning does, and the count
+ is snapped *down* to the VAE's 8n + 1 grid; trailing frames beyond the last group are dropped
+ rather than padded, since padding would invent picture for the model to score sound against.
+
+ What comes back is the model's reconstruction of the clip, not the clip: the picture is
+ cover-cropped to the canvas, VAE round-tripped and re-encoded, because the decode node renders
+ the held latents like any others. That is the opposite of the choice audio conditioning makes
+ for the soundtrack, which is muxed back in as supplied -- the symmetric treatment here would be
+ to remux the source video stream, and it is not done yet.
+
+ The encode is tiled, and not by preference: an untiled encode's activation grows with the whole
+ clip rather than with one tile, so a 1248x704 clip of 121 frames would need about 65 GiB where
+ tiled it needs 3.2, flat in the clip's length. Tiling costs blend seams -- measured at 16%
+ relative rms against an untiled encode of the same smooth footage -- which is why the tile
+ sizes are inputs rather than constants: a clip that fits a larger tile can be given one.
+ """
+
+ video: VideoField = InputField(description="The clip to generate a soundtrack for.")
+ vae: VAEField = InputField(description=FieldDescriptions.vae, input=Input.Connection, title="Video VAE")
+ width: int = InputField(
+ default=768, gt=0, multiple_of=LTX2_CANVAS_MULTIPLE, description="Canvas width to encode at."
+ )
+ height: int = InputField(
+ default=512, gt=0, multiple_of=LTX2_CANVAS_MULTIPLE, description="Canvas height to encode at."
+ )
+ fps: float = InputField(default=24.0, ge=1, le=120, description="The clip's frame rate, which the audio adopts.")
+ tile_size: int = InputField(
+ default=LTX2_DEFAULT_TILE_SIZE,
+ ge=64,
+ description="Spatial encode tile, in source pixels. Smaller tiles need less VRAM and take longer.",
+ )
+ temporal_tile: int = InputField(
+ default=LTX2_DEFAULT_TEMPORAL_TILE,
+ ge=8,
+ description="Temporal encode tile, in source frames. Smaller tiles need less VRAM and take longer.",
+ )
+
+ @torch.no_grad()
+ def invoke(self, context: InvocationContext) -> LTX2VideoConditioningOutput:
+ path = context.videos.get_path(self.video.video_name)
+ vae_info = context.models.load(self.vae.vae)
+ if vae_info.config.base is not BaseModelType.LTX2:
+ raise ValueError(f"Expected an LTX-2 video VAE; got a {vae_info.config.base.value} one.")
+
+ # A ceiling, and it stops the decode rather than checking after the fact: nothing upstream
+ # bounds a clip's length -- `validate_num_frames` only checks the 8n + 1 grid -- so a
+ # workflow handing this node a ten-minute recording would otherwise materialize every frame
+ # before anything refused it. The cap is the grid value at or below the model's own maximum.
+ cap = snap_num_frames_down(LTX2_NUM_FRAMES_MAX)
+ context.util.signal_progress("Reading the clip for LTX-2 conditioning")
+ # `fit_to_canvas` takes (height, width) and a PIL image, and already returns RGB.
+ frames: list[np.ndarray] = []
+ for frame in iter_video_frames(path, is_canceled=context.util.is_canceled):
+ frames.append(np.asarray(fit_to_canvas(Image.fromarray(frame), self.height, self.width), dtype=np.uint8))
+ if len(frames) >= cap:
+ break
+ if len(frames) % _PROGRESS_FRAME_INTERVAL == 0:
+ context.util.signal_progress(f"Reading the clip for LTX-2 conditioning ({len(frames)} frames)")
+
+ num_frames = snap_num_frames_down(len(frames))
+ if num_frames < 1 + LTX2_FRAME_MODULUS:
+ raise ValueError(
+ f"'{self.video.video_name}' decoded to {len(frames)} frame(s), which is under one frame group. "
+ f"Use a longer clip."
+ )
+ del frames[num_frames:]
+
+ # Stacked as uint8 and converted on the device: the fp32 copy is four times the size, and
+ # making it here would put ~2.4 GiB of host memory (for a 241-frame 1248x704 clip) outside
+ # every budget the model cache knows about, on top of the list it is built from.
+ pixels = torch.from_numpy(np.stack(frames))
+ del frames
+
+ # Tiled, like the decode: an untiled encode's activation grows with the whole clip rather
+ # than with one tile, and a 1248x704 clip of 121 frames needs about 65 GiB of it. Tiled at
+ # the defaults the same encode runs in 3.2 GiB, and the cost is flat in the clip's length.
+ working_memory = estimate_vae_working_memory_ltx2(
+ "encode",
+ vae_info.model,
+ pixel_height=self.height,
+ pixel_width=self.width,
+ pixel_frames=num_frames,
+ tile_size=self.tile_size,
+ temporal_tile=self.temporal_tile,
+ tiled=True,
+ )
+ context.util.signal_progress("Encoding the clip for LTX-2 conditioning")
+
+ with vae_info.model_on_device(working_mem_bytes=working_memory) as (_, vae):
+ vae_dtype = next(iter(vae.parameters())).dtype
+ # Resolved again inside the lock: the cache decides where the model actually lands, and
+ # a partially-loaded or CPU-resident VAE would reject input placed on the accelerator.
+ device = get_effective_device(vae)
+ source = pixels.to(device=device).permute(3, 0, 1, 2).unsqueeze(0) # [1, 3, T, H, W]
+ # Subtract before dividing: the arithmetic runs in the VAE's own (low-precision) dtype
+ # to keep one copy of the clip rather than two, and `x / 127.5 - 1` cancels there --
+ # mid-grey lands within a bf16 ulp of 1.0, so the subtraction throws the value away.
+ # This order is the same maths with no cancellation, and matches an fp32 round-trip.
+ source = source.to(dtype=vae_dtype).sub_(127.5).div_(127.5)
+ del pixels
+
+ with (
+ scoped_ltx2_tiling(vae, tile_size=self.tile_size, temporal_tile=self.temporal_tile),
+ # One poll per encoder forward: a tiled encode of a long clip is hundreds of them,
+ # and polling only around the whole call would leave a cancel waiting for all of it.
+ cancel_before_forward([vae.encoder], context.util.is_canceled, device),
+ ):
+ latents = vae.encode(source).latent_dist.mode().to(torch.float32)
+ del source
+ latents = normalize_video_latents(
+ latents, vae.latents_mean, vae.latents_std, float(vae.config.scaling_factor)
+ )
+
+ expected = (1, LTX2_LATENT_CHANNELS, *video_latent_shape(num_frames, self.height, self.width))
+ if tuple(latents.shape) != expected:
+ raise ValueError(
+ f"The clip encoded to {tuple(latents.shape)} but {self.width}x{self.height} at {num_frames} "
+ f"frames needs {expected}."
+ )
+
+ return LTX2VideoConditioningOutput(
+ video_conditioning=LTX2FullVideoConditioningField(
+ latents_name=context.tensors.save(tensor=latents.cpu()),
+ width=self.width,
+ height=self.height,
+ num_frames=num_frames,
+ fps=self.fps,
+ ),
+ width=self.width,
+ height=self.height,
+ num_frames=num_frames,
+ )
diff --git a/invokeai/app/invocations/metadata.py b/invokeai/app/invocations/metadata.py
index ac6dbc6a74..af23ddd58a 100644
--- a/invokeai/app/invocations/metadata.py
+++ b/invokeai/app/invocations/metadata.py
@@ -193,6 +193,8 @@ GENERATION_MODES = Literal[
"minimax_h3_i2v",
"ltx2_t2v",
"ltx2_i2v",
+ "ltx2_a2v",
+ "ltx2_v2a",
"minimax_h3_lf2v",
"minimax_h3_flf2v",
"minimax_h3_extend_video",
diff --git a/invokeai/app/invocations/vae/ltx2_latents_to_video.py b/invokeai/app/invocations/vae/ltx2_latents_to_video.py
index b1d599bd22..8f34679b73 100644
--- a/invokeai/app/invocations/vae/ltx2_latents_to_video.py
+++ b/invokeai/app/invocations/vae/ltx2_latents_to_video.py
@@ -13,6 +13,7 @@ from invokeai.app.invocations.fields import (
Input,
InputField,
LatentsField,
+ LTX2AudioConditioningField,
WithBoard,
WithMetadata,
)
@@ -21,8 +22,13 @@ 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_audio import extract_audio_pcm
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.constants import (
+ LTX2_DEFAULT_FPS,
+ LTX2_DEFAULT_TEMPORAL_TILE,
+ LTX2_DEFAULT_TILE_SIZE,
+)
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 (
@@ -30,9 +36,6 @@ from invokeai.backend.util.vae_working_memory import (
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]."""
@@ -46,13 +49,20 @@ def _iter_decoded_frames(decoded: torch.Tensor) -> Iterator[np.ndarray]:
title="Latents to Video - LTX-2",
tags=["latents", "video", "audio", "vae", "l2v", "ltx", "ltx2"],
category="latents",
- version="1.0.0",
+ version="1.1.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)
+ source_audio: LTX2AudioConditioningField | None = InputField(
+ default=None,
+ description="The soundtrack this clip was generated for. When set, it is muxed in as it was "
+ "supplied rather than the generated audio being decoded.",
+ input=Input.Connection,
+ title="Source Audio",
+ )
audio_latents: LatentsField | None = InputField(
default=None,
description="Packed audio latents from the denoise node. Omit for a silent video.",
@@ -91,7 +101,16 @@ class LTX2LatentsToVideoInvocation(BaseInvocation, WithMetadata, WithBoard):
# 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
+ # Audio-to-video conditions on a soundtrack the user already has, so the output carries that
+ # recording rather than a vocoder's reconstruction of the latents it was encoded to. The
+ # generated audio latents are still produced -- the model denoises both streams -- but
+ # decoding them here would replace the original with a lossy copy of itself.
+ if self.source_audio is not None:
+ wav_path = self._extract_source_audio_to_wav(context, duration)
+ elif self.audio_latents is not None:
+ wav_path = self._decode_audio_to_wav(context, duration)
+ else:
+ wav_path = None
tmp = tempfile.NamedTemporaryFile(prefix="invokeai_ltx2_video_", suffix=".mp4", delete=False)
tmp.close()
@@ -162,6 +181,36 @@ class LTX2LatentsToVideoInvocation(BaseInvocation, WithMetadata, WithBoard):
TorchDevice.empty_cache()
return decoded
+ def _extract_source_audio_to_wav(self, context: InvocationContext, video_duration_s: float) -> Path:
+ """The conditioning clip's own soundtrack, trimmed or padded to the generated duration.
+
+ The generation's length is the soundtrack's, snapped down to the frame grid, so the clip is
+ normally a little longer than the video; the tail beyond the last frame is dropped.
+ """
+ assert self.source_audio is not None
+ source = context.videos.get_path(self.source_audio.source_video_name)
+ decoded = extract_audio_pcm(source, float_pcm=True)
+
+ if decoded is None:
+ raise ValueError(f"'{self.source_audio.source_video_name}' no longer has an audio track to mux back in.")
+
+ samples, sample_rate = decoded
+ wanted = int(round(video_duration_s * sample_rate))
+ if samples.shape[1] > wanted:
+ samples = samples[:, :wanted]
+ elif samples.shape[1] < wanted:
+ samples = np.pad(samples, ((0, 0), (0, wanted - samples.shape[1])))
+
+ wav = tempfile.NamedTemporaryFile(prefix="invokeai_ltx2_source_audio_", suffix=".wav", delete=False)
+ wav.close()
+ wav_path = Path(wav.name)
+ try:
+ write_stereo_wav(wav_path, samples, sample_rate)
+ except Exception:
+ wav_path.unlink(missing_ok=True)
+ raise
+ return wav_path
+
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:
diff --git a/invokeai/backend/architectures/defs/ltx_2.py b/invokeai/backend/architectures/defs/ltx_2.py
index 078ba2d21a..4ac1b3a109 100644
--- a/invokeai/backend/architectures/defs/ltx_2.py
+++ b/invokeai/backend/architectures/defs/ltx_2.py
@@ -25,9 +25,10 @@ register(
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
- # audio generated alongside. Keyframes, extension and the audio/video-conditioned modes follow.
- ModalityFacet(frozenset({"t2v", "i2v"}), metadata_slug="ltx2"),
+ # Text-to-video and first-frame image-to-video, both with synchronized audio generated
+ # alongside, plus the two whole-modality conditioned modes: a picture for a given soundtrack
+ # and a soundtrack for a given picture. Keyframes and extension follow.
+ ModalityFacet(frozenset({"t2v", "i2v", "a2v", "v2a"}), metadata_slug="ltx2"),
FeaturesFacet(
# The negative prompt only reaches the model through classifier-free guidance, which the
# distilled variant runs without.
diff --git a/invokeai/backend/architectures/facets/modality.py b/invokeai/backend/architectures/facets/modality.py
index 19a63641bc..f27ce8e4e6 100644
--- a/invokeai/backend/architectures/facets/modality.py
+++ b/invokeai/backend/architectures/facets/modality.py
@@ -30,13 +30,16 @@ GenerationModeKind = Literal[
"interpolate",
"extend_video",
"ref2v",
+ "a2v",
+ "v2a",
]
"""The kinds of generation a mode string names.
`t2v`/`i2v` produce video, as do the conditioning variants: `lf2v` (last frame to video), `flf2v`
(first and last frame to video), `interpolate` (between two given images), `extend_video`
-(continue an existing clip) and `ref2v` (video from a set of image and video references). The rest
-produce images."""
+(continue an existing clip), `ref2v` (video from a set of image and video references) and `a2v`
+(picture for an existing soundtrack). `v2a` is the one video mode that produces *sound* rather than
+picture: it takes a clip and generates the soundtrack for it. The rest produce images."""
@dataclass(frozen=True)
diff --git a/invokeai/backend/ltx2/audio_conditioning.py b/invokeai/backend/ltx2/audio_conditioning.py
new file mode 100644
index 0000000000..f8ab9039d0
--- /dev/null
+++ b/invokeai/backend/ltx2/audio_conditioning.py
@@ -0,0 +1,118 @@
+"""Waveform -> LTX-2 audio latents, the inverse of the soundtrack decode.
+
+Generation decodes ``latents -> audio VAE -> log-mel -> vocoder -> waveform``. Conditioning on an
+existing soundtrack needs the first half of that run backwards, and the log-mel step is the piece
+the release does not ship as a standalone module: the audio VAE carries no filterbank (its file has
+no mel, stft or basis tensor), and Lightricks' own front end is not published with the weights.
+
+It does not have to be. The vocoder's bandwidth-extension stage takes the mel of the signal at its
+*input* rate and feeds it to a generator built like the vocoder itself, so ``vocoder.mel_stft``
+computes exactly the representation the vocoder consumes -- which is what the audio VAE decodes to.
+Its ``config.input_sampling_rate`` is the audio VAE's own ``sample_rate`` (16 kHz in the release;
+the 48 kHz on the vocoder is its *output*), so the filterbank is fitted for the rate this module
+feeds it. Both of its bases are checkpoint-loaded buffers (``CausalSTFT.forward_basis``, the
+windowed analysis kernels, and ``MelSTFT.mel_basis``, the filterbank), and neither depends on the
+hop, which enters only as a ``conv1d`` stride. So the transform this module needs is the released
+one run at the audio VAE's own ``mel_hop_length`` -- the release's learned content, at the rate the
+VAE was built for.
+
+Measured against the released weights, and pinned by
+``test_a_recording_encodes_to_the_audio_rate_the_transformer_reads_and_survives_the_round_trip``:
+at the VAE's hop the result is 25 audio latents per second, which is the rate the transformer's
+audio stream uses everywhere else, and the mel this module produces for a vocoder output matches
+the mel the VAE decoded to produce it at 0.96 Pearson, in the same shape -- the residual being the
+vocoder's own phase reconstruction, not a difference of domain. At the vocoder's own hop the rate
+would be 50 per second, which the packing would reject.
+"""
+
+import torch
+
+from invokeai.backend.ltx2.constants import LTX2_AUDIO_LATENT_CHANNELS, LTX2_AUDIO_LATENT_MEL_BINS
+from invokeai.backend.ltx2.packing import normalize_audio_latents, pack_audio_latents
+from invokeai.backend.model_manager.load.model_cache.utils import get_effective_device
+from invokeai.backend.util.audio_resample import resample_sinc
+
+
+def build_mel_transform(vocoder: torch.nn.Module, *, hop_length: int) -> torch.nn.Module:
+ """The released log-mel transform, re-strided to ``hop_length``.
+
+ A fresh ``MelSTFT`` registers both of its bases as zeros -- they are persistent buffers the
+ checkpoint fills -- so one built without copying them produces silence at the log floor for
+ every input. They are copied here rather than recomputed: a filterbank fitted to the model is
+ not something to re-derive from a formula and hope the conventions match.
+ """
+ from diffusers.pipelines.ltx2.vocoder import MelSTFT
+
+ source = vocoder.mel_stft
+ transform = MelSTFT(
+ filter_length=vocoder.config.filter_length,
+ hop_length=hop_length,
+ window_length=vocoder.config.window_length,
+ num_mel_channels=vocoder.config.num_mel_channels,
+ )
+ with torch.no_grad():
+ transform.mel_basis.copy_(source.mel_basis)
+ transform.stft_fn.forward_basis.copy_(source.stft_fn.forward_basis)
+ transform.stft_fn.inverse_basis.copy_(source.stft_fn.inverse_basis)
+
+ return transform.to(device=source.mel_basis.device, dtype=source.mel_basis.dtype).eval()
+
+
+def encode_audio_latents(
+ audio_vae: torch.nn.Module,
+ vocoder: torch.nn.Module,
+ waveform: torch.Tensor,
+ *,
+ sample_rate: int,
+) -> torch.Tensor:
+ """A ``(channels, samples)`` waveform -> packed, normalized audio latents ``(1, L, 128)``.
+
+ ``waveform`` is float PCM in [-1, 1] at ``sample_rate``; it is resampled to the VAE's own rate
+ with the same windowed-sinc path the other conditioning soundtracks use.
+ """
+ if waveform.ndim != 2:
+ raise ValueError(f"Audio conditioning expects a (channels, samples) waveform; got {tuple(waveform.shape)}.")
+
+ target_rate = int(audio_vae.config.sample_rate)
+ hop = int(audio_vae.config.mel_hop_length)
+ channels = int(vocoder.config.out_channels)
+
+ audio = waveform.to(dtype=torch.float32)
+ if audio.shape[0] == 1 and channels > 1:
+ audio = audio.expand(channels, -1)
+ elif audio.shape[0] > channels:
+ # Down-mixing is the caller's business; refusing here names the mismatch rather than
+ # silently conditioning on an arbitrary subset of the channels.
+ raise ValueError(f"This soundtrack has {audio.shape[0]} channels; the model takes {channels}.")
+
+ if sample_rate != target_rate:
+ audio = resample_sinc(audio, sample_rate, target_rate)
+
+ # The mel frame count is exact only on a whole number of hops, and the VAE's temporal downscale
+ # then fixes the latent count -- a ragged tail would shift every latent after it.
+ remainder = audio.shape[-1] % hop
+ if remainder:
+ audio = torch.nn.functional.pad(audio, (0, hop - remainder))
+
+ mel_transform = build_mel_transform(vocoder, hop_length=hop)
+ device = mel_transform.mel_basis.device
+ mel_dtype = mel_transform.mel_basis.dtype
+ log_mel, _, _, _ = mel_transform(audio[None].to(device=device, dtype=mel_dtype).flatten(0, 1))
+ log_mel = log_mel.unflatten(0, (1, audio.shape[0])).transpose(2, 3) # (1, C, frames, mel bins)
+
+ # The audio VAE's own device, not the mel transform's: the two models are locked by independent
+ # `model_on_device` calls and a partial load can leave them on different ones.
+ vae_device = get_effective_device(audio_vae)
+ vae_dtype = next(iter(audio_vae.parameters())).dtype
+ latents = audio_vae.encode(log_mel.to(device=vae_device, dtype=vae_dtype)).latent_dist.mode().to(torch.float32)
+
+ expected = (LTX2_AUDIO_LATENT_CHANNELS, LTX2_AUDIO_LATENT_MEL_BINS)
+ if (latents.shape[1], latents.shape[3]) != expected:
+ raise ValueError(
+ f"The audio VAE produced {latents.shape[1]} channels x {latents.shape[3]} mel bins; "
+ f"LTX-2's audio stream is {expected[0]} x {expected[1]}."
+ )
+
+ packed = pack_audio_latents(latents.cpu())
+ return normalize_audio_latents(packed, audio_vae.latents_mean.cpu(), audio_vae.latents_std.cpu())
diff --git a/invokeai/backend/ltx2/constants.py b/invokeai/backend/ltx2/constants.py
index 393901a378..663dd4d62f 100644
--- a/invokeai/backend/ltx2/constants.py
+++ b/invokeai/backend/ltx2/constants.py
@@ -40,9 +40,20 @@ LTX2_TWO_STAGE_CANVAS_MULTIPLE: Final = LTX2_CANVAS_MULTIPLE * 2
# 8k + 1 pixel frames.
LTX2_FRAME_MODULUS: Final = LTX2_TEMPORAL_COMPRESSION
+# The longest clip the conditioning nodes will read. Nothing else bounds a clip's length --
+# `validate_num_frames` only checks the grid -- so this is what stops a workflow handing one of them
+# a ten-minute recording to decode. Mirrored by LTX2_NUM_FRAMES_MAX in the panel's dimensions.ts,
+# which is where a generation's own frame count is bounded.
+LTX2_NUM_FRAMES_MAX: Final = 481
+
LTX2_DEFAULT_FPS: Final = 24.0
LTX2_DEFAULT_NUM_FRAMES: Final = 121
+# The decode's tile defaults, which the conditioning encode reuses: both run the same VAE over the
+# same kind of clip, and a user who has to raise one usually has to raise the other.
+LTX2_DEFAULT_TILE_SIZE: Final = 512
+LTX2_DEFAULT_TEMPORAL_TILE: Final = 16
+
# --- Audio geometry ------------------------------------------------------------------------------
# The audio stream is a log-mel spectrogram at 16 kHz with a 160-sample hop (100 frames/s),
diff --git a/invokeai/backend/ltx2/denoise.py b/invokeai/backend/ltx2/denoise.py
index bc37940e67..79871159a9 100644
--- a/invokeai/backend/ltx2/denoise.py
+++ b/invokeai/backend/ltx2/denoise.py
@@ -4,7 +4,7 @@ One transformer forward produces both modalities' velocity predictions, so a gui
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
+Conditioning -- a first frame or a whole held modality today, keyframes 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.
@@ -78,6 +78,17 @@ class LTX2DenoiseState:
eta: float
noise_seed: int
+ audio_conditioning_mask: torch.Tensor | None = None
+ """How strongly each audio row is held to its conditioning, 0 (free) to 1 (clean).
+
+ Shape: (1, audio latents). The mirror of ``conditioning_mask`` on the other modality: LTX-2
+ conditions both streams through one mechanism, so audio-to-video is an all-ones mask here and
+ video-to-audio is an all-ones mask on the video side.
+ """
+
+ clean_audio_latents: torch.Tensor | None = None
+ """Packed, normalized audio latents the mask holds rows to. Shape: (1, audio latents, 128)."""
+
@property
def num_steps(self) -> int:
return self.sigmas.numel() - 1
@@ -94,13 +105,33 @@ def build_denoise_state(
num_steps: int,
image_latents: torch.Tensor | None = None,
conditioning_strength: float = 1.0,
+ frozen_audio_latents: torch.Tensor | None = None,
+ frozen_video_latents: torch.Tensor | None = None,
) -> 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.
+
+ ``frozen_audio_latents`` and ``frozen_video_latents`` hold a whole modality clean instead: the
+ first is audio-to-video, the second video-to-audio. They are the same mask mechanism as the
+ first frame, with every row set rather than one -- which is why the two modes need no machinery
+ of their own beyond an encode. Giving both would leave nothing to sample, so it is refused.
"""
+ if frozen_audio_latents is not None and frozen_video_latents is not None:
+ raise ValueError(
+ "Audio and video cannot both be held: that would leave nothing for the model to generate. "
+ "Condition on one modality or the other."
+ )
+ # A held clip already covers frame 0, so the first-frame encode would be overwritten rather
+ # than combined -- two different pictures asked for in the same rows. Holding a soundtrack
+ # alongside a first frame is a different matter and stays allowed: those are separate streams.
+ if frozen_video_latents is not None and image_latents is not None:
+ raise ValueError(
+ "A first frame cannot be combined with a whole-clip video conditioning: the clip already "
+ "supplies frame 0. Wire one or the other."
+ )
validate_canvas(height, width)
validate_num_frames(num_frames)
@@ -148,9 +179,36 @@ def build_denoise_state(
conditioning_mask = pack_video_latents(mask).squeeze(-1)
video_latents = torch.lerp(video_latents, clean_video_latents, conditioning_mask.unsqueeze(-1))
+ audio_latents = pack_audio_latents(audio_noise)
+ audio_conditioning_mask: torch.Tensor | None = None
+ clean_audio_latents: torch.Tensor | None = None
+
+ if frozen_audio_latents is not None:
+ expected_audio = (1, audio_count, LTX2_AUDIO_LATENT_CHANNELS * LTX2_AUDIO_LATENT_MEL_BINS)
+ if tuple(frozen_audio_latents.shape) != expected_audio:
+ raise ValueError(
+ f"The conditioning soundtrack is {tuple(frozen_audio_latents.shape)} but a "
+ f"{num_frames}-frame clip at {fps:g} fps needs {expected_audio}. Derive the frame "
+ f"count from the soundtrack rather than setting it separately."
+ )
+ clean_audio_latents = frozen_audio_latents.to(device="cpu", dtype=torch.float32)
+ audio_conditioning_mask = torch.ones((1, audio_count), dtype=torch.float32)
+ audio_latents = clean_audio_latents.clone()
+
+ if frozen_video_latents is not None:
+ expected_video = (1, LTX2_LATENT_CHANNELS, latent_frames, latent_height, latent_width)
+ if tuple(frozen_video_latents.shape) != expected_video:
+ raise ValueError(
+ f"The conditioning clip is {tuple(frozen_video_latents.shape)} but {width}x{height} "
+ f"at {num_frames} frames needs {expected_video}."
+ )
+ clean_video_latents = pack_video_latents(frozen_video_latents.to(device="cpu", dtype=torch.float32))
+ conditioning_mask = torch.ones((1, clean_video_latents.shape[1]), dtype=torch.float32)
+ video_latents = clean_video_latents.clone()
+
return LTX2DenoiseState(
video_latents=video_latents,
- audio_latents=pack_audio_latents(audio_noise),
+ audio_latents=audio_latents,
sigmas=build_sigmas(
distilled=distilled,
num_steps=num_steps,
@@ -162,6 +220,8 @@ def build_denoise_state(
audio_latents_count=audio_count,
conditioning_mask=conditioning_mask,
clean_video_latents=clean_video_latents,
+ audio_conditioning_mask=audio_conditioning_mask,
+ clean_audio_latents=clean_audio_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,
@@ -310,6 +370,12 @@ def denoise(
conditioning_mask = state.conditioning_mask.to(device=device, dtype=torch.float32)
clean_video_latents = state.clean_video_latents.to(device=device, dtype=torch.float32)
+ audio_mask = clean_audio_latents = None
+ if state.audio_conditioning_mask is not None:
+ assert state.clean_audio_latents is not None
+ audio_mask = state.audio_conditioning_mask.to(device=device, dtype=torch.float32)
+ clean_audio_latents = state.clean_audio_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)
@@ -337,6 +403,7 @@ def denoise(
# 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)
+ audio_timestep = timestep if audio_mask is None else timestep.unsqueeze(-1) * (1 - audio_mask)
video_input = video_latents.to(dtype)
audio_input = audio_latents.to(dtype)
@@ -347,7 +414,7 @@ def denoise(
hidden_states=video_input,
audio_hidden_states=audio_input,
timestep=video_timestep,
- audio_timestep=timestep,
+ audio_timestep=audio_timestep,
sigma=timestep,
num_frames=state.latent_frames,
height=state.latent_height,
@@ -374,6 +441,8 @@ def denoise(
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 audio_mask is not None:
+ audio_x0 = torch.lerp(audio_x0, clean_audio_latents, audio_mask.unsqueeze(-1))
if step_callback is not None:
step_callback(index + 1, total_steps, video_x0)
@@ -388,6 +457,8 @@ def denoise(
# 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))
+ if audio_mask is not None and state.eta > 0:
+ audio_latents = torch.lerp(audio_latents, clean_audio_latents, audio_mask.unsqueeze(-1))
return video_latents, audio_latents
diff --git a/invokeai/backend/ltx2/packing.py b/invokeai/backend/ltx2/packing.py
index 274c5a38e1..6aac7b391e 100644
--- a/invokeai/backend/ltx2/packing.py
+++ b/invokeai/backend/ltx2/packing.py
@@ -74,6 +74,17 @@ def snap_num_frames(num_frames: int) -> int:
return groups * LTX2_FRAME_MODULUS + 1
+def snap_num_frames_down(num_frames: int) -> int:
+ """The largest valid frame count at or below ``num_frames`` (at least 1).
+
+ Rounding *down* rather than to the nearest is what a clip's own length asks for: a soundtrack
+ conditions the picture it is paired with, so the generation may cover less of the clip than was
+ supplied but never more than there is audio for.
+ """
+ groups = max(0, (num_frames - 1) // LTX2_FRAME_MODULUS)
+ return groups * LTX2_FRAME_MODULUS + 1
+
+
def latent_frame_count(num_frames: int) -> int:
return (num_frames - 1) // LTX2_TEMPORAL_COMPRESSION + 1
@@ -140,6 +151,17 @@ def denormalize_video_latents(
return latents * std / scaling_factor + mean
+def normalize_audio_latents(
+ latents: torch.Tensor, latents_mean: torch.Tensor, latents_std: torch.Tensor
+) -> torch.Tensor:
+ """The audio VAE's own scale -> normalized *packed* audio latents ``[B, L, 128]``.
+
+ The inverse of :func:`denormalize_audio_latents`, and it takes latents already packed for the
+ same reason: the statistics are per packed row element, not per channel.
+ """
+ return (latents - latents_mean.to(latents.device, latents.dtype)) / latents_std.to(latents.device, latents.dtype)
+
+
def denormalize_audio_latents(
latents: torch.Tensor, latents_mean: torch.Tensor, latents_std: torch.Tensor
) -> torch.Tensor:
diff --git a/invokeai/backend/minimax_h3/reference_conditioning.py b/invokeai/backend/minimax_h3/reference_conditioning.py
index 806d8dcaee..c2724fb45a 100644
--- a/invokeai/backend/minimax_h3/reference_conditioning.py
+++ b/invokeai/backend/minimax_h3/reference_conditioning.py
@@ -29,7 +29,6 @@ import torch
from diffusers.models.autoencoders.vae import DiagonalGaussianDistribution
from PIL import Image, ImageOps
-from invokeai.backend.minimax_h3.audio_resample import resample_sinc
from invokeai.backend.minimax_h3.autoencoder_kl_minimax_h3 import AutoencoderKLMiniMaxH3
from invokeai.backend.minimax_h3.autoencoder_kl_minimax_h3_audio import AutoencoderKLMiniMaxH3Audio
from invokeai.backend.minimax_h3.keyframe_conditioning import vae_encode_autocast
@@ -46,6 +45,7 @@ from invokeai.backend.minimax_h3.packing import (
resolve_canvas_size,
)
from invokeai.backend.minimax_h3.sampling import MINIMAX_H3_PATCH_SIZE
+from invokeai.backend.util.audio_resample import resample_sinc
# The audio VAE's sample rate (its config's `sampling_rate`; 800-sample hop -> 40 latents/s).
# `encode_reference_audio` asserts the loaded VAE agrees.
diff --git a/invokeai/backend/minimax_h3/audio_resample.py b/invokeai/backend/util/audio_resample.py
similarity index 92%
rename from invokeai/backend/minimax_h3/audio_resample.py
rename to invokeai/backend/util/audio_resample.py
index cafc0f3724..49a100110c 100644
--- a/invokeai/backend/minimax_h3/audio_resample.py
+++ b/invokeai/backend/util/audio_resample.py
@@ -1,4 +1,8 @@
-"""Windowed-sinc audio resampling for MiniMax H3 reference soundtracks.
+"""Windowed-sinc audio resampling for model soundtrack conditioning.
+
+Two families feed a soundtrack to a model at a rate it was trained on -- MiniMax H3's reference
+clips and LTX-2's audio conditioning -- and both need the same resampler, so it lives here rather
+than under either one.
MiniMax H3's reference implementation resamples soundtracks with
``torchaudio.transforms.Resample`` at its defaults (``lowpass_filter_width=6``,
diff --git a/invokeai/backend/util/vae_working_memory.py b/invokeai/backend/util/vae_working_memory.py
index 8ae953733b..ea1b9f1131 100644
--- a/invokeai/backend/util/vae_working_memory.py
+++ b/invokeai/backend/util/vae_working_memory.py
@@ -29,6 +29,7 @@ _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
+_LTX2_VAE_TILED_ENCODE_BYTES_PER_TILE_ELEMENT = 360
_WAN_VAE_SINGLE_FRAME_DECODE_SCALING_CONSTANT = 2900
_WAN_VAE_VIDEO_DECODE_SCALING_CONSTANT_A14B = 6500
@@ -449,6 +450,7 @@ def estimate_vae_working_memory_ltx2(
pixel_frames: int,
tile_size: int | None = None,
temporal_tile: int | None = None,
+ tiled: bool = False,
) -> int:
"""Estimate the working memory to encode or decode with the LTX-2 video VAE.
@@ -473,8 +475,25 @@ def estimate_vae_working_memory_ltx2(
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.
+ otherwise eat the margin the measured rows show.
+
+ Encode has the same two shapes with one clip copy. ``tiled=False`` is the first-frame encode,
+ where the whole "tile" is the one frame and the fixed per-tile cost dominates: 1248x704x1
+ measured 1.26 GiB against 1.65 GiB predicted. ``tiled=True`` is a whole conditioning clip,
+ which cannot run any other way -- untiled, the activation grows with the clip and a
+ 1248x704x121 encode needs about 65 GiB. Tiled at 512/16, measured the same way:
+
+ | canvas | frames | activation | of which the tile term |
+ |------------|--------|------------|------------------------|
+ | 768x512 | 33 | 2.82 GiB | 2.75 GiB |
+ | 768x512 | 121 | 2.87 GiB | 2.60 GiB |
+ | 1248x704 | 121 | 3.20 GiB | 2.61 GiB |
+ | 1248x704 | 241 | 3.78 GiB | 2.60 GiB |
+ | 1920x1088 | 121 | 4.02 GiB | 2.61 GiB |
+
+ The tile term is flat across a 16x range of clip volume, as it should be, and works out at
+ 333-352 bytes per tile element; the constant rounds up from there. Reading the encode constant
+ for a tiled run would over-reserve it twofold, which is cache the rest of the graph loses.
"""
element_size = next(vae.parameters()).element_size()
spatial_ratio = int(getattr(vae, "spatial_compression_ratio", 32))
@@ -490,6 +509,14 @@ def estimate_vae_working_memory_ltx2(
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
+ elif tiled:
+ 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))
+ tile_frames = max(temporal_ratio, temporal_tile or int(getattr(vae, "tile_sample_min_num_frames", 16)))
+ bytes_per_element = _LTX2_VAE_TILED_ENCODE_BYTES_PER_TILE_ELEMENT
+ clip_copies = 1
else:
tile_height, tile_width, tile_frames = pixel_height, pixel_width, pixel_frames
bytes_per_element = _LTX2_VAE_ENCODE_BYTES_PER_TILE_ELEMENT
diff --git a/invokeai/frontend/web/openapi.json b/invokeai/frontend/web/openapi.json
index 2a7d1aca97..ad94a4f378 100644
--- a/invokeai/frontend/web/openapi.json
+++ b/invokeai/frontend/web/openapi.json
@@ -25896,6 +25896,8 @@
"minimax_h3_i2v",
"ltx2_t2v",
"ltx2_i2v",
+ "ltx2_a2v",
+ "ltx2_v2a",
"minimax_h3_lf2v",
"minimax_h3_flf2v",
"minimax_h3_extend_video",
@@ -39936,6 +39938,9 @@
{
"$ref": "#/components/schemas/Krea2TextEncoderInvocation"
},
+ {
+ "$ref": "#/components/schemas/LTX2AudioConditioningInvocation"
+ },
{
"$ref": "#/components/schemas/LTX2DenoiseInvocation"
},
@@ -39957,6 +39962,9 @@
{
"$ref": "#/components/schemas/LTX2TextEncoderInvocation"
},
+ {
+ "$ref": "#/components/schemas/LTX2VideoConditioningInvocation"
+ },
{
"$ref": "#/components/schemas/LaMaInfillInvocation"
},
@@ -40683,6 +40691,9 @@
{
"$ref": "#/components/schemas/Krea2ModelLoaderOutput"
},
+ {
+ "$ref": "#/components/schemas/LTX2AudioConditioningOutput"
+ },
{
"$ref": "#/components/schemas/LTX2DenoiseOutput"
},
@@ -40701,6 +40712,9 @@
{
"$ref": "#/components/schemas/LTX2TextEncoderOutput"
},
+ {
+ "$ref": "#/components/schemas/LTX2VideoConditioningOutput"
+ },
{
"$ref": "#/components/schemas/LatentsCollectionOutput"
},
@@ -49234,6 +49248,9 @@
{
"$ref": "#/components/schemas/Krea2TextEncoderInvocation"
},
+ {
+ "$ref": "#/components/schemas/LTX2AudioConditioningInvocation"
+ },
{
"$ref": "#/components/schemas/LTX2DenoiseInvocation"
},
@@ -49255,6 +49272,9 @@
{
"$ref": "#/components/schemas/LTX2TextEncoderInvocation"
},
+ {
+ "$ref": "#/components/schemas/LTX2VideoConditioningInvocation"
+ },
{
"$ref": "#/components/schemas/LaMaInfillInvocation"
},
@@ -49938,6 +49958,9 @@
{
"$ref": "#/components/schemas/Krea2ModelLoaderOutput"
},
+ {
+ "$ref": "#/components/schemas/LTX2AudioConditioningOutput"
+ },
{
"$ref": "#/components/schemas/LTX2DenoiseOutput"
},
@@ -49956,6 +49979,9 @@
{
"$ref": "#/components/schemas/LTX2TextEncoderOutput"
},
+ {
+ "$ref": "#/components/schemas/LTX2VideoConditioningOutput"
+ },
{
"$ref": "#/components/schemas/LatentsCollectionOutput"
},
@@ -50738,6 +50764,9 @@
{
"$ref": "#/components/schemas/Krea2TextEncoderInvocation"
},
+ {
+ "$ref": "#/components/schemas/LTX2AudioConditioningInvocation"
+ },
{
"$ref": "#/components/schemas/LTX2DenoiseInvocation"
},
@@ -50759,6 +50788,9 @@
{
"$ref": "#/components/schemas/LTX2TextEncoderInvocation"
},
+ {
+ "$ref": "#/components/schemas/LTX2VideoConditioningInvocation"
+ },
{
"$ref": "#/components/schemas/LaMaInfillInvocation"
},
@@ -51833,6 +51865,9 @@
"lscale": {
"$ref": "#/components/schemas/LatentsOutput"
},
+ "ltx2_audio_conditioning": {
+ "$ref": "#/components/schemas/LTX2AudioConditioningOutput"
+ },
"ltx2_denoise": {
"$ref": "#/components/schemas/LTX2DenoiseOutput"
},
@@ -51854,6 +51889,9 @@
"ltx2_text_encoder": {
"$ref": "#/components/schemas/LTX2TextEncoderOutput"
},
+ "ltx2_video_conditioning": {
+ "$ref": "#/components/schemas/LTX2VideoConditioningOutput"
+ },
"main_model_loader": {
"$ref": "#/components/schemas/ModelLoaderOutput"
},
@@ -52480,6 +52518,7 @@
"lora_selector",
"lresize",
"lscale",
+ "ltx2_audio_conditioning",
"ltx2_denoise",
"ltx2_ideal_dimensions",
"ltx2_image_conditioning",
@@ -52487,6 +52526,7 @@
"ltx2_latents_to_video",
"ltx2_model_loader",
"ltx2_text_encoder",
+ "ltx2_video_conditioning",
"main_model_loader",
"mask_combine",
"mask_edge",
@@ -53209,6 +53249,9 @@
{
"$ref": "#/components/schemas/Krea2TextEncoderInvocation"
},
+ {
+ "$ref": "#/components/schemas/LTX2AudioConditioningInvocation"
+ },
{
"$ref": "#/components/schemas/LTX2DenoiseInvocation"
},
@@ -53230,6 +53273,9 @@
{
"$ref": "#/components/schemas/LTX2TextEncoderInvocation"
},
+ {
+ "$ref": "#/components/schemas/LTX2VideoConditioningInvocation"
+ },
{
"$ref": "#/components/schemas/LaMaInfillInvocation"
},
@@ -54370,6 +54416,9 @@
{
"$ref": "#/components/schemas/Krea2TextEncoderInvocation"
},
+ {
+ "$ref": "#/components/schemas/LTX2AudioConditioningInvocation"
+ },
{
"$ref": "#/components/schemas/LTX2DenoiseInvocation"
},
@@ -54391,6 +54440,9 @@
{
"$ref": "#/components/schemas/LTX2TextEncoderInvocation"
},
+ {
+ "$ref": "#/components/schemas/LTX2VideoConditioningInvocation"
+ },
{
"$ref": "#/components/schemas/LaMaInfillInvocation"
},
@@ -58049,6 +58101,183 @@
"title": "LLMTaskProgressEvent",
"type": "object"
},
+ "LTX2AudioConditioningField": {
+ "description": "A soundtrack held frozen while the picture is generated (audio-to-video).\n\nLTX-2 conditions both streams through one mask, so this is the audio-side mirror of\n:class:`LTX2VideoConditioningField`: the rows it names are held clean and the video is free.\nThe clip's own length decides the generation's, so the frame count it implies rides along and\nthe denoise node refuses a mismatch by name.",
+ "properties": {
+ "latents_name": {
+ "description": "Name of the saved packed [1, L, 128] audio latent tensor.",
+ "title": "Latents Name",
+ "type": "string"
+ },
+ "num_audio_latents": {
+ "description": "Rows in the saved tensor; 25 per second of source audio.",
+ "title": "Num Audio Latents",
+ "type": "integer"
+ },
+ "num_frames": {
+ "description": "Pixel frames the soundtrack covers, snapped down to 8n + 1.",
+ "title": "Num Frames",
+ "type": "integer"
+ },
+ "fps": {
+ "description": "Frame rate the frame count was derived at.",
+ "title": "Fps",
+ "type": "number"
+ },
+ "source_video_name": {
+ "description": "The clip the soundtrack was taken from, for muxing it back.",
+ "title": "Source Video Name",
+ "type": "string"
+ }
+ },
+ "required": ["latents_name", "num_audio_latents", "num_frames", "fps", "source_video_name"],
+ "title": "LTX2AudioConditioningField",
+ "type": "object"
+ },
+ "LTX2AudioConditioningInvocation": {
+ "category": "conditioning",
+ "class": "invocation",
+ "classification": "prototype",
+ "description": "Encodes a clip's soundtrack so LTX-2 can generate a picture for it.\n\nLTX-2 conditions picture and sound through one mask, so this is the mirror of first-frame image\nconditioning: the audio rows are held clean at every step and the video is sampled freely.\n\nThe soundtrack's own length decides the generation's. Audio is encoded at 25 latents per second\nand the resulting frame count is snapped *down* to the VAE's 8n + 1 grid, so a clip is never\nasked to cover more picture than it has sound for; the remainder is dropped.",
+ "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"
+ },
+ "video": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/VideoField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The clip whose soundtrack conditions the generation.",
+ "field_kind": "input",
+ "input": "any",
+ "orig_required": true
+ },
+ "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_required": true,
+ "title": "Audio VAE"
+ },
+ "vocoder": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LTX2VocoderField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The vocoder, whose checkpoint carries the log-mel filters the VAE encodes from.",
+ "field_kind": "input",
+ "input": "connection",
+ "orig_required": true,
+ "title": "Vocoder"
+ },
+ "fps": {
+ "default": 24.0,
+ "description": "Frame rate to convert the soundtrack's duration into a frame count.",
+ "field_kind": "input",
+ "input": "any",
+ "maximum": 120,
+ "minimum": 1,
+ "orig_default": 24.0,
+ "orig_required": false,
+ "title": "Fps",
+ "type": "number"
+ },
+ "type": {
+ "const": "ltx2_audio_conditioning",
+ "default": "ltx2_audio_conditioning",
+ "field_kind": "node_attribute",
+ "title": "type",
+ "type": "string"
+ }
+ },
+ "required": ["type", "id"],
+ "tags": ["ltx", "ltx2", "video", "audio", "conditioning"],
+ "title": "Audio Conditioning - LTX-2",
+ "type": "object",
+ "version": "1.0.0",
+ "output": {
+ "$ref": "#/components/schemas/LTX2AudioConditioningOutput"
+ }
+ },
+ "LTX2AudioConditioningOutput": {
+ "class": "output",
+ "description": "A soundtrack to generate a picture for, and the clip length it implies.",
+ "properties": {
+ "audio_conditioning": {
+ "$ref": "#/components/schemas/LTX2AudioConditioningField",
+ "description": "A soundtrack to generate a picture for (audio-to-video)",
+ "field_kind": "output",
+ "title": "Audio Conditioning",
+ "ui_hidden": false
+ },
+ "num_frames": {
+ "description": "Frames the soundtrack covers, snapped down to 8n + 1.",
+ "field_kind": "output",
+ "title": "Num Frames",
+ "type": "integer",
+ "ui_hidden": false
+ },
+ "fps": {
+ "description": "The frame rate that count was derived at.",
+ "field_kind": "output",
+ "title": "Fps",
+ "type": "number",
+ "ui_hidden": false
+ },
+ "type": {
+ "const": "ltx2_audio_conditioning_output",
+ "default": "ltx2_audio_conditioning_output",
+ "field_kind": "node_attribute",
+ "title": "type",
+ "type": "string"
+ }
+ },
+ "required": ["output_meta", "audio_conditioning", "num_frames", "fps", "type", "type"],
+ "title": "LTX2AudioConditioningOutput",
+ "type": "object"
+ },
"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": {
@@ -58157,6 +58386,40 @@
"orig_required": false,
"title": "Image Conditioning"
},
+ "audio_conditioning": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LTX2AudioConditioningField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "A soundtrack to generate a picture for (audio-to-video)",
+ "field_kind": "input",
+ "input": "connection",
+ "orig_default": null,
+ "orig_required": false,
+ "title": "Audio Conditioning"
+ },
+ "full_video_conditioning": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LTX2FullVideoConditioningField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "A clip to generate a soundtrack for (video-to-audio)",
+ "field_kind": "input",
+ "input": "connection",
+ "orig_default": null,
+ "orig_required": false,
+ "title": "Video Conditioning"
+ },
"width": {
"default": 1248,
"description": "Canvas width.",
@@ -58357,7 +58620,7 @@
"tags": ["ltx", "ltx2", "video", "audio", "denoise"],
"title": "Denoise - LTX-2",
"type": "object",
- "version": "1.1.0",
+ "version": "1.2.0",
"output": {
"$ref": "#/components/schemas/LTX2DenoiseOutput"
}
@@ -58411,6 +58674,39 @@
"title": "LTX2DenoiseOutput",
"type": "object"
},
+ "LTX2FullVideoConditioningField": {
+ "description": "A whole clip held frozen while its soundtrack is generated (video-to-audio).\n\nDistinct from :class:`LTX2VideoConditioningField`, which anchors a single frame: this one holds\n*every* video token, so the transformer's video stream is a given and only the audio is\nsampled. The canvas and length ride along for the same reason the first-frame field carries a\ncanvas -- a mismatch should be named, not discovered inside the transformer.",
+ "properties": {
+ "latents_name": {
+ "description": "Name of the saved [1, 128, T, H/32, W/32] latent tensor.",
+ "title": "Latents Name",
+ "type": "string"
+ },
+ "width": {
+ "description": "Pixel width the clip was encoded at.",
+ "title": "Width",
+ "type": "integer"
+ },
+ "height": {
+ "description": "Pixel height the clip was encoded at.",
+ "title": "Height",
+ "type": "integer"
+ },
+ "num_frames": {
+ "description": "Pixel frames the clip covers.",
+ "title": "Num Frames",
+ "type": "integer"
+ },
+ "fps": {
+ "description": "The clip's own frame rate, which the generation adopts.",
+ "title": "Fps",
+ "type": "number"
+ }
+ },
+ "required": ["latents_name", "width", "height", "num_frames", "fps"],
+ "title": "LTX2FullVideoConditioningField",
+ "type": "object"
+ },
"LTX2IdealDimensionsInvocation": {
"category": "video",
"class": "invocation",
@@ -58927,6 +59223,23 @@
"input": "connection",
"orig_required": true
},
+ "source_audio": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LTX2AudioConditioningField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The soundtrack this clip was generated for. When set, it is muxed in as it was supplied rather than the generated audio being decoded.",
+ "field_kind": "input",
+ "input": "connection",
+ "orig_default": null,
+ "orig_required": false,
+ "title": "Source Audio"
+ },
"audio_latents": {
"anyOf": [
{
@@ -59039,7 +59352,7 @@
"tags": ["latents", "video", "audio", "vae", "l2v", "ltx", "ltx2"],
"title": "Latents to Video - LTX-2",
"type": "object",
- "version": "1.0.0",
+ "version": "1.1.0",
"output": {
"$ref": "#/components/schemas/VideoOutput"
}
@@ -59462,6 +59775,187 @@
"title": "LTX2VideoConditioningField",
"type": "object"
},
+ "LTX2VideoConditioningInvocation": {
+ "category": "conditioning",
+ "class": "invocation",
+ "classification": "prototype",
+ "description": "Encodes a whole clip so LTX-2 can generate a soundtrack for it.\n\nThe mirror of audio conditioning: every video token is held clean at each step and only the\naudio is sampled. The clip decides the generation's geometry -- its canvas, its length and its\nframe rate -- because the picture is a given rather than something being made.\n\nFrames are fitted to the canvas by cover-crop, as first-frame conditioning does, and the count\nis snapped *down* to the VAE's 8n + 1 grid; trailing frames beyond the last group are dropped\nrather than padded, since padding would invent picture for the model to score sound against.\n\nWhat comes back is the model's reconstruction of the clip, not the clip: the picture is\ncover-cropped to the canvas, VAE round-tripped and re-encoded, because the decode node renders\nthe held latents like any others. That is the opposite of the choice audio conditioning makes\nfor the soundtrack, which is muxed back in as supplied -- the symmetric treatment here would be\nto remux the source video stream, and it is not done yet.\n\nThe encode is tiled, and not by preference: an untiled encode's activation grows with the whole\nclip rather than with one tile, so a 1248x704 clip of 121 frames would need about 65 GiB where\ntiled it needs 3.2, flat in the clip's length. Tiling costs blend seams -- measured at 16%\nrelative rms against an untiled encode of the same smooth footage -- which is why the tile\nsizes are inputs rather than constants: a clip that fits a larger tile can be given one.",
+ "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"
+ },
+ "video": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/VideoField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The clip to generate a soundtrack for.",
+ "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": 768,
+ "description": "Canvas width to encode at.",
+ "exclusiveMinimum": 0,
+ "field_kind": "input",
+ "input": "any",
+ "multipleOf": 32,
+ "orig_default": 768,
+ "orig_required": false,
+ "title": "Width",
+ "type": "integer"
+ },
+ "height": {
+ "default": 512,
+ "description": "Canvas height to encode at.",
+ "exclusiveMinimum": 0,
+ "field_kind": "input",
+ "input": "any",
+ "multipleOf": 32,
+ "orig_default": 512,
+ "orig_required": false,
+ "title": "Height",
+ "type": "integer"
+ },
+ "fps": {
+ "default": 24.0,
+ "description": "The clip's frame rate, which the audio adopts.",
+ "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 encode tile, in source 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 encode tile, in source 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_video_conditioning",
+ "default": "ltx2_video_conditioning",
+ "field_kind": "node_attribute",
+ "title": "type",
+ "type": "string"
+ }
+ },
+ "required": ["type", "id"],
+ "tags": ["ltx", "ltx2", "video", "audio", "conditioning"],
+ "title": "Video Conditioning - LTX-2",
+ "type": "object",
+ "version": "1.0.0",
+ "output": {
+ "$ref": "#/components/schemas/LTX2VideoConditioningOutput"
+ }
+ },
+ "LTX2VideoConditioningOutput": {
+ "class": "output",
+ "description": "A clip to generate a soundtrack for, and the geometry it pins.",
+ "properties": {
+ "video_conditioning": {
+ "$ref": "#/components/schemas/LTX2FullVideoConditioningField",
+ "description": "A clip to generate a soundtrack for (video-to-audio)",
+ "field_kind": "output",
+ "title": "Video Conditioning",
+ "ui_hidden": false
+ },
+ "width": {
+ "description": "Pixel width the clip was encoded at.",
+ "field_kind": "output",
+ "title": "Width",
+ "type": "integer",
+ "ui_hidden": false
+ },
+ "height": {
+ "description": "Pixel height the clip was encoded at.",
+ "field_kind": "output",
+ "title": "Height",
+ "type": "integer",
+ "ui_hidden": false
+ },
+ "num_frames": {
+ "description": "Frames encoded, snapped down to 8n + 1.",
+ "field_kind": "output",
+ "title": "Num Frames",
+ "type": "integer",
+ "ui_hidden": false
+ },
+ "type": {
+ "const": "ltx2_video_conditioning_output",
+ "default": "ltx2_video_conditioning_output",
+ "field_kind": "node_attribute",
+ "title": "type",
+ "type": "string"
+ }
+ },
+ "required": ["output_meta", "video_conditioning", "width", "height", "num_frames", "type", "type"],
+ "title": "LTX2VideoConditioningOutput",
+ "type": "object"
+ },
"LTX2VocoderField": {
"description": "Vocoder field for LTX-2: mel spectrogram to 48 kHz stereo waveform.",
"properties": {
diff --git a/invokeai/frontend/web/src/services/api/schema.ts b/invokeai/frontend/web/src/services/api/schema.ts
index 5db6eacf8b..908180fa27 100644
--- a/invokeai/frontend/web/src/services/api/schema.ts
+++ b/invokeai/frontend/web/src/services/api/schema.ts
@@ -9606,7 +9606,7 @@ export type components = {
* @description The generation mode that output this image
* @default null
*/
- generation_mode?: ("txt2img" | "img2img" | "inpaint" | "outpaint" | "sdxl_txt2img" | "sdxl_img2img" | "sdxl_inpaint" | "sdxl_outpaint" | "flux_txt2img" | "flux_img2img" | "flux_inpaint" | "flux_outpaint" | "flux2_txt2img" | "flux2_img2img" | "flux2_inpaint" | "flux2_outpaint" | "sd3_txt2img" | "sd3_img2img" | "sd3_inpaint" | "sd3_outpaint" | "cogview4_txt2img" | "cogview4_img2img" | "cogview4_inpaint" | "cogview4_outpaint" | "z_image_txt2img" | "z_image_img2img" | "z_image_inpaint" | "z_image_outpaint" | "ernie_image_txt2img" | "ideogram4_txt2img" | "qwen_image_txt2img" | "qwen_image_img2img" | "qwen_image_inpaint" | "qwen_image_outpaint" | "anima_txt2img" | "anima_img2img" | "anima_inpaint" | "anima_outpaint" | "krea2_txt2img" | "krea2_img2img" | "krea2_inpaint" | "krea2_outpaint" | "wan_txt2img" | "wan_img2img" | "wan_inpaint" | "wan_outpaint" | "wan_t2v" | "wan_i2v" | "wan_interpolate" | "wan_extend_video" | "minimax_h3_t2v" | "minimax_h3_i2v" | "ltx2_t2v" | "ltx2_i2v" | "minimax_h3_lf2v" | "minimax_h3_flf2v" | "minimax_h3_extend_video" | "minimax_h3_ref2v" | "minimax_h3_txt2img") | null;
+ generation_mode?: ("txt2img" | "img2img" | "inpaint" | "outpaint" | "sdxl_txt2img" | "sdxl_img2img" | "sdxl_inpaint" | "sdxl_outpaint" | "flux_txt2img" | "flux_img2img" | "flux_inpaint" | "flux_outpaint" | "flux2_txt2img" | "flux2_img2img" | "flux2_inpaint" | "flux2_outpaint" | "sd3_txt2img" | "sd3_img2img" | "sd3_inpaint" | "sd3_outpaint" | "cogview4_txt2img" | "cogview4_img2img" | "cogview4_inpaint" | "cogview4_outpaint" | "z_image_txt2img" | "z_image_img2img" | "z_image_inpaint" | "z_image_outpaint" | "ernie_image_txt2img" | "ideogram4_txt2img" | "qwen_image_txt2img" | "qwen_image_img2img" | "qwen_image_inpaint" | "qwen_image_outpaint" | "anima_txt2img" | "anima_img2img" | "anima_inpaint" | "anima_outpaint" | "krea2_txt2img" | "krea2_img2img" | "krea2_inpaint" | "krea2_outpaint" | "wan_txt2img" | "wan_img2img" | "wan_inpaint" | "wan_outpaint" | "wan_t2v" | "wan_i2v" | "wan_interpolate" | "wan_extend_video" | "minimax_h3_t2v" | "minimax_h3_i2v" | "ltx2_t2v" | "ltx2_i2v" | "ltx2_a2v" | "ltx2_v2a" | "minimax_h3_lf2v" | "minimax_h3_flf2v" | "minimax_h3_extend_video" | "minimax_h3_ref2v" | "minimax_h3_txt2img") | null;
/**
* Positive Prompt
* @description The positive prompt parameter
@@ -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"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentUpsampleInvocation"] | 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"];
+ [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"]["LTX2AudioConditioningInvocation"] | components["schemas"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentUpsampleInvocation"] | components["schemas"]["LTX2LatentsToVideoInvocation"] | components["schemas"]["LTX2ModelLoaderInvocation"] | components["schemas"]["LTX2TextEncoderInvocation"] | components["schemas"]["LTX2VideoConditioningInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["MiniMaxH3DenoiseInvocation"] | components["schemas"]["MiniMaxH3FrameConditioningInvocation"] | components["schemas"]["MiniMaxH3HybridOverlayInvocation"] | components["schemas"]["MiniMaxH3IdealDimensionsInvocation"] | components["schemas"]["MiniMaxH3ImageReferenceInvocation"] | components["schemas"]["MiniMaxH3LatentsToImageInvocation"] | components["schemas"]["MiniMaxH3LatentsToVideoInvocation"] | components["schemas"]["MiniMaxH3LoRACollectionLoader"] | components["schemas"]["MiniMaxH3LoRALoaderInvocation"] | components["schemas"]["MiniMaxH3ModelLoaderInvocation"] | components["schemas"]["MiniMaxH3ReferenceConditioningInvocation"] | components["schemas"]["MiniMaxH3TextEncoderInvocation"] | components["schemas"]["MiniMaxH3VideoReferenceInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["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"]["LTX2DenoiseOutput"] | components["schemas"]["LTX2IdealDimensionsOutput"] | components["schemas"]["LTX2ImageConditioningOutput"] | components["schemas"]["LTX2LatentUpsampleOutput"] | 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"];
+ [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"]["LTX2AudioConditioningOutput"] | components["schemas"]["LTX2DenoiseOutput"] | components["schemas"]["LTX2IdealDimensionsOutput"] | components["schemas"]["LTX2ImageConditioningOutput"] | components["schemas"]["LTX2LatentUpsampleOutput"] | components["schemas"]["LTX2ModelLoaderOutput"] | components["schemas"]["LTX2TextEncoderOutput"] | components["schemas"]["LTX2VideoConditioningOutput"] | 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"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentUpsampleInvocation"] | 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: 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"]["LTX2AudioConditioningInvocation"] | components["schemas"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentUpsampleInvocation"] | components["schemas"]["LTX2LatentsToVideoInvocation"] | components["schemas"]["LTX2ModelLoaderInvocation"] | components["schemas"]["LTX2TextEncoderInvocation"] | components["schemas"]["LTX2VideoConditioningInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["MiniMaxH3DenoiseInvocation"] | components["schemas"]["MiniMaxH3FrameConditioningInvocation"] | components["schemas"]["MiniMaxH3HybridOverlayInvocation"] | components["schemas"]["MiniMaxH3IdealDimensionsInvocation"] | components["schemas"]["MiniMaxH3ImageReferenceInvocation"] | components["schemas"]["MiniMaxH3LatentsToImageInvocation"] | components["schemas"]["MiniMaxH3LatentsToVideoInvocation"] | components["schemas"]["MiniMaxH3LoRACollectionLoader"] | components["schemas"]["MiniMaxH3LoRALoaderInvocation"] | components["schemas"]["MiniMaxH3ModelLoaderInvocation"] | components["schemas"]["MiniMaxH3ReferenceConditioningInvocation"] | components["schemas"]["MiniMaxH3TextEncoderInvocation"] | components["schemas"]["MiniMaxH3VideoReferenceInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["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"]["LTX2DenoiseOutput"] | components["schemas"]["LTX2IdealDimensionsOutput"] | components["schemas"]["LTX2ImageConditioningOutput"] | components["schemas"]["LTX2LatentUpsampleOutput"] | 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"];
+ 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"]["LTX2AudioConditioningOutput"] | components["schemas"]["LTX2DenoiseOutput"] | components["schemas"]["LTX2IdealDimensionsOutput"] | components["schemas"]["LTX2ImageConditioningOutput"] | components["schemas"]["LTX2LatentUpsampleOutput"] | components["schemas"]["LTX2ModelLoaderOutput"] | components["schemas"]["LTX2TextEncoderOutput"] | components["schemas"]["LTX2VideoConditioningOutput"] | 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"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentUpsampleInvocation"] | 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: 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"]["LTX2AudioConditioningInvocation"] | components["schemas"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentUpsampleInvocation"] | components["schemas"]["LTX2LatentsToVideoInvocation"] | components["schemas"]["LTX2ModelLoaderInvocation"] | components["schemas"]["LTX2TextEncoderInvocation"] | components["schemas"]["LTX2VideoConditioningInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["MiniMaxH3DenoiseInvocation"] | components["schemas"]["MiniMaxH3FrameConditioningInvocation"] | components["schemas"]["MiniMaxH3HybridOverlayInvocation"] | components["schemas"]["MiniMaxH3IdealDimensionsInvocation"] | components["schemas"]["MiniMaxH3ImageReferenceInvocation"] | components["schemas"]["MiniMaxH3LatentsToImageInvocation"] | components["schemas"]["MiniMaxH3LatentsToVideoInvocation"] | components["schemas"]["MiniMaxH3LoRACollectionLoader"] | components["schemas"]["MiniMaxH3LoRALoaderInvocation"] | components["schemas"]["MiniMaxH3ModelLoaderInvocation"] | components["schemas"]["MiniMaxH3ReferenceConditioningInvocation"] | components["schemas"]["MiniMaxH3TextEncoderInvocation"] | components["schemas"]["MiniMaxH3VideoReferenceInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["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,7 @@ export type components = {
lora_selector: components["schemas"]["LoRASelectorOutput"];
lresize: components["schemas"]["LatentsOutput"];
lscale: components["schemas"]["LatentsOutput"];
+ ltx2_audio_conditioning: components["schemas"]["LTX2AudioConditioningOutput"];
ltx2_denoise: components["schemas"]["LTX2DenoiseOutput"];
ltx2_ideal_dimensions: components["schemas"]["LTX2IdealDimensionsOutput"];
ltx2_image_conditioning: components["schemas"]["LTX2ImageConditioningOutput"];
@@ -20830,6 +20831,7 @@ export type components = {
ltx2_latents_to_video: components["schemas"]["VideoOutput"];
ltx2_model_loader: components["schemas"]["LTX2ModelLoaderOutput"];
ltx2_text_encoder: components["schemas"]["LTX2TextEncoderOutput"];
+ ltx2_video_conditioning: components["schemas"]["LTX2VideoConditioningOutput"];
main_model_loader: components["schemas"]["ModelLoaderOutput"];
mask_combine: components["schemas"]["ImageOutput"];
mask_edge: components["schemas"]["ImageOutput"];
@@ -21030,7 +21032,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"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentUpsampleInvocation"] | 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: 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"]["LTX2AudioConditioningInvocation"] | components["schemas"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentUpsampleInvocation"] | components["schemas"]["LTX2LatentsToVideoInvocation"] | components["schemas"]["LTX2ModelLoaderInvocation"] | components["schemas"]["LTX2TextEncoderInvocation"] | components["schemas"]["LTX2VideoConditioningInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["MiniMaxH3DenoiseInvocation"] | components["schemas"]["MiniMaxH3FrameConditioningInvocation"] | components["schemas"]["MiniMaxH3HybridOverlayInvocation"] | components["schemas"]["MiniMaxH3IdealDimensionsInvocation"] | components["schemas"]["MiniMaxH3ImageReferenceInvocation"] | components["schemas"]["MiniMaxH3LatentsToImageInvocation"] | components["schemas"]["MiniMaxH3LatentsToVideoInvocation"] | components["schemas"]["MiniMaxH3LoRACollectionLoader"] | components["schemas"]["MiniMaxH3LoRALoaderInvocation"] | components["schemas"]["MiniMaxH3ModelLoaderInvocation"] | components["schemas"]["MiniMaxH3ReferenceConditioningInvocation"] | components["schemas"]["MiniMaxH3TextEncoderInvocation"] | components["schemas"]["MiniMaxH3VideoReferenceInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["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
@@ -21117,7 +21119,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"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentUpsampleInvocation"] | 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: 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"]["LTX2AudioConditioningInvocation"] | components["schemas"]["LTX2DenoiseInvocation"] | components["schemas"]["LTX2IdealDimensionsInvocation"] | components["schemas"]["LTX2ImageConditioningInvocation"] | components["schemas"]["LTX2LatentUpsampleInvocation"] | components["schemas"]["LTX2LatentsToVideoInvocation"] | components["schemas"]["LTX2ModelLoaderInvocation"] | components["schemas"]["LTX2TextEncoderInvocation"] | components["schemas"]["LTX2VideoConditioningInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["MiniMaxH3DenoiseInvocation"] | components["schemas"]["MiniMaxH3FrameConditioningInvocation"] | components["schemas"]["MiniMaxH3HybridOverlayInvocation"] | components["schemas"]["MiniMaxH3IdealDimensionsInvocation"] | components["schemas"]["MiniMaxH3ImageReferenceInvocation"] | components["schemas"]["MiniMaxH3LatentsToImageInvocation"] | components["schemas"]["MiniMaxH3LatentsToVideoInvocation"] | components["schemas"]["MiniMaxH3LoRACollectionLoader"] | components["schemas"]["MiniMaxH3LoRALoaderInvocation"] | components["schemas"]["MiniMaxH3ModelLoaderInvocation"] | components["schemas"]["MiniMaxH3ReferenceConditioningInvocation"] | components["schemas"]["MiniMaxH3TextEncoderInvocation"] | components["schemas"]["MiniMaxH3VideoReferenceInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["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
@@ -23001,6 +23003,128 @@ export type components = {
*/
total_tokens: number | null;
};
+ /**
+ * LTX2AudioConditioningField
+ * @description A soundtrack held frozen while the picture is generated (audio-to-video).
+ *
+ * LTX-2 conditions both streams through one mask, so this is the audio-side mirror of
+ * :class:`LTX2VideoConditioningField`: the rows it names are held clean and the video is free.
+ * The clip's own length decides the generation's, so the frame count it implies rides along and
+ * the denoise node refuses a mismatch by name.
+ */
+ LTX2AudioConditioningField: {
+ /**
+ * Latents Name
+ * @description Name of the saved packed [1, L, 128] audio latent tensor.
+ */
+ latents_name: string;
+ /**
+ * Num Audio Latents
+ * @description Rows in the saved tensor; 25 per second of source audio.
+ */
+ num_audio_latents: number;
+ /**
+ * Num Frames
+ * @description Pixel frames the soundtrack covers, snapped down to 8n + 1.
+ */
+ num_frames: number;
+ /**
+ * Fps
+ * @description Frame rate the frame count was derived at.
+ */
+ fps: number;
+ /**
+ * Source Video Name
+ * @description The clip the soundtrack was taken from, for muxing it back.
+ */
+ source_video_name: string;
+ };
+ /**
+ * Audio Conditioning - LTX-2
+ * @description Encodes a clip's soundtrack so LTX-2 can generate a picture for it.
+ *
+ * LTX-2 conditions picture and sound through one mask, so this is the mirror of first-frame image
+ * conditioning: the audio rows are held clean at every step and the video is sampled freely.
+ *
+ * The soundtrack's own length decides the generation's. Audio is encoded at 25 latents per second
+ * and the resulting frame count is snapped *down* to the VAE's 8n + 1 grid, so a clip is never
+ * asked to cover more picture than it has sound for; the remainder is dropped.
+ */
+ LTX2AudioConditioningInvocation: {
+ /**
+ * 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 clip whose soundtrack conditions the generation.
+ * @default null
+ */
+ video?: components["schemas"]["VideoField"] | null;
+ /**
+ * Audio VAE
+ * @description Audio VAE (mel spectrogram) for LTX-2
+ * @default null
+ */
+ audio_vae?: components["schemas"]["VAEField"] | null;
+ /**
+ * Vocoder
+ * @description The vocoder, whose checkpoint carries the log-mel filters the VAE encodes from.
+ * @default null
+ */
+ vocoder?: components["schemas"]["LTX2VocoderField"] | null;
+ /**
+ * Fps
+ * @description Frame rate to convert the soundtrack's duration into a frame count.
+ * @default 24
+ */
+ fps?: number;
+ /**
+ * type
+ * @default ltx2_audio_conditioning
+ * @constant
+ */
+ type: "ltx2_audio_conditioning";
+ };
+ /**
+ * LTX2AudioConditioningOutput
+ * @description A soundtrack to generate a picture for, and the clip length it implies.
+ */
+ LTX2AudioConditioningOutput: {
+ /**
+ * Audio Conditioning
+ * @description A soundtrack to generate a picture for (audio-to-video)
+ */
+ audio_conditioning: components["schemas"]["LTX2AudioConditioningField"];
+ /**
+ * Num Frames
+ * @description Frames the soundtrack covers, snapped down to 8n + 1.
+ */
+ num_frames: number;
+ /**
+ * Fps
+ * @description The frame rate that count was derived at.
+ */
+ fps: number;
+ /**
+ * type
+ * @default ltx2_audio_conditioning_output
+ * @constant
+ */
+ type: "ltx2_audio_conditioning_output";
+ };
/**
* LTX2ConditioningField
* @description An LTX-2 conditioning primitive value.
@@ -23066,6 +23190,18 @@ export type components = {
* @default null
*/
video_conditioning?: components["schemas"]["LTX2VideoConditioningField"] | null;
+ /**
+ * Audio Conditioning
+ * @description A soundtrack to generate a picture for (audio-to-video)
+ * @default null
+ */
+ audio_conditioning?: components["schemas"]["LTX2AudioConditioningField"] | null;
+ /**
+ * Video Conditioning
+ * @description A clip to generate a soundtrack for (video-to-audio)
+ * @default null
+ */
+ full_video_conditioning?: components["schemas"]["LTX2FullVideoConditioningField"] | null;
/**
* Width
* @description Canvas width.
@@ -23195,6 +23331,42 @@ export type components = {
*/
type: "ltx2_denoise_output";
};
+ /**
+ * LTX2FullVideoConditioningField
+ * @description A whole clip held frozen while its soundtrack is generated (video-to-audio).
+ *
+ * Distinct from :class:`LTX2VideoConditioningField`, which anchors a single frame: this one holds
+ * *every* video token, so the transformer's video stream is a given and only the audio is
+ * sampled. The canvas and length ride along for the same reason the first-frame field carries a
+ * canvas -- a mismatch should be named, not discovered inside the transformer.
+ */
+ LTX2FullVideoConditioningField: {
+ /**
+ * Latents Name
+ * @description Name of the saved [1, 128, T, H/32, W/32] latent tensor.
+ */
+ latents_name: string;
+ /**
+ * Width
+ * @description Pixel width the clip was encoded at.
+ */
+ width: number;
+ /**
+ * Height
+ * @description Pixel height the clip was encoded at.
+ */
+ height: number;
+ /**
+ * Num Frames
+ * @description Pixel frames the clip covers.
+ */
+ num_frames: number;
+ /**
+ * Fps
+ * @description The clip's own frame rate, which the generation adopts.
+ */
+ fps: number;
+ };
/**
* LTX-2 Ideal Dimensions
* @description Ideal LTX-2 dimensions for a source image's aspect ratio.
@@ -23508,6 +23680,12 @@ export type components = {
* @default null
*/
video_latents?: components["schemas"]["LatentsField"] | null;
+ /**
+ * Source Audio
+ * @description The soundtrack this clip was generated for. When set, it is muxed in as it was supplied rather than the generated audio being decoded.
+ * @default null
+ */
+ source_audio?: components["schemas"]["LTX2AudioConditioningField"] | null;
/**
* @description Packed audio latents from the denoise node. Omit for a silent video.
* @default null
@@ -23820,6 +23998,128 @@ export type components = {
*/
strength?: number;
};
+ /**
+ * Video Conditioning - LTX-2
+ * @description Encodes a whole clip so LTX-2 can generate a soundtrack for it.
+ *
+ * The mirror of audio conditioning: every video token is held clean at each step and only the
+ * audio is sampled. The clip decides the generation's geometry -- its canvas, its length and its
+ * frame rate -- because the picture is a given rather than something being made.
+ *
+ * Frames are fitted to the canvas by cover-crop, as first-frame conditioning does, and the count
+ * is snapped *down* to the VAE's 8n + 1 grid; trailing frames beyond the last group are dropped
+ * rather than padded, since padding would invent picture for the model to score sound against.
+ *
+ * What comes back is the model's reconstruction of the clip, not the clip: the picture is
+ * cover-cropped to the canvas, VAE round-tripped and re-encoded, because the decode node renders
+ * the held latents like any others. That is the opposite of the choice audio conditioning makes
+ * for the soundtrack, which is muxed back in as supplied -- the symmetric treatment here would be
+ * to remux the source video stream, and it is not done yet.
+ *
+ * The encode is tiled, and not by preference: an untiled encode's activation grows with the whole
+ * clip rather than with one tile, so a 1248x704 clip of 121 frames would need about 65 GiB where
+ * tiled it needs 3.2, flat in the clip's length. Tiling costs blend seams -- measured at 16%
+ * relative rms against an untiled encode of the same smooth footage -- which is why the tile
+ * sizes are inputs rather than constants: a clip that fits a larger tile can be given one.
+ */
+ LTX2VideoConditioningInvocation: {
+ /**
+ * 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 clip to generate a soundtrack for.
+ * @default null
+ */
+ video?: components["schemas"]["VideoField"] | null;
+ /**
+ * Video VAE
+ * @description VAE
+ * @default null
+ */
+ vae?: components["schemas"]["VAEField"] | null;
+ /**
+ * Width
+ * @description Canvas width to encode at.
+ * @default 768
+ */
+ width?: number;
+ /**
+ * Height
+ * @description Canvas height to encode at.
+ * @default 512
+ */
+ height?: number;
+ /**
+ * Fps
+ * @description The clip's frame rate, which the audio adopts.
+ * @default 24
+ */
+ fps?: number;
+ /**
+ * Tile Size
+ * @description Spatial encode tile, in source pixels. Smaller tiles need less VRAM and take longer.
+ * @default 512
+ */
+ tile_size?: number;
+ /**
+ * Temporal Tile
+ * @description Temporal encode tile, in source frames. Smaller tiles need less VRAM and take longer.
+ * @default 16
+ */
+ temporal_tile?: number;
+ /**
+ * type
+ * @default ltx2_video_conditioning
+ * @constant
+ */
+ type: "ltx2_video_conditioning";
+ };
+ /**
+ * LTX2VideoConditioningOutput
+ * @description A clip to generate a soundtrack for, and the geometry it pins.
+ */
+ LTX2VideoConditioningOutput: {
+ /**
+ * Video Conditioning
+ * @description A clip to generate a soundtrack for (video-to-audio)
+ */
+ video_conditioning: components["schemas"]["LTX2FullVideoConditioningField"];
+ /**
+ * Width
+ * @description Pixel width the clip was encoded at.
+ */
+ width: number;
+ /**
+ * Height
+ * @description Pixel height the clip was encoded at.
+ */
+ height: number;
+ /**
+ * Num Frames
+ * @description Frames encoded, snapped down to 8n + 1.
+ */
+ num_frames: number;
+ /**
+ * type
+ * @default ltx2_video_conditioning_output
+ * @constant
+ */
+ type: "ltx2_video_conditioning_output";
+ };
/**
* LTX2VocoderField
* @description Vocoder field for LTX-2: mel spectrogram to 48 kHz stereo waveform.
diff --git a/invokeai/frontend/webv2/public/locales/en.json b/invokeai/frontend/webv2/public/locales/en.json
index cd1c4c5802..efc38e520f 100644
--- a/invokeai/frontend/webv2/public/locales/en.json
+++ b/invokeai/frontend/webv2/public/locales/en.json
@@ -3865,7 +3865,8 @@
"aspect-ratio": "from the aspect-ratio preset",
"first-frame": "from the first frame",
"last-frame": "from the last frame",
- "source-video": "from the initial video"
+ "source-video": "from the initial video",
+ "conditioning-clip": "from the conditioning clip"
},
"firstFrame": "First Frame",
"firstFrameBlocked": "Clear the initial video to start from a frame instead.",
@@ -3948,6 +3949,20 @@
"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.",
+ "staleConditioningClip": "A conditioning clip is set, but this model cannot generate from one.",
+ "conditioningClip": "Conditioning Clip",
+ "conditioningClipHelp": "Drop a clip to generate the other half of it: a picture for its soundtrack, or a soundtrack for its picture.",
+ "conditioningClipBlocked": "Clear the First Frame, Last Frame, Initial Video and References to use a conditioning clip.",
+ "twoStageConditioningBlocked": "A conditioning clip cannot run a two-stage resolution. Pick a single-stage one.",
+ "conditioningRole": "Use from this clip",
+ "conditioningRoleAudio": "Its soundtrack \u2014 generate the picture",
+ "conditioningRoleVideo": "Its picture \u2014 generate the soundtrack",
+ "conditioningRoleVideoHelp": "The clip is re-encoded at the generation's canvas, so the picture comes back cropped and recompressed.",
+ "conditioningDerivedAudio": "{{frames}} frames at {{fps}} FPS, from the soundtrack's length.",
+ "conditioningDerivedVideo": "{{frames}} frames at {{fps}} FPS, from the clip itself.",
+ "dropConditioningClip": "Drop a clip to condition on",
+ "framesFromClip": "The conditioning clip decides the length.",
+ "fpsFromClip": "The generation runs at the conditioning clip's frame rate.",
"uploadVideoReference": "Upload video or audio",
"advancedGuidance": "Advanced guidance",
"audioCfg": "Audio CFG",
diff --git a/invokeai/frontend/webv2/src/features/video/core/__snapshots__/videoGraphNodeTypes.json b/invokeai/frontend/webv2/src/features/video/core/__snapshots__/videoGraphNodeTypes.json
index 8b2c987bef..d356bd87ee 100644
--- a/invokeai/frontend/webv2/src/features/video/core/__snapshots__/videoGraphNodeTypes.json
+++ b/invokeai/frontend/webv2/src/features/video/core/__snapshots__/videoGraphNodeTypes.json
@@ -3,18 +3,22 @@
"byBase": {
"ltx-2": {
"modes": [
+ "audio-to-video",
"first-frame",
- "txt2vid"
+ "txt2vid",
+ "video-to-audio"
],
"nodeTypes": [
"core_metadata",
"integer",
+ "ltx2_audio_conditioning",
"ltx2_denoise",
"ltx2_image_conditioning",
"ltx2_latent_upsample",
"ltx2_latents_to_video",
"ltx2_model_loader",
"ltx2_text_encoder",
+ "ltx2_video_conditioning",
"string"
]
},
@@ -105,8 +109,10 @@
24
],
"generation_mode": [
+ "ltx2_a2v",
"ltx2_i2v",
"ltx2_t2v",
+ "ltx2_v2a",
"minimax_h3_extend_video",
"minimax_h3_flf2v",
"minimax_h3_i2v",
@@ -141,6 +147,11 @@
896
],
"ltx2_component_source": [],
+ "ltx2_conditioning_role": [
+ "audio",
+ "video"
+ ],
+ "ltx2_conditioning_video": [],
"ltx2_modality_scale": [
3
],
@@ -158,6 +169,7 @@
"num_frames": [
121,
124,
+ 41,
81
],
"source_video": [],
@@ -254,11 +266,36 @@
"value"
]
},
+ "ltx2_audio_conditioning": {
+ "inputs": [
+ "audio_vae",
+ "vocoder"
+ ],
+ "literalInputs": {
+ "fps": [
+ 24
+ ],
+ "is_intermediate": [
+ true
+ ],
+ "use_cache": [
+ true
+ ],
+ "video": []
+ },
+ "outputs": [
+ "audio_conditioning",
+ "num_frames"
+ ]
+ },
"ltx2_denoise": {
"inputs": [
+ "audio_conditioning",
"audio_latents",
+ "full_video_conditioning",
"latents",
"negative_conditioning",
+ "num_frames",
"positive_conditioning",
"seed",
"transformer",
@@ -291,7 +328,8 @@
3
],
"num_frames": [
- 121
+ 121,
+ 41
],
"schedule": [
"auto"
@@ -374,6 +412,7 @@
"audio_latents",
"audio_vae",
"metadata",
+ "source_audio",
"vae",
"video_latents",
"vocoder"
@@ -436,6 +475,33 @@
"negative_conditioning"
]
},
+ "ltx2_video_conditioning": {
+ "inputs": [
+ "vae"
+ ],
+ "literalInputs": {
+ "fps": [
+ 24
+ ],
+ "height": [
+ 704
+ ],
+ "is_intermediate": [
+ true
+ ],
+ "use_cache": [
+ true
+ ],
+ "video": [],
+ "width": [
+ 1248
+ ]
+ },
+ "outputs": [
+ "num_frames",
+ "video_conditioning"
+ ]
+ },
"minimax_h3_denoise": {
"inputs": [
"frame_conditioning",
diff --git a/invokeai/frontend/webv2/src/features/video/core/dimensions.ts b/invokeai/frontend/webv2/src/features/video/core/dimensions.ts
index 8314923c8a..d0d645d496 100644
--- a/invokeai/frontend/webv2/src/features/video/core/dimensions.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/dimensions.ts
@@ -2,6 +2,7 @@ import type {
Ltx2TargetResolution,
MiniMaxH3TargetResolution,
VideoAspectRatioId,
+ VideoConditioningClip,
VideoReferenceImageDetail,
WanTargetResolution,
} from './types';
@@ -301,6 +302,35 @@ export const LTX2_NUM_FRAMES_SLIDER_MAX = 241;
export const LTX2_NUM_FRAMES_STEP = 8;
export const LTX2_NUM_FRAMES_DEFAULT = 121;
+/**
+ * A frame count snapped *down* onto LTX-2's 8n + 1 grid. Mirrors `snap_num_frames_down` in
+ * `invokeai/backend/ltx2/packing.py`: a clip supplies whatever it supplies, and the trailing
+ * frames past the last whole group are dropped rather than padded -- padding would invent
+ * picture, or silence, for the model to hold clean.
+ */
+export const snapLtx2FramesDown = (numFrames: number): number =>
+ Math.max(0, Math.floor((Math.floor(numFrames) - 1) / LTX2_NUM_FRAMES_STEP)) * LTX2_NUM_FRAMES_STEP + 1;
+
+/**
+ * The frame count a conditioning clip will produce, as the panel can predict it. The graph wires
+ * the conditioning node's own count into the denoise rather than trusting this, because the two
+ * can differ: an audio track need not be exactly as long as the picture it came with, and the
+ * gallery's frame count is itself duration x fps rounded.
+ *
+ * With the clip in the `audio` role the picture is generated at the panel's own frame rate, so
+ * `fps` decides how many frames the soundtrack covers. In the `video` role the clip's own frames
+ * are the generation, and `fps` is ignored.
+ */
+export const ltx2FramesForClip = (conditioning: VideoConditioningClip, fps: number): number => {
+ if (conditioning.role === 'video') {
+ return snapLtx2FramesDown(conditioning.clip.numFrames);
+ }
+
+ const seconds = conditioning.clip.fps > 0 ? conditioning.clip.numFrames / conditioning.clip.fps : 0;
+
+ return snapLtx2FramesDown(Math.trunc(seconds * fps));
+};
+
export const LTX2_FPS_MIN = 1;
export const LTX2_FPS_MAX = 60;
export const LTX2_FPS_DEFAULT = 24;
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 a555583f8c..3e7dcb5090 100644
--- a/invokeai/frontend/webv2/src/features/video/core/graph.test.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/graph.test.ts
@@ -757,6 +757,9 @@ const LTX2_COMPONENTS: MainModelConfig = {
};
const LTX2_ENCODER = { base: 'ltx-2', key: 'gemma4', name: 'LTX-2.5 Text Encoder', type: 'gemma4_encoder' as const };
+/** A four-second 24 fps clip: 96 frames, which snaps DOWN to 89 on the VAE's 8n + 1 grid. */
+const LTX2_CLIP = { fps: 24, height: 704, numFrames: 96, video_name: 'clip.mp4', width: 1248 };
+
const ltx2SettingsFor = (model: MainModelConfig, overrides: Partial<VideoSettings> = {}): VideoSettings =>
settingsFor(model, {
componentSourceModel: model.format === 'diffusers' ? null : LTX2_COMPONENTS,
@@ -922,6 +925,74 @@ describe('compileVideoGraph — LTX-2', () => {
expect(single.nodes.core_metadata).not.toHaveProperty('ltx2_two_stage');
});
+ it("conditions on a clip's soundtrack and takes the length from the encoder, not the panel", () => {
+ const model = ltx2Model('ltx2_dev');
+ const { backendGraph } = compileVideoGraph(
+ ltx2SettingsFor(model, { conditioningClip: { clip: LTX2_CLIP, fpsKnown: true, role: 'audio' }, numFrames: 121 }),
+ model
+ );
+ const conditioning = nodeOfType(backendGraph, 'ltx2_audio_conditioning');
+ const output = nodeOfType(backendGraph, 'ltx2_latents_to_video');
+
+ expect(conditioning.video).toEqual({ video_name: LTX2_CLIP.video_name });
+ expect(hasEdge(backendGraph, 'model_loader', 'audio_vae', conditioning.id, 'audio_vae')).toBe(true);
+ expect(hasEdge(backendGraph, 'model_loader', 'vocoder', conditioning.id, 'vocoder')).toBe(true);
+ expect(hasEdge(backendGraph, conditioning.id, 'audio_conditioning', 'denoise_latents', 'audio_conditioning')).toBe(
+ true
+ );
+ // The soundtrack's own length is authoritative: the panel's 121 gives way to the clip's 89,
+ // and the encoder's own count is wired in over even that.
+ expect(hasEdge(backendGraph, conditioning.id, 'num_frames', 'denoise_latents', 'num_frames')).toBe(true);
+ expect(backendGraph.nodes.denoise_latents).toMatchObject({ num_frames: 89 });
+ // The user's recording is muxed back in rather than a vocoder's copy of its own latents.
+ expect(hasEdge(backendGraph, conditioning.id, 'audio_conditioning', output.id, 'source_audio')).toBe(true);
+ });
+
+ it("conditions on a clip's picture at the canvas its own ratio resolves to", () => {
+ const model = ltx2Model('ltx2_dev');
+ const { backendGraph } = compileVideoGraph(
+ // A 4:3 clip against a 16:9 preset: the clip wins, so the conditioning encode and the
+ // denoise have to agree on the canvas or `_load_image_latents`' geometry check fires.
+ ltx2SettingsFor(model, {
+ aspectRatioId: '16:9',
+ conditioningClip: { clip: { ...LTX2_CLIP, height: 480, width: 640 }, fpsKnown: true, role: 'video' },
+ }),
+ model
+ );
+ const conditioning = nodeOfType(backendGraph, 'ltx2_video_conditioning');
+ const denoise = nodeOfType(backendGraph, 'ltx2_denoise');
+
+ // Both sides come from the same expression, so equality alone would still hold if the canvas
+ // stopped following the clip -- they would simply both be 16:9. Pin the ratio itself.
+ expect(Number(denoise.width) / Number(denoise.height)).toBeCloseTo(4 / 3, 1);
+ 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_latents', 'full_video_conditioning')
+ ).toBe(true);
+ expect(hasEdge(backendGraph, conditioning.id, 'num_frames', 'denoise_latents', 'num_frames')).toBe(true);
+ // The picture is the given one, so the run adopts the clip's rate, not the panel's.
+ expect(denoise.fps).toBe(LTX2_CLIP.fps);
+ // Its own soundtrack is the thing being generated, so nothing is muxed back in.
+ expect(nodeOfType(backendGraph, 'ltx2_latents_to_video').source_audio).toBeUndefined();
+ });
+
+ it('records the conditioning clip and the frames that ran, for recall', () => {
+ const model = ltx2Model('ltx2_dev');
+ const { backendGraph } = compileVideoGraph(
+ ltx2SettingsFor(model, { conditioningClip: { clip: LTX2_CLIP, fpsKnown: true, role: 'audio' }, numFrames: 121 }),
+ model
+ );
+
+ expect(backendGraph.nodes.core_metadata).toMatchObject({
+ generation_mode: 'ltx2_a2v',
+ ltx2_conditioning_role: 'audio',
+ ltx2_conditioning_video: { video_name: LTX2_CLIP.video_name },
+ num_frames: 89,
+ });
+ });
+
it('encodes the negative prompt whenever either classifier-free scale will consume it', () => {
const model = ltx2Model('ltx2_dev');
const isWired = (settings: Partial<VideoSettings>) => {
diff --git a/invokeai/frontend/webv2/src/features/video/core/graph.ts b/invokeai/frontend/webv2/src/features/video/core/graph.ts
index 4565ca5372..09233c2242 100644
--- a/invokeai/frontend/webv2/src/features/video/core/graph.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/graph.ts
@@ -28,6 +28,7 @@ import type { SupportedVideoBase } from './videoPolicies';
import { getLtx2StageCanvases, isLtx2TwoStage, MINIMAX_H3_FPS } from './dimensions';
import { MINIMAX_H3_HYBRID_BLOCK_RANGE, resolveVideoMode } from './settings';
import {
+ getEffectiveVideoTiming,
getVideoDimensions,
getVideoModelPolicy,
getVideoTargetResolution,
@@ -58,11 +59,13 @@ const WAN_GENERATION_MODES: Partial<Record<VideoGenerationMode, string>> = {
};
const LTX2_GENERATION_MODES: Partial<Record<VideoGenerationMode, string>> = {
+ 'audio-to-video': 'ltx2_a2v',
'first-frame': 'ltx2_i2v',
txt2vid: 'ltx2_t2v',
+ 'video-to-audio': 'ltx2_v2a',
};
-const MINIMAX_H3_GENERATION_MODES: Record<VideoGenerationMode, string> = {
+const MINIMAX_H3_GENERATION_MODES: Partial<Record<VideoGenerationMode, string>> = {
extend: 'minimax_h3_extend_video',
'first-frame': 'minimax_h3_i2v',
'first-last': 'minimax_h3_flf2v',
@@ -705,7 +708,7 @@ const buildMiniMaxH3VideoGraph = (settings: VideoSettings, model: MainModelConfi
}
: {}),
},
- generationMode: MINIMAX_H3_GENERATION_MODES[mode],
+ generationMode: MINIMAX_H3_GENERATION_MODES[mode] ?? 'minimax_h3_t2v',
graph,
height: dimensions.height,
model,
@@ -741,6 +744,10 @@ const buildLtx2VideoGraph = (settings: VideoSettings, model: MainModelConfig): B
const mode = resolveVideoMode(settings);
const policy = getVideoModelPolicy(model, settings);
const dimensions = getVideoDimensions(model, settings);
+ // A conditioning clip owns the length, and in the video role the frame rate too; everywhere else
+ // these are the panel's own numbers. Used for every literal below, and for the metadata, so all
+ // three describe the same run.
+ const timing = getEffectiveVideoTiming(model, settings);
if (!dimensions) {
throw new Error('Video dimensions could not be derived from the current settings.');
@@ -815,10 +822,10 @@ const buildLtx2VideoGraph = (settings: VideoSettings, model: MainModelConfig): B
: { audio_cfg_scale: 1, cfg_scale: 1, modality_scale: 1, stg_scale: 0 };
const denoise = addNode(graph, {
- fps: settings.fps,
+ fps: timing.fps,
height: stages.base.height,
id: 'denoise_latents',
- num_frames: settings.numFrames,
+ num_frames: timing.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.
@@ -855,6 +862,50 @@ const buildLtx2VideoGraph = (settings: VideoSettings, model: MainModelConfig): B
addEdge(graph, imageConditioning, 'video_conditioning', denoise, 'video_conditioning');
}
+ // The conditioning clip, in whichever role it was given. Both nodes report the frame count they
+ // actually encoded, and that count is wired into the denoise rather than the panel's prediction
+ // of it: an audio track need not be exactly as long as the picture it shipped with, and the
+ // gallery's own frame count is duration x fps rounded.
+ const conditioningClip = settings.conditioningClip;
+ let audioConditioning: BackendInvocationContract | null = null;
+
+ if (mode === 'audio-to-video' || mode === 'video-to-audio') {
+ if (!conditioningClip) {
+ throw new Error('A conditioning clip is required for audio-to-video and video-to-audio generation.');
+ }
+
+ const video = { video_name: conditioningClip.clip.video_name };
+
+ if (conditioningClip.role === 'audio') {
+ audioConditioning = addNode(graph, {
+ fps: timing.fps,
+ id: 'audio_conditioning',
+ type: 'ltx2_audio_conditioning',
+ video,
+ });
+
+ addEdge(graph, modelLoader, 'audio_vae', audioConditioning, 'audio_vae');
+ addEdge(graph, modelLoader, 'vocoder', audioConditioning, 'vocoder');
+ addEdge(graph, audioConditioning, 'audio_conditioning', denoise, 'audio_conditioning');
+ addEdge(graph, audioConditioning, 'num_frames', denoise, 'num_frames');
+ } else {
+ // The base canvas, which is the only canvas: a conditioned run has no refine pass, so the
+ // two stages are the same and this matches the denoise's own width and height.
+ const videoConditioning = addNode(graph, {
+ fps: timing.fps,
+ height: stages.base.height,
+ id: 'video_conditioning',
+ type: 'ltx2_video_conditioning',
+ video,
+ width: stages.base.width,
+ });
+
+ addEdge(graph, modelLoader, 'vae', videoConditioning, 'vae');
+ addEdge(graph, videoConditioning, 'video_conditioning', denoise, 'full_video_conditioning');
+ addEdge(graph, videoConditioning, 'num_frames', denoise, 'num_frames');
+ }
+ }
+
// The pass whose latents are decoded: the refine pass when there is one. Audio bypasses the
// upscaler -- it has no spatial extent -- but still goes through the refine denoise, which
// re-noises both modalities to one level so the transformer reads a single pair of timesteps.
@@ -868,10 +919,10 @@ const buildLtx2VideoGraph = (settings: VideoSettings, model: MainModelConfig): B
addEdge(graph, modelLoader, 'vae', upsample, 'vae');
const refine = addNode(graph, {
- fps: settings.fps,
+ fps: timing.fps,
height: stages.final.height,
id: 'refine_latents',
- num_frames: settings.numFrames,
+ num_frames: timing.numFrames,
schedule: 'auto',
// The refine pass enters the schedule partway down and samples its tail, so a variant that
// pays four forwards a step gets a budget of its own rather than the base pass's. Never more
@@ -913,7 +964,7 @@ const buildLtx2VideoGraph = (settings: VideoSettings, model: MainModelConfig): B
}
const output = addNode(graph, {
- fps: settings.fps,
+ fps: timing.fps,
id: 'video_output',
is_intermediate: false,
type: 'ltx2_latents_to_video',
@@ -922,6 +973,12 @@ const buildLtx2VideoGraph = (settings: VideoSettings, model: MainModelConfig): B
addEdge(graph, finalDenoise, 'video_latents', output, 'video_latents');
addEdge(graph, finalDenoise, 'audio_latents', output, 'audio_latents');
+ if (audioConditioning) {
+ // The soundtrack the clip was generated for is muxed in as supplied. The model still denoises
+ // its own audio latents -- they are the stream it holds clean -- but decoding those would
+ // replace the user's recording with a vocoder's copy of itself.
+ addEdge(graph, audioConditioning, 'audio_conditioning', output, 'source_audio');
+ }
addEdge(graph, modelLoader, 'vae', output, 'vae');
addEdge(graph, modelLoader, 'audio_vae', output, 'audio_vae');
addEdge(graph, modelLoader, 'vocoder', output, 'vocoder');
@@ -929,7 +986,7 @@ const buildLtx2VideoGraph = (settings: VideoSettings, model: MainModelConfig): B
addVideoMetadata({
extras: {
cfg_scale: guidance.cfg_scale,
- fps: settings.fps,
+ fps: timing.fps,
ltx2_text_encoder_model: settings.ltx2TextEncoderModel,
...(componentSource ? { ltx2_component_source: componentSource } : {}),
...(policy.ui.audioCfgVisible ? { ltx2_audio_cfg_scale: guidance.audio_cfg_scale } : {}),
@@ -942,6 +999,15 @@ const buildLtx2VideoGraph = (settings: VideoSettings, model: MainModelConfig): B
...(twoStage
? { ltx2_base_height: stages.base.height, ltx2_base_width: stages.base.width, ltx2_two_stage: true }
: {}),
+ // The clip is the run's length and, in the video role, its frame rate -- so record the count
+ // that ran rather than the panel's stored one, which these modes do not use.
+ ...(conditioningClip
+ ? {
+ ltx2_conditioning_role: conditioningClip.role,
+ ltx2_conditioning_video: { video_name: conditioningClip.clip.video_name },
+ num_frames: timing.numFrames,
+ }
+ : {}),
},
generationMode: LTX2_GENERATION_MODES[mode] ?? 'ltx2_t2v',
graph,
diff --git a/invokeai/frontend/webv2/src/features/video/core/settings.test.ts b/invokeai/frontend/webv2/src/features/video/core/settings.test.ts
index b58929eff1..55f24916d9 100644
--- a/invokeai/frontend/webv2/src/features/video/core/settings.test.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/settings.test.ts
@@ -1,6 +1,6 @@
import { describe, expect, it } from 'vitest';
-import type { VideoReferenceItem, VideoSettings } from './types';
+import type { VideoReferenceItem, VideoSettings, VideoWidgetValues } from './types';
import { MINIMAX_H3_NUM_FRAMES_CHOICES } from './dimensions';
import {
@@ -23,6 +23,7 @@ import {
getDefaultReferenceConditioning,
getDefaultReferenceImageDetail,
isVideoSettings,
+ createVideoConditioningClip,
isVideoSourceClip,
normalizeVideoSettings,
normalizeVideoWidgetValues,
@@ -45,6 +46,8 @@ const SOURCE_VIDEO = {
width: 832,
};
+const CONDITIONING_CLIP = { fps: 24, height: 704, numFrames: 96, video_name: 'conditioning.mp4', width: 1248 };
+
const createSettings = (overrides: Partial<VideoSettings> = {}): VideoSettings => ({
...getDefaultVideoSettings(),
...overrides,
@@ -62,6 +65,44 @@ describe('resolveVideoMode', () => {
// A last frame with a source video is still extend — it is the destination anchor.
expect(resolveVideoMode(createSettings({ lastFrameImage: LAST_FRAME, sourceVideo: SOURCE_VIDEO }))).toBe('extend');
});
+
+ it("reads the conditioning clip's role as the mode, ahead of every frame and clip slot", () => {
+ expect(
+ resolveVideoMode(createSettings({ conditioningClip: { clip: CONDITIONING_CLIP, fpsKnown: true, role: 'audio' } }))
+ ).toBe('audio-to-video');
+ expect(
+ resolveVideoMode(createSettings({ conditioningClip: { clip: CONDITIONING_CLIP, fpsKnown: true, role: 'video' } }))
+ ).toBe('video-to-audio');
+ // Not reachable through the setters, but a recalled or stored record can hold both; the mode
+ // has to name the one that would actually run, which validation then refuses.
+ expect(
+ resolveVideoMode(
+ createSettings({
+ conditioningClip: { clip: CONDITIONING_CLIP, fpsKnown: true, role: 'audio' },
+ sourceVideo: SOURCE_VIDEO,
+ })
+ )
+ ).toBe('audio-to-video');
+ });
+});
+
+describe('createVideoConditioningClip', () => {
+ it('takes an uploaded soundtrack for its audio and anything else for its picture', () => {
+ const item = { durationSeconds: 4, fps: 24, height: 704, name: 'clip.mp4', width: 1248 };
+
+ // An `audio_upload` record is a bare soundtrack wrapped as a video: it has no picture to
+ // condition on, so the only role it can fill is the audio one.
+ expect(createVideoConditioningClip({ ...item, mediaOrigin: 'audio_upload' }).role).toBe('audio');
+ expect(createVideoConditioningClip(item).role).toBe('video');
+ });
+
+ it('carries no trim bounds, which the conditioning nodes would not honour', () => {
+ const clip = createVideoConditioningClip({ durationSeconds: 4, fps: 24, height: 704, name: 'c.mp4', width: 1248 });
+
+ expect(clip.clip).not.toHaveProperty('startFrame');
+ expect(clip.clip).not.toHaveProperty('endFrame');
+ expect(clip.clip).toEqual({ fps: 24, height: 704, numFrames: 96, video_name: 'c.mp4', width: 1248 });
+ });
});
describe('normalizeVideoSettings', () => {
@@ -87,6 +128,16 @@ describe('normalizeVideoSettings', () => {
expect(isVideoSettings(settings)).toBe(true);
});
+ it('does not call a record with a garbage conditioning clip valid settings', () => {
+ // The guard's whole job is deciding whether a stored record can be used as-is; a slot it does
+ // not look at is a slot that reaches the graph builder unchecked.
+ const clip = { clip: CONDITIONING_CLIP, fpsKnown: true, role: 'audio' as const };
+
+ expect(isVideoSettings(createSettings({ conditioningClip: clip }))).toBe(true);
+ expect(isVideoSettings({ ...createSettings(), conditioningClip: { clip: CONDITIONING_CLIP } })).toBe(false);
+ expect(isVideoSettings({ ...createSettings(), conditioningClip: 'nonsense' })).toBe(false);
+ });
+
it('rejects non-records but heals partial records field-by-field, upscale-style', () => {
expect(normalizeVideoSettings(null)).toBeNull();
expect(normalizeVideoSettings(7)).toBeNull();
@@ -436,6 +487,47 @@ describe('getDefaultReferenceImageDetail', () => {
});
});
+describe('normalizeVideoSettings — the conditioning clip', () => {
+ const clip = { clip: CONDITIONING_CLIP, fpsKnown: true, role: 'audio' as const };
+
+ it('drops a clip stored beside a slot that claims the same conditioning mask', () => {
+ // A rolled-back or hand-edited project can hold both. Keeping them would resolve to a mode
+ // whose graph silently ignores one of the two.
+ expect(
+ normalizeVideoSettings({ ...createSettings({ firstFrameImage: FIRST_FRAME }), conditioningClip: clip })
+ ?.conditioningClip
+ ).toBeNull();
+ expect(
+ normalizeVideoSettings({ ...createSettings({ sourceVideo: SOURCE_VIDEO }), conditioningClip: clip })
+ ?.conditioningClip
+ ).toBeNull();
+ expect(normalizeVideoSettings(createSettings({ conditioningClip: clip }))?.conditioningClip).toEqual(clip);
+ });
+
+ it('drops a malformed clip rather than passing it to the graph builder', () => {
+ for (const malformed of [
+ { clip: CONDITIONING_CLIP },
+ { clip: CONDITIONING_CLIP, fpsKnown: true, role: 'soundtrack' },
+ { clip: { video_name: 'c.mp4' }, fpsKnown: true, role: 'audio' },
+ { clip: CONDITIONING_CLIP, fpsKnown: 'yes', role: 'audio' },
+ 'nonsense',
+ ]) {
+ expect(
+ normalizeVideoSettings({ ...createSettings(), conditioningClip: malformed } as unknown as VideoSettings)
+ ?.conditioningClip,
+ JSON.stringify(malformed)
+ ).toBeNull();
+ }
+ });
+
+ it('deep-copies the clip so a clone cannot alias the original', () => {
+ const cloned = cloneVideoWidgetValues(createSettings({ conditioningClip: clip }) as VideoWidgetValues);
+
+ expect(cloned.conditioningClip).toEqual(clip);
+ expect(cloned.conditioningClip?.clip).not.toBe(clip.clip);
+ });
+});
+
describe('clearDeletedVideoMedia', () => {
const withMedia = createSettings({
firstFrameImage: FIRST_FRAME,
@@ -457,6 +549,17 @@ describe('clearDeletedVideoMedia', () => {
const clipCleared = clearDeletedVideoMedia(withClip, new Set(), new Set(['clip.mp4']));
expect(clipCleared.sourceVideo).toBeNull();
+
+ // A conditioning clip is a gallery video too: left behind, it would compile a graph naming
+ // a deleted record and fail at the conditioning node rather than in the panel.
+ const withConditioning = createSettings({
+ conditioningClip: { clip: CONDITIONING_CLIP, fpsKnown: true, role: 'audio' },
+ });
+
+ expect(
+ clearDeletedVideoMedia(withConditioning, new Set(), new Set(['conditioning.mp4'])).conditioningClip
+ ).toBeNull();
+ expect(clearDeletedVideoMedia(withConditioning, new Set(), new Set(['other.mp4']))).toBe(withConditioning);
});
it('clears a reference the exclusion masking would hide from a normalized snapshot', () => {
diff --git a/invokeai/frontend/webv2/src/features/video/core/settings.ts b/invokeai/frontend/webv2/src/features/video/core/settings.ts
index 9e74704bae..c4fa81cb7a 100644
--- a/invokeai/frontend/webv2/src/features/video/core/settings.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/settings.ts
@@ -19,6 +19,9 @@ import type {
Ltx2TargetResolution,
MiniMaxH3TargetResolution,
VideoAspectRatioId,
+ VideoClipRef,
+ VideoConditioningClip,
+ VideoConditioningRole,
VideoGenerationMode,
VideoReferenceConditioning,
VideoReferenceImageDetail,
@@ -79,15 +82,28 @@ export const isImageWithDims = (value: unknown): value is ImageWithDims =>
hasFiniteNumber(value, 'width') &&
hasFiniteNumber(value, 'height');
-export const isVideoSourceClip = (value: unknown): value is VideoSourceClip =>
+export const isVideoClipRef = (value: unknown): value is VideoClipRef =>
isRecord(value) &&
typeof value.video_name === 'string' &&
hasFiniteNumber(value, 'width') &&
hasFiniteNumber(value, 'height') &&
hasFiniteNumber(value, 'numFrames') &&
- hasFiniteNumber(value, 'fps') &&
+ hasFiniteNumber(value, 'fps');
+
+export const isVideoSourceClip = (value: unknown): value is VideoSourceClip =>
+ isRecord(value) &&
hasFiniteNumber(value, 'startFrame') &&
- hasFiniteNumber(value, 'endFrame');
+ hasFiniteNumber(value, 'endFrame') &&
+ isVideoClipRef(value);
+
+export const isVideoConditioningRole = (value: unknown): value is VideoConditioningRole =>
+ value === 'audio' || value === 'video';
+
+export const isVideoConditioningClip = (value: unknown): value is VideoConditioningClip =>
+ isRecord(value) &&
+ isVideoClipRef(value.clip) &&
+ isVideoConditioningRole(value.role) &&
+ typeof value.fpsKnown === 'boolean';
/** Upstream Ref2VA's reference caps (mirrored by the backend's validate_reference_kinds). */
export const VIDEO_REFERENCE_MAX_VIDEOS = 3;
@@ -338,12 +354,21 @@ const areAcceleratorLorasPresent = (keys: readonly string[], loras: readonly Gen
* `reference` and the graph appends the new clip to the source.
*/
export const resolveVideoMode = (
- settings: Pick<VideoSettings, 'firstFrameImage' | 'lastFrameImage' | 'sourceVideo' | 'references'>
+ settings: Pick<
+ VideoSettings,
+ 'firstFrameImage' | 'lastFrameImage' | 'sourceVideo' | 'references' | 'conditioningClip'
+ >
): VideoGenerationMode => {
if (settings.references.length > 0) {
return 'reference';
}
+ // Ahead of the frame and clip slots because a conditioning clip excludes them all: it holds one
+ // whole modality clean, which is the same mask the other conditioning modes write into.
+ if (settings.conditioningClip) {
+ return settings.conditioningClip.role === 'audio' ? 'audio-to-video' : 'video-to-audio';
+ }
+
if (settings.sourceVideo) {
return 'extend';
}
@@ -402,6 +427,12 @@ export const normalizeVideoSettings = (values: unknown): VideoSettings | null =>
// A first frame and a source video are mutually exclusive; if a stale
// project somehow holds both, the first frame wins deterministically.
const sourceVideo = !firstFrameImage && isVideoSourceClip(values.sourceVideo) ? values.sourceVideo : null;
+ // One conditioning clip at a time, and never alongside a first frame or an initial video: those
+ // condition the same stream this one would hold, and the model samples exactly one modality.
+ const conditioningClip =
+ !firstFrameImage && !sourceVideo && isVideoConditioningClip(values.conditioningClip)
+ ? values.conditioningClip
+ : null;
const loras = Array.isArray(values.loras) ? values.loras.filter(isVideoLora) : [];
const acceleratorLoraKeys = getStringArray(values.acceleratorLoraKeys);
// The flag means "the accelerator LoRAs the toggle added are active": if any
@@ -467,6 +498,7 @@ export const normalizeVideoSettings = (values: unknown): VideoSettings | null =>
: typeof values.shouldRandomizeSeed === 'boolean' && !values.shouldRandomizeSeed
? 'fixed'
: 'random',
+ conditioningClip,
sourceVideo,
steps: hasFiniteNumber(values, 'steps') ? (values.steps as number) : SETTINGS_FALLBACKS.steps,
targetResolution: isVideoTargetResolution(values.targetResolution)
@@ -508,6 +540,7 @@ export const isVideoSettings = (values: unknown): values is VideoSettings => {
(values.firstFrameImage === null || isImageWithDims(values.firstFrameImage)) &&
(values.lastFrameImage === null || isImageWithDims(values.lastFrameImage)) &&
(values.sourceVideo === null || isVideoSourceClip(values.sourceVideo)) &&
+ (values.conditioningClip === null || isVideoConditioningClip(values.conditioningClip)) &&
!(values.firstFrameImage !== null && values.sourceVideo !== null) &&
Array.isArray(values.references) &&
values.references.every(isVideoReferenceItem) &&
@@ -566,6 +599,9 @@ export const cloneVideoWidgetValues = (values: VideoWidgetValues): VideoWidgetVa
? { ...reference, clip: { ...reference.clip } }
: { ...reference, image: { ...reference.image } }
),
+ conditioningClip: values.conditioningClip
+ ? { ...values.conditioningClip, clip: { ...values.conditioningClip.clip } }
+ : null,
sourceVideo: values.sourceVideo ? { ...values.sourceVideo } : null,
vae: values.vae ? { ...values.vae } : null,
wanLowNoiseModel: values.wanLowNoiseModel ? { ...values.wanLowNoiseModel } : null,
@@ -626,6 +662,32 @@ export const createVideoSourceClip = (item: {
export const getDefaultReferenceConditioning = (mediaOrigin: string | null | undefined): VideoReferenceConditioning =>
mediaOrigin === 'audio_upload' ? 'audio' : 'video_audio';
+/**
+ * Which stream a freshly dropped conditioning clip is taken for. An `audio_upload` record is a
+ * bare soundtrack wrapped as a video and has no picture worth conditioning on, so it can only be
+ * the audio side. Anything else defaults to `video` -- every clip has a picture, while asking for
+ * the soundtrack of one that turns out to be silent fails at run time.
+ */
+export const getDefaultConditioningRole = (mediaOrigin: string | null | undefined): VideoConditioningRole =>
+ mediaOrigin === 'audio_upload' ? 'audio' : 'video';
+
+export const createVideoConditioningClip = (item: {
+ durationSeconds: number;
+ fps?: number;
+ height: number;
+ mediaOrigin?: string;
+ name: string;
+ width: number;
+}): VideoConditioningClip => {
+ const { endFrame: _endFrame, startFrame: _startFrame, ...clip } = createVideoSourceClip(item);
+
+ return {
+ clip,
+ fpsKnown: typeof item.fps === 'number' && Number.isFinite(item.fps) && item.fps > 0,
+ role: getDefaultConditioningRole(item.mediaOrigin),
+ };
+};
+
/**
* Whether a video reference can serve as the reference-extend ANCHOR.
*
@@ -1137,6 +1199,7 @@ export const clearDeletedVideoMedia = <T extends object>(
removedVideoNames: ReadonlySet<string>
): T => {
const slots = values as {
+ conditioningClip?: unknown;
firstFrameImage?: unknown;
lastFrameImage?: unknown;
sourceVideo?: unknown;
@@ -1145,6 +1208,8 @@ export const clearDeletedVideoMedia = <T extends object>(
const clearFirst = isImageWithDims(slots.firstFrameImage) && removedImageNames.has(slots.firstFrameImage.image_name);
const clearLast = isImageWithDims(slots.lastFrameImage) && removedImageNames.has(slots.lastFrameImage.image_name);
const clearSource = isVideoSourceClip(slots.sourceVideo) && removedVideoNames.has(slots.sourceVideo.video_name);
+ const clearConditioning =
+ isVideoConditioningClip(slots.conditioningClip) && removedVideoNames.has(slots.conditioningClip.clip.video_name);
const references = Array.isArray(slots.references) ? slots.references : null;
const keptReferences = references?.filter(
(entry) =>
@@ -1155,7 +1220,7 @@ export const clearDeletedVideoMedia = <T extends object>(
);
const clearReferences = keptReferences !== undefined && keptReferences.length !== references?.length;
- if (!clearFirst && !clearLast && !clearSource && !clearReferences) {
+ if (!clearFirst && !clearLast && !clearSource && !clearConditioning && !clearReferences) {
return values;
}
@@ -1166,6 +1231,7 @@ export const clearDeletedVideoMedia = <T extends object>(
...(clearFirst ? { firstFrameImage: null } : {}),
...(clearLast ? { lastFrameImage: null } : {}),
...(clearSource ? { sourceVideo: null } : {}),
+ ...(clearConditioning ? { conditioningClip: null } : {}),
...(clearReferences ? { references: keptReferences } : {}),
} as T;
};
diff --git a/invokeai/frontend/webv2/src/features/video/core/types.ts b/invokeai/frontend/webv2/src/features/video/core/types.ts
index 051b24d5c0..2d1ec8f08c 100644
--- a/invokeai/frontend/webv2/src/features/video/core/types.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/types.ts
@@ -11,20 +11,57 @@ import type { SeedMode } from '@platform/core/seed';
* How a video generation is conditioned. There is no explicit mode selector:
* the mode is inferred from which inputs are filled — see `resolveVideoMode`.
*/
-export type VideoGenerationMode = 'txt2vid' | 'first-frame' | 'last-frame' | 'first-last' | 'extend' | 'reference';
+export type VideoGenerationMode =
+ | 'txt2vid'
+ | 'first-frame'
+ | 'last-frame'
+ | 'first-last'
+ | 'extend'
+ | 'reference'
+ | 'audio-to-video'
+ | 'video-to-audio';
-/** A gallery video selected as the clip to extend, with the trim range to keep. */
-export interface VideoSourceClip {
+/** A gallery video's identity and geometry, as the panel stores it. */
+export interface VideoClipRef {
video_name: string;
width: number;
height: number;
numFrames: number;
fps: number;
+}
+
+/** A gallery video selected as the clip to extend, with the trim range to keep. */
+export interface VideoSourceClip extends VideoClipRef {
/** Inclusive trim bounds forwarded to `extract_video_range`; negative indices count from the end. */
startFrame: number;
endFrame: number;
}
+/** Which stream of a conditioning clip the model is given, and which it therefore generates. */
+export type VideoConditioningRole = 'audio' | 'video';
+
+/**
+ * A clip supplied as conditioning for the *other* modality: its soundtrack with the picture
+ * generated (`audio`), or its picture with the soundtrack generated (`video`).
+ *
+ * One slot rather than two, because the two modes are mutually exclusive -- LTX-2 holds one
+ * modality clean and samples the other, so a clip can only be given in one role at a time.
+ */
+export interface VideoConditioningClip {
+ /**
+ * Whole-clip, untrimmed: `ltx2_audio_conditioning` and `ltx2_video_conditioning` consume the
+ * whole recording, so trim bounds here would be state the graph does not honour.
+ */
+ clip: VideoClipRef;
+ role: VideoConditioningRole;
+ /**
+ * Whether the gallery actually knew the clip's frame rate. A video record's `fps` is nullable,
+ * and `clip.fps` then holds the panel's fallback -- a guess, which must not become the rate a
+ * held picture is played and timed at. False leaves the frame-rate control to the user.
+ */
+ fpsKnown: boolean;
+}
+
/**
* Which streams a Ref2VA video reference conditions. The graph-literal values of the
* `minimax_h3_video_reference` node: 'audio' maps to upstream's standalone audio-reference
@@ -117,6 +154,8 @@ export interface VideoSettings {
* linked tail reference provides continuity).
*/
sourceVideo: VideoSourceClip | null;
+ /** A clip conditioning the opposite modality; null unless the family offers a2v/v2a. */
+ conditioningClip: VideoConditioningClip | null;
/**
* Ref2VA references, in conditioning order (up to 3 videos and 9 images).
* Mutually exclusive with `firstFrameImage`/`lastFrameImage`; `sourceVideo`
diff --git a/invokeai/frontend/webv2/src/features/video/core/videoGraphCoverage.test.ts b/invokeai/frontend/webv2/src/features/video/core/videoGraphCoverage.test.ts
index 8364b45c93..ab37655edb 100644
--- a/invokeai/frontend/webv2/src/features/video/core/videoGraphCoverage.test.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/videoGraphCoverage.test.ts
@@ -33,6 +33,7 @@ import {
getDefaultVideoSettings,
getVideoComponentSectionPolicy,
getVideoValidationReasons,
+ isTwoStageSupportedForMode,
isVideoModelSelectable,
SUPPORTED_VIDEO_BASES,
VIDEO_GENERATION,
@@ -49,14 +50,18 @@ const CLIP: VideoSourceClip = {
width: 1248,
};
+const { endFrame: _end, startFrame: _start, ...CLIP_REF } = CLIP;
+
/** The conditioning each mode needs; `resolveVideoMode` infers the mode back from it. */
const MODE_INPUTS: Record<VideoGenerationMode, Partial<VideoSettings>> = {
+ 'audio-to-video': { conditioningClip: { clip: CLIP_REF, fpsKnown: true, role: 'audio' } },
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: {},
+ 'video-to-audio': { conditioningClip: { clip: CLIP_REF, fpsKnown: true, role: 'video' } },
};
/**
@@ -184,18 +189,26 @@ const cases: Case[] = SUPPORTED_VIDEO_BASES.flatMap((base) =>
];
return config.modes.flatMap((mode) =>
- presets.flatMap((targetResolution) =>
- (['diffusers', 'checkpoint'] as const)
- .map((format) => ({
- base,
- format,
- label: `${base} / ${variant} / ${mode} / ${format}${targetResolution ? ` / ${targetResolution}` : ''}`,
- mode,
- ...(targetResolution ? { targetResolution } : {}),
- variant,
- }))
- .filter((testCase) => isVideoModelSelectable(createModel(testCase)))
- )
+ presets
+ .filter((targetResolution) => {
+ // A mode the policy refuses to run two-stage is not an uncovered case, it is a
+ // combination that does not exist -- asked of the policy so the two cannot drift.
+ const option = config.targetResolutions.find((entry) => entry.id === targetResolution);
+
+ return option?.stages !== 2 || isTwoStageSupportedForMode(mode);
+ })
+ .flatMap((targetResolution) =>
+ (['diffusers', 'checkpoint'] as const)
+ .map((format) => ({
+ base,
+ format,
+ label: `${base} / ${variant} / ${mode} / ${format}${targetResolution ? ` / ${targetResolution}` : ''}`,
+ mode,
+ ...(targetResolution ? { targetResolution } : {}),
+ variant,
+ }))
+ .filter((testCase) => isVideoModelSelectable(createModel(testCase)))
+ )
);
})
);
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 20c73cfec1..4b08dbc178 100644
--- a/invokeai/frontend/webv2/src/features/video/core/videoPolicies.test.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/videoPolicies.test.ts
@@ -14,6 +14,7 @@ import {
getAcceleratorSteps,
getAcceleratorToggleResult,
getDefaultVideoSettings,
+ getEffectiveVideoTiming,
getVideoComponentSectionPolicy,
getVideoDimensions,
getVideoModelAvailabilityReasons,
@@ -1536,9 +1537,139 @@ const LTX2_ENCODER = {
};
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('offers text-to-video, first-frame and whole-modality conditioning on both checkpoints', () => {
+ expect(getVideoModes(ltx2('ltx2_dev'))).toEqual(['txt2vid', 'first-frame', 'audio-to-video', 'video-to-audio']);
+ expect(getVideoModes(ltx2('ltx2_distilled'))).toEqual([
+ 'txt2vid',
+ 'first-frame',
+ 'audio-to-video',
+ 'video-to-audio',
+ ]);
+ });
+
+ describe('whole-modality conditioning clips', () => {
+ // 96 frames at 24 fps: four seconds, which snaps DOWN to 89 on the 8n + 1 grid.
+ const CLIP = { fps: 24, height: 704, numFrames: 96, video_name: 'clip.mp4', width: 1248 };
+ const model = ltx2('ltx2_dev');
+ const conditioned = (role: 'audio' | 'video', overrides: Partial<VideoSettings> = {}) =>
+ settingsFor(model, {
+ componentSourceModel: LTX2_COMPONENTS,
+ conditioningClip: { clip: CLIP, fpsKnown: true, role },
+ ltx2TextEncoderModel: LTX2_ENCODER,
+ ...overrides,
+ });
+
+ it('takes the length from the clip in either role, and the frame rate only from its picture', () => {
+ const audio = getEffectiveVideoTiming(model, conditioned('audio', { fps: 30, numFrames: 121 }));
+ const video = getEffectiveVideoTiming(model, conditioned('video', { fps: 30, numFrames: 121 }));
+
+ // A generated picture runs at whatever rate was asked for, so the soundtrack's four seconds
+ // cover 120 frames there -- 113 after the snap -- and 89 at the clip's own 24.
+ expect(audio).toEqual({ fps: 30, fpsFromClip: false, numFrames: 113, numFramesFromClip: true });
+ expect(video).toEqual({ fps: 24, fpsFromClip: true, numFrames: 89, numFramesFromClip: true });
+ });
+
+ it("leaves the frame rate to the user when the gallery never knew the clip's own", () => {
+ // A video record's fps is nullable, and `createVideoConditioningClip` falls back to 16 for
+ // the length estimate. Playing and timing a held picture at that guess is the silent kind of
+ // wrong: the clip comes out at the wrong speed with its soundtrack stretched to match.
+ const guessed = getEffectiveVideoTiming(
+ model,
+ conditioned('video', { conditioningClip: { clip: CLIP, fpsKnown: false, role: 'video' }, fps: 30 })
+ );
+
+ expect(guessed).toMatchObject({ fps: 30, fpsFromClip: false });
+ // The length still follows the clip: that comes from the frame count, which is known.
+ expect(guessed.numFramesFromClip).toBe(true);
+ });
+
+ it("leaves the panel's own numbers alone when the model cannot run the mode", () => {
+ // Stale state after a model switch: the panel offers to clear it rather than silently
+ // deriving a length from a clip this family will never encode.
+ const wan = wanModel('t2v_a14b');
+
+ expect(
+ getEffectiveVideoTiming(wan, {
+ ...settingsFor(wan),
+ conditioningClip: { clip: CLIP, fpsKnown: true, role: 'audio' },
+ })
+ ).toMatchObject({ numFramesFromClip: false });
+ });
+
+ it('is cleared by a model switch, like every other media slot', () => {
+ // Left behind it still drives the canvas -- and it disables the aspect-ratio control while
+ // doing so, so the panel could not be corrected from the panel.
+ const wan = wanModel('t2v_a14b');
+ const result = getVideoModelSelectionResult({ currentSettings: conditioned('video'), model: wan, models: [wan] });
+
+ expect(result.settings.conditioningClip).toBeNull();
+ expect(result.clearedLabels).toContain('Conditioning clip');
+ expect(getVideoDimensions(wan, result.settings)?.source).toBe('aspect-ratio');
+ });
+
+ it('stops driving the canvas the moment the model cannot use it', () => {
+ // The clip survives a reload on a family that cannot run it (a stored project, a recall).
+ // Timing already falls back to the panel's own numbers in that case; the canvas must too.
+ const wan = wanModel('t2v_a14b');
+ const stale = { ...settingsFor(wan), conditioningClip: { clip: CLIP, fpsKnown: true, role: 'video' as const } };
+
+ expect(getVideoDimensions(wan, stale)?.source).toBe('aspect-ratio');
+ });
+
+ it('derives the canvas from the clip only when its picture is the given one', () => {
+ expect(getVideoDimensions(model, conditioned('video'))?.source).toBe('conditioning-clip');
+ // In the audio role the picture is what gets generated, so the preset still owns the frame.
+ expect(getVideoDimensions(model, conditioned('audio'))?.source).toBe('aspect-ratio');
+ });
+
+ it('refuses a clip beside any other conditioning slot', () => {
+ expect(
+ getVideoValidationReasons(
+ model,
+ conditioned('audio', { firstFrameImage: { height: 704, image_name: 'first.png', width: 1248 } })
+ )
+ ).toContain(
+ 'A conditioning clip cannot be combined with first/last frames, an initial video or references. Clear one side.'
+ );
+ });
+
+ it('refuses a two-stage preset, which the denoise node cannot combine with a held modality', () => {
+ expect(getVideoValidationReasons(model, conditioned('audio', { targetResolution: '1024p' })).join(' ')).toContain(
+ 'does not run a two-stage target resolution'
+ );
+ expect(getVideoValidationReasons(model, conditioned('audio'))).toEqual([]);
+ });
+
+ it('refuses a clip whose derived length falls outside the frame grid', () => {
+ // Half a second of audio: under one frame group once snapped down.
+ const short = { ...CLIP, numFrames: 8 };
+ const long = { ...CLIP, numFrames: 24 * 60 };
+
+ expect(
+ getVideoValidationReasons(
+ model,
+ conditioned('audio', { conditioningClip: { clip: short, fpsKnown: true, role: 'audio' } })
+ ).join(' ')
+ ).toContain('Use a longer clip');
+ expect(
+ getVideoValidationReasons(
+ model,
+ conditioned('audio', { conditioningClip: { clip: long, fpsKnown: true, role: 'audio' } })
+ ).join(' ')
+ ).toContain('Use a shorter clip');
+ });
+
+ it("accepts a clip's fractional frame rate, which the panel's own field would reject", () => {
+ // 29.97 is a real clip, and LTX-2's fps fields are floats.
+ const ntsc = { ...CLIP, fps: 29.97 };
+
+ expect(
+ getVideoValidationReasons(
+ model,
+ conditioned('video', { conditioningClip: { clip: ntsc, fpsKnown: true, role: 'video' } })
+ )
+ ).toEqual([]);
+ });
});
it('exposes the per-modality guidance controls on dev and none on distilled', () => {
diff --git a/invokeai/frontend/webv2/src/features/video/core/videoPolicies.ts b/invokeai/frontend/webv2/src/features/video/core/videoPolicies.ts
index 28c73e657d..3e29ea2cbb 100644
--- a/invokeai/frontend/webv2/src/features/video/core/videoPolicies.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/videoPolicies.ts
@@ -35,6 +35,7 @@ import {
LTX2_NUM_FRAMES_MIN,
LTX2_NUM_FRAMES_SLIDER_MAX,
LTX2_NUM_FRAMES_STEP,
+ ltx2FramesForClip,
MINIMAX_H3_FPS,
MINIMAX_H3_NUM_FRAMES_CHOICES,
MINIMAX_H3_NUM_FRAMES_DEFAULT,
@@ -349,9 +350,9 @@ const LTX2_COMMON = {
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,
+ // Text-to-video and first-frame image-to-video, both with a generated soundtrack, plus the two
+ // whole-modality conditioned modes. Keyframes and extension follow.
+ modes: ['txt2vid', 'first-frame', 'audio-to-video', 'video-to-audio'] as const,
pixelMultiple: LTX2_CANVAS_MULTIPLE,
targetResolutions: LTX2_TARGET_RESOLUTION_OPTIONS,
};
@@ -488,6 +489,15 @@ const getVideoConfig = (
model: Pick<MainModelConfig, 'base' | 'type' | 'variant' | 'format'> | undefined
): VideoVariantConfig => getVideoVariantConfig(model) ?? FALLBACK_VARIANT_CONFIG;
+/**
+ * Whether a mode can run a two-stage target resolution. A conditioning clip cannot: `ltx2_denoise`
+ * refuses a refine pass alongside a held-clean modality, because the refine pass re-noises every
+ * token and the held stream would have to be re-encoded at the refine canvas the way a first frame
+ * is. Asked by validation and by the graph-coverage matrix, so the two cannot disagree.
+ */
+export const isTwoStageSupportedForMode = (mode: VideoGenerationMode): boolean =>
+ mode !== 'audio-to-video' && mode !== 'video-to-audio';
+
export const getVideoModes = (model: MainModelConfig | undefined): readonly VideoGenerationMode[] =>
getVideoConfig(model).modes;
@@ -553,7 +563,7 @@ export const isValidVideoNumFrames = (model: MainModelConfig | undefined, numFra
);
};
-export type VideoDimensionSource = 'aspect-ratio' | 'first-frame' | 'last-frame' | 'source-video';
+export type VideoDimensionSource = 'aspect-ratio' | 'first-frame' | 'last-frame' | 'source-video' | 'conditioning-clip';
export interface ResolvedVideoDimensions extends VideoDimensions {
source: VideoDimensionSource;
@@ -571,19 +581,29 @@ export const getVideoDimensions = (
model: MainModelConfig | undefined,
settings: Pick<
VideoSettings,
- 'aspectRatioId' | 'targetResolution' | 'firstFrameImage' | 'lastFrameImage' | 'sourceVideo'
+ 'aspectRatioId' | 'targetResolution' | 'firstFrameImage' | 'lastFrameImage' | 'sourceVideo' | 'conditioningClip'
>
): ResolvedVideoDimensions | null => {
const config = getVideoConfig(model);
const targetResolution = coerceTargetResolution(config, settings.targetResolution);
- const media = settings.sourceVideo
- ? { ...settings.sourceVideo, source: 'source-video' as const }
- : settings.firstFrameImage
- ? { ...settings.firstFrameImage, source: 'first-frame' as const }
- : settings.lastFrameImage
- ? { ...settings.lastFrameImage, source: 'last-frame' as const }
- : null;
+ // Only in the `video` role: there the clip's picture *is* the generation, fitted to the canvas
+ // the preset picks for its ratio. In the `audio` role the picture is what gets made, so the
+ // aspect-ratio control still owns the frame.
+ const conditioningPicture =
+ settings.conditioningClip?.role === 'video' && config.modes.includes('video-to-audio')
+ ? settings.conditioningClip.clip
+ : null;
+
+ const media = conditioningPicture
+ ? { ...conditioningPicture, source: 'conditioning-clip' as const }
+ : settings.sourceVideo
+ ? { ...settings.sourceVideo, source: 'source-video' as const }
+ : settings.firstFrameImage
+ ? { ...settings.firstFrameImage, source: 'first-frame' as const }
+ : settings.lastFrameImage
+ ? { ...settings.lastFrameImage, source: 'last-frame' as const }
+ : null;
const inputs = media ?? { ...getVideoAspectRatioParts(settings.aspectRatioId), source: 'aspect-ratio' as const };
@@ -602,6 +622,50 @@ export const getVideoDimensions = (
return dimensions ? { ...dimensions, source: inputs.source } : null;
};
+/**
+ * The frame count and frame rate a run will actually use. A conditioning clip decides both for
+ * the modality it holds clean: its picture is as long as it is, and its soundtrack covers as many
+ * frames as the chosen rate spans. The panel's own stored values are left untouched underneath, so
+ * clearing the clip restores what the user had set.
+ *
+ * Only ever the clip's when the model supports the mode -- a clip left behind by a model switch is
+ * stale state the panel offers to clear, not a timing source.
+ */
+export interface EffectiveVideoTiming {
+ numFrames: number;
+ fps: number;
+ /** True when the conditioning clip decided the value, i.e. the control is showing a derived number. */
+ numFramesFromClip: boolean;
+ fpsFromClip: boolean;
+}
+
+export const getEffectiveVideoTiming = (
+ model: MainModelConfig | undefined,
+ settings: Pick<
+ VideoSettings,
+ 'conditioningClip' | 'firstFrameImage' | 'fps' | 'lastFrameImage' | 'numFrames' | 'references' | 'sourceVideo'
+ >
+): EffectiveVideoTiming => {
+ const conditioning = settings.conditioningClip;
+
+ if (!conditioning || !getVideoConfig(model).modes.includes(resolveVideoMode(settings))) {
+ return { fps: settings.fps, fpsFromClip: false, numFrames: settings.numFrames, numFramesFromClip: false };
+ }
+
+ // The picture is the given one, so its own rate is the run's -- but only when the gallery knew
+ // that rate. A generated picture is made at whatever rate the panel asks for, and only the
+ // length follows from the soundtrack.
+ const fpsFromClip = conditioning.role === 'video' && conditioning.fpsKnown;
+ const fps = fpsFromClip ? conditioning.clip.fps : settings.fps;
+
+ return {
+ fps,
+ fpsFromClip,
+ numFrames: ltx2FramesForClip(conditioning, fps),
+ numFramesFromClip: true,
+ };
+};
+
export const getVideoPromptPolicy = (
model: MainModelConfig | undefined,
settings: Pick<
@@ -1598,6 +1662,7 @@ export const getDefaultVideoSettings = (
batchCount: 1,
cfgScale: config.defaults.cfgScale,
cfgScaleLowNoise: config.defaults.cfgScaleLowNoise,
+ conditioningClip: null,
// 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.
@@ -1751,6 +1816,14 @@ export const getVideoModelSelectionResult = ({
addClearedLabel(clearedLabels, 'Initial video');
}
+ if (next.conditioningClip && !modes.includes(resolveVideoMode(next))) {
+ // Left behind, this is the one slot that still drives the canvas on a family that cannot run
+ // it -- and it disables the aspect-ratio control while doing so, so the panel could not be
+ // corrected from the panel.
+ next.conditioningClip = null;
+ addClearedLabel(clearedLabels, 'Conditioning clip');
+ }
+
// The frame count is snapped BEFORE the tail reference is derived: the window
// is budgeted against it, and deriving first left a Wan panel's count (as low
// as 5) sizing a window for a 90-frame H3 generation — under the 13 frames
@@ -1986,12 +2059,14 @@ export const getVideoModelSelectionResult = ({
// Validation
const VIDEO_MODE_DESCRIPTIONS: Record<VideoGenerationMode, string> = {
+ 'audio-to-video': 'generating video for an existing soundtrack',
extend: 'extending a video',
'first-frame': 'starting from a first frame',
'first-last': 'first-to-last-frame interpolation',
'last-frame': 'ending on a last frame',
reference: 'reference-conditioned generation',
txt2vid: 'text-to-video',
+ 'video-to-audio': 'generating a soundtrack for an existing clip',
};
const hasModelKey = (models: readonly ModelConfig[], key: string, type?: string): boolean =>
@@ -2054,6 +2129,17 @@ export const getVideoValidationReasons = (model: MainModelConfig, settings: Vide
reasons.push('A first frame and an initial video cannot be combined. Clear one of them.');
}
+ if (
+ settings.conditioningClip &&
+ (settings.firstFrameImage || settings.lastFrameImage || settings.sourceVideo || settings.references.length > 0)
+ ) {
+ // Every one of these writes into the same conditioning mask the clip fills wholesale, and
+ // `resolveVideoMode` would silently drop the clip rather than run something it cannot express.
+ reasons.push(
+ 'A conditioning clip cannot be combined with first/last frames, an initial video or references. Clear one side.'
+ );
+ }
+
if (settings.references.length > 0 && (settings.firstFrameImage || settings.lastFrameImage)) {
reasons.push('References cannot be combined with first/last frames. Clear one side.');
}
@@ -2112,21 +2198,41 @@ export const getVideoValidationReasons = (model: MainModelConfig, settings: Vide
}
}
- if (!isValidVideoNumFrames(model, settings.numFrames)) {
- reasons.push(
+ // The effective values rather than the stored ones: a conditioning clip decides both, and the
+ // stored numbers it overrides are the user's own -- still theirs once the clip is cleared.
+ const timing = getEffectiveVideoTiming(model, settings);
+
+ if (!isValidVideoNumFrames(model, timing.numFrames)) {
+ const framesFloor = config.frames.kind === 'grid' ? config.frames.min : (config.frames.choices[0] ?? 0);
+ const framesCeiling =
config.frames.kind === 'grid'
- ? `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]}).`
+ ? config.frames.max
+ : (config.frames.choices[config.frames.choices.length - 1] ?? 0);
+
+ reasons.push(
+ timing.numFramesFromClip
+ ? `The conditioning clip works out to ${timing.numFrames} frames, outside the ${framesFloor}-${framesCeiling} ${model.name} generates. Use a ${timing.numFrames < framesFloor ? 'longer' : 'shorter'} clip${settings.conditioningClip?.role === 'audio' ? ', or change the frame rate' : ''}.`
+ : config.frames.kind === 'grid'
+ ? `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]}).`
);
}
// fps and steps are integer fields on the backend nodes; a fractional value
- // would fail pydantic coercion at enqueue, so reject it here instead.
- if (!Number.isInteger(settings.fps) || settings.fps < config.fps.min || settings.fps > config.fps.max) {
+ // would fail pydantic coercion at enqueue, so reject it here instead. A rate read off a clip is
+ // exempt from the integer rule -- LTX-2's own fps fields are floats, and 29.97 is a real clip.
+ if (
+ !Number.isFinite(timing.fps) ||
+ (!timing.fpsFromClip && !Number.isInteger(timing.fps)) ||
+ timing.fps < config.fps.min ||
+ timing.fps > config.fps.max
+ ) {
reasons.push(
- config.fps.editable
- ? `FPS must be a whole number between ${config.fps.min} and ${config.fps.max}.`
- : `${model.name} generates at a fixed ${config.fps.defaultValue} FPS.`
+ timing.fpsFromClip
+ ? `The conditioning clip runs at ${timing.fps} fps, outside the ${config.fps.min}-${config.fps.max} fps range ${model.name} supports.`
+ : config.fps.editable
+ ? `FPS must be a whole number between ${config.fps.min} and ${config.fps.max}.`
+ : `${model.name} generates at a fixed ${config.fps.defaultValue} FPS.`
);
}
@@ -2139,6 +2245,15 @@ export const getVideoValidationReasons = (model: MainModelConfig, settings: Vide
// the upscale have already run. Refused here so the cost is never paid.
const preset = config.targetResolutions.find((option) => option.id === settings.targetResolution);
+ // `ltx2_denoise` refuses a refine pass alongside a held-clean modality: the refine pass re-noises
+ // every token, so the conditioning would have to be re-encoded at the refine canvas the way a
+ // first frame is. Caught here, before the base pass and the upscale have been paid for.
+ if (preset?.stages === 2 && !isTwoStageSupportedForMode(mode)) {
+ reasons.push(
+ `${VIDEO_MODE_DESCRIPTIONS[mode][0]?.toUpperCase()}${VIDEO_MODE_DESCRIPTIONS[mode].slice(1)} does not run a two-stage target resolution. Pick a single-stage resolution, or clear the conditioning clip.`
+ );
+ }
+
if (preset?.stages === 2 && Number.isInteger(settings.steps) && settings.steps < LTX2_MIN_TWO_STAGE_STEPS) {
reasons.push(
`A two-stage target resolution needs at least ${LTX2_MIN_TWO_STAGE_STEPS} steps; the second pass ` +
diff --git a/invokeai/frontend/webv2/src/features/video/index.ts b/invokeai/frontend/webv2/src/features/video/index.ts
index e38d570fbc..116cbb4c32 100644
--- a/invokeai/frontend/webv2/src/features/video/index.ts
+++ b/invokeai/frontend/webv2/src/features/video/index.ts
@@ -7,6 +7,8 @@
export type {
MiniMaxH3TargetResolution,
VideoAspectRatioId,
+ VideoConditioningClip,
+ VideoConditioningRole,
VideoGenerationMode,
VideoReferenceConditioning,
VideoReferenceImageDetail,
@@ -20,7 +22,9 @@ export type {
export {
clearDeletedVideoMedia,
cloneVideoWidgetValues,
+ createVideoConditioningClip,
createVideoSourceClip,
+ getDefaultConditioningRole,
getDefaultReferenceConditioning,
isImageWithDims,
isVideoAspectRatioId,
diff --git a/invokeai/frontend/webv2/src/features/video/ui/VideoConditioningClipField.tsx b/invokeai/frontend/webv2/src/features/video/ui/VideoConditioningClipField.tsx
new file mode 100644
index 0000000000..6ffa35de47
--- /dev/null
+++ b/invokeai/frontend/webv2/src/features/video/ui/VideoConditioningClipField.tsx
@@ -0,0 +1,143 @@
+import type { GalleryItem } from '@features/gallery';
+import type { VideoConditioningClip, VideoConditioningRole } from '@features/video/core/types';
+
+import { createListCollection, Stack, Text } from '@chakra-ui/react';
+import { GalleryMediaSlot, type GalleryMediaSlotLabels, type GalleryMediaSlotValue } from '@features/gallery/mediaSlot';
+import { createVideoConditioningClip } from '@features/video/core/settings';
+import { Field, Select } from '@platform/ui';
+import { memo, useCallback, useMemo } from 'react';
+import { useTranslation } from 'react-i18next';
+
+import { useVideoUiActions } from './VideoUiContext';
+
+/**
+ * The whole-modality conditioning slot: a clip whose soundtrack the model generates a picture for,
+ * or whose picture it generates a soundtrack for. One slot with a role, not two slots, because
+ * LTX-2 holds exactly one modality clean and samples the other.
+ *
+ * No trim bounds: the conditioning nodes consume the whole recording.
+ */
+
+const DROP_ID = 'video-conditioning-clip';
+const VIDEO_ONLY = ['video'] as const;
+
+export const VideoConditioningClipField = memo(
+ function VideoConditioningClipField({
+ conditioningClip,
+ disabled = false,
+ disabledReason,
+ derivedText,
+ onChange,
+ }: {
+ conditioningClip: VideoConditioningClip | null;
+ disabled?: boolean;
+ /** Shown in place of the field's affordances while disabled (mutual exclusion). */
+ disabledReason?: string;
+ /** What the clip works out to — length, and the rate it will run at. */
+ derivedText?: string;
+ onChange: (conditioning: VideoConditioningClip | null) => void;
+ }) {
+ const { t } = useTranslation();
+ const { findInGallery } = useVideoUiActions();
+ const slotLabels = useMemo<Partial<GalleryMediaSlotLabels>>(
+ () => ({ drop: t('widgets.video.dropConditioningClip') }),
+ [t]
+ );
+ const slotValue = useMemo<GalleryMediaSlotValue | null>(
+ () =>
+ conditioningClip
+ ? {
+ height: conditioningClip.clip.height,
+ kind: 'video',
+ name: conditioningClip.clip.video_name,
+ width: conditioningClip.clip.width,
+ }
+ : null,
+ [conditioningClip]
+ );
+ const roleCollection = useMemo(
+ () =>
+ createListCollection({
+ items: [
+ { label: t('widgets.video.conditioningRoleAudio'), value: 'audio' },
+ { label: t('widgets.video.conditioningRoleVideo'), value: 'video' },
+ ],
+ }),
+ [t]
+ );
+ const roleValue = useMemo(() => (conditioningClip ? [conditioningClip.role] : []), [conditioningClip]);
+
+ const handleSlotChange = useCallback(
+ (item: GalleryItem | null) => {
+ if (item === null) {
+ onChange(null);
+ } else if (item.kind === 'video') {
+ onChange(createVideoConditioningClip(item));
+ }
+ },
+ [onChange]
+ );
+ // The whole premise of this field is what is inside the clip, so it gets the same way back to
+ // the gallery record that every other media slot has.
+ const videoName = conditioningClip?.clip.video_name;
+ const handleFind = useCallback(() => {
+ if (videoName !== undefined) {
+ findInGallery({ kind: 'video', name: videoName });
+ }
+ }, [findInGallery, videoName]);
+ const handleRoleChange = useCallback(
+ ({ value }: { value: string[] }) => {
+ const role = value[0];
+
+ if (conditioningClip && (role === 'audio' || role === 'video')) {
+ onChange({ ...conditioningClip, role: role satisfies VideoConditioningRole });
+ }
+ },
+ [conditioningClip, onChange]
+ );
+
+ return (
+ <Stack gap="2">
+ <GalleryMediaSlot
+ accept={VIDEO_ONLY}
+ disabled={disabled}
+ disabledReason={disabledReason}
+ dropId={DROP_ID}
+ labels={slotLabels}
+ value={slotValue}
+ onChange={handleSlotChange}
+ onFind={handleFind}
+ />
+ {conditioningClip ? (
+ <Field
+ helpText={
+ conditioningClip.role === 'video'
+ ? `${t('widgets.video.conditioningRoleVideoHelp')}${derivedText ? ` ${derivedText}` : ''}`
+ : derivedText
+ }
+ label={t('widgets.video.conditioningRole')}
+ >
+ <Select
+ collection={roleCollection}
+ disabled={disabled}
+ size="xs"
+ value={roleValue}
+ onValueChange={handleRoleChange}
+ />
+ </Field>
+ ) : (
+ <Text color="fg.muted" fontSize="2xs" textWrap="pretty">
+ {t('widgets.video.conditioningClipHelp')}
+ </Text>
+ )}
+ </Stack>
+ );
+ },
+ (previous, next) =>
+ previous.onChange === next.onChange &&
+ previous.disabled === next.disabled &&
+ previous.disabledReason === next.disabledReason &&
+ previous.derivedText === next.derivedText &&
+ previous.conditioningClip?.clip.video_name === next.conditioningClip?.clip.video_name &&
+ previous.conditioningClip?.role === next.conditioningClip?.role
+);
diff --git a/invokeai/frontend/webv2/src/features/video/ui/VideoWidgetView.tsx b/invokeai/frontend/webv2/src/features/video/ui/VideoWidgetView.tsx
index 11f2bddf15..5c1965435d 100644
--- a/invokeai/frontend/webv2/src/features/video/ui/VideoWidgetView.tsx
+++ b/invokeai/frontend/webv2/src/features/video/ui/VideoWidgetView.tsx
@@ -1,6 +1,11 @@
import type { ImageWithDims } from '@features/generation/contracts';
import type { ModelConfig, ModelTaxonomyType } from '@features/models';
-import type { VideoReferenceItem, VideoSourceClip, VideoWidgetValues } from '@features/video/core/types';
+import type {
+ VideoConditioningClip,
+ VideoReferenceItem,
+ VideoSourceClip,
+ VideoWidgetValues,
+} from '@features/video/core/types';
import { createListCollection, HStack, Stack, Switch, Text } from '@chakra-ui/react';
import { GenerationSettingsSection, SeedField } from '@features/generation/components';
@@ -21,6 +26,7 @@ import {
import {
getAcceleratorLoraChangeResult,
getAcceleratorToggleResult,
+ getEffectiveVideoTiming,
getVideoDimensions,
getVideoModelPolicy,
getVideoModelSelectionResult,
@@ -39,6 +45,7 @@ import { useTranslation } from 'react-i18next';
import { areVideoValuesEqual } from './videoComparators';
import { VideoComponentsSection } from './VideoComponentsSection';
import { VideoConceptsSection } from './VideoConceptsSection';
+import { VideoConditioningClipField } from './VideoConditioningClipField';
import { VideoPromptFields } from './VideoFormFields';
import { VideoFrameImageField } from './VideoFrameImageField';
import { VideoReferenceListField } from './VideoReferenceListField';
@@ -143,10 +150,13 @@ export const VideoWidgetView = () => {
);
const policy = useMemo(() => getVideoModelPolicy(values.model ?? undefined, values), [values]);
const dimensions = useMemo(() => getVideoDimensions(values.model ?? undefined, values), [values]);
+ // What the run will actually use: a conditioning clip decides the length, and in the video role
+ // the frame rate too. The stored values stay put underneath, so clearing the clip restores them.
+ const timing = useMemo(() => getEffectiveVideoTiming(values.model ?? undefined, values), [values]);
const durationSeconds = getVideoDurationSeconds(
- values.numFrames,
+ timing.numFrames,
// In extend mode the extension inherits the SOURCE clip's frame rate.
- policy.fps.editable ? (values.sourceVideo?.fps ?? values.fps) : policy.fps.defaultValue
+ policy.fps.editable ? (values.sourceVideo?.fps ?? timing.fps) : policy.fps.defaultValue
);
const patch = useCallback((next: Partial<VideoWidgetValues>) => patchValues(next), [patchValues]);
@@ -282,10 +292,25 @@ export const VideoWidgetView = () => {
const maxVideoReferences = policy.references?.maxVideos ?? 3;
const setFirstFrame = useCallback(
(firstFrameImage: ImageWithDims | null) =>
- patch({ firstFrameImage, ...(firstFrameImage ? { sourceVideo: null } : {}) }),
+ patch({ firstFrameImage, ...(firstFrameImage ? { conditioningClip: null, sourceVideo: null } : {}) }),
+ [patch]
+ );
+ const setLastFrame = useCallback(
+ (lastFrameImage: ImageWithDims | null) =>
+ patch({ lastFrameImage, ...(lastFrameImage ? { conditioningClip: null } : {}) }),
+ [patch]
+ );
+ // A conditioning clip claims a whole modality, so it excludes every other conditioning slot --
+ // and each of those clears it in turn. The role a dropped clip arrives in comes from the gallery
+ // record: an uploaded soundtrack has no picture to condition on.
+ const setConditioningClip = useCallback(
+ (conditioningClip: VideoConditioningClip | null) =>
+ patch({
+ conditioningClip,
+ ...(conditioningClip ? { firstFrameImage: null, lastFrameImage: null, references: [], sourceVideo: null } : {}),
+ }),
[patch]
);
- const setLastFrame = useCallback((lastFrameImage: ImageWithDims | null) => patch({ lastFrameImage }), [patch]);
// Not part of `set`: that object is memoized on `patch` alone so the field
// setters keep the children's `memo` intact, and this one has to track the
// reference list. The linked tail reference's window is budgeted against the
@@ -339,10 +364,14 @@ export const VideoWidgetView = () => {
return;
}
- patch({ references, sourceVideo, ...(sourceVideo ? { firstFrameImage: null } : {}) });
+ patch({
+ references,
+ sourceVideo,
+ ...(sourceVideo ? { conditioningClip: null, firstFrameImage: null } : {}),
+ });
return;
}
- patch({ sourceVideo, ...(sourceVideo ? { firstFrameImage: null } : {}) });
+ patch({ sourceVideo, ...(sourceVideo ? { conditioningClip: null, firstFrameImage: null } : {}) });
},
[maxVideoReferences, patch, projectId, referenceExtend, t, values.numFrames]
);
@@ -374,7 +403,12 @@ export const VideoWidgetView = () => {
patch({
references: next,
...(next.length > 0
- ? { firstFrameImage: null, lastFrameImage: null, ...(referenceExtend ? {} : { sourceVideo: null }) }
+ ? {
+ conditioningClip: null,
+ firstFrameImage: null,
+ lastFrameImage: null,
+ ...(referenceExtend ? {} : { sourceVideo: null }),
+ }
: {}),
});
},
@@ -421,6 +455,7 @@ export const VideoWidgetView = () => {
const clearFirstFrame = useCallback(() => patch({ firstFrameImage: null }), [patch]);
const clearLastFrame = useCallback(() => patch({ lastFrameImage: null }), [patch]);
const clearSourceVideo = useCallback(() => patch({ sourceVideo: null }), [patch]);
+ const clearConditioningClip = useCallback(() => patch({ conditioningClip: null }), [patch]);
const targetResolutionCollection = useMemo(
() => createListCollection({ items: policy.targetResolutions.map((option) => ({ ...option, value: option.id })) }),
@@ -471,6 +506,7 @@ export const VideoWidgetView = () => {
const supportsLastFrame = policy.modes.includes('first-last') || policy.modes.includes('last-frame');
const supportsExtend = policy.modes.includes('extend');
const supportsReferences = policy.modes.includes('reference');
+ const supportsConditioningClip = policy.modes.includes('audio-to-video') || policy.modes.includes('video-to-audio');
const supportsInitialVideo = supportsExtend || referenceExtend;
// Setting an Initial Video on a reference-extend panel has to place a linked
// tail reference, which needs a free video slot -- unless an existing entry
@@ -482,7 +518,22 @@ export const VideoWidgetView = () => {
const initialVideoCapBlocked =
referenceExtend &&
!canPlaceReferenceExtendAnchor(values.references, values.sourceVideo?.video_name, maxVideoReferences);
- const hasConditioningMedia = Boolean(values.firstFrameImage || values.lastFrameImage || values.sourceVideo);
+ // The aspect-ratio control is locked by media that pins the frame. A clip in the `audio` role
+ // does not: its picture is what gets generated, so the ratio is still the user's to choose.
+ const hasConditioningMedia = Boolean(
+ values.firstFrameImage || values.lastFrameImage || values.sourceVideo || values.conditioningClip?.role === 'video'
+ );
+ const otherMediaSet = Boolean(
+ values.firstFrameImage || values.lastFrameImage || values.sourceVideo || values.references.length > 0
+ );
+ const conditioningDerivedText = values.conditioningClip
+ ? t(
+ values.conditioningClip.role === 'audio'
+ ? 'widgets.video.conditioningDerivedAudio'
+ : 'widgets.video.conditioningDerivedVideo',
+ { fps: timing.fps, frames: timing.numFrames }
+ )
+ : undefined;
const derivedSourceText = dimensions ? t(`widgets.video.dimensionSource.${dimensions.source}`) : undefined;
const derivedSizeText = dimensions
? `${t('widgets.video.derivedSize', { height: dimensions.height, width: dimensions.width })}${
@@ -490,6 +541,7 @@ export const VideoWidgetView = () => {
}`
: t('widgets.video.derivedSizeUnavailable');
const fpsLockedForExtend = policy.ui.fpsVisible && mode === 'extend';
+ const fpsLocked = fpsLockedForExtend || timing.fpsFromClip;
const durationText =
durationSeconds === null
? undefined
@@ -591,6 +643,9 @@ export const VideoWidgetView = () => {
{!supportsReferences && values.references.length > 0 ? (
<StaleMediaStub label={t('widgets.video.staleReferences')} onClear={clearReferences} />
) : null}
+ {!supportsConditioningClip && values.conditioningClip ? (
+ <StaleMediaStub label={t('widgets.video.staleConditioningClip')} onClear={clearConditioningClip} />
+ ) : null}
{supportsReferences ? (
<GenerationSettingsSection label={t('widgets.video.references')} sectionId="video-references" defaultOpen>
@@ -630,6 +685,24 @@ export const VideoWidgetView = () => {
</GenerationSettingsSection>
) : null}
+ {supportsConditioningClip ? (
+ <GenerationSettingsSection
+ label={t('widgets.video.conditioningClip')}
+ sectionId="video-conditioning-clip"
+ defaultOpen={Boolean(values.conditioningClip)}
+ >
+ <Stack gap="3" p="2">
+ <VideoConditioningClipField
+ conditioningClip={values.conditioningClip}
+ derivedText={conditioningDerivedText}
+ disabled={otherMediaSet}
+ disabledReason={otherMediaSet ? t('widgets.video.conditioningClipBlocked') : undefined}
+ onChange={setConditioningClip}
+ />
+ </Stack>
+ </GenerationSettingsSection>
+ ) : null}
+
<GenerationSettingsSection label={t('widgets.video.dimensions')} sectionId="video-dimensions" defaultOpen>
<Stack gap="3" p="2">
<Field helpText={derivedSizeText} label={t('widgets.video.aspectRatio')}>
@@ -662,25 +735,36 @@ export const VideoWidgetView = () => {
/>
</Field>
<ScrubberField
- helpText={durationText}
+ disabled={timing.numFramesFromClip}
+ helpText={
+ timing.numFramesFromClip
+ ? `${t('widgets.video.framesFromClip')}${durationText ? ` ${durationText}` : ''}`
+ : durationText
+ }
inputMax={framesSlider.inputMax}
label={t('widgets.video.frames')}
max={framesSlider.max}
min={framesSlider.min}
step={framesSlider.step}
- value={values.numFrames}
+ value={timing.numFrames}
onChange={setNumFrames}
/>
{policy.ui.fpsVisible ? (
<ScrubberField
- disabled={fpsLockedForExtend}
- helpText={fpsLockedForExtend ? t('widgets.video.fpsExtendLocked') : undefined}
+ disabled={fpsLocked}
+ helpText={
+ timing.fpsFromClip
+ ? t('widgets.video.fpsFromClip')
+ : fpsLockedForExtend
+ ? t('widgets.video.fpsExtendLocked')
+ : undefined
+ }
inputMax={policy.fps.max}
label={t('widgets.video.fps')}
max={60}
min={policy.fps.min}
step={1}
- value={values.fps}
+ value={timing.fps}
onChange={set.fps}
/>
) : (
diff --git a/invokeai/frontend/webv2/src/features/video/ui/videoComparators.ts b/invokeai/frontend/webv2/src/features/video/ui/videoComparators.ts
index c8e69e831c..a5ea14b4ac 100644
--- a/invokeai/frontend/webv2/src/features/video/ui/videoComparators.ts
+++ b/invokeai/frontend/webv2/src/features/video/ui/videoComparators.ts
@@ -57,6 +57,7 @@ export const areVideoValuesEqual = (left: VideoWidgetValues, right: VideoWidgetV
stableStringify(left.lastFrameImage) === stableStringify(right.lastFrameImage) &&
stableStringify(left.references) === stableStringify(right.references) &&
stableStringify(left.sourceVideo) === stableStringify(right.sourceVideo) &&
+ stableStringify(left.conditioningClip) === stableStringify(right.conditioningClip) &&
stableStringify(left.vae) === stableStringify(right.vae) &&
stableStringify(left.wanT5EncoderModel) === stableStringify(right.wanT5EncoderModel) &&
stableStringify(left.wanLowNoiseModel) === stableStringify(right.wanLowNoiseModel) &&
diff --git a/invokeai/frontend/webv2/src/features/video/ui/videoConditioningClipRole.browser.test.tsx b/invokeai/frontend/webv2/src/features/video/ui/videoConditioningClipRole.browser.test.tsx
new file mode 100644
index 0000000000..8004bc021a
--- /dev/null
+++ b/invokeai/frontend/webv2/src/features/video/ui/videoConditioningClipRole.browser.test.tsx
@@ -0,0 +1,177 @@
+import type { GalleryUiAdapter } from '@features/gallery/react';
+import type { VideoConditioningClip } from '@features/video/core/types';
+import type { ReactNode } from 'react';
+
+import { ChakraProvider } from '@chakra-ui/react';
+import { DndContext } from '@dnd-kit/core';
+import { GalleryUiProvider } from '@features/gallery/react';
+import { VideoUiProvider } from '@features/video/ui/VideoUiContext';
+import { system } from '@theme/system';
+import { createInstance } from 'i18next';
+import { act } from 'react';
+import { createRoot, type Root } from 'react-dom/client';
+import { I18nextProvider, initReactI18next } from 'react-i18next';
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
+
+import { VideoConditioningClipField } from './VideoConditioningClipField';
+
+/**
+ * The role decides which half of the clip the model is given and which it generates -- the whole
+ * difference between audio-to-video and video-to-audio. It reaches the panel through one Select
+ * whose value is an array, so a wrong-shaped value shows the placeholder while the stored role
+ * quietly stays whatever it was: a control that looks unset and generates the other mode.
+ */
+
+const CLIP: VideoConditioningClip = {
+ clip: { fps: 24, height: 704, numFrames: 96, video_name: 'clip.mp4', width: 1248 },
+ fpsKnown: true,
+ role: 'audio',
+};
+
+const noop = vi.fn();
+/** The media slot reaches for the gallery adapter on render; nothing here exercises it. */
+const galleryAdapter = {
+ ItemActionsProvider: ({ children }: { children: ReactNode }) => children,
+ ImageContextMenu: () => null,
+ antialiasProgressImages: false,
+ exportProject: noop,
+ followProgressSession: noop,
+ followedProgressSessionId: null,
+ gallery: new Proxy({}, { get: () => noop }),
+ galleryValues: {},
+ generateValues: {},
+ liveFollowEnabled: false,
+ notifications: { add: noop, reportError: noop },
+ pinnedProgressSessionId: null,
+ progressSessions: [],
+ projectId: 'project-1',
+ projectName: 'Project',
+ widgets: { openGallery: () => true, patchGalleryValues: noop },
+} as unknown as GalleryUiAdapter;
+
+/** The field reaches for find-in-gallery on render; nothing here exercises it. */
+const videoAdapter = {
+ findInGallery: noop,
+ getUploadBoardId: () => 'none',
+ patchValues: noop,
+ playVideoSpanInPreview: () => null,
+ projectId: 'project-1',
+ rawValues: {},
+ reportError: noop,
+ showPromptSyntaxHighlighting: false,
+ touchGalleryImages: noop,
+ videoSpanPlayback: { getState: () => null, subscribe: () => () => undefined },
+};
+
+const i18n = createInstance();
+
+void i18n.use(initReactI18next).init({
+ fallbackLng: 'en',
+ initAsync: false,
+ lng: 'en',
+ resources: {
+ en: {
+ translation: {
+ widgets: {
+ video: {
+ conditioningClipHelp: 'Drop a clip to generate the other half of it.',
+ conditioningRole: 'Use from this clip',
+ conditioningRoleAudio: 'Its soundtrack',
+ conditioningRoleVideo: 'Its picture',
+ conditioningRoleVideoHelp: 'The clip is re-encoded at the canvas.',
+ },
+ },
+ },
+ },
+ },
+});
+
+(globalThis as typeof globalThis & { IS_REACT_ACT_ENVIRONMENT: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
+
+describe('the conditioning clip role control', () => {
+ let host: HTMLDivElement;
+ let root: Root;
+ const onChange = vi.fn();
+ const mount = (conditioningClip: VideoConditioningClip | null, disabled?: { reason: string }) =>
+ act(() => {
+ root.render(
+ <I18nextProvider i18n={i18n}>
+ <ChakraProvider value={system}>
+ <GalleryUiProvider adapter={galleryAdapter}>
+ <VideoUiProvider adapter={videoAdapter}>
+ <DndContext>
+ <VideoConditioningClipField
+ conditioningClip={conditioningClip}
+ disabled={Boolean(disabled)}
+ disabledReason={disabled?.reason}
+ onChange={onChange}
+ />
+ </DndContext>
+ </VideoUiProvider>
+ </GalleryUiProvider>
+ </ChakraProvider>
+ </I18nextProvider>
+ );
+ });
+ const trigger = () => host.querySelector<HTMLButtonElement>('[data-scope="select"][data-part="trigger"]');
+
+ beforeEach(() => {
+ onChange.mockReset();
+ host = document.createElement('div');
+ document.body.append(host);
+ root = createRoot(host);
+ });
+
+ afterEach(async () => {
+ await act(() => root.unmount());
+ host.remove();
+ });
+
+ it('offers no role until a clip is set, then shows the one the clip is in', async () => {
+ await mount(null);
+ expect(trigger()).toBeNull();
+
+ await mount(CLIP);
+ expect(trigger()?.textContent).toContain('Its soundtrack');
+
+ await mount({ ...CLIP, role: 'video' });
+ expect(trigger()?.textContent).toContain('Its picture');
+ });
+
+ it('says what an empty slot is for, and why a blocked one cannot be used', async () => {
+ await mount(null);
+ expect(host.textContent).toContain('Drop a clip to generate the other half of it.');
+
+ // A disabled slot has to explain itself: the reason is the only thing telling the user which
+ // of four other controls to clear.
+ await mount(null, { reason: 'Clear the First Frame to use a conditioning clip.' });
+ expect(host.textContent).toContain('Clear the First Frame to use a conditioning clip.');
+ });
+
+ it('warns that a held picture comes back re-encoded, and only in that role', async () => {
+ await mount({ ...CLIP, role: 'video' });
+ expect(host.textContent).toContain('The clip is re-encoded at the canvas.');
+
+ await mount(CLIP);
+ expect(host.textContent).not.toContain('The clip is re-encoded at the canvas.');
+ });
+
+ it('keeps the role control out of reach while the slot is blocked', async () => {
+ await mount(CLIP, { reason: 'blocked' });
+ expect(trigger()?.disabled).toBe(true);
+ });
+
+ it('emits the picked role against the same clip', async () => {
+ await mount(CLIP);
+ await act(() => trigger()!.click());
+ await expect.poll(() => document.querySelectorAll('[role="option"]').length).toBe(2);
+
+ const picture = [...document.querySelectorAll<HTMLElement>('[role="option"]')].find((option) =>
+ option.textContent?.includes('Its picture')
+ );
+
+ await act(() => picture!.click());
+
+ expect(onChange).toHaveBeenCalledWith({ ...CLIP, role: 'video' });
+ });
+});
diff --git a/invokeai/frontend/webv2/src/workbench/image-actions/executeVideoRecall.test.ts b/invokeai/frontend/webv2/src/workbench/image-actions/executeVideoRecall.test.ts
index 2f226776d1..8c41cfeca6 100644
--- a/invokeai/frontend/webv2/src/workbench/image-actions/executeVideoRecall.test.ts
+++ b/invokeai/frontend/webv2/src/workbench/image-actions/executeVideoRecall.test.ts
@@ -127,6 +127,56 @@ const recallReferences = async (conditioning: unknown) => {
return written?.references;
};
+const ltx2Model = {
+ base: 'ltx-2',
+ format: 'checkpoint',
+ key: 'ltx2-main',
+ name: 'LTX-2.5 dev',
+ path: '/models/ltx2',
+ type: 'main',
+ variant: 'ltx2_dev',
+} as unknown as ModelConfig;
+
+const ltx2ConditioningMetadata = (role: unknown, videoName: unknown | null = 'song.mp4') => ({
+ generation_mode: role === 'audio' ? 'ltx2_a2v' : 'ltx2_v2a',
+ height: 704,
+ ltx2_conditioning_role: role,
+ ...(videoName === null ? {} : { ltx2_conditioning_video: { video_name: videoName } }),
+ model: { base: 'ltx-2', key: 'ltx2-main', name: 'LTX-2.5 dev', type: 'main' },
+ num_frames: 89,
+ positive_prompt: 'a red fox',
+ seed: 7,
+ steps: 30,
+ width: 1248,
+});
+
+/** Recalls an LTX-2 conditioned run onto a panel that starts with `startingValues`. */
+const recallConditioningClip = async (
+ role: unknown,
+ { startingValues, videoName }: { startingValues?: Record<string, unknown>; videoName?: unknown | null } = {}
+) => {
+ recallSeq += 1;
+
+ galleryApi.galleryVideos.metadata.mockResolvedValue(ltx2ConditioningMetadata(role, videoName));
+ // An ordinary gallery clip: `getDefaultConditioningRole` would take it for the VIDEO role, so a
+ // recalled `audio` role can only come from the metadata.
+ galleryApi.galleryItems.resolve.mockResolvedValue({ ...item, durationSeconds: 4, fps: 24, name: 'song.mp4' });
+ const { commands, patchValues } = createCommands();
+
+ await executeVideoRecall({
+ commands,
+ getVideoValues: () => ({
+ ...(createDefaultVideoWidgetValues([ltx2Model]) as unknown as Record<string, unknown>),
+ ...startingValues,
+ }),
+ item: { ...item, name: `ltx2-output-${recallSeq}.mp4` },
+ kind: 'all',
+ models: [ltx2Model],
+ });
+
+ return patchValues.mock.calls.at(-1)?.[1] as Record<string, unknown> | undefined;
+};
+
const createCommands = () => {
const patchValues = vi.fn();
const commands = {
@@ -194,6 +244,78 @@ describe('executeVideoRecall', () => {
});
});
+describe('the LTX-2 conditioning clip on recall', () => {
+ beforeEach(() => {
+ accountLifecycle.activate('test-account');
+ galleryApi.galleryVideos.metadata.mockReset();
+ galleryApi.galleryItems.resolve.mockReset();
+ });
+
+ // The role IS the mode: recalling an audio-to-video run as video-to-audio reproduces the
+ // opposite generation. And the clip it is read from is an ordinary gallery video, whose own
+ // default role is the other one -- so a dropped role does not fail loudly, it inverts.
+ it('restores the recorded role rather than the one a fresh drop would default to', async () => {
+ expect(await recallConditioningClip('audio')).toMatchObject({
+ conditioningClip: { clip: { video_name: 'song.mp4' }, role: 'audio' },
+ });
+ expect(await recallConditioningClip('video')).toMatchObject({
+ conditioningClip: { clip: { video_name: 'song.mp4' }, role: 'video' },
+ });
+ });
+
+ it('clears the other conditioning slots the recalled run did not use', async () => {
+ const written = await recallConditioningClip('audio', {
+ startingValues: {
+ firstFrameImage: { height: 704, image_name: 'held.png', width: 1248 },
+ sourceVideo: {
+ endFrame: 40,
+ fps: 24,
+ height: 704,
+ numFrames: 41,
+ startFrame: 0,
+ video_name: 'old.mp4',
+ width: 1248,
+ },
+ },
+ });
+
+ expect(written).toMatchObject({ firstFrameImage: null, references: [], sourceVideo: null });
+ });
+
+ it('clears a clip the panel is holding when the recalled run used none', async () => {
+ galleryApi.galleryVideos.metadata.mockResolvedValue({
+ ...ltx2ConditioningMetadata('audio'),
+ ltx2_conditioning_video: undefined,
+ ltx2_conditioning_role: undefined,
+ });
+ galleryApi.galleryItems.resolve.mockResolvedValue({ ...item, durationSeconds: 4, fps: 24, name: 'song.mp4' });
+ const { commands, patchValues } = createCommands();
+
+ await executeVideoRecall({
+ commands,
+ getVideoValues: () => ({
+ ...(createDefaultVideoWidgetValues([ltx2Model]) as unknown as Record<string, unknown>),
+ conditioningClip: {
+ clip: { fps: 24, height: 704, numFrames: 96, video_name: 'stale.mp4', width: 1248 },
+ fpsKnown: true,
+ role: 'audio',
+ },
+ }),
+ item: { ...item, name: 'ltx2-output-cleared.mp4' },
+ kind: 'all',
+ models: [ltx2Model],
+ });
+
+ expect(patchValues.mock.calls.at(-1)?.[1]).toMatchObject({ conditioningClip: null });
+ });
+
+ it('drops a half-recorded clip rather than guessing the missing half', async () => {
+ expect(await recallConditioningClip(undefined)).toMatchObject({ conditioningClip: null });
+ expect(await recallConditioningClip('audio', { videoName: null })).toMatchObject({ conditioningClip: null });
+ expect(await recallConditioningClip('nonsense')).toMatchObject({ conditioningClip: null });
+ });
+});
+
describe('ref2va reference conditioning on recall', () => {
beforeEach(() => {
accountLifecycle.activate('test-account');
diff --git a/invokeai/frontend/webv2/src/workbench/image-actions/executeVideoRecall.ts b/invokeai/frontend/webv2/src/workbench/image-actions/executeVideoRecall.ts
index 5f722da322..0651bfce7a 100644
--- a/invokeai/frontend/webv2/src/workbench/image-actions/executeVideoRecall.ts
+++ b/invokeai/frontend/webv2/src/workbench/image-actions/executeVideoRecall.ts
@@ -7,6 +7,7 @@ import type { WorkbenchCommands } from '@workbench/workbenchStore';
import { galleryImages, galleryItems, galleryVideos } from '@features/gallery';
import {
createDefaultVideoWidgetValues,
+ createVideoConditioningClip,
createVideoSourceClip,
getDefaultReferenceConditioning,
getVideoModelPolicy,
@@ -149,6 +150,41 @@ export const executeVideoRecall = async ({
recalledMedia = true;
}
+ const { conditioningClip } = result.mediaNames;
+
+ if (conditioningClip) {
+ try {
+ const clipItem = await galleryItems.resolve({ kind: 'video', name: conditioningClip.name }, owner.signal);
+
+ assertAccountScopeCurrent(owner);
+ if (clipItem?.kind === 'video') {
+ // The recorded role, not the one a fresh drop would default to: the run held that
+ // modality clean, and the other role is a different generation entirely.
+ result.values = {
+ ...result.values,
+ conditioningClip: {
+ ...createVideoConditioningClip({
+ durationSeconds: clipItem.durationSeconds,
+ fps: clipItem.fps,
+ height: clipItem.height,
+ name: clipItem.name,
+ width: clipItem.width,
+ }),
+ role: conditioningClip.role,
+ },
+ firstFrameImage: null,
+ lastFrameImage: null,
+ references: [],
+ sourceVideo: null,
+ };
+ recalledMedia = true;
+ }
+ } catch {
+ assertAccountScopeCurrent(owner);
+ // The clip is gone; the rest of the recall still applies.
+ }
+ }
+
if (sourceVideoName) {
try {
const sourceItem = await galleryItems.resolve({ kind: 'video', name: sourceVideoName }, owner.signal);
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 e113c01e72..5e9dd930c3 100644
--- a/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.test.ts
+++ b/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.test.ts
@@ -282,6 +282,7 @@ describe('buildVideoRecallSettings', () => {
expect(result?.fields).toContain('media');
expect(result?.mediaNames).toEqual({
+ conditioningClip: null,
firstFrameName: 'first.png',
lastFrameName: null,
references: [],
diff --git a/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.ts b/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.ts
index d9f26cdf73..114f357c3f 100644
--- a/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.ts
+++ b/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.ts
@@ -4,7 +4,12 @@ import type {
LoraModelConfig,
MainModelConfig,
} from '@features/generation/contracts';
-import type { VideoAspectRatioId, VideoTargetResolution, VideoWidgetValues } from '@features/video';
+import type {
+ VideoAspectRatioId,
+ VideoConditioningRole,
+ VideoTargetResolution,
+ VideoWidgetValues,
+} from '@features/video';
import { isLoraCompatibleWithModel, isLoraModelConfig } from '@features/generation/settings';
import {
@@ -58,6 +63,8 @@ const VIDEO_GENERATION_MODE_IDS: ReadonlySet<string> = new Set([
'minimax_h3_ref2v',
'ltx2_t2v',
'ltx2_i2v',
+ 'ltx2_a2v',
+ 'ltx2_v2a',
]);
export type VideoRecallKind = 'all' | 'remix' | 'prompts' | 'seed';
@@ -246,6 +253,18 @@ const getImageName = (metadata: unknown, key: string): string | null => {
return typeof field?.image_name === 'string' ? field.image_name : null;
};
+/** The whole-modality conditioning clip, from the LTX-2 extras the graph records. */
+const getRecallableConditioningClip = (metadata: unknown): VideoRecallConditioningClip | null => {
+ const field = getRecord(metadata, 'ltx2_conditioning_video');
+ const role = isRecord(metadata) ? metadata.ltx2_conditioning_role : undefined;
+
+ if (typeof field?.video_name !== 'string' || (role !== 'audio' && role !== 'video')) {
+ return null;
+ }
+
+ return { name: field.video_name, role };
+};
+
const getSourceVideoName = (metadata: unknown): string | null => {
const field = getRecord(metadata, 'source_video');
@@ -322,6 +341,7 @@ export const getVideoSizeRecall = (
for (const option of getVideoTargetResolutionOptions(model)) {
const derived = getVideoDimensions(model, {
aspectRatioId,
+ conditioningClip: null,
firstFrameImage: null,
lastFrameImage: null,
sourceVideo: null,
@@ -401,7 +421,14 @@ export const getVideoRecallCapabilities = (metadata: unknown): VideoRecallCapabi
* against the gallery (existence + dimensions/probe data the metadata does not
* carry) before they become widget values.
*/
+export interface VideoRecallConditioningClip {
+ name: string;
+ role: VideoConditioningRole;
+}
+
export interface VideoRecallMediaNames {
+ /** The LTX-2 whole-modality conditioning clip, which excludes every other slot below. */
+ conditioningClip: VideoRecallConditioningClip | null;
firstFrameName: string | null;
lastFrameName: string | null;
sourceVideoName: string | null;
@@ -480,6 +507,7 @@ export const buildVideoRecallSettings = ({
// recalled prompts must survive that. Merged in at each return instead.
let promptPatch: Partial<VideoWidgetValues> | null = null;
const mediaNames: VideoRecallMediaNames = {
+ conditioningClip: null,
firstFrameName: null,
lastFrameName: null,
references: [],
@@ -732,10 +760,12 @@ export const buildVideoRecallSettings = ({
const media = getRecallableMediaNames(metadata);
const references = getRecallableReferences(metadata);
+ const conditioningClip = getRecallableConditioningClip(metadata);
// Judged against the ORIGINAL panel state: the model transition above may
// already have cleared media the new family cannot consume, and that change
// is still part of what this recall did.
const hadMedia = Boolean(
+ currentValues.conditioningClip ||
currentValues.firstFrameImage ||
currentValues.lastFrameImage ||
currentValues.sourceVideo ||
@@ -746,10 +776,22 @@ export const buildVideoRecallSettings = ({
// recall must reproduce the recorded media EXACTLY: whatever the panel held
// is cleared, and the executor re-hydrates the recorded names on top.
if (hadMedia) {
- values = { ...values, firstFrameImage: null, lastFrameImage: null, references: [], sourceVideo: null };
+ values = {
+ ...values,
+ conditioningClip: null,
+ firstFrameImage: null,
+ lastFrameImage: null,
+ references: [],
+ sourceVideo: null,
+ };
}
- if (references.length > 0) {
+ if (conditioningClip) {
+ // First, and alone: the clip holds a whole modality clean, so no other slot could have been
+ // filled on the run being recalled.
+ mediaNames.conditioningClip = conditioningClip;
+ fields.push('media');
+ } else if (references.length > 0) {
// References replace the frame slots, but a recorded source video rides
// ALONGSIDE them: Ref2VA reference-extend appends the new clip to it.
mediaNames.references = references;
diff --git a/tests/app/invocations/test_ltx2_nodes.py b/tests/app/invocations/test_ltx2_nodes.py
index 80c1ba1960..bf4f0be55a 100644
--- a/tests/app/invocations/test_ltx2_nodes.py
+++ b/tests/app/invocations/test_ltx2_nodes.py
@@ -5,16 +5,28 @@ from pathlib import Path
from types import SimpleNamespace
from unittest.mock import MagicMock
+import numpy as np
import pytest
import torch
from PIL import Image
+import invokeai.app.invocations.ltx2.ltx2_audio_conditioning as ltx2_audio_conditioning
+import invokeai.app.invocations.ltx2.ltx2_video_conditioning as ltx2_video_conditioning
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.fields import (
+ LatentsField,
+ LTX2AudioConditioningField,
+ LTX2ConditioningField,
+ LTX2FullVideoConditioningField,
+ LTX2VideoConditioningField,
+ VideoField,
+)
+from invokeai.app.invocations.ltx2.ltx2_audio_conditioning import LTX2AudioConditioningInvocation
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_latent_upsample import LTX2LatentUpsampleInvocation
from invokeai.app.invocations.ltx2.ltx2_model_loader import LTX2ModelLoaderInvocation
+from invokeai.app.invocations.ltx2.ltx2_video_conditioning import LTX2VideoConditioningInvocation
from invokeai.app.invocations.model import (
LTX2LatentUpsamplerField,
LTX2TransformerField,
@@ -23,7 +35,14 @@ from invokeai.app.invocations.model import (
VAEField,
)
from invokeai.app.invocations.vae.ltx2_latents_to_video import LTX2LatentsToVideoInvocation
+from invokeai.backend.ltx2.constants import (
+ LTX2_AUDIO_LATENT_CHANNELS,
+ LTX2_AUDIO_LATENT_MEL_BINS,
+ LTX2_LATENT_CHANNELS,
+)
+from invokeai.backend.ltx2.denoise import build_denoise_state
from invokeai.backend.ltx2.image_conditioning import fit_to_canvas, recompress_h264
+from invokeai.backend.ltx2.packing import audio_latent_count, latent_frame_count, validate_num_frames
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
@@ -465,5 +484,283 @@ def test_the_refine_pass_forwards_the_noise_level_the_node_was_given(monkeypatch
assert captured["noise_scale"] == 0.42
+# ---------------------------------------------------------------------------
+# Whole-modality conditioning: a clip's soundtrack, or its picture
+
+
+def _audio_conditioning(**kwargs) -> LTX2AudioConditioningInvocation:
+ defaults = {
+ "video": VideoField(video_name="clip.mp4"),
+ "audio_vae": VAEField(vae=_identifier("audio_vae")),
+ "vocoder": LTX2VocoderField(vocoder=_identifier("vocoder")),
+ }
+ return LTX2AudioConditioningInvocation(id="audio_cond", **{**defaults, **kwargs})
+
+
+def _video_conditioning(**kwargs) -> LTX2VideoConditioningInvocation:
+ defaults = {"video": VideoField(video_name="clip.mp4"), "vae": VAEField(vae=_identifier("vae"))}
+ return LTX2VideoConditioningInvocation(id="video_cond", **{**defaults, **kwargs})
+
+
+def _ltx2_vae_context(base: BaseModelType = BaseModelType.LTX2) -> MagicMock:
+ context = _context()
+ context.models.load.return_value.config.base = base
+ context.models.load.return_value.model_on_device.return_value.__enter__.return_value = (None, MagicMock())
+ return context
+
+
+def test_a_clip_with_no_soundtrack_says_so_instead_of_conditioning_on_silence(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ """A silent clip would encode to a valid, uniformly quiet latent -- the model would hold it
+ clean and generate a picture scored against nothing."""
+ monkeypatch.setattr(ltx2_audio_conditioning, "extract_audio_pcm", lambda *_a, **_k: None)
+
+ with pytest.raises(ValueError, match="no audio track"):
+ _audio_conditioning().invoke(_ltx2_vae_context())
+
+
[email protected]("node", ["audio", "video"])
+def test_a_conditioning_node_refuses_a_vae_from_another_architecture(
+ monkeypatch: pytest.MonkeyPatch, node: str
+) -> None:
+ monkeypatch.setattr(ltx2_audio_conditioning, "extract_audio_pcm", lambda *_a, **_k: (np.zeros((2, 48000)), 48000))
+ invocation = _audio_conditioning() if node == "audio" else _video_conditioning()
+
+ with pytest.raises(ValueError, match="Expected an LTX-2"):
+ invocation.invoke(_ltx2_vae_context(BaseModelType.Wan))
+
+
+ ("audio_latents", "fps", "expected_frames"),
+ [
+ # 25 audio latents per second: 100 latents is four seconds, which at 24 fps is 96 frames
+ # and snaps DOWN to 89 -- the clip is never asked to cover more picture than it has sound.
+ (100, 24.0, 89),
+ (100, 30.0, 113),
+ # A rate that divides evenly still snaps down rather than to the nearest.
+ (75, 24.0, 65),
+ ],
+)
+def test_the_soundtracks_length_decides_the_frame_count(
+ monkeypatch: pytest.MonkeyPatch, audio_latents: int, fps: float, expected_frames: int
+) -> None:
+ monkeypatch.setattr(ltx2_audio_conditioning, "extract_audio_pcm", lambda *_a, **_k: (np.zeros((2, 48000)), 48000))
+ monkeypatch.setattr(
+ ltx2_audio_conditioning,
+ "encode_audio_latents",
+ lambda *_a, **_k: torch.zeros(1, audio_latents, LTX2_AUDIO_LATENT_CHANNELS * LTX2_AUDIO_LATENT_MEL_BINS),
+ )
+ context = _ltx2_vae_context()
+ context.tensors.save.return_value = "audio_conditioning"
+
+ output = _audio_conditioning(fps=fps).invoke(context)
+
+ assert output.num_frames == expected_frames
+ validate_num_frames(output.num_frames)
+ assert output.fps == fps
+ # The saved soundtrack is trimmed to the span the frame count covers, so the field reports that
+ # count rather than everything the encoder produced -- see the seam test below.
+ assert output.audio_conditioning.num_audio_latents == audio_latent_count(expected_frames, fps)
+ # The output field carries the clip back to the decode node, which muxes the original
+ # recording in place of the generated soundtrack.
+ assert output.audio_conditioning.source_video_name == "clip.mp4"
+
+
+ ("audio_latents", "fps"),
+ [(100, 24.0), (100, 30.0), (75, 24.0), (125, 25.0), (251, 24.0), (1000, 60.0), (63, 16.0)],
+)
+def test_the_soundtrack_this_node_saves_is_the_one_the_denoise_asks_for(
+ monkeypatch: pytest.MonkeyPatch, audio_latents: int, fps: float
+) -> None:
+ """The seam between the two halves of audio-to-video, which neither side can check alone.
+
+ This node decides the frame count; `build_denoise_state` then sizes the audio stream from that
+ count and refuses a tensor of any other length. Because the count is snapped DOWN, it spans
+ slightly less than the recording -- so saving the whole encode makes the two disagree on every
+ real soundtrack, and the run dies after the text encoder has already paid for itself.
+ """
+ monkeypatch.setattr(ltx2_audio_conditioning, "extract_audio_pcm", lambda *_a, **_k: (np.zeros((2, 48000)), 48000))
+ monkeypatch.setattr(
+ ltx2_audio_conditioning,
+ "encode_audio_latents",
+ lambda *_a, **_k: torch.zeros(1, audio_latents, LTX2_AUDIO_LATENT_CHANNELS * LTX2_AUDIO_LATENT_MEL_BINS),
+ )
+ saved: dict[str, torch.Tensor] = {}
+ context = _ltx2_vae_context()
+
+ def capture(tensor: torch.Tensor) -> str:
+ saved["latents"] = tensor
+ return "audio"
+
+ context.tensors.save.side_effect = capture
+
+ output = _audio_conditioning(fps=fps).invoke(context)
+
+ # The real denoise state, built exactly as the graph builds it: the node's own frame count and
+ # frame rate, and the tensor it actually saved.
+ state = build_denoise_state(
+ num_frames=output.num_frames,
+ height=512,
+ width=768,
+ fps=output.fps,
+ seed=1,
+ distilled=False,
+ num_steps=2,
+ frozen_audio_latents=saved["latents"],
+ )
+
+ assert state.audio_conditioning_mask is not None
+ assert state.audio_conditioning_mask.shape == (1, state.audio_latents_count)
+ assert state.audio_latents.shape[1] == state.audio_latents_count
+ # And the node reports what it saved, so the field is not a second, divergent source of truth.
+ assert output.audio_conditioning.num_audio_latents == saved["latents"].shape[1]
+
+
+def test_a_soundtrack_under_one_frame_group_is_refused_with_its_length(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ monkeypatch.setattr(ltx2_audio_conditioning, "extract_audio_pcm", lambda *_a, **_k: (np.zeros((2, 4800)), 48000))
+ monkeypatch.setattr(
+ ltx2_audio_conditioning,
+ "encode_audio_latents",
+ lambda *_a, **_k: torch.zeros(1, 5, LTX2_AUDIO_LATENT_CHANNELS * LTX2_AUDIO_LATENT_MEL_BINS),
+ )
+
+ with pytest.raises(ValueError, match="0.20s long"):
+ _audio_conditioning().invoke(_ltx2_vae_context())
+
+
+def test_the_conditioning_clip_drops_its_ragged_tail_rather_than_padding_it(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ """Padding would invent picture for the model to score a soundtrack against; the frames past
+ the last whole group are simply not part of the generation."""
+ frames = [np.full((64, 64, 3), index % 256, dtype=np.uint8) for index in range(20)]
+ encoded: dict[str, torch.Tensor] = {}
+
+ monkeypatch.setattr(ltx2_video_conditioning, "iter_video_frames", lambda *_a, **_k: iter(frames))
+
+ def encode(pixels):
+ encoded["pixels"] = pixels
+ latent_frames = latent_frame_count(17)
+ return SimpleNamespace(
+ latent_dist=SimpleNamespace(
+ mode=lambda: torch.zeros(1, LTX2_LATENT_CHANNELS, latent_frames, 512 // 32, 768 // 32)
+ )
+ )
+
+ # The encode is tiled, so the stub carries the compression ratios and the tiling attributes
+ # `scoped_ltx2_tiling` snapshots and restores -- a VAE missing them is one this node cannot run.
+ vae = SimpleNamespace(
+ config=SimpleNamespace(scaling_factor=1.0),
+ enable_tiling=lambda **_kwargs: None,
+ encode=encode,
+ latents_mean=torch.zeros(LTX2_LATENT_CHANNELS),
+ latents_std=torch.ones(LTX2_LATENT_CHANNELS),
+ buffers=lambda: iter([]),
+ encoder=torch.nn.Identity(),
+ parameters=lambda: iter([torch.zeros(1)]),
+ spatial_compression_ratio=32,
+ temporal_compression_ratio=8,
+ use_framewise_encoding=False,
+ use_framewise_decoding=False,
+ use_tiling=False,
+ )
+ context = _ltx2_vae_context()
+ context.models.load.return_value.model_on_device.return_value.__enter__.return_value = (None, vae)
+ context.tensors.save.return_value = "video_conditioning"
+
+ output = _video_conditioning(width=768, height=512).invoke(context)
+
+ # 20 frames is two whole groups plus three: 17 frames run, three are dropped.
+ assert output.num_frames == 17
+ assert encoded["pixels"].shape == (1, 3, 17, 512, 768)
+ # And the frames arrive in [-1, 1] with the VAE's own scaling, not raw bytes. The conversion
+ # runs in the VAE's dtype to avoid a second copy of the clip, so the order of operations
+ # matters: `x / 127.5 - 1` cancels at mid-grey in bf16 and loses the value entirely.
+ sources = torch.tensor([index % 256 for index in range(17)], dtype=torch.float32)
+ expected = sources.div(127.5).sub(1.0)
+ assert torch.allclose(encoded["pixels"][0, 0, :, 0, 0].float(), expected, atol=2e-3)
+ assert output.video_conditioning.width == 768
+ assert output.video_conditioning.height == 512
+
+
+def test_a_conditioning_clip_under_one_frame_group_is_refused_with_its_length(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ monkeypatch.setattr(
+ ltx2_video_conditioning,
+ "iter_video_frames",
+ lambda *_a, **_k: iter([np.zeros((64, 64, 3), dtype=np.uint8) for _ in range(5)]),
+ )
+
+ with pytest.raises(ValueError, match="decoded to 5 frame"):
+ _video_conditioning().invoke(_ltx2_vae_context())
+
+
+ "conditioning",
+ [
+ {
+ "audio_conditioning": LTX2AudioConditioningField(
+ latents_name="audio", num_audio_latents=100, num_frames=89, fps=24.0, source_video_name="clip.mp4"
+ )
+ },
+ {
+ "full_video_conditioning": LTX2FullVideoConditioningField(
+ latents_name="video", width=1248, height=704, num_frames=89, fps=24.0
+ )
+ },
+ ],
+)
+def test_a_held_modality_cannot_be_combined_with_a_refine_pass(conditioning: dict) -> None:
+ """The refine pass re-noises every token, so the held stream would have to be re-encoded at the
+ second canvas. Refused before the transformer loads rather than silently dropped."""
+ node = _denoise(
+ latents=LatentsField(latents_name="upscaled"),
+ audio_latents=LatentsField(latents_name="audio"),
+ num_frames=89,
+ **conditioning,
+ )
+
+ with pytest.raises(ValueError, match="does not run a refine pass"):
+ node.invoke(_context())
+
+
+ ("conditioning", "expected"),
+ [
+ (
+ {
+ "audio_conditioning": LTX2AudioConditioningField(
+ latents_name="audio", num_audio_latents=93, num_frames=89, fps=30.0, source_video_name="clip.mp4"
+ )
+ },
+ "fps 30.0 vs 24.0",
+ ),
+ (
+ {
+ "full_video_conditioning": LTX2FullVideoConditioningField(
+ latents_name="video", width=768, height=704, num_frames=89, fps=24.0
+ )
+ },
+ "width 768 vs 1248",
+ ),
+ ],
+)
+def test_a_conditioning_prepared_for_a_different_run_is_named_before_the_transformer_loads(
+ conditioning: dict, expected: str
+) -> None:
+ """`fps` is the one the latent shapes cannot catch -- no tensor encodes it -- and it sets the
+ audio stream's length, so a mismatch would quietly generate a soundtrack for the wrong
+ duration. The canvas and frame count are checked here too, where the message can name them."""
+ node = _denoise(num_frames=89, fps=24.0, width=1248, height=704, **conditioning)
+
+ with pytest.raises(ValueError, match=expected):
+ node.invoke(_context())
+
+
class _StopAfterState(Exception):
"""Ends the invocation once the state has been built, before any model is loaded."""
diff --git a/tests/backend/ltx2/test_ltx2_audio_conditioning.py b/tests/backend/ltx2/test_ltx2_audio_conditioning.py
new file mode 100644
index 0000000000..3bdf8e7dba
--- /dev/null
+++ b/tests/backend/ltx2/test_ltx2_audio_conditioning.py
@@ -0,0 +1,163 @@
+"""Waveform -> LTX-2 audio latents: the log-mel front end the release does not ship separately."""
+
+from types import SimpleNamespace
+
+import pytest
+import torch
+
+from invokeai.backend.ltx2.audio_conditioning import build_mel_transform, encode_audio_latents
+from invokeai.backend.ltx2.constants import LTX2_AUDIO_LATENT_CHANNELS, LTX2_AUDIO_LATENT_MEL_BINS
+
+# The released shapes: the vocoder analyses at 512/512 into 64 mel bands, and the audio VAE mels
+# its own 16 kHz rate at a hop of 160 -- 100 mel frames a second, 25 latents after its downscale.
+FILTER_LENGTH = 512
+MEL_CHANNELS = 64
+VAE_HOP = 160
+VAE_RATE = 16000
+
+
+def _vocoder(hop_length: int = 80, out_channels: int = 2) -> SimpleNamespace:
+ """A vocoder whose filters carry recognisable values, as a checkpoint-loaded one would."""
+ from diffusers.pipelines.ltx2.vocoder import MelSTFT
+
+ mel_stft = MelSTFT(
+ filter_length=FILTER_LENGTH, hop_length=hop_length, window_length=FILTER_LENGTH, num_mel_channels=MEL_CHANNELS
+ )
+ with torch.no_grad():
+ mel_stft.mel_basis.copy_(torch.full_like(mel_stft.mel_basis, 0.25))
+ mel_stft.stft_fn.forward_basis.copy_(torch.full_like(mel_stft.stft_fn.forward_basis, 0.5))
+ mel_stft.stft_fn.inverse_basis.copy_(torch.full_like(mel_stft.stft_fn.inverse_basis, 0.75))
+
+ return SimpleNamespace(
+ config=SimpleNamespace(
+ filter_length=FILTER_LENGTH,
+ num_mel_channels=MEL_CHANNELS,
+ out_channels=out_channels,
+ window_length=FILTER_LENGTH,
+ ),
+ mel_stft=mel_stft,
+ )
+
+
+class _AudioVaeStub:
+ """Records the log-mel it was handed and returns a latent of the matching length."""
+
+ def __init__(self) -> None:
+ self.config = SimpleNamespace(mel_hop_length=VAE_HOP, sample_rate=VAE_RATE)
+ self.latents_mean = torch.full((LTX2_AUDIO_LATENT_CHANNELS * LTX2_AUDIO_LATENT_MEL_BINS,), 2.0)
+ self.latents_std = torch.full((LTX2_AUDIO_LATENT_CHANNELS * LTX2_AUDIO_LATENT_MEL_BINS,), 4.0)
+ self.log_mel: torch.Tensor | None = None
+
+ def parameters(self):
+ return iter([torch.zeros(1)])
+
+ def buffers(self):
+ # `get_effective_device` walks parameters and buffers to find where the model really is.
+ return iter([])
+
+ def encode(self, log_mel: torch.Tensor):
+ self.log_mel = log_mel
+ # The released VAE compresses mel frames 2x in time and the mel bins to 16.
+ latents = torch.arange(
+ log_mel.shape[2] // 2 * LTX2_AUDIO_LATENT_CHANNELS * LTX2_AUDIO_LATENT_MEL_BINS, dtype=torch.float32
+ )
+ latents = latents.view(1, LTX2_AUDIO_LATENT_CHANNELS, log_mel.shape[2] // 2, LTX2_AUDIO_LATENT_MEL_BINS)
+ return SimpleNamespace(latent_dist=SimpleNamespace(mode=lambda: latents))
+
+
+def test_a_rebuilt_mel_transform_carries_the_checkpoints_filters_rather_than_zeros() -> None:
+ """Both bases are persistent buffers a checkpoint fills; a fresh module registers them as
+ zeros, which emits the log floor for every input. Re-striding must copy, not reconstruct."""
+ from diffusers.pipelines.ltx2.vocoder import MelSTFT
+
+ source = _vocoder(hop_length=320)
+ fresh = MelSTFT(
+ filter_length=FILTER_LENGTH, hop_length=VAE_HOP, window_length=FILTER_LENGTH, num_mel_channels=MEL_CHANNELS
+ )
+ assert float(fresh.mel_basis.abs().sum()) == 0.0
+ assert float(fresh.stft_fn.forward_basis.abs().sum()) == 0.0
+
+ rebuilt = build_mel_transform(source, hop_length=VAE_HOP)
+
+ assert torch.equal(rebuilt.mel_basis, source.mel_stft.mel_basis)
+ assert torch.equal(rebuilt.stft_fn.forward_basis, source.mel_stft.stft_fn.forward_basis)
+ assert torch.equal(rebuilt.stft_fn.inverse_basis, source.mel_stft.stft_fn.inverse_basis)
+
+
+def test_the_rebuilt_transform_runs_at_the_vaes_hop_and_not_the_vocoders() -> None:
+ """The hop is the only thing that changes, and it is what sets the latent rate: at the
+ vocoder's own hop the result would be twice as many latents as the packing accepts."""
+ source = _vocoder(hop_length=VAE_HOP * 2)
+ waveform = torch.randn(1, VAE_HOP * 200)
+
+ at_vae_hop = build_mel_transform(source, hop_length=VAE_HOP)(waveform)[0]
+ at_vocoder_hop = source.mel_stft(waveform)[0]
+
+ assert at_vae_hop.shape[2] == 200
+ assert at_vocoder_hop.shape[2] == 100
+
+
+def test_a_mono_recording_is_widened_to_the_channels_the_model_takes() -> None:
+ vae = _AudioVaeStub()
+ encode_audio_latents(vae, _vocoder(), torch.randn(1, VAE_HOP * 50), sample_rate=VAE_RATE)
+
+ assert vae.log_mel is not None
+ assert vae.log_mel.shape[1] == 2
+
+
+def test_a_recording_with_more_channels_than_the_model_takes_is_refused_by_count() -> None:
+ """Down-mixing is a decision with an audible result; making it silently would condition the
+ generation on a soundtrack the user never heard."""
+ with pytest.raises(ValueError, match="6 channels"):
+ encode_audio_latents(_AudioVaeStub(), _vocoder(), torch.randn(6, VAE_HOP * 50), sample_rate=VAE_RATE)
+
+
+def test_a_waveform_at_another_rate_is_resampled_to_the_vaes_own() -> None:
+ """The mel hop is in samples, so a 44.1 kHz recording read as if it were 48 kHz would shift
+ every latent -- the picture would follow the soundtrack at the wrong speed."""
+ vae = _AudioVaeStub()
+ seconds = 2.0
+ encode_audio_latents(vae, _vocoder(), torch.randn(2, int(44100 * seconds)), sample_rate=44100)
+
+ assert vae.log_mel is not None
+ # Frames are the resampled length over the hop, not the source length over the hop.
+ assert vae.log_mel.shape[2] == pytest.approx(VAE_RATE * seconds / VAE_HOP, abs=1)
+
+
[email protected]("extra_samples", [0, 1, VAE_HOP - 1])
+def test_a_ragged_tail_is_padded_to_a_whole_hop_before_the_mel(extra_samples: int) -> None:
+ """The VAE's temporal downscale fixes the latent count off the mel frame count; a partial hop
+ would shift every latent after it."""
+ vae = _AudioVaeStub()
+ encode_audio_latents(vae, _vocoder(), torch.randn(2, VAE_HOP * 50 + extra_samples), sample_rate=VAE_RATE)
+
+ assert vae.log_mel is not None
+ assert vae.log_mel.shape[2] == (51 if extra_samples else 50)
+
+
+def test_the_latents_come_back_packed_and_normalized_on_the_vaes_own_statistics() -> None:
+ vae = _AudioVaeStub()
+
+ latents = encode_audio_latents(vae, _vocoder(), torch.randn(2, VAE_HOP * 100), sample_rate=VAE_RATE)
+
+ assert latents.shape == (1, 50, LTX2_AUDIO_LATENT_CHANNELS * LTX2_AUDIO_LATENT_MEL_BINS)
+ # The statistics are per packed row element, so they apply after packing, not before: the row
+ # the model reads is (value - mean) / std with the stub's 2.0 and 4.0.
+ raw = vae.encode(vae.log_mel).latent_dist.mode()
+ expected = (raw.transpose(1, 2).flatten(2, 3) - 2.0) / 4.0
+ assert torch.allclose(latents, expected)
+
+
+def test_a_waveform_that_is_not_channels_by_samples_is_refused() -> None:
+ with pytest.raises(ValueError, match="channels, samples"):
+ encode_audio_latents(_AudioVaeStub(), _vocoder(), torch.randn(VAE_HOP * 50), sample_rate=VAE_RATE)
+
+
+def test_a_vae_that_returns_the_wrong_audio_shape_is_named_rather_than_packed() -> None:
+ vae = _AudioVaeStub()
+ vae.encode = lambda log_mel: SimpleNamespace( # type: ignore[method-assign]
+ latent_dist=SimpleNamespace(mode=lambda: torch.zeros(1, 4, 50, 8))
+ )
+
+ with pytest.raises(ValueError, match="4 channels x 8 mel bins"):
+ encode_audio_latents(vae, _vocoder(), torch.randn(2, VAE_HOP * 100), sample_rate=VAE_RATE)
diff --git a/tests/backend/ltx2/test_ltx2_decoding.py b/tests/backend/ltx2/test_ltx2_decoding.py
index a91d58e182..b3c0831b8a 100644
--- a/tests/backend/ltx2/test_ltx2_decoding.py
+++ b/tests/backend/ltx2/test_ltx2_decoding.py
@@ -158,6 +158,34 @@ def test_the_video_reservation_follows_the_tile_and_the_clip() -> None:
)
+def test_the_tiled_encode_reservation_holds_at_the_shapes_it_was_measured_at() -> None:
+ """A whole conditioning clip is encoded tiled, which is a different cost shape from the
+ first-frame encode the untiled branch is fitted to -- reading that one here would over-reserve
+ it roughly twofold, and cache the rest of the graph loses is not free."""
+ vae = VaeStub()
+
+ def tiled(frames: int, h: int = 704, w: int = 1248) -> float:
+ return (
+ estimate_vae_working_memory_ltx2("encode", vae, h, w, frames, tile_size=512, temporal_tile=16, tiled=True)
+ / 2**30
+ )
+
+ # Measured on a W7900 at 512/16: 2.82, 2.87, 3.20, 3.78 and 4.02 GiB.
+ assert tiled(33, 512, 768) > 2.82
+ assert tiled(121, 512, 768) > 2.87
+ assert tiled(121) > 3.20
+ assert tiled(241) > 3.78
+ assert tiled(121, 1088, 1920) > 4.02
+
+ # The tile term is flat in the clip's length -- that is the whole reason tiling is used here --
+ # so only the clip term grows, and a long clip must not be estimated as a short one.
+ assert tiled(241) > tiled(121) > tiled(33)
+ # And the untiled branch stays where it was: it is fitted to one frame, where the per-tile
+ # fixed cost dominates, so it is far larger per element and must not be picked for a clip.
+ untiled = estimate_vae_working_memory_ltx2("encode", vae, 704, 1248, 121)
+ assert untiled > tiled(121) * 2**30 * 2
+
+
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."""
diff --git a/tests/backend/ltx2/test_ltx2_denoise.py b/tests/backend/ltx2/test_ltx2_denoise.py
index 85519aaf42..b90ae65b7c 100644
--- a/tests/backend/ltx2/test_ltx2_denoise.py
+++ b/tests/backend/ltx2/test_ltx2_denoise.py
@@ -8,6 +8,8 @@ import torch
from invokeai.app.services.session_processor.session_processor_common import CanceledException
from invokeai.backend.ltx2.constants import (
LTX2_ANCESTRAL_NOISE_SEED_OFFSET,
+ LTX2_AUDIO_LATENT_CHANNELS,
+ LTX2_AUDIO_LATENT_MEL_BINS,
LTX2_LATENT_CHANNELS,
LTX2_REFINE_NOISE_SEED_OFFSET,
LTX2_STAGE_2_NOISE_SCALE,
@@ -40,7 +42,7 @@ def _conditioning(seed: int) -> LTX2ConditioningInfo:
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:
+ def __init__(self, target: torch.Tensor | None = None, audio_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(
@@ -52,17 +54,20 @@ class TransformerStub(torch.nn.Module):
self.transformer_blocks = torch.nn.ModuleList([torch.nn.Identity()])
self.calls: list[dict] = []
self.target = target
+ self.audio_target = audio_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.
+ # x0 = x - sigma * v, so this velocity predicts the target at any sigma.
sigma = float(kwargs["sigma"][0]) / 1000.0
- return (video - self.target) / max(sigma, 1e-6), torch.zeros_like(audio)
+ video_velocity = torch.zeros_like(video) if self.target is None else (video - self.target) / max(sigma, 1e-6)
+ audio_velocity = (
+ torch.zeros_like(audio) if self.audio_target is None else (audio - self.audio_target) / max(sigma, 1e-6)
+ )
+ return video_velocity, audio_velocity
def _denoise(transformer, state, guidance, negative=None, **kwargs):
@@ -185,10 +190,142 @@ def test_the_ancestral_branch_renoises_and_puts_the_anchor_back() -> None:
)
assert state.eta == 1.0
- video, _ = _denoise(TransformerStub(target=torch.randn(1, ROWS, LTX2_LATENT_CHANNELS)), state, LTX2Guidance(**OFF))
+ transformer = TransformerStub(target=torch.randn(1, ROWS, LTX2_LATENT_CHANNELS))
+ video, _ = _denoise(transformer, state, LTX2Guidance(**OFF))
+
+ # At every forward, not just at the end: the final step lands on x0 whatever came before it, so
+ # an output-only check would pass with the anchor re-noised at each of the seven steps between.
+ anchor_rows = LATENT[1] * LATENT[2]
+ packed_anchor = pack_video_latents(image_latents)
+ for call in transformer.calls:
+ assert torch.allclose(call["hidden_states"].float()[:, :anchor_rows], packed_anchor, atol=1e-5)
assert torch.allclose(unpack_video_latents(video, *LATENT)[:, :, :1], image_latents, atol=1e-5)
+AUDIO_ROWS = audio_latent_count(FRAMES, 24.0)
+AUDIO_WIDTH = LTX2_AUDIO_LATENT_CHANNELS * LTX2_AUDIO_LATENT_MEL_BINS
+
+
+def _soundtrack(seed: int = 3) -> torch.Tensor:
+ return torch.randn(1, AUDIO_ROWS, AUDIO_WIDTH, generator=torch.Generator().manual_seed(seed))
+
+
+def _clip(seed: int = 4) -> torch.Tensor:
+ return torch.randn(1, LTX2_LATENT_CHANNELS, *LATENT, generator=torch.Generator().manual_seed(seed))
+
+
+def test_a_held_soundtrack_is_clean_at_every_forward_while_the_picture_is_sampled() -> None:
+ """Audio-to-video is the first-frame mechanism with every audio row set instead of one video
+ row. The model has to be HANDED the recording at every forward -- a soundtrack that only
+ reappeared in the output would have been a different one all the way through the run, which is
+ what the picture was actually scored against."""
+ soundtrack = _soundtrack()
+ # An audio target the model would pull toward if the rows were not held, so "unchanged" is a
+ # statement about the mask rather than about a stub that predicts no motion.
+ transformer = TransformerStub(
+ target=torch.randn(1, ROWS, LTX2_LATENT_CHANNELS), audio_target=torch.zeros(1, AUDIO_ROWS, AUDIO_WIDTH)
+ )
+
+ video, audio = _denoise(transformer, _state(frozen_audio_latents=soundtrack), LTX2Guidance(**OFF))
+
+ for call in transformer.calls:
+ assert call["audio_timestep"].shape == (1, AUDIO_ROWS)
+ assert torch.equal(call["audio_timestep"][0], torch.zeros(AUDIO_ROWS))
+ assert torch.allclose(call["audio_hidden_states"].float(), soundtrack, atol=1e-5)
+ # The picture is what is being generated, so its rows are noised as usual.
+ assert (call["timestep"] > 0).all()
+
+ assert torch.allclose(audio, soundtrack, atol=1e-5)
+ assert not torch.allclose(video, torch.zeros_like(video))
+
+
+def test_a_held_picture_is_clean_at_every_forward_while_the_soundtrack_is_sampled() -> None:
+ clip = _clip()
+ packed = pack_video_latents(clip)
+ # The soundtrack is what is being generated here, so the stub has to actually move it --
+ # otherwise "the audio was sampled" is a statement about a stub that predicts no motion.
+ transformer = TransformerStub(
+ target=torch.zeros(1, ROWS, LTX2_LATENT_CHANNELS),
+ audio_target=torch.full((1, AUDIO_ROWS, AUDIO_WIDTH), 5.0),
+ )
+
+ video, audio = _denoise(transformer, _state(frozen_video_latents=clip), LTX2Guidance(**OFF))
+
+ for call in transformer.calls:
+ assert call["timestep"].shape == (1, ROWS)
+ assert torch.equal(call["timestep"][0], torch.zeros(ROWS))
+ assert torch.allclose(call["hidden_states"].float(), packed, atol=1e-5)
+ assert (call["audio_timestep"] > 0).all()
+
+ assert torch.allclose(unpack_video_latents(video, *LATENT), clip, atol=1e-5)
+ assert torch.allclose(audio, torch.full((1, AUDIO_ROWS, AUDIO_WIDTH), 5.0), atol=1e-4)
+
+
+def test_the_ancestral_branch_puts_a_held_soundtrack_back() -> None:
+ """The distilled schedule re-noises every row at every step; without the restore the held
+ soundtrack would drift away from the recording it was encoded from."""
+ soundtrack = _soundtrack()
+ state = build_denoise_state(
+ num_frames=FRAMES,
+ height=HEIGHT,
+ width=WIDTH,
+ fps=24.0,
+ seed=7,
+ distilled=True,
+ num_steps=8,
+ frozen_audio_latents=soundtrack,
+ )
+
+ transformer = TransformerStub(audio_target=torch.zeros(1, AUDIO_ROWS, AUDIO_WIDTH))
+ _, audio = _denoise(transformer, state, LTX2Guidance(**OFF))
+
+ # Every forward, not just the output: the last step lands on x0 whatever happened before it,
+ # so an output-only check would pass with the recording re-noised at every step in between.
+ for call in transformer.calls:
+ assert torch.allclose(call["audio_hidden_states"].float(), soundtrack, atol=1e-5)
+ assert torch.allclose(audio, soundtrack, atol=1e-5)
+
+
+def test_a_first_frame_still_anchors_a_soundtrack_conditioned_run() -> None:
+ """The two hold different streams, so they compose: a picture that starts from a given frame
+ and follows a given soundtrack."""
+ image_latents = torch.randn(1, LTX2_LATENT_CHANNELS, 1, LATENT[1], LATENT[2])
+ state = _state(image_latents=image_latents, frozen_audio_latents=_soundtrack())
+
+ video, audio = _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)
+ assert torch.allclose(audio, state.clean_audio_latents, atol=1e-5)
+
+
+def test_holding_both_modalities_leaves_nothing_to_generate_and_is_refused() -> None:
+ with pytest.raises(ValueError, match="nothing for the model to generate"):
+ _state(frozen_audio_latents=_soundtrack(), frozen_video_latents=_clip())
+
+
+def test_a_first_frame_beside_a_whole_clip_conditioning_is_refused() -> None:
+ """Both write frame 0. Silently overwriting one with the other would drop a picture the graph
+ paid an encode for."""
+ with pytest.raises(ValueError, match="first frame cannot be combined"):
+ _state(
+ image_latents=torch.randn(1, LTX2_LATENT_CHANNELS, 1, LATENT[1], LATENT[2]), frozen_video_latents=_clip()
+ )
+
+
+def test_a_soundtrack_of_the_wrong_length_names_the_frame_count_it_implies() -> None:
+ """The frame count must be derived from the soundtrack; a mismatch means the graph set it
+ separately, and the message has to say which way to fix it."""
+ with pytest.raises(ValueError, match="Derive the frame count from the soundtrack"):
+ _state(frozen_audio_latents=torch.randn(1, AUDIO_ROWS + 1, AUDIO_WIDTH))
+
+
+def test_a_conditioning_clip_encoded_for_another_canvas_is_refused() -> None:
+ with pytest.raises(ValueError, match="conditioning clip is"):
+ _state(frozen_video_latents=torch.randn(1, LTX2_LATENT_CHANNELS, LATENT[0], LATENT[1] + 1, LATENT[2]))
+
+
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."""
diff --git a/tests/backend/ltx2/test_ltx2_geometry.py b/tests/backend/ltx2/test_ltx2_geometry.py
index 075bef4edf..70eaafb31f 100644
--- a/tests/backend/ltx2/test_ltx2_geometry.py
+++ b/tests/backend/ltx2/test_ltx2_geometry.py
@@ -3,6 +3,7 @@
import pytest
import torch
+from invokeai.backend.ltx2.constants import LTX2_FRAME_MODULUS
from invokeai.backend.ltx2.packing import (
audio_latent_count,
base_canvas,
@@ -12,6 +13,7 @@ from invokeai.backend.ltx2.packing import (
require_patch_geometry,
resolve_canvas,
snap_num_frames,
+ snap_num_frames_down,
unpack_audio_latents,
unpack_video_latents,
validate_canvas,
@@ -77,6 +79,25 @@ def test_snapping_a_frame_count_rounds_a_tie_up(requested: int, expected: int) -
validate_num_frames(snap_num_frames(requested))
[email protected]("requested", [1, 8, 9, 10, 16, 17, 96, 97, 121, 481, 1000])
+def test_a_conditioning_clip_never_claims_more_frames_than_it_supplied(requested: int) -> None:
+ """Conditioning snaps DOWN where a request snaps to the nearest: a clip has the frames it has,
+ and rounding up would pad picture (or silence) for the model to hold clean. Stated as the
+ property rather than a table -- the largest valid count that does not exceed the input."""
+ snapped = snap_num_frames_down(requested)
+
+ validate_num_frames(snapped)
+ assert snapped <= requested
+ assert requested - snapped < LTX2_FRAME_MODULUS
+
+
+def test_snapping_down_a_count_under_one_frame_group_leaves_a_single_frame() -> None:
+ """The floor, which the conditioning nodes then reject as too short rather than generating it."""
+ assert snap_num_frames_down(0) == 1
+ assert snap_num_frames_down(1) == 1
+ assert snap_num_frames_down(8) == 1
+
+
@pytest.mark.parametrize("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):
diff --git a/tests/backend/ltx2/test_ltx2_real_files.py b/tests/backend/ltx2/test_ltx2_real_files.py
index 2426d429eb..992bf1e987 100644
--- a/tests/backend/ltx2/test_ltx2_real_files.py
+++ b/tests/backend/ltx2/test_ltx2_real_files.py
@@ -336,3 +336,91 @@ def test_an_image_conditioning_survives_the_round_trip_to_the_first_decoded_fram
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)"
+
+
+@requires_weights
+def test_a_recording_encodes_to_the_audio_rate_the_transformer_reads_and_survives_the_round_trip() -> None:
+ """The conditioning front end against the released weights.
+
+ The release ships no standalone log-mel module: the transform is lifted off the vocoder's own
+ bandwidth-extension stage and re-strided to the audio VAE's hop. Two things have to hold for
+ that to be the right transform, and neither can be checked without the real filters.
+
+ First the *rate*: LTX-2 reads 25 audio latents per second everywhere else, and at the vocoder's
+ own hop (half the VAE's) this would produce 50 -- a clip conditioned at double speed.
+
+ Second the *domain*: generation decodes a latent to a mel and hands that mel to the vocoder, so
+ the mel this module computes has to be the one the VAE decoded. That is checked here directly,
+ by running the released chain forwards and this module backwards over the same signal: any
+ difference of filterbank, window or rate convention shows up as the two mels disagreeing, where
+ a shape check alone would pass. A mel basis left at its constructed zeros, for instance, has
+ exactly the right shape and represents silence.
+ """
+ from invokeai.backend.ltx2.audio_conditioning import build_mel_transform, encode_audio_latents
+ from invokeai.backend.ltx2.constants import LTX2_AUDIO_LATENTS_PER_SECOND
+ from invokeai.backend.ltx2.packing import denormalize_audio_latents, unpack_audio_latents
+ from invokeai.backend.util.audio_resample import resample_sinc
+
+ device = _accelerator()
+ audio_vae = _loader(LTX2FolderModel, device)._load_model(_folder_config(), SubModelType.AudioVAE)
+ vocoder = _loader(LTX2FolderModel, device)._load_model(_folder_config(), SubModelType.Vocoder)
+ audio_vae = audio_vae.to(device).eval()
+ vocoder = vocoder.to(device).eval()
+
+ vae_rate = int(audio_vae.config.sample_rate)
+ hop = int(audio_vae.config.mel_hop_length)
+ out_rate = int(vocoder.config.output_sampling_rate)
+ # The filterbank is fitted for the rate the vocoder is fed, which is the VAE's own -- the
+ # higher rate is what it synthesises. If these ever diverge, the transform is being applied to
+ # a signal it was not fitted for and everything below is measuring the wrong thing.
+ assert int(vocoder.config.input_sampling_rate) == vae_rate
+
+ # A 3 Hz amplitude-modulated tone: the loudness contour a soundtrack conditions a picture on.
+ seconds = 2.0
+ time = torch.arange(int(vae_rate * seconds), dtype=torch.float32) / vae_rate
+ tone = torch.sin(2 * torch.pi * 300 * time) * (0.5 + 0.5 * torch.sin(2 * torch.pi * 3 * time)) * 0.5
+ latents = encode_audio_latents(audio_vae, vocoder, torch.stack([tone, tone]), sample_rate=vae_rate)
+
+ assert latents.shape == (1, int(seconds * LTX2_AUDIO_LATENTS_PER_SECOND), 128)
+ assert torch.isfinite(latents).all()
+ # Denormalizing and unpacking has to land on the VAE's own 8-channel, 16-bin grid rather than a
+ # transposed or half-length one.
+ unpacked = unpack_audio_latents(
+ denormalize_audio_latents(latents, audio_vae.latents_mean.cpu(), audio_vae.latents_std.cpu())
+ )
+ assert unpacked.shape == (1, 8, int(seconds * LTX2_AUDIO_LATENTS_PER_SECOND), 16)
+
+ # Forwards through the release: a latent becomes the VAE's own mel, which the vocoder speaks.
+ with torch.inference_mode():
+ released = denormalize_audio_latents(
+ torch.randn(1, 75, 128, generator=torch.Generator().manual_seed(5)).cumsum(1).div(8.0).to(device),
+ audio_vae.latents_mean,
+ audio_vae.latents_std,
+ )
+ vae_mel = audio_vae.decode(
+ unpack_audio_latents(released).to(next(iter(audio_vae.parameters())).dtype), return_dict=False
+ )[0].float()
+ waveform = vocoder(vae_mel.to(next(iter(vocoder.parameters())).dtype))[0].float().cpu()
+
+ # Backwards through this module, over that waveform.
+ transform = build_mel_transform(vocoder, hop_length=hop)
+ audio = resample_sinc(waveform, out_rate, vae_rate)
+ padding = -audio.shape[-1] % hop
+ audio = torch.nn.functional.pad(audio, (0, padding)) if padding else audio
+ mine, *_ = transform(audio[None].to(device=device, dtype=transform.mel_basis.dtype).flatten(0, 1))
+ mine = mine.unflatten(0, (1, audio.shape[0])).transpose(2, 3).float()
+
+ assert mine.shape == vae_mel.shape, "the re-analysed mel is not the shape the VAE decodes to"
+
+ frames = min(vae_mel.shape[2], mine.shape[2])
+ pair = [side[..., :frames, :].flatten() for side in (vae_mel, mine)]
+ centered = [side - side.mean() for side in pair]
+ agreement = float((centered[0] * centered[1]).sum() / (centered[0].norm() * centered[1].norm()).clamp_min(1e-8))
+
+ # The residual is the vocoder's own phase reconstruction and the 48 k -> 16 k resample, not a
+ # difference of domain; a mismatched filterbank or rate lands far below this.
+ assert agreement > 0.9, f"this module's mel is not the one the VAE decoded ({agreement:.3f})"
+
+ del audio_vae, vocoder
+ gc.collect()
+ TorchDevice.empty_cache()
diff --git a/tests/backend/minimax_h3/test_reference_conditioning.py b/tests/backend/minimax_h3/test_reference_conditioning.py
index d9cbe4b8de..db44a5401e 100644
--- a/tests/backend/minimax_h3/test_reference_conditioning.py
+++ b/tests/backend/minimax_h3/test_reference_conditioning.py
@@ -14,7 +14,6 @@ import pytest
import torch
from PIL import Image
-from invokeai.backend.minimax_h3.audio_resample import resample_sinc
from invokeai.backend.minimax_h3.keyframe_conditioning import vae_encode_autocast
from invokeai.backend.minimax_h3.reference_conditioning import (
normalize_reference_audio,
@@ -27,6 +26,7 @@ from invokeai.backend.minimax_h3.reference_conditioning import (
snap_reference_num_frames,
)
from invokeai.backend.minimax_h3.text_conditioning import MiniMaxH3TextReference, build_ref2va_presentation
+from invokeai.backend.util.audio_resample import resample_sinc
class TestFrameResample: