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): keyframe conditioning and video extend

Lincoln Steina1d9b5152c3f
diff --git a/invokeai/app/invocations/fields.py b/invokeai/app/invocations/fields.py
index 16971403cd..751118045a 100644
--- a/invokeai/app/invocations/fields.py
+++ b/invokeai/app/invocations/fields.py
@@ -481,7 +481,7 @@ class LTX2ConditioningField(BaseModel):
class LTX2VideoConditioningField(BaseModel):
- """First-frame (VAE-latent) conditioning for LTX-2 image-to-video.
+ """A frame (VAE-latent) held at one point in an LTX-2 generation.
The canvas the frame was encoded at rides along so the denoise node can reject a mismatch
with a named error rather than a shape failure inside the transformer.
@@ -491,6 +491,12 @@ class LTX2VideoConditioningField(BaseModel):
width: int = Field(description="Pixel width the frame was encoded at (matches denoise width).")
height: int = Field(description="Pixel height the frame was encoded at (matches denoise height).")
strength: float = Field(default=1.0, description="How strongly the frame is held, 0 (ignored) to 1 (kept exactly).")
+ frame_index: int = Field(
+ default=0,
+ description="Latent frame the image is held at. 0 is the first frame; negative counts from the end, "
+ "so -1 is the last. Resolved against the clip's own length by the denoise node, which is why an "
+ "encode stays valid when the frame count changes.",
+ )
class LTX2AudioConditioningField(BaseModel):
@@ -523,6 +529,10 @@ class LTX2FullVideoConditioningField(BaseModel):
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.")
+ source_video_name: str = Field(
+ description="The clip these latents were encoded from. The decode muxes its own frames back in rather "
+ "than rendering the held latents, which would hand the user a VAE round trip of footage they already have."
+ )
class MiniMaxH3FrameConditioningField(BaseModel):
diff --git a/invokeai/app/invocations/ltx2/ltx2_denoise.py b/invokeai/app/invocations/ltx2/ltx2_denoise.py
index d542f1b8c2..88262278f6 100644
--- a/invokeai/app/invocations/ltx2/ltx2_denoise.py
+++ b/invokeai/app/invocations/ltx2/ltx2_denoise.py
@@ -42,10 +42,10 @@ from invokeai.backend.ltx2.constants import (
from invokeai.backend.ltx2.denoise import build_denoise_state, build_refine_state, denoise, preview_latent_frame
from invokeai.backend.ltx2.guidance import LTX2Guidance
from invokeai.backend.ltx2.packing import (
+ latent_frame_count,
require_patch_geometry,
unpack_video_latents,
validate_num_frames,
- video_sequence_length,
)
from invokeai.backend.model_manager.taxonomy import BaseModelType, LTX2VariantType
from invokeai.backend.quantization.dequantizing_linear import peak_dequant_transient_bytes
@@ -78,7 +78,7 @@ class LTX2DenoiseOutput(BaseInvocationOutput):
title="Denoise - LTX-2",
tags=["ltx", "ltx2", "video", "audio", "denoise"],
category="latents",
- version="1.2.0",
+ version="1.4.0",
classification=Classification.Prototype,
)
class LTX2DenoiseInvocation(BaseInvocation):
@@ -109,12 +109,27 @@ class LTX2DenoiseInvocation(BaseInvocation):
input=Input.Connection,
title="Image Conditioning",
)
+ keyframe_conditioning: LTX2VideoConditioningField | None = InputField(
+ default=None,
+ description="A frame held somewhere other than the start -- a last frame, or any interior "
+ "keyframe. Its own `frame_index` says where; -1 is the last frame.",
+ input=Input.Connection,
+ title="Keyframe Conditioning",
+ )
audio_conditioning: LTX2AudioConditioningField | None = InputField(
default=None,
description=FieldDescriptions.ltx2_audio_conditioning,
input=Input.Connection,
title="Audio Conditioning",
)
+ audio_prefix_conditioning: LTX2AudioConditioningField | None = InputField(
+ default=None,
+ description="The opening of the soundtrack, held while the rest is generated. A continuation "
+ "uses it so the join blends the source's real sound against a reproduction of itself rather "
+ "than against newly invented sound.",
+ input=Input.Connection,
+ title="Audio Prefix Conditioning",
+ )
full_video_conditioning: LTX2FullVideoConditioningField | None = InputField(
default=None,
description=FieldDescriptions.ltx2_full_video_conditioning,
@@ -280,9 +295,52 @@ class LTX2DenoiseInvocation(BaseInvocation):
f"{', '.join(mismatched)}. Wire this node's own values into that one, or take its outputs."
)
+ def _resolve_keyframe(self, context: InvocationContext) -> tuple[torch.Tensor | None, int | None]:
+ """The held frame and the latent index it belongs at, with negatives resolved.
+
+ The index is resolved here rather than at the conditioning node because that node does not
+ know how long the clip is -- which is what lets one encode stay valid when the frame count
+ changes, instead of silently landing at the wrong instant.
+ """
+ if self.keyframe_conditioning is None:
+ return None, None
+
+ if (self.keyframe_conditioning.width, self.keyframe_conditioning.height) != (self.width, self.height):
+ raise ValueError(
+ f"The keyframe conditioning was prepared for a {self.keyframe_conditioning.width}x"
+ f"{self.keyframe_conditioning.height} canvas but this denoise runs at {self.width}x{self.height}. "
+ "Re-run Image Conditioning - LTX-2 with matching width and height."
+ )
+
+ latent_frames = latent_frame_count(self.num_frames)
+ index = self.keyframe_conditioning.frame_index
+ resolved = latent_frames + index if index < 0 else index
+
+ if resolved == 0:
+ raise ValueError(
+ "A keyframe at the first frame is what Image Conditioning's own output is for: wire it to "
+ "Image Conditioning rather than Keyframe Conditioning, or give it a non-zero frame index."
+ )
+ if not 0 < resolved < latent_frames:
+ raise ValueError(
+ f"Keyframe index {index} resolves to latent frame {resolved}, which is outside a "
+ f"{self.num_frames}-frame clip ({latent_frames} latent frames)."
+ )
+
+ return context.tensors.load(self.keyframe_conditioning.latents_name), resolved
+
def _load_image_latents(self, context: InvocationContext) -> torch.Tensor | None:
if self.video_conditioning is None:
return None
+ if self.video_conditioning.frame_index != 0:
+ # The field's own description says a negative index makes the frame last, and this slot
+ # cannot honour that: it overwrites the opening grid tokens. Silently holding it at
+ # frame 0 would do the opposite of what the graph asked for.
+ raise ValueError(
+ f"Image Conditioning holds a frame at the start, but this one was encoded for frame "
+ f"{self.video_conditioning.frame_index}. Wire it to Keyframe Conditioning instead, or "
+ f"set its frame index to 0."
+ )
if (self.video_conditioning.width, self.video_conditioning.height) != (self.width, self.height):
raise ValueError(
f"The image conditioning was prepared for a {self.video_conditioning.width}x"
@@ -336,6 +394,17 @@ class LTX2DenoiseInvocation(BaseInvocation):
{"num_frames": (self.audio_conditioning.num_frames, self.num_frames)},
{"fps": (self.audio_conditioning.fps, self.fps)},
)
+ if self.audio_prefix_conditioning is not None:
+ # Only the rate: this field's `num_frames` is the HELD span, not the clip's, and it is
+ # the rate that cannot be recovered from any tensor shape. A prefix sized at one rate
+ # and held at another covers a different stretch of time than the picture it belongs
+ # to, so the join crossfades real source audio into the new material -- silently, since
+ # the row count stays well inside what the clip has room for.
+ self._require_matching(
+ "Extend Conditioning - LTX-2",
+ {},
+ {"fps": (self.audio_prefix_conditioning.fps, self.fps)},
+ )
if self.full_video_conditioning is not None:
self._require_matching(
"Video Conditioning - LTX-2",
@@ -365,6 +434,13 @@ class LTX2DenoiseInvocation(BaseInvocation):
)
negative = self._load_conditioning(context, self.negative_conditioning)
+ keyframe_latents, keyframe_index = self._resolve_keyframe(context)
+ audio_prefix_latents = (
+ context.tensors.load(self.audio_prefix_conditioning.latents_name)
+ if self.audio_prefix_conditioning is not None
+ else None
+ )
+
if self.latents is not None:
state = build_refine_state(
video_latents=context.tensors.load(self.latents.latents_name),
@@ -382,6 +458,10 @@ class LTX2DenoiseInvocation(BaseInvocation):
# mean something different on a two-stage preset.
image_latents=self._load_image_latents(context),
conditioning_strength=self.video_conditioning.strength if self.video_conditioning else 1.0,
+ keyframe_latents=keyframe_latents,
+ keyframe_latent_index=keyframe_index,
+ keyframe_strength=self.keyframe_conditioning.strength if self.keyframe_conditioning else 1.0,
+ audio_prefix_latents=audio_prefix_latents,
)
else:
state = build_denoise_state(
@@ -394,6 +474,10 @@ 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,
+ keyframe_latents=keyframe_latents,
+ keyframe_latent_index=keyframe_index,
+ keyframe_strength=self.keyframe_conditioning.strength if self.keyframe_conditioning else 1.0,
+ audio_prefix_latents=audio_prefix_latents,
frozen_audio_latents=(
context.tensors.load(self.audio_conditioning.latents_name)
if self.audio_conditioning is not None
@@ -409,7 +493,11 @@ class LTX2DenoiseInvocation(BaseInvocation):
device = TorchDevice.choose_torch_device()
inference_dtype = TorchDevice.choose_bfloat16_safe_dtype(device)
estimated_working_memory = self._estimate_working_memory(
- video_sequence_length(self.num_frames, self.height, self.width), state.audio_latents_count
+ # The sequence as built, not the grid: a held keyframe rides on the end of it and is
+ # attended over in every forward -- 858 rows on top of 13728 at 1248x704 x121 -- and the
+ # fit is tightest exactly where running out is most expensive.
+ state.video_latents.shape[1],
+ state.audio_latents_count,
)
transformer_info = context.models.load(self.transformer.transformer)
diff --git a/invokeai/app/invocations/ltx2/ltx2_extend_conditioning.py b/invokeai/app/invocations/ltx2/ltx2_extend_conditioning.py
new file mode 100644
index 0000000000..e004b5d6aa
--- /dev/null
+++ b/invokeai/app/invocations/ltx2/ltx2_extend_conditioning.py
@@ -0,0 +1,300 @@
+"""The tail of a clip, encoded as the opening frames an LTX-2 extension continues from."""
+
+from pathlib import Path
+
+import numpy as np
+import torch
+
+from invokeai.app.invocations.baseinvocation import (
+ BaseInvocation,
+ BaseInvocationOutput,
+ Classification,
+ invocation,
+ invocation_output,
+)
+from invokeai.app.invocations.fields import (
+ FieldDescriptions,
+ Input,
+ InputField,
+ LTX2AudioConditioningField,
+ LTX2VideoConditioningField,
+ 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.clip_frames import encode_canvas_clip, read_canvas_frames
+from invokeai.backend.ltx2.constants import (
+ LTX2_AUDIO_LATENTS_PER_SECOND,
+ LTX2_CANVAS_MULTIPLE,
+ LTX2_DEFAULT_FPS,
+ LTX2_DEFAULT_TEMPORAL_TILE,
+ LTX2_DEFAULT_TILE_SIZE,
+ LTX2_FRAME_MODULUS,
+ LTX2_LATENT_CHANNELS,
+ LTX2_NUM_FRAMES_MAX,
+)
+from invokeai.backend.ltx2.packing import audio_latent_count, snap_num_frames_down, video_latent_shape
+from invokeai.backend.model_manager.taxonomy import BaseModelType
+from invokeai.backend.util.vae_working_memory import (
+ estimate_audio_working_memory_ltx2,
+ estimate_vae_working_memory_ltx2,
+)
+
+# Three latent frames. One would be a still, which says where the clip starts but nothing about how
+# it was moving, and an extension seeded from a still stalls or lurches at the join. Seventeen pixel
+# frames is a little under a second at 24 fps -- enough for the model to read the motion, short
+# enough that it is not spending most of the generation replaying footage the user already has.
+LTX2_DEFAULT_EXTEND_CONTEXT_FRAMES = 17
+
+# A ceiling on the context, and not a formality: a tail read cannot stop early, so it buffers this
+# many frames at the SOURCE's resolution before any of them are fitted to the canvas. Unbounded, a
+# workflow asking for 1001 frames of a 1080p clip would reserve ~6 GiB of host memory -- and then
+# encode all of it -- before the denoise refused the anchor for exceeding the generation's length.
+# Nothing longer than the model's own maximum could be used anyway.
+LTX2_MAX_EXTEND_CONTEXT_FRAMES = snap_num_frames_down(LTX2_NUM_FRAMES_MAX)
+
+
+@invocation_output("ltx2_extend_conditioning_output")
+class LTX2ExtendConditioningOutput(BaseInvocationOutput):
+ """The source's tail, held as the opening of the continuation."""
+
+ video_conditioning: LTX2VideoConditioningField = OutputField(
+ description=FieldDescriptions.ltx2_video_conditioning, title="Image Conditioning"
+ )
+ context_frames: int = OutputField(
+ description="Pixel frames of the source that are held. The generated clip reproduces these, so a "
+ "join has to consume exactly this many to avoid repeating them."
+ )
+ audio_conditioning: LTX2AudioConditioningField | None = OutputField(
+ default=None,
+ description="The held opening of the source's soundtrack, or nothing when the clip is silent.",
+ title="Audio Conditioning",
+ )
+
+
+@invocation(
+ "ltx2_extend_conditioning",
+ title="Extend Conditioning - LTX-2",
+ tags=["ltx", "ltx2", "video", "extend", "conditioning"],
+ category="conditioning",
+ version="1.1.0",
+ classification=Classification.Prototype,
+)
+class LTX2ExtendConditioningInvocation(BaseInvocation):
+ """Encodes the end of a clip so LTX-2 can continue it.
+
+ A continuation is image-to-video with a longer anchor: instead of one held frame the generation
+ opens with several latent frames of the source, held clean the same way. That is what carries
+ the source's *motion* across the join -- a single still frame fixes the picture but not its
+ direction, and clips extended from one tend to stall or lurch where they meet.
+
+ The held frames are regenerated as part of the output, so they appear in both clips. The join is
+ what removes the duplication: a crossfade of ``context_frames`` consumes exactly those frames
+ from each side, blending two renderings of the same moment into one.
+ """
+
+ video: VideoField = InputField(description="The clip to continue.")
+ vae: VAEField = InputField(description=FieldDescriptions.vae, input=Input.Connection, title="Video VAE")
+ audio_vae: VAEField | None = InputField(
+ default=None,
+ description=FieldDescriptions.ltx2_audio_vae,
+ input=Input.Connection,
+ title="Audio VAE",
+ )
+ vocoder: LTX2VocoderField | None = InputField(
+ default=None,
+ description="The vocoder, whose checkpoint carries the log-mel filters the audio VAE encodes from.",
+ input=Input.Connection,
+ title="Vocoder",
+ )
+ fps: float = InputField(
+ default=LTX2_DEFAULT_FPS,
+ ge=1,
+ le=120,
+ description="The clip's frame rate, used to turn the held frame count into a span of its soundtrack.",
+ )
+ width: int = InputField(
+ default=1248, gt=0, multiple_of=LTX2_CANVAS_MULTIPLE, description="Canvas width (must match Denoise)."
+ )
+ height: int = InputField(
+ default=704, gt=0, multiple_of=LTX2_CANVAS_MULTIPLE, description="Canvas height (must match Denoise)."
+ )
+ context_frames: int = InputField(
+ default=LTX2_DEFAULT_EXTEND_CONTEXT_FRAMES,
+ ge=1,
+ le=LTX2_MAX_EXTEND_CONTEXT_FRAMES,
+ description="Frames of the source to carry into the continuation. The VAE encodes 8k + 1 "
+ "frames, so this is snapped DOWN to the nearest 9, 17, 25, 33, 41, 49... -- asking for 24 "
+ "holds 17. A short source is capped at what it has. The `context_frames` output reports "
+ "what was actually held, which is why the join reads it from there rather than from here. "
+ "More context means smoother motion and more rhythmic context across the join, and less of "
+ "the generation left for new material.",
+ )
+ 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.",
+ )
+
+ def _hold_soundtrack_opening(
+ self, context: InvocationContext, path: Path, context_frames: int, source_frames: int | None
+ ) -> LTX2AudioConditioningField | None:
+ """The same span of the source's sound as the picture it holds, encoded for the denoise.
+
+ The generated clip replays the source's last moments so the model can read its motion, and
+ the join crossfades exactly those out of both halves. The picture survives that because both
+ clips render the same instant -- but the soundtrack is sampled freely, so without this the
+ blend fades newly invented audio in against the source's real audio and the new soundtrack
+ audibly starts one overlap early.
+
+ A silent clip holds nothing, which is not an error: the continuation simply invents its whole
+ soundtrack, as it did before this existed.
+ """
+ if self.audio_vae is None or self.vocoder is None:
+ return None
+
+ decoded = extract_audio_pcm(path, float_pcm=True)
+ if decoded is None:
+ return None
+
+ samples, sample_rate = decoded
+ # Cut the decode back to the span the PICTURE occupies before taking its end. A decoded AAC
+ # track runs past the last frame by the codec's end padding -- measured at 688 samples
+ # (14.3 ms) on the muxes `extract_video_range` emits, which is what feeds this node -- and
+ # the content is front-aligned, so slicing the tail off the untrimmed decode would hold
+ # audio that starts 14 ms after the picture does and ends in padding. The join then blends
+ # that against the source's own correctly-aligned tail: comb filtering across the whole
+ # overlap, which is the artifact this method exists to remove. `video_concat` trims for the
+ # same reason before its own crossfade.
+ if source_frames is None:
+ # Without the clip's length there is no way to say where its picture ends, and a hold
+ # that is not anchored to the picture is worse than no hold at all.
+ return None
+
+ native = int(round(source_frames / self.fps * sample_rate))
+ if samples.shape[1] > native:
+ samples = samples[:, :native]
+ elif samples.shape[1] < native:
+ # The track ends before the picture does, which uploaded footage often does. Taking
+ # the tail of the short track would hold an EARLIER instant than the frames held
+ # beside it -- a clip whose sound stops two seconds early would hold audio from two
+ # seconds before the frames it is meant to accompany, and the join would blend that
+ # against the source's real soundtrack. Padding to the picture's span keeps the tail
+ # slice anchored to the same instant; the silence is what the clip actually has there.
+ samples = np.pad(samples, ((0, 0), (0, native - samples.shape[1])))
+
+ # `context_frames` is what the picture read actually kept, so it never exceeds the clip's
+ # own length and this slice is always fully inside the span trimmed above.
+ wanted = int(round(context_frames / self.fps * sample_rate))
+
+ audio_vae_info = context.models.load(self.audio_vae.vae)
+ vocoder_info = context.models.load(self.vocoder.vocoder)
+ context.util.signal_progress("Encoding the clip's closing sound for LTX-2 extension")
+
+ with (
+ audio_vae_info.model_on_device(
+ working_mem_bytes=estimate_audio_working_memory_ltx2(
+ int(wanted / sample_rate * LTX2_AUDIO_LATENTS_PER_SECOND)
+ )
+ ) as (_, audio_vae),
+ vocoder_info.model_on_device() as (_, vocoder),
+ ):
+ # The clip's TAIL, which is the part the continuation opens on.
+ latents = encode_audio_latents(
+ audio_vae, vocoder, torch.from_numpy(samples[:, -wanted:]), sample_rate=sample_rate
+ )
+
+ # Trimmed to the span the denoise sizes from the same frame count, so the two agree by
+ # construction rather than by the encoder happening to land on the right number of rows.
+ held = min(int(latents.shape[1]), audio_latent_count(context_frames, self.fps))
+
+ return LTX2AudioConditioningField(
+ latents_name=context.tensors.save(tensor=latents[:, :held]),
+ num_audio_latents=held,
+ num_frames=context_frames,
+ fps=self.fps,
+ source_video_name=self.video.video_name,
+ )
+
+ @torch.no_grad()
+ def invoke(self, context: InvocationContext) -> LTX2ExtendConditioningOutput:
+ 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.")
+
+ # Snapped down first, so the read asks for a whole number of frame groups: the VAE encodes
+ # 8k + 1 frames, and a ragged request would simply have its tail dropped afterwards.
+ wanted = snap_num_frames_down(self.context_frames)
+ context.util.signal_progress("Reading the clip's tail for LTX-2 extension")
+ frames, source_frames = read_canvas_frames(
+ path,
+ width=self.width,
+ height=self.height,
+ cap=wanted,
+ tail=True,
+ is_canceled=context.util.is_canceled,
+ # A tail read cannot stop early -- the last frames are only known once the clip ends --
+ # so this is the longest decode of the two conditioning nodes, and the one that most
+ # needs to say it is still working.
+ on_progress=lambda read: context.util.signal_progress(
+ f"Reading the clip's tail for LTX-2 extension ({read} frames)"
+ ),
+ )
+
+ context_frames = snap_num_frames_down(len(frames))
+ if context_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"An extension needs at least {1 + LTX2_FRAME_MODULUS} frames of the source to continue from."
+ )
+ # The tail is what matters, so a ragged read drops its HEAD rather than its end.
+ del frames[: len(frames) - context_frames]
+
+ working_memory = estimate_vae_working_memory_ltx2(
+ "encode",
+ vae_info.model,
+ pixel_height=self.height,
+ pixel_width=self.width,
+ pixel_frames=context_frames,
+ tile_size=self.tile_size,
+ temporal_tile=self.temporal_tile,
+ tiled=True,
+ )
+ context.util.signal_progress("Encoding the clip's tail for LTX-2 extension")
+
+ with vae_info.model_on_device(working_mem_bytes=working_memory) as (_, vae):
+ latents = encode_canvas_clip(
+ vae,
+ frames,
+ tile_size=self.tile_size,
+ temporal_tile=self.temporal_tile,
+ is_canceled=context.util.is_canceled,
+ )
+ del frames
+
+ expected = (1, LTX2_LATENT_CHANNELS, *video_latent_shape(context_frames, self.height, self.width))
+ if tuple(latents.shape) != expected:
+ raise ValueError(
+ f"The clip's tail encoded to {tuple(latents.shape)} but {self.width}x{self.height} at "
+ f"{context_frames} frames needs {expected}."
+ )
+
+ return LTX2ExtendConditioningOutput(
+ audio_conditioning=self._hold_soundtrack_opening(context, path, context_frames, source_frames),
+ video_conditioning=LTX2VideoConditioningField(
+ latents_name=context.tensors.save(tensor=latents.cpu()),
+ width=self.width,
+ height=self.height,
+ frame_index=0,
+ ),
+ context_frames=context_frames,
+ )
diff --git a/invokeai/app/invocations/ltx2/ltx2_image_conditioning.py b/invokeai/app/invocations/ltx2/ltx2_image_conditioning.py
index dbf8cce739..7800d6eb65 100644
--- a/invokeai/app/invocations/ltx2/ltx2_image_conditioning.py
+++ b/invokeai/app/invocations/ltx2/ltx2_image_conditioning.py
@@ -37,11 +37,11 @@ class LTX2ImageConditioningOutput(BaseInvocationOutput):
title="Image Conditioning - LTX-2",
tags=["conditioning", "image", "ltx", "ltx2", "video"],
category="conditioning",
- version="1.0.0",
+ version="1.1.0",
classification=Classification.Prototype,
)
class LTX2ImageConditioningInvocation(BaseInvocation):
- """Encodes an image as the first frame of an LTX-2 generation.
+ """Encodes an image as a held frame of an LTX-2 generation.
The image is re-compressed as a single H.264 frame before it is encoded. That is not an
optimization: LTX-2 was trained on frames that had been through a video codec, and a pristine
@@ -64,6 +64,12 @@ class LTX2ImageConditioningInvocation(BaseInvocation):
description="How strongly the generation is held to this frame. 1 keeps it exactly; lower values "
"let the model redraw it, which can hide a source that does not match the prompt.",
)
+ frame_index: int = InputField(
+ default=0,
+ description="Latent frame to hold this image at. 0 is the first frame; negative counts from the end, "
+ "so -1 makes it the last. A frame held anywhere but 0 is appended to the model's sequence rather "
+ "than overwriting the grid, which is what lets it coexist with a first frame.",
+ )
crf: int = InputField(
default=LTX2_IMAGE_CRF,
ge=0,
@@ -99,5 +105,6 @@ class LTX2ImageConditioningInvocation(BaseInvocation):
width=self.width,
height=self.height,
strength=self.strength,
+ frame_index=self.frame_index,
)
)
diff --git a/invokeai/app/invocations/ltx2/ltx2_video_conditioning.py b/invokeai/app/invocations/ltx2/ltx2_video_conditioning.py
index 78df48dab0..529ae88f7a 100644
--- a/invokeai/app/invocations/ltx2/ltx2_video_conditioning.py
+++ b/invokeai/app/invocations/ltx2/ltx2_video_conditioning.py
@@ -1,8 +1,6 @@
"""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,
@@ -21,7 +19,7 @@ from invokeai.app.invocations.fields import (
)
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.clip_frames import encode_canvas_clip, read_canvas_frames
from invokeai.backend.ltx2.constants import (
LTX2_CANVAS_MULTIPLE,
LTX2_DEFAULT_TEMPORAL_TILE,
@@ -30,18 +28,10 @@ from invokeai.backend.ltx2.constants import (
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.ltx2.packing import snap_num_frames_down, video_latent_shape
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):
@@ -60,7 +50,7 @@ class LTX2VideoConditioningOutput(BaseInvocationOutput):
title="Video Conditioning - LTX-2",
tags=["ltx", "ltx2", "video", "audio", "conditioning"],
category="conditioning",
- version="1.0.0",
+ version="1.1.0",
classification=Classification.Prototype,
)
class LTX2VideoConditioningInvocation(BaseInvocation):
@@ -118,16 +108,17 @@ class LTX2VideoConditioningInvocation(BaseInvocation):
# 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)")
+ frames, _ = read_canvas_frames(
+ path,
+ width=self.width,
+ height=self.height,
+ cap=snap_num_frames_down(LTX2_NUM_FRAMES_MAX),
+ is_canceled=context.util.is_canceled,
+ on_progress=lambda read: context.util.signal_progress(
+ f"Reading the clip for LTX-2 conditioning ({read} frames)"
+ ),
+ )
num_frames = snap_num_frames_down(len(frames))
if num_frames < 1 + LTX2_FRAME_MODULUS:
@@ -137,15 +128,6 @@ class LTX2VideoConditioningInvocation(BaseInvocation):
)
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,
@@ -159,29 +141,14 @@ class LTX2VideoConditioningInvocation(BaseInvocation):
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)
+ latents = encode_canvas_clip(
+ vae,
+ frames,
+ tile_size=self.tile_size,
+ temporal_tile=self.temporal_tile,
+ is_canceled=context.util.is_canceled,
)
+ del frames
expected = (1, LTX2_LATENT_CHANNELS, *video_latent_shape(num_frames, self.height, self.width))
if tuple(latents.shape) != expected:
@@ -197,6 +164,7 @@ class LTX2VideoConditioningInvocation(BaseInvocation):
height=self.height,
num_frames=num_frames,
fps=self.fps,
+ source_video_name=self.video.video_name,
),
width=self.width,
height=self.height,
diff --git a/invokeai/app/invocations/metadata.py b/invokeai/app/invocations/metadata.py
index af23ddd58a..87ca2d0744 100644
--- a/invokeai/app/invocations/metadata.py
+++ b/invokeai/app/invocations/metadata.py
@@ -195,6 +195,9 @@ GENERATION_MODES = Literal[
"ltx2_i2v",
"ltx2_a2v",
"ltx2_v2a",
+ "ltx2_lf2v",
+ "ltx2_flf2v",
+ "ltx2_extend_video",
"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 8f34679b73..7b7f5a6b86 100644
--- a/invokeai/app/invocations/vae/ltx2_latents_to_video.py
+++ b/invokeai/app/invocations/vae/ltx2_latents_to_video.py
@@ -2,6 +2,7 @@
import tempfile
from collections.abc import Iterator
+from itertools import chain
from pathlib import Path
import numpy as np
@@ -14,6 +15,7 @@ from invokeai.app.invocations.fields import (
InputField,
LatentsField,
LTX2AudioConditioningField,
+ LTX2FullVideoConditioningField,
WithBoard,
WithMetadata,
)
@@ -24,6 +26,7 @@ from invokeai.app.services.session_processor.session_processor_common import Can
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.app.util.video_thumbnails import iter_video_frames
from invokeai.backend.ltx2.constants import (
LTX2_DEFAULT_FPS,
LTX2_DEFAULT_TEMPORAL_TILE,
@@ -49,7 +52,7 @@ 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.1.0",
+ version="1.2.0",
classification=Classification.Prototype,
)
class LTX2LatentsToVideoInvocation(BaseInvocation, WithMetadata, WithBoard):
@@ -63,6 +66,13 @@ class LTX2LatentsToVideoInvocation(BaseInvocation, WithMetadata, WithBoard):
input=Input.Connection,
title="Source Audio",
)
+ source_video: LTX2FullVideoConditioningField | None = InputField(
+ default=None,
+ description="The clip whose soundtrack was generated. When set, its own frames are written out "
+ "instead of the held video latents being decoded.",
+ input=Input.Connection,
+ title="Source Video",
+ )
audio_latents: LatentsField | None = InputField(
default=None,
description="Packed audio latents from the denoise node. Omit for a silent video.",
@@ -91,12 +101,23 @@ class LTX2LatentsToVideoInvocation(BaseInvocation, WithMetadata, WithBoard):
@torch.no_grad()
def invoke(self, context: InvocationContext) -> VideoOutput:
- decoded = self._decode_video(context)
+ # Video-to-audio holds the picture and samples only the sound, so decoding those latents
+ # would hand back a cover-cropped VAE round trip of footage the user already has. Their own
+ # frames are written instead -- the mirror of what audio-to-video does for the soundtrack.
+ source = self._source_frames(context) if self.source_video is not None else None
+ decoded = None if source is not None else self._decode_video(context)
if context.util.is_canceled():
raise CanceledException
- num_frames = decoded.shape[1]
- height, width = decoded.shape[2:]
+ if source is not None:
+ assert self.source_video is not None
+ source_frames, height, width = source
+ num_frames = self.source_video.num_frames
+ else:
+ assert decoded is not None
+ source_frames = None
+ num_frames = decoded.shape[1]
+ height, width = decoded.shape[2:]
duration = num_frames / float(self.fps)
# The soundtrack is decoded and trimmed before the writer opens: the WAV has to exist, and
@@ -123,7 +144,8 @@ class LTX2LatentsToVideoInvocation(BaseInvocation, WithMetadata, WithBoard):
context.util.signal_progress(f"Encoding MP4 ({num_frames} frames @ {self.fps} fps)")
writer = make_mp4_writer(tmp_path, float(self.fps), audio_path=wav_path)
try:
- _write_video_frames(writer, _iter_decoded_frames(decoded), context.util.is_canceled)
+ frames = iter(source_frames) if source_frames is not None else _iter_decoded_frames(decoded)
+ _write_video_frames(writer, frames, context.util.is_canceled)
finally:
writer.close()
del decoded
@@ -181,6 +203,47 @@ class LTX2LatentsToVideoInvocation(BaseInvocation, WithMetadata, WithBoard):
TorchDevice.empty_cache()
return decoded
+ def _source_frames(self, context: InvocationContext) -> tuple[Iterator[np.ndarray], int, int]:
+ """The held clip's own frames, at its own resolution, trimmed to what was generated.
+
+ Not fitted to the generation canvas: the canvas is what the *model* had to see, and handing
+ it back would return the user's footage cropped. What they asked for is their clip with a
+ soundtrack, so the framing they shot is what comes back.
+
+ Streamed rather than collected, and that is not a detail: these are full-resolution frames,
+ so a 4K clip of 241 would be 5.6 GiB of host memory that no budget in the model cache knows
+ about. Only the first frame is held, to report the geometry the writer needs. Returns the
+ remaining frames, the height and the width.
+ """
+ assert self.source_video is not None
+ name = self.source_video.source_video_name
+ wanted = self.source_video.num_frames
+ decoded = iter_video_frames(context.videos.get_path(name), is_canceled=context.util.is_canceled)
+
+ context.util.signal_progress("Reading the source clip for its new soundtrack")
+ first = next(decoded, None)
+ if first is None:
+ raise ValueError(f"'{name}' decoded no frames, but the soundtrack was generated for {wanted}.")
+
+ height, width = first.shape[:2]
+
+ def frames() -> Iterator[np.ndarray]:
+ written = 0
+ for frame in chain([first], decoded):
+ if written >= wanted:
+ return
+ written += 1
+ yield frame
+ # Raised at the end rather than up front: counting first would mean decoding the clip
+ # twice, and the invocation fails here so no truncated video is ever saved.
+ if written < wanted:
+ raise ValueError(
+ f"'{name}' now decodes to {written} frame(s) but the soundtrack was generated for "
+ f"{wanted}. The clip has changed since it was encoded."
+ )
+
+ return frames(), height, width
+
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.
diff --git a/invokeai/app/services/workflow_records/default_workflows/Extend Video - LTX-2.json b/invokeai/app/services/workflow_records/default_workflows/Extend Video - LTX-2.json
new file mode 100644
index 0000000000..0111130dd0
--- /dev/null
+++ b/invokeai/app/services/workflow_records/default_workflows/Extend Video - LTX-2.json
@@ -0,0 +1,1489 @@
+{
+ "name": "Extend Video - LTX-2",
+ "author": "Invoke",
+ "description": "Continues an existing clip with LTX-2, holding the source's last frames and its closing sound so the join is seamless. Exposes context_frames for tuning how much of the source carries into the continuation.",
+ "version": "1.0.0",
+ "contact": "",
+ "tags": "ltx, ltx2, video, extend, audio",
+ "notes": "Target Resolution: use 512p, 704p or 768p. The two-stage presets (1024p, 1536p) generate at half their named size and finish in a refine pass this single-pass template does not have, so they render SMALLER than 768p rather than larger.\n\ncontext_frames decides how much of the source the model sees. The default 17 (about 0.7s at 24 fps) carries motion but only ~1 syllable of sound -- enough for tone, not for cadence. Raise it (25/33/41/49...) when continuing rhythmic material such as singing, and raise num_frames with it so the extension is not mostly replay.",
+ "exposedFields": [
+ {
+ "nodeId": "source_video",
+ "fieldName": "video"
+ },
+ {
+ "nodeId": "source_video",
+ "fieldName": "start_frame"
+ },
+ {
+ "nodeId": "source_video",
+ "fieldName": "end_frame"
+ },
+ {
+ "nodeId": "extend_conditioning",
+ "fieldName": "context_frames"
+ },
+ {
+ "nodeId": "denoise_latents",
+ "fieldName": "num_frames"
+ },
+ {
+ "nodeId": "positive_prompt",
+ "fieldName": "value"
+ },
+ {
+ "nodeId": "negative_prompt",
+ "fieldName": "value"
+ },
+ {
+ "nodeId": "ideal_dimensions",
+ "fieldName": "target_resolution"
+ },
+ {
+ "nodeId": "denoise_latents",
+ "fieldName": "steps"
+ },
+ {
+ "nodeId": "seed",
+ "fieldName": "value"
+ },
+ {
+ "nodeId": "model_loader",
+ "fieldName": "model"
+ },
+ {
+ "nodeId": "model_loader",
+ "fieldName": "component_source"
+ },
+ {
+ "nodeId": "model_loader",
+ "fieldName": "text_encoder_model"
+ }
+ ],
+ "meta": {
+ "version": "4.0.0",
+ "category": "default"
+ },
+ "nodes": [
+ {
+ "id": "negative_prompt",
+ "type": "invocation",
+ "data": {
+ "id": "negative_prompt",
+ "version": "1.0.1",
+ "nodePack": "invokeai",
+ "label": "",
+ "notes": "",
+ "type": "string",
+ "inputs": {
+ "value": {
+ "name": "value",
+ "label": "",
+ "description": "",
+ "value": ""
+ }
+ },
+ "isOpen": true,
+ "isIntermediate": true,
+ "useCache": true
+ },
+ "position": {
+ "x": 0,
+ "y": 260
+ }
+ },
+ {
+ "id": "positive_prompt",
+ "type": "invocation",
+ "data": {
+ "id": "positive_prompt",
+ "version": "1.0.1",
+ "nodePack": "invokeai",
+ "label": "",
+ "notes": "",
+ "type": "string",
+ "inputs": {
+ "value": {
+ "name": "value",
+ "label": "",
+ "description": "",
+ "value": ""
+ }
+ },
+ "isOpen": true,
+ "isIntermediate": true,
+ "useCache": true
+ },
+ "position": {
+ "x": 0,
+ "y": 0
+ }
+ },
+ {
+ "id": "seed",
+ "type": "invocation",
+ "data": {
+ "id": "seed",
+ "version": "1.0.1",
+ "nodePack": "invokeai",
+ "label": "",
+ "notes": "",
+ "type": "integer",
+ "inputs": {
+ "value": {
+ "name": "value",
+ "label": "",
+ "description": "",
+ "value": 0
+ }
+ },
+ "isOpen": true,
+ "isIntermediate": true,
+ "useCache": true
+ },
+ "position": {
+ "x": 0,
+ "y": 520
+ }
+ },
+ {
+ "id": "model_loader",
+ "type": "invocation",
+ "data": {
+ "id": "model_loader",
+ "version": "1.1.0",
+ "nodePack": "invokeai",
+ "label": "",
+ "notes": "",
+ "type": "ltx2_model_loader",
+ "inputs": {
+ "model": {
+ "name": "model",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "component_source": {
+ "name": "component_source",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "text_encoder_model": {
+ "name": "text_encoder_model",
+ "label": "",
+ "description": "",
+ "value": null
+ }
+ },
+ "isOpen": true,
+ "isIntermediate": true,
+ "useCache": true
+ },
+ "position": {
+ "x": 0,
+ "y": 700
+ }
+ },
+ {
+ "id": "pos_cond",
+ "type": "invocation",
+ "data": {
+ "id": "pos_cond",
+ "version": "1.0.0",
+ "nodePack": "invokeai",
+ "label": "",
+ "notes": "",
+ "type": "ltx2_text_encoder",
+ "inputs": {
+ "prompt": {
+ "name": "prompt",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "negative_prompt": {
+ "name": "negative_prompt",
+ "label": "",
+ "description": "",
+ "value": "has_subtitles, has_blurbox, transition from black, transition to black, speech_ending_short, blurry, out of focus, overexposed, underexposed, low contrast, washed out colors, excessive noise, grainy texture, poor lighting, flickering, motion blur, distorted proportions, unnatural skin tones, deformed facial features, asymmetrical face, missing facial features, extra limbs, disfigured hands, wrong hand count, artifacts around text, inconsistent perspective, camera shake, incorrect depth of field, background too sharp, background clutter, distracting reflections, harsh shadows, inconsistent lighting direction, color banding, cartoonish rendering, 3D CGI look, unrealistic materials, uncanny valley effect, incorrect ethnicity, wrong gender, exaggerated expressions, wrong gaze direction, mismatched lip sync, silent or muted audio, distorted voice, robotic voice, echo, background noise, off-sync audio, incorrect dialogue, added dialogue, repetitive speech, jittery movement, awkward pauses, incorrect timing, unnatural transitions, inconsistent framing, tilted camera, flat lighting, inconsistent tone, cinematic oversaturation, stylized filters, or AI artifacts."
+ },
+ "encode_negative": {
+ "name": "encode_negative",
+ "label": "",
+ "description": "",
+ "value": true
+ },
+ "max_sequence_length": {
+ "name": "max_sequence_length",
+ "label": "",
+ "description": "",
+ "value": 1024
+ }
+ },
+ "isOpen": true,
+ "isIntermediate": true,
+ "useCache": true
+ },
+ "position": {
+ "x": 460,
+ "y": 0
+ }
+ },
+ {
+ "id": "denoise_latents",
+ "type": "invocation",
+ "data": {
+ "id": "denoise_latents",
+ "version": "1.4.0",
+ "nodePack": "invokeai",
+ "label": "",
+ "notes": "num_frames is the GENERATED clip's length and must exceed context_frames -- at or below it the output would be all replay. width/height must match the Extend Conditioning node's.",
+ "type": "ltx2_denoise",
+ "inputs": {
+ "width": {
+ "name": "width",
+ "label": "",
+ "description": "",
+ "value": 1248
+ },
+ "height": {
+ "name": "height",
+ "label": "",
+ "description": "",
+ "value": 704
+ },
+ "num_frames": {
+ "name": "num_frames",
+ "label": "",
+ "description": "",
+ "value": 121
+ },
+ "fps": {
+ "name": "fps",
+ "label": "",
+ "description": "",
+ "value": 24
+ },
+ "steps": {
+ "name": "steps",
+ "label": "",
+ "description": "",
+ "value": 30
+ },
+ "cfg_scale": {
+ "name": "cfg_scale",
+ "label": "",
+ "description": "",
+ "value": 3
+ },
+ "audio_cfg_scale": {
+ "name": "audio_cfg_scale",
+ "label": "",
+ "description": "",
+ "value": 7
+ },
+ "stg_scale": {
+ "name": "stg_scale",
+ "label": "",
+ "description": "",
+ "value": 1
+ },
+ "modality_scale": {
+ "name": "modality_scale",
+ "label": "",
+ "description": "",
+ "value": 3
+ },
+ "guidance_rescale": {
+ "name": "guidance_rescale",
+ "label": "",
+ "description": "",
+ "value": 0.7
+ },
+ "schedule": {
+ "name": "schedule",
+ "label": "",
+ "description": "",
+ "value": "auto"
+ },
+ "seed": {
+ "name": "seed",
+ "label": "",
+ "description": "",
+ "value": 0
+ },
+ "noise_scale": {
+ "name": "noise_scale",
+ "label": "",
+ "description": "",
+ "value": 0.909375
+ }
+ },
+ "isOpen": true,
+ "isIntermediate": true,
+ "useCache": true
+ },
+ "position": {
+ "x": 900,
+ "y": 0
+ }
+ },
+ {
+ "id": "extension_clip",
+ "type": "invocation",
+ "data": {
+ "id": "extension_clip",
+ "version": "1.2.0",
+ "nodePack": "invokeai",
+ "label": "",
+ "notes": "Decodes the generated half. The join below is the finished result.",
+ "type": "ltx2_latents_to_video",
+ "inputs": {
+ "fps": {
+ "name": "fps",
+ "label": "",
+ "description": "",
+ "value": 24
+ },
+ "tile_size": {
+ "name": "tile_size",
+ "label": "",
+ "description": "",
+ "value": 512
+ },
+ "temporal_tile": {
+ "name": "temporal_tile",
+ "label": "",
+ "description": "",
+ "value": 16
+ }
+ },
+ "isOpen": true,
+ "isIntermediate": true,
+ "useCache": false
+ },
+ "position": {
+ "x": 1380,
+ "y": 0
+ }
+ },
+ {
+ "id": "source_video",
+ "type": "invocation",
+ "data": {
+ "id": "source_video",
+ "version": "1.3.0",
+ "nodePack": "invokeai",
+ "label": "",
+ "notes": "Trims the source. The extension continues from wherever this trim ENDS.",
+ "type": "extract_video_range",
+ "inputs": {
+ "video": {
+ "name": "video",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "start_frame": {
+ "name": "start_frame",
+ "label": "",
+ "description": "",
+ "value": 0
+ },
+ "end_frame": {
+ "name": "end_frame",
+ "label": "",
+ "description": "",
+ "value": -1
+ },
+ "fps": {
+ "name": "fps",
+ "label": "",
+ "description": "",
+ "value": 0
+ }
+ },
+ "isOpen": true,
+ "isIntermediate": true,
+ "useCache": false
+ },
+ "position": {
+ "x": 420,
+ "y": 1000
+ }
+ },
+ {
+ "id": "source_clip_collect",
+ "type": "invocation",
+ "data": {
+ "id": "source_clip_collect",
+ "version": "1.1.0",
+ "nodePack": "invokeai",
+ "label": "",
+ "notes": "",
+ "type": "collect",
+ "inputs": {},
+ "isOpen": true,
+ "isIntermediate": true,
+ "useCache": true
+ },
+ "position": {
+ "x": 1380,
+ "y": 900
+ }
+ },
+ {
+ "id": "clips_to_join",
+ "type": "invocation",
+ "data": {
+ "id": "clips_to_join",
+ "version": "1.1.0",
+ "nodePack": "invokeai",
+ "label": "",
+ "notes": "",
+ "type": "collect",
+ "inputs": {},
+ "isOpen": true,
+ "isIntermediate": true,
+ "useCache": true
+ },
+ "position": {
+ "x": 1700,
+ "y": 900
+ }
+ },
+ {
+ "id": "video_output",
+ "type": "invocation",
+ "data": {
+ "id": "video_output",
+ "version": "1.2.0",
+ "nodePack": "invokeai",
+ "label": "",
+ "notes": "Joins source + extension. `transition_frames` arrives over an edge from context_frames -- the crossfade must consume exactly the held frames or they play twice.",
+ "type": "video_concat",
+ "inputs": {
+ "videos": {
+ "name": "videos",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "transition": {
+ "name": "transition",
+ "label": "",
+ "description": "",
+ "value": "crossfade"
+ },
+ "transition_frames": {
+ "name": "transition_frames",
+ "label": "",
+ "description": "",
+ "value": 17
+ },
+ "fps": {
+ "name": "fps",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "size_mismatch": {
+ "name": "size_mismatch",
+ "label": "",
+ "description": "",
+ "value": "match_first"
+ }
+ },
+ "isOpen": true,
+ "isIntermediate": false,
+ "useCache": false
+ },
+ "position": {
+ "x": 2020,
+ "y": 640
+ }
+ },
+ {
+ "id": "extend_conditioning",
+ "type": "invocation",
+ "data": {
+ "id": "extend_conditioning",
+ "version": "1.1.0",
+ "nodePack": "invokeai",
+ "label": "",
+ "notes": "Reads the TAIL of the trimmed clip. `context_frames` is the knob this template exists for: the number of source frames carried into the continuation, snapped DOWN to the VAE's 8n+1 grid (17, 25, 33, 41, 49...). It drives three things at once -- the held picture, the held soundtrack, and the crossfade length, which is why it is wired to the join rather than set there. Larger = smoother motion and more rhythmic context, but more of the generation spent replaying footage you already have.",
+ "type": "ltx2_extend_conditioning",
+ "inputs": {
+ "video": {
+ "name": "video",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "fps": {
+ "name": "fps",
+ "label": "",
+ "description": "",
+ "value": 24.0
+ },
+ "width": {
+ "name": "width",
+ "label": "",
+ "description": "",
+ "value": 1248
+ },
+ "height": {
+ "name": "height",
+ "label": "",
+ "description": "",
+ "value": 704
+ },
+ "context_frames": {
+ "name": "context_frames",
+ "label": "",
+ "description": "",
+ "value": 17
+ },
+ "tile_size": {
+ "name": "tile_size",
+ "label": "",
+ "description": "",
+ "value": 512
+ },
+ "temporal_tile": {
+ "name": "temporal_tile",
+ "label": "",
+ "description": "",
+ "value": 16
+ }
+ },
+ "isOpen": true,
+ "isIntermediate": true,
+ "useCache": true
+ },
+ "position": {
+ "x": 900,
+ "y": 760
+ }
+ },
+ {
+ "id": "core_metadata",
+ "type": "invocation",
+ "data": {
+ "id": "core_metadata",
+ "version": "2.6.0",
+ "nodePack": "invokeai",
+ "label": "",
+ "notes": "Recorded on the output so runs can be told apart in the gallery. These literals are NOT synced to the nodes above -- change num_frames, steps or the canvas there and change them here too, or the metadata will describe a different run than the one you made.",
+ "type": "core_metadata",
+ "inputs": {
+ "generation_mode": {
+ "name": "generation_mode",
+ "label": "",
+ "description": "",
+ "value": "ltx2_extend_video"
+ },
+ "positive_prompt": {
+ "name": "positive_prompt",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "negative_prompt": {
+ "name": "negative_prompt",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "width": {
+ "name": "width",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "height": {
+ "name": "height",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "seed": {
+ "name": "seed",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "rand_device": {
+ "name": "rand_device",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "cfg_scale": {
+ "name": "cfg_scale",
+ "label": "",
+ "description": "",
+ "value": 3
+ },
+ "cfg_rescale_multiplier": {
+ "name": "cfg_rescale_multiplier",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "steps": {
+ "name": "steps",
+ "label": "",
+ "description": "",
+ "value": 30
+ },
+ "scheduler": {
+ "name": "scheduler",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "seamless_x": {
+ "name": "seamless_x",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "seamless_y": {
+ "name": "seamless_y",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "clip_skip": {
+ "name": "clip_skip",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "model": {
+ "name": "model",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "controlnets": {
+ "name": "controlnets",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "ipAdapters": {
+ "name": "ipAdapters",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "t2iAdapters": {
+ "name": "t2iAdapters",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "loras": {
+ "name": "loras",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "strength": {
+ "name": "strength",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "init_image": {
+ "name": "init_image",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "vae": {
+ "name": "vae",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "qwen3_encoder": {
+ "name": "qwen3_encoder",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "mistral_encoder": {
+ "name": "mistral_encoder",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "ideogram4_caption": {
+ "name": "ideogram4_caption",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "num_frames": {
+ "name": "num_frames",
+ "label": "",
+ "description": "",
+ "value": 121
+ },
+ "first_frame_image": {
+ "name": "first_frame_image",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "last_frame_image": {
+ "name": "last_frame_image",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "source_video": {
+ "name": "source_video",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "source_video_start_frame": {
+ "name": "source_video_start_frame",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "source_video_end_frame": {
+ "name": "source_video_end_frame",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "fps": {
+ "name": "fps",
+ "label": "",
+ "description": "",
+ "value": 24
+ },
+ "wan_guidance_scale_low_noise": {
+ "name": "wan_guidance_scale_low_noise",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "wan_t5_encoder_model": {
+ "name": "wan_t5_encoder_model",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "wan_transformer_low_noise": {
+ "name": "wan_transformer_low_noise",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "wan_component_source": {
+ "name": "wan_component_source",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "minimax_h3_transformer_model": {
+ "name": "minimax_h3_transformer_model",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "minimax_h3_text_encoder_model": {
+ "name": "minimax_h3_text_encoder_model",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "minimax_h3_component_source": {
+ "name": "minimax_h3_component_source",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "minimax_h3_hybrid_base_model": {
+ "name": "minimax_h3_hybrid_base_model",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "minimax_h3_hybrid_start_block": {
+ "name": "minimax_h3_hybrid_start_block",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "minimax_h3_references": {
+ "name": "minimax_h3_references",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "hrf_enabled": {
+ "name": "hrf_enabled",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "hrf_method": {
+ "name": "hrf_method",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "hrf_strength": {
+ "name": "hrf_strength",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "positive_style_prompt": {
+ "name": "positive_style_prompt",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "negative_style_prompt": {
+ "name": "negative_style_prompt",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "refiner_model": {
+ "name": "refiner_model",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "refiner_cfg_scale": {
+ "name": "refiner_cfg_scale",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "refiner_steps": {
+ "name": "refiner_steps",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "refiner_scheduler": {
+ "name": "refiner_scheduler",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "refiner_positive_aesthetic_score": {
+ "name": "refiner_positive_aesthetic_score",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "refiner_negative_aesthetic_score": {
+ "name": "refiner_negative_aesthetic_score",
+ "label": "",
+ "description": "",
+ "value": null
+ },
+ "refiner_start": {
+ "name": "refiner_start",
+ "label": "",
+ "description": "",
+ "value": null
+ }
+ },
+ "isOpen": true,
+ "isIntermediate": true,
+ "useCache": true
+ },
+ "position": {
+ "x": 460,
+ "y": 420
+ }
+ },
+ {
+ "id": "ideal_dimensions",
+ "type": "invocation",
+ "data": {
+ "id": "ideal_dimensions",
+ "version": "1.1.0",
+ "nodePack": "invokeai",
+ "label": "",
+ "notes": "Derives the canvas from the SOURCE clip so the denoise and the conditioning cannot disagree. Only the source's aspect ratio is used; target_resolution pins the short edge to a trained preset and each axis is rounded to 32 (the VAE's spatial compression), which is why a clip's own pixel size cannot be wired straight through. base_width/base_height are wired out rather than width/height: identical on 512p/704p/768p, and on 1024p/1536p they are the canvas a single pass is actually trained for. THIS TEMPLATE IS A SINGLE PASS, so use 512p, 704p or 768p: the two-stage presets (1024p, 1536p) generate at HALF their named size and rely on a refine pass this graph does not have, so picking 1024p here renders at a 512 short edge, not 1024.",
+ "type": "ltx2_ideal_dimensions",
+ "inputs": {
+ "width": {
+ "name": "width",
+ "label": "",
+ "description": "",
+ "value": 1024
+ },
+ "height": {
+ "name": "height",
+ "label": "",
+ "description": "",
+ "value": 1024
+ },
+ "target_resolution": {
+ "name": "target_resolution",
+ "label": "",
+ "description": "",
+ "value": "704p"
+ }
+ },
+ "isOpen": true,
+ "isIntermediate": true,
+ "useCache": true
+ },
+ "position": {
+ "x": 420,
+ "y": 1300
+ }
+ }
+ ],
+ "edges": [
+ {
+ "id": "edge-model_loader-text_encoder-pos_cond-text_encoder",
+ "source": "model_loader",
+ "sourceHandle": "text_encoder",
+ "target": "pos_cond",
+ "targetHandle": "text_encoder",
+ "type": "default"
+ },
+ {
+ "id": "edge-positive_prompt-value-pos_cond-prompt",
+ "source": "positive_prompt",
+ "sourceHandle": "value",
+ "target": "pos_cond",
+ "targetHandle": "prompt",
+ "type": "default"
+ },
+ {
+ "id": "edge-negative_prompt-value-pos_cond-negative_prompt",
+ "source": "negative_prompt",
+ "sourceHandle": "value",
+ "target": "pos_cond",
+ "targetHandle": "negative_prompt",
+ "type": "default"
+ },
+ {
+ "id": "edge-model_loader-transformer-denoise_latents-transformer",
+ "source": "model_loader",
+ "sourceHandle": "transformer",
+ "target": "denoise_latents",
+ "targetHandle": "transformer",
+ "type": "default"
+ },
+ {
+ "id": "edge-pos_cond-conditioning-denoise_latents-positive_conditioning",
+ "source": "pos_cond",
+ "sourceHandle": "conditioning",
+ "target": "denoise_latents",
+ "targetHandle": "positive_conditioning",
+ "type": "default"
+ },
+ {
+ "id": "edge-pos_cond-negative_conditioning-denoise_latents-negative_conditioning",
+ "source": "pos_cond",
+ "sourceHandle": "negative_conditioning",
+ "target": "denoise_latents",
+ "targetHandle": "negative_conditioning",
+ "type": "default"
+ },
+ {
+ "id": "edge-seed-value-denoise_latents-seed",
+ "source": "seed",
+ "sourceHandle": "value",
+ "target": "denoise_latents",
+ "targetHandle": "seed",
+ "type": "default"
+ },
+ {
+ "id": "edge-denoise_latents-video_latents-extension_clip-video_latents",
+ "source": "denoise_latents",
+ "sourceHandle": "video_latents",
+ "target": "extension_clip",
+ "targetHandle": "video_latents",
+ "type": "default"
+ },
+ {
+ "id": "edge-denoise_latents-audio_latents-extension_clip-audio_latents",
+ "source": "denoise_latents",
+ "sourceHandle": "audio_latents",
+ "target": "extension_clip",
+ "targetHandle": "audio_latents",
+ "type": "default"
+ },
+ {
+ "id": "edge-model_loader-vae-extension_clip-vae",
+ "source": "model_loader",
+ "sourceHandle": "vae",
+ "target": "extension_clip",
+ "targetHandle": "vae",
+ "type": "default"
+ },
+ {
+ "id": "edge-model_loader-audio_vae-extension_clip-audio_vae",
+ "source": "model_loader",
+ "sourceHandle": "audio_vae",
+ "target": "extension_clip",
+ "targetHandle": "audio_vae",
+ "type": "default"
+ },
+ {
+ "id": "edge-model_loader-vocoder-extension_clip-vocoder",
+ "source": "model_loader",
+ "sourceHandle": "vocoder",
+ "target": "extension_clip",
+ "targetHandle": "vocoder",
+ "type": "default"
+ },
+ {
+ "id": "edge-source_video-video-source_clip_collect-item",
+ "source": "source_video",
+ "sourceHandle": "video",
+ "target": "source_clip_collect",
+ "targetHandle": "item",
+ "type": "default"
+ },
+ {
+ "id": "edge-source_clip_collect-collection-clips_to_join-collection",
+ "source": "source_clip_collect",
+ "sourceHandle": "collection",
+ "target": "clips_to_join",
+ "targetHandle": "collection",
+ "type": "default"
+ },
+ {
+ "id": "edge-extension_clip-video-clips_to_join-item",
+ "source": "extension_clip",
+ "sourceHandle": "video",
+ "target": "clips_to_join",
+ "targetHandle": "item",
+ "type": "default"
+ },
+ {
+ "id": "edge-clips_to_join-collection-video_output-videos",
+ "source": "clips_to_join",
+ "sourceHandle": "collection",
+ "target": "video_output",
+ "targetHandle": "videos",
+ "type": "default"
+ },
+ {
+ "id": "edge-source_video-video-extend_conditioning-video",
+ "source": "source_video",
+ "sourceHandle": "video",
+ "target": "extend_conditioning",
+ "targetHandle": "video",
+ "type": "default"
+ },
+ {
+ "id": "edge-model_loader-vae-extend_conditioning-vae",
+ "source": "model_loader",
+ "sourceHandle": "vae",
+ "target": "extend_conditioning",
+ "targetHandle": "vae",
+ "type": "default"
+ },
+ {
+ "id": "edge-extend_conditioning-video_conditioning-denoise_latents-video_conditioning",
+ "source": "extend_conditioning",
+ "sourceHandle": "video_conditioning",
+ "target": "denoise_latents",
+ "targetHandle": "video_conditioning",
+ "type": "default"
+ },
+ {
+ "id": "edge-model_loader-audio_vae-extend_conditioning-audio_vae",
+ "source": "model_loader",
+ "sourceHandle": "audio_vae",
+ "target": "extend_conditioning",
+ "targetHandle": "audio_vae",
+ "type": "default"
+ },
+ {
+ "id": "edge-model_loader-vocoder-extend_conditioning-vocoder",
+ "source": "model_loader",
+ "sourceHandle": "vocoder",
+ "target": "extend_conditioning",
+ "targetHandle": "vocoder",
+ "type": "default"
+ },
+ {
+ "id": "edge-source_video-fps-extend_conditioning-fps",
+ "source": "source_video",
+ "sourceHandle": "fps",
+ "target": "extend_conditioning",
+ "targetHandle": "fps",
+ "type": "default"
+ },
+ {
+ "id": "edge-extend_conditioning-audio_conditioning-denoise_latents-audio_prefix_conditioning",
+ "source": "extend_conditioning",
+ "sourceHandle": "audio_conditioning",
+ "target": "denoise_latents",
+ "targetHandle": "audio_prefix_conditioning",
+ "type": "default"
+ },
+ {
+ "id": "edge-extend_conditioning-context_frames-video_output-transition_frames",
+ "source": "extend_conditioning",
+ "sourceHandle": "context_frames",
+ "target": "video_output",
+ "targetHandle": "transition_frames",
+ "type": "default"
+ },
+ {
+ "id": "edge-source_video-fps-denoise_latents-fps",
+ "source": "source_video",
+ "sourceHandle": "fps",
+ "target": "denoise_latents",
+ "targetHandle": "fps",
+ "type": "default"
+ },
+ {
+ "id": "edge-source_video-fps-extension_clip-fps",
+ "source": "source_video",
+ "sourceHandle": "fps",
+ "target": "extension_clip",
+ "targetHandle": "fps",
+ "type": "default"
+ },
+ {
+ "id": "edge-seed-value-core_metadata-seed",
+ "source": "seed",
+ "sourceHandle": "value",
+ "target": "core_metadata",
+ "targetHandle": "seed",
+ "type": "default"
+ },
+ {
+ "id": "edge-positive_prompt-value-core_metadata-positive_prompt",
+ "source": "positive_prompt",
+ "sourceHandle": "value",
+ "target": "core_metadata",
+ "targetHandle": "positive_prompt",
+ "type": "default"
+ },
+ {
+ "id": "edge-negative_prompt-value-core_metadata-negative_prompt",
+ "source": "negative_prompt",
+ "sourceHandle": "value",
+ "target": "core_metadata",
+ "targetHandle": "negative_prompt",
+ "type": "default"
+ },
+ {
+ "id": "edge-core_metadata-metadata-extension_clip-metadata",
+ "source": "core_metadata",
+ "sourceHandle": "metadata",
+ "target": "extension_clip",
+ "targetHandle": "metadata",
+ "type": "default"
+ },
+ {
+ "id": "edge-core_metadata-metadata-video_output-metadata",
+ "source": "core_metadata",
+ "sourceHandle": "metadata",
+ "target": "video_output",
+ "targetHandle": "metadata",
+ "type": "default"
+ },
+ {
+ "id": "edge-source_video-width-ideal_dimensions-width",
+ "source": "source_video",
+ "sourceHandle": "width",
+ "target": "ideal_dimensions",
+ "targetHandle": "width",
+ "type": "default"
+ },
+ {
+ "id": "edge-ideal_dimensions-base_width-denoise_latents-width",
+ "source": "ideal_dimensions",
+ "sourceHandle": "base_width",
+ "target": "denoise_latents",
+ "targetHandle": "width",
+ "type": "default"
+ },
+ {
+ "id": "edge-ideal_dimensions-base_width-extend_conditioning-width",
+ "source": "ideal_dimensions",
+ "sourceHandle": "base_width",
+ "target": "extend_conditioning",
+ "targetHandle": "width",
+ "type": "default"
+ },
+ {
+ "id": "edge-ideal_dimensions-base_width-core_metadata-width",
+ "source": "ideal_dimensions",
+ "sourceHandle": "base_width",
+ "target": "core_metadata",
+ "targetHandle": "width",
+ "type": "default"
+ },
+ {
+ "id": "edge-source_video-height-ideal_dimensions-height",
+ "source": "source_video",
+ "sourceHandle": "height",
+ "target": "ideal_dimensions",
+ "targetHandle": "height",
+ "type": "default"
+ },
+ {
+ "id": "edge-ideal_dimensions-base_height-denoise_latents-height",
+ "source": "ideal_dimensions",
+ "sourceHandle": "base_height",
+ "target": "denoise_latents",
+ "targetHandle": "height",
+ "type": "default"
+ },
+ {
+ "id": "edge-ideal_dimensions-base_height-extend_conditioning-height",
+ "source": "ideal_dimensions",
+ "sourceHandle": "base_height",
+ "target": "extend_conditioning",
+ "targetHandle": "height",
+ "type": "default"
+ },
+ {
+ "id": "edge-ideal_dimensions-base_height-core_metadata-height",
+ "source": "ideal_dimensions",
+ "sourceHandle": "base_height",
+ "target": "core_metadata",
+ "targetHandle": "height",
+ "type": "default"
+ }
+ ],
+ "form": {
+ "elements": {
+ "heading-source": {
+ "id": "heading-source",
+ "parentId": "root",
+ "type": "heading",
+ "data": {
+ "content": "Source"
+ }
+ },
+ "field-source_video-video": {
+ "id": "field-source_video-video",
+ "parentId": "root",
+ "type": "node-field",
+ "data": {
+ "fieldIdentifier": {
+ "nodeId": "source_video",
+ "fieldName": "video"
+ },
+ "showDescription": true
+ }
+ },
+ "field-source_video-start_frame": {
+ "id": "field-source_video-start_frame",
+ "parentId": "root",
+ "type": "node-field",
+ "data": {
+ "fieldIdentifier": {
+ "nodeId": "source_video",
+ "fieldName": "start_frame"
+ },
+ "showDescription": true
+ }
+ },
+ "field-source_video-end_frame": {
+ "id": "field-source_video-end_frame",
+ "parentId": "root",
+ "type": "node-field",
+ "data": {
+ "fieldIdentifier": {
+ "nodeId": "source_video",
+ "fieldName": "end_frame"
+ },
+ "showDescription": true
+ }
+ },
+ "heading-continuation": {
+ "id": "heading-continuation",
+ "parentId": "root",
+ "type": "heading",
+ "data": {
+ "content": "Continuation"
+ }
+ },
+ "field-extend_conditioning-context_frames": {
+ "id": "field-extend_conditioning-context_frames",
+ "parentId": "root",
+ "type": "node-field",
+ "data": {
+ "fieldIdentifier": {
+ "nodeId": "extend_conditioning",
+ "fieldName": "context_frames"
+ },
+ "showDescription": true
+ }
+ },
+ "field-denoise_latents-num_frames": {
+ "id": "field-denoise_latents-num_frames",
+ "parentId": "root",
+ "type": "node-field",
+ "data": {
+ "fieldIdentifier": {
+ "nodeId": "denoise_latents",
+ "fieldName": "num_frames"
+ },
+ "showDescription": true
+ }
+ },
+ "heading-generation": {
+ "id": "heading-generation",
+ "parentId": "root",
+ "type": "heading",
+ "data": {
+ "content": "Generation"
+ }
+ },
+ "field-positive_prompt-value": {
+ "id": "field-positive_prompt-value",
+ "parentId": "root",
+ "type": "node-field",
+ "data": {
+ "fieldIdentifier": {
+ "nodeId": "positive_prompt",
+ "fieldName": "value"
+ },
+ "showDescription": true
+ }
+ },
+ "field-negative_prompt-value": {
+ "id": "field-negative_prompt-value",
+ "parentId": "root",
+ "type": "node-field",
+ "data": {
+ "fieldIdentifier": {
+ "nodeId": "negative_prompt",
+ "fieldName": "value"
+ },
+ "showDescription": true
+ }
+ },
+ "field-ideal_dimensions-target_resolution": {
+ "id": "field-ideal_dimensions-target_resolution",
+ "parentId": "root",
+ "type": "node-field",
+ "data": {
+ "fieldIdentifier": {
+ "nodeId": "ideal_dimensions",
+ "fieldName": "target_resolution"
+ },
+ "showDescription": true
+ }
+ },
+ "field-denoise_latents-steps": {
+ "id": "field-denoise_latents-steps",
+ "parentId": "root",
+ "type": "node-field",
+ "data": {
+ "fieldIdentifier": {
+ "nodeId": "denoise_latents",
+ "fieldName": "steps"
+ },
+ "showDescription": true
+ }
+ },
+ "field-seed-value": {
+ "id": "field-seed-value",
+ "parentId": "root",
+ "type": "node-field",
+ "data": {
+ "fieldIdentifier": {
+ "nodeId": "seed",
+ "fieldName": "value"
+ },
+ "showDescription": true
+ }
+ },
+ "heading-model": {
+ "id": "heading-model",
+ "parentId": "root",
+ "type": "heading",
+ "data": {
+ "content": "Model"
+ }
+ },
+ "field-model_loader-model": {
+ "id": "field-model_loader-model",
+ "parentId": "root",
+ "type": "node-field",
+ "data": {
+ "fieldIdentifier": {
+ "nodeId": "model_loader",
+ "fieldName": "model"
+ },
+ "showDescription": true
+ }
+ },
+ "field-model_loader-component_source": {
+ "id": "field-model_loader-component_source",
+ "parentId": "root",
+ "type": "node-field",
+ "data": {
+ "fieldIdentifier": {
+ "nodeId": "model_loader",
+ "fieldName": "component_source"
+ },
+ "showDescription": true
+ }
+ },
+ "field-model_loader-text_encoder_model": {
+ "id": "field-model_loader-text_encoder_model",
+ "parentId": "root",
+ "type": "node-field",
+ "data": {
+ "fieldIdentifier": {
+ "nodeId": "model_loader",
+ "fieldName": "text_encoder_model"
+ },
+ "showDescription": true
+ }
+ },
+ "root": {
+ "id": "root",
+ "type": "container",
+ "data": {
+ "children": [
+ "heading-source",
+ "field-source_video-video",
+ "field-source_video-start_frame",
+ "field-source_video-end_frame",
+ "heading-continuation",
+ "field-extend_conditioning-context_frames",
+ "field-denoise_latents-num_frames",
+ "heading-generation",
+ "field-positive_prompt-value",
+ "field-negative_prompt-value",
+ "field-ideal_dimensions-target_resolution",
+ "field-denoise_latents-steps",
+ "field-seed-value",
+ "heading-model",
+ "field-model_loader-model",
+ "field-model_loader-component_source",
+ "field-model_loader-text_encoder_model"
+ ],
+ "layout": "column"
+ }
+ }
+ },
+ "rootElementId": "root"
+ },
+ "id": "default_ltx2_extend"
+}
diff --git a/invokeai/backend/architectures/defs/ltx_2.py b/invokeai/backend/architectures/defs/ltx_2.py
index 4ac1b3a109..987ec84efa 100644
--- a/invokeai/backend/architectures/defs/ltx_2.py
+++ b/invokeai/backend/architectures/defs/ltx_2.py
@@ -25,10 +25,10 @@ register(
None: MainModelDefaultSettings(steps=30, cfg_scale=3.0, width=1248, height=704),
}
),
- # 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"),
+ # Every conditioning shape the family supports, all with synchronized audio generated alongside:
+ # text-to-video, a held first and/or last frame, continuing an existing clip, and the two
+ # whole-modality modes -- a picture for a given soundtrack, or a soundtrack for a given picture.
+ ModalityFacet(frozenset({"t2v", "i2v", "lf2v", "flf2v", "extend_video", "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/ltx2/clip_frames.py b/invokeai/backend/ltx2/clip_frames.py
new file mode 100644
index 0000000000..7299cda3da
--- /dev/null
+++ b/invokeai/backend/ltx2/clip_frames.py
@@ -0,0 +1,130 @@
+"""Reading a gallery clip's frames onto an LTX-2 canvas."""
+
+from collections import deque
+from collections.abc import Callable
+from pathlib import Path
+from typing import NamedTuple
+
+import numpy as np
+import torch
+from PIL import Image
+
+from invokeai.app.util.video_thumbnails import iter_video_frames
+from invokeai.backend.ltx2.image_conditioning import fit_to_canvas
+from invokeai.backend.ltx2.packing import normalize_video_latents
+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.util.cancel_hooks import cancel_before_forward
+
+# How often the read loop reports. Decoding and cover-cropping a long clip is tens of seconds;
+# without this the progress bar sits still for all of it.
+PROGRESS_FRAME_INTERVAL = 48
+
+
+class CanvasClip(NamedTuple):
+ """Frames fitted to the canvas, and the length of the clip they came out of."""
+
+ frames: list[np.ndarray]
+ #: Frames the source holds, or ``None`` when the read stopped before the end and cannot say.
+ #: A caller that needs the clip's span in *time* -- to line a soundtrack up against it -- has no
+ #: other way to get it: a decode's audio runs past the picture by the codec's end padding.
+ source_frames: int | None
+
+
+def read_canvas_frames(
+ path: Path,
+ *,
+ width: int,
+ height: int,
+ cap: int,
+ tail: bool = False,
+ is_canceled: Callable[[], bool] | None = None,
+ on_progress: Callable[[int], None] | None = None,
+) -> CanvasClip:
+ """Decode up to ``cap`` frames of ``path``, each cover-cropped to ``width`` x ``height``.
+
+ ``cap`` is a ceiling and not a formality: nothing upstream bounds a clip's length, so a workflow
+ handing one of these nodes a ten-minute recording would otherwise materialize every frame before
+ anything refused it. With ``tail`` the last ``cap`` frames are kept instead of the first, which
+ is what a video extension conditions on.
+
+ The two directions buffer differently, on purpose. Reading the head can stop at ``cap``, so each
+ frame is fitted as it arrives and only canvas-sized frames are ever held. Reading the tail
+ cannot stop early -- the last frames are only known once the clip ends -- so fitting on the way
+ past would run a LANCZOS resize over the whole recording to keep a second of it: measured at
+ 20 ms a frame for 1080p onto a 1248x704 canvas, that is ~145 s of pure resizing for a five
+ minute source, twice over on a two-stage run. The survivors are fitted instead, which trades a
+ bounded deque of native frames (17 at 4K is ~420 MiB, and the cap for a tail read is the
+ extension's context length, not the clip's) for work proportional to what is actually used.
+ """
+
+ def fitted(frame: np.ndarray) -> np.ndarray:
+ # `fit_to_canvas` takes (height, width) and a PIL image, and already returns RGB.
+ return np.asarray(fit_to_canvas(Image.fromarray(frame), height, width), dtype=np.uint8)
+
+ frames: deque[np.ndarray] = deque(maxlen=cap) if tail else deque()
+ read = 0
+
+ for frame in iter_video_frames(path, is_canceled=is_canceled):
+ frames.append(frame if tail else fitted(frame))
+ read += 1
+ if not tail and len(frames) >= cap:
+ break
+ if on_progress is not None and read % PROGRESS_FRAME_INTERVAL == 0:
+ on_progress(read)
+
+ # A tail read always runs to the end, so it knows the clip's length; a head read only does when
+ # it ran out of frames before reaching the cap.
+ source_frames = read if tail or read < cap else None
+
+ return CanvasClip([fitted(frame) for frame in frames] if tail else list(frames), source_frames)
+
+
+def encode_canvas_clip(
+ vae: torch.nn.Module,
+ frames: list[np.ndarray],
+ *,
+ tile_size: int,
+ temporal_tile: int,
+ is_canceled: Callable[[], bool] | None = None,
+) -> torch.Tensor:
+ """Canvas-sized uint8 frames -> normalized video latents ``[1, 128, T, h, w]``.
+
+ ``frames`` is CONSUMED: the list is emptied once it has been stacked, so the caller cannot keep
+ a second copy of the clip alive across the encode.
+
+ 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 needs about 65 GiB of it. Tiled at the
+ defaults the same encode runs in 3.2 GiB, flat in the clip's length.
+ """
+ # Stacked as uint8 and converted on the device: the fp32 copy is four times the size, and making
+ # it on the host would put ~2.4 GiB (for a 241-frame 1248x704 clip) outside every budget the
+ # model cache knows about, on top of the list it is built from. CONSUMES `frames` for the same
+ # reason -- the stack is a second copy of the clip, and holding both across the encode is 635
+ # MiB at the caller's own cap that no budget accounts for.
+ pixels = torch.from_numpy(np.stack(frames))
+ frames.clear()
+ vae_dtype = next(iter(vae.parameters())).dtype
+ # Resolved from the model: the cache decides where it 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=tile_size, temporal_tile=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], is_canceled, device),
+ ):
+ latents = vae.encode(source).latent_dist.mode().to(torch.float32)
+ del source
+
+ return normalize_video_latents(latents, vae.latents_mean, vae.latents_std, float(vae.config.scaling_factor))
diff --git a/invokeai/backend/ltx2/denoise.py b/invokeai/backend/ltx2/denoise.py
index 79871159a9..d503c2663f 100644
--- a/invokeai/backend/ltx2/denoise.py
+++ b/invokeai/backend/ltx2/denoise.py
@@ -24,6 +24,7 @@ from invokeai.backend.ltx2.constants import (
LTX2_AUDIO_LATENT_MEL_BINS,
LTX2_LATENT_CHANNELS,
LTX2_REFINE_NOISE_SEED_OFFSET,
+ LTX2_TEMPORAL_COMPRESSION,
)
from invokeai.backend.ltx2.guidance import (
PASS_MODALITY,
@@ -36,6 +37,7 @@ from invokeai.backend.ltx2.packing import (
audio_latent_count,
pack_audio_latents,
pack_video_latents,
+ prepare_keyframe_coords,
validate_canvas,
validate_num_frames,
video_latent_shape,
@@ -89,11 +91,190 @@ class LTX2DenoiseState:
clean_audio_latents: torch.Tensor | None = None
"""Packed, normalized audio latents the mask holds rows to. Shape: (1, audio latents, 128)."""
+ keyframe_coords: torch.Tensor | None = None
+ """RoPE coordinates for keyframe tokens appended to the sequence. Shape: (1, 3, patches, 2).
+
+ A frame held at latent index 0 overwrites tokens already in the grid; one held anywhere else has
+ nowhere in the grid to go, so it rides on the end of the sequence carrying its own position.
+ """
+
+ keyframe_tokens: int = 0
+ """How many rows on the end of ``video_latents`` are appended keyframes rather than generation.
+
+ They are conditioning the model reads, not picture it makes, so they are trimmed off before the
+ latents are unpacked -- both for the decode and for the progress preview.
+ """
+
+ @property
+ def generated_tokens(self) -> int:
+ """Rows of ``video_latents`` that are the generation itself."""
+ return self.video_latents.shape[1] - self.keyframe_tokens
+
@property
def num_steps(self) -> int:
return self.sigmas.numel() - 1
+def _hold_audio_prefix(
+ audio_latents: torch.Tensor,
+ prefix: torch.Tensor | None,
+ audio_count: int,
+ fps: float,
+) -> tuple[torch.Tensor, torch.Tensor | None, torch.Tensor | None]:
+ """Hold the opening of the soundtrack, leaving the rest to be generated.
+
+ A continuation replays the source's last moments so the model can see its motion, and the join
+ then crossfades exactly those frames out of both halves. The picture survives that because it is
+ held -- both clips render the same instant, so the blend is of like for like. Without this the
+ soundtrack does not: it is sampled freely from the first step, so the blend fades *newly
+ invented* audio in against the source's real audio, and the new soundtrack audibly begins one
+ overlap early.
+
+ The mask is per row and already drives everything downstream, so holding a prefix needs no
+ change to the loop -- only ones at the front of it instead of everywhere.
+ """
+ if prefix is None:
+ return audio_latents, None, None
+
+ held = prefix.shape[1] if prefix.ndim == 3 else 0
+ expected = (1, held, LTX2_AUDIO_LATENT_CHANNELS * LTX2_AUDIO_LATENT_MEL_BINS)
+ if prefix.ndim != 3 or tuple(prefix.shape) != expected or not 0 < held <= audio_count:
+ raise ValueError(
+ f"The held opening of the soundtrack is {tuple(prefix.shape)} but this clip has "
+ f"{audio_count} audio latents at {fps:g} fps, so it needs (1, 1..{audio_count}, "
+ f"{LTX2_AUDIO_LATENT_CHANNELS * LTX2_AUDIO_LATENT_MEL_BINS})."
+ )
+
+ clean = torch.zeros_like(audio_latents)
+ clean[:, :held] = prefix.to(device="cpu", dtype=torch.float32)
+ mask = torch.zeros((1, audio_count), dtype=torch.float32)
+ mask[:, :held] = 1.0
+
+ return torch.lerp(audio_latents, clean, mask.unsqueeze(-1)), mask, clean
+
+
+def _validated_anchor(
+ image_latents: torch.Tensor,
+ latent_frames: int,
+ latent_height: int,
+ latent_width: int,
+ width: int,
+ height: int,
+ hint: str,
+) -> torch.Tensor:
+ """A leading anchor: one latent frame for image-to-video, several for a video extension.
+
+ A still frame tells the model where a clip starts but nothing about how it was moving, so an
+ extension seeded from one tends to stall or lurch at the join. Several latent frames of the
+ source carry its motion into the new clip, and they are held the same way -- the mask simply
+ covers more of the front of the grid.
+ """
+ anchor = image_latents.to(device="cpu", dtype=torch.float32)
+ valid = (
+ anchor.ndim == 5
+ and anchor.shape[:2] == (1, LTX2_LATENT_CHANNELS)
+ and 0 < anchor.shape[2] <= latent_frames
+ and anchor.shape[3:] == (latent_height, latent_width)
+ )
+ if not valid:
+ raise ValueError(
+ f"The image conditioning was encoded at {tuple(anchor.shape)} but this generation needs "
+ f"(1, {LTX2_LATENT_CHANNELS}, 1..{latent_frames}, {latent_height}, {latent_width}). {hint}"
+ )
+
+ return anchor
+
+
+def _append_keyframe(
+ video_latents: torch.Tensor,
+ conditioning_mask: torch.Tensor | None,
+ clean_video_latents: torch.Tensor | None,
+ *,
+ keyframe_latents: torch.Tensor | None,
+ keyframe_latent_index: int | None,
+ keyframe_strength: float,
+ latent_frames: int,
+ latent_height: int,
+ latent_width: int,
+ num_frames: int,
+ width: int,
+ height: int,
+ fps: float,
+ generator: torch.Generator,
+) -> tuple[torch.Tensor, torch.Tensor | None, torch.Tensor | None, torch.Tensor | None, int]:
+ """Append a held frame to the end of a packed sequence, with the mask and coordinates it needs.
+
+ Shared by the base and refine passes so a last frame survives a two-stage run the way a first
+ frame does: the refine pass re-noises every token, so a keyframe that was only appended in
+ stage one would be regenerated from the prompt in stage two.
+
+ Returns the sequence, mask, clean values, the keyframe's RoPE coordinates and how many rows were
+ appended; with no keyframe the first three are returned unchanged.
+ """
+ if keyframe_latents is None:
+ return video_latents, conditioning_mask, clean_video_latents, None, 0
+
+ if keyframe_latent_index is None or keyframe_latent_index <= 0:
+ raise ValueError(
+ f"A keyframe needs a latent index above 0; got {keyframe_latent_index}. Frame 0 is the "
+ f"first frame, which is held by overwriting the grid rather than appending."
+ )
+ if keyframe_latent_index >= latent_frames:
+ raise ValueError(
+ f"A keyframe at latent index {keyframe_latent_index} is outside a {num_frames}-frame clip, "
+ f"which has {latent_frames} latent frames."
+ )
+ if not 0.0 < keyframe_strength <= 1.0:
+ raise ValueError(f"Keyframe strength must be in (0, 1]; got {keyframe_strength}.")
+
+ keyframe = keyframe_latents.to(device="cpu", dtype=torch.float32)
+ if (
+ keyframe.ndim != 5
+ or keyframe.shape[:2] != (1, LTX2_LATENT_CHANNELS)
+ or keyframe.shape[3:]
+ != (
+ latent_height,
+ latent_width,
+ )
+ ):
+ raise ValueError(
+ f"The keyframe was encoded at {tuple(keyframe.shape)} but this generation needs "
+ f"(1, {LTX2_LATENT_CHANNELS}, frames, {latent_height}, {latent_width}). Re-run the "
+ f"conditioning node at {width}x{height}."
+ )
+
+ # Drawn after everything else, so adding a last frame does not reshuffle the noise the rest of
+ # the clip would have had -- the same seed keeps the same generation.
+ keyframe_noise = randn_tensor(keyframe.shape, generator=generator, device=torch.device("cpu"), dtype=torch.float32)
+ keyframe_clean = pack_video_latents(keyframe)
+ keyframe_tokens = keyframe_clean.shape[1]
+
+ if conditioning_mask is None:
+ conditioning_mask = torch.zeros((1, video_latents.shape[1]), dtype=torch.float32)
+ clean_video_latents = torch.zeros_like(video_latents)
+ assert clean_video_latents is not None
+
+ video_latents = torch.cat(
+ [video_latents, torch.lerp(pack_video_latents(keyframe_noise), keyframe_clean, keyframe_strength)], dim=1
+ )
+ conditioning_mask = torch.cat(
+ [conditioning_mask, torch.full((1, keyframe_tokens), keyframe_strength, dtype=torch.float32)], dim=1
+ )
+ clean_video_latents = torch.cat([clean_video_latents, keyframe_clean], dim=1)
+ # `(index - 1) * 8 + 1` is the pixel frame a latent frame starts at: latent 0 covers pixel frame 0
+ # alone and every later latent covers the eight after it (`VideoConditionByKeyframeIndex`).
+ keyframe_coords = prepare_keyframe_coords(
+ keyframe.shape[2],
+ latent_height,
+ latent_width,
+ pixel_frame_index=(keyframe_latent_index - 1) * LTX2_TEMPORAL_COMPRESSION + 1,
+ num_pixel_frames=(keyframe.shape[2] - 1) * LTX2_TEMPORAL_COMPRESSION + 1,
+ fps=fps,
+ )
+
+ return video_latents, conditioning_mask, clean_video_latents, keyframe_coords, keyframe_tokens
+
+
def build_denoise_state(
*,
num_frames: int,
@@ -107,6 +288,10 @@ def build_denoise_state(
conditioning_strength: float = 1.0,
frozen_audio_latents: torch.Tensor | None = None,
frozen_video_latents: torch.Tensor | None = None,
+ audio_prefix_latents: torch.Tensor | None = None,
+ keyframe_latents: torch.Tensor | None = None,
+ keyframe_latent_index: int | None = None,
+ keyframe_strength: float = 1.0,
) -> LTX2DenoiseState:
"""Noise, schedule and conditioning mask for one run.
@@ -118,7 +303,19 @@ def build_denoise_state(
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.
+
+ ``keyframe_latents`` holds a frame at ``keyframe_latent_index``, which must be non-zero -- index
+ 0 is what ``image_latents`` is for. It cannot overwrite grid tokens the way the first frame does,
+ because the grid has one value per position and the generation needs that position too; instead
+ the frame is *appended* to the sequence with coordinates naming where in time it belongs, and the
+ same mask drives it. The appended rows are trimmed before anything unpacks the result. This is
+ what makes a last frame (and, with ``image_latents``, first-to-last interpolation) possible.
"""
+ if frozen_audio_latents is not None and audio_prefix_latents is not None:
+ raise ValueError(
+ "The soundtrack cannot be held whole and held at its opening at the same time. A "
+ "continuation holds its opening; audio-to-video holds all of it."
+ )
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. "
@@ -127,6 +324,14 @@ def build_denoise_state(
# 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.
+ # A held clip covers every row, so an appended keyframe would be orphaned: the frozen branch
+ # below replaces the whole sequence and the keyframe's rows go with it, leaving its coordinates
+ # and token count pointing at tokens that are no longer there.
+ if frozen_video_latents is not None and keyframe_latents is not None:
+ raise ValueError(
+ "A keyframe cannot be combined with a whole-clip video conditioning: the clip already "
+ "supplies every frame. Wire one or the other."
+ )
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 "
@@ -162,23 +367,48 @@ def build_denoise_state(
clean_video_latents: torch.Tensor | None = None
if image_latents is not None:
- expected = (1, LTX2_LATENT_CHANNELS, 1, latent_height, latent_width)
- if tuple(image_latents.shape) != expected:
- raise ValueError(
- f"The image conditioning was encoded at {tuple(image_latents.shape)} but this "
- f"generation needs {expected}. Re-run the conditioning node at {width}x{height}."
- )
- clean = torch.zeros_like(video_noise)
- clean[:, :, 0] = image_latents.to(device="cpu", dtype=torch.float32)[:, :, 0]
+ anchor = _validated_anchor(
+ image_latents,
+ latent_frames,
+ latent_height,
+ latent_width,
+ width,
+ height,
+ hint=(
+ f"Re-run the conditioning node at {width}x{height}. If this is a continuation, the "
+ f"held opening is longer than the clip being generated -- raise Frames, or lower the "
+ f"conditioning node's context length."
+ ),
+ )
if not 0.0 < conditioning_strength <= 1.0:
raise ValueError(f"Image conditioning strength must be in (0, 1]; got {conditioning_strength}.")
+ held = anchor.shape[2]
+ clean = torch.zeros_like(video_noise)
+ clean[:, :, :held] = anchor
mask = torch.zeros((1, 1, latent_frames, latent_height, latent_width), dtype=torch.float32)
- mask[:, :, 0] = conditioning_strength
+ mask[:, :, :held] = conditioning_strength
clean_video_latents = pack_video_latents(clean)
conditioning_mask = pack_video_latents(mask).squeeze(-1)
video_latents = torch.lerp(video_latents, clean_video_latents, conditioning_mask.unsqueeze(-1))
+ video_latents, conditioning_mask, clean_video_latents, keyframe_coords, keyframe_tokens = _append_keyframe(
+ video_latents,
+ conditioning_mask,
+ clean_video_latents,
+ keyframe_latents=keyframe_latents,
+ keyframe_latent_index=keyframe_latent_index,
+ keyframe_strength=keyframe_strength,
+ latent_frames=latent_frames,
+ latent_height=latent_height,
+ latent_width=latent_width,
+ num_frames=num_frames,
+ width=width,
+ height=height,
+ fps=fps,
+ generator=generator,
+ )
+
audio_latents = pack_audio_latents(audio_noise)
audio_conditioning_mask: torch.Tensor | None = None
clean_audio_latents: torch.Tensor | None = None
@@ -195,6 +425,10 @@ def build_denoise_state(
audio_conditioning_mask = torch.ones((1, audio_count), dtype=torch.float32)
audio_latents = clean_audio_latents.clone()
+ audio_latents, prefix_mask, prefix_clean = _hold_audio_prefix(audio_latents, audio_prefix_latents, audio_count, fps)
+ if prefix_mask is not None:
+ audio_conditioning_mask, clean_audio_latents = prefix_mask, prefix_clean
+
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:
@@ -222,6 +456,8 @@ def build_denoise_state(
clean_video_latents=clean_video_latents,
audio_conditioning_mask=audio_conditioning_mask,
clean_audio_latents=clean_audio_latents,
+ keyframe_coords=keyframe_coords,
+ keyframe_tokens=keyframe_tokens,
# 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,
@@ -243,6 +479,10 @@ def build_refine_state(
noise_scale: float,
image_latents: torch.Tensor | None = None,
conditioning_strength: float = 1.0,
+ keyframe_latents: torch.Tensor | None = None,
+ keyframe_latent_index: int | None = None,
+ keyframe_strength: float = 1.0,
+ audio_prefix_latents: torch.Tensor | None = None,
) -> LTX2DenoiseState:
"""The refine pass's state: stage one's result re-entered partway down the schedule.
@@ -261,7 +501,10 @@ def build_refine_state(
the refine pass re-noises every token, frame 0 included, so at the released entry level about
nine tenths of the anchored frame's signal is replaced by noise and nothing restores it. Without
this the first frame would be regenerated from the prompt alone, and a two-stage run would
- quietly mean something different by "first frame" than a single-stage one.
+ quietly mean something different by "first frame" than a single-stage one. ``keyframe_latents`` is
+ the same argument for a held last frame: appended tokens are not carried through the upsampler,
+ so stage two has to be given the frame again or a two-stage run would end somewhere else than a
+ single-stage one.
"""
validate_canvas(height, width)
validate_num_frames(num_frames)
@@ -307,28 +550,59 @@ def build_refine_state(
clean_video_latents: torch.Tensor | None = None
if image_latents is not None:
- expected_anchor = (1, LTX2_LATENT_CHANNELS, 1, latent_height, latent_width)
- if tuple(image_latents.shape) != expected_anchor:
- raise ValueError(
- f"The refine pass's image conditioning was encoded at {tuple(image_latents.shape)} "
- f"but this pass needs {expected_anchor}. Encode it at the refine canvas "
- f"({width}x{height}), not the base pass's."
- )
+ anchor = _validated_anchor(
+ image_latents,
+ latent_frames,
+ latent_height,
+ latent_width,
+ width,
+ height,
+ # The likeliest mistake here is not a wrong canvas but the base pass's own encode, which
+ # is half the size and passes every check a single-stage run would make.
+ hint=f"Encode it at the refine canvas ({width}x{height}), not the base pass's.",
+ )
if not 0.0 < conditioning_strength <= 1.0:
raise ValueError(f"Image conditioning strength must be in (0, 1]; got {conditioning_strength}.")
+ held = anchor.shape[2]
clean = torch.zeros((1, LTX2_LATENT_CHANNELS, latent_frames, latent_height, latent_width))
- clean[:, :, 0] = image_latents.to(device="cpu", dtype=torch.float32)[:, :, 0]
+ clean[:, :, :held] = anchor
mask = torch.zeros((1, 1, latent_frames, latent_height, latent_width), dtype=torch.float32)
- mask[:, :, 0] = conditioning_strength
+ mask[:, :, :held] = conditioning_strength
clean_video_latents = pack_video_latents(clean)
conditioning_mask = pack_video_latents(mask).squeeze(-1)
video_latents = torch.lerp(video_latents, clean_video_latents, conditioning_mask.unsqueeze(-1))
+ video_latents, conditioning_mask, clean_video_latents, keyframe_coords, keyframe_tokens = _append_keyframe(
+ video_latents,
+ conditioning_mask,
+ clean_video_latents,
+ keyframe_latents=keyframe_latents,
+ keyframe_latent_index=keyframe_latent_index,
+ keyframe_strength=keyframe_strength,
+ latent_frames=latent_frames,
+ latent_height=latent_height,
+ latent_width=latent_width,
+ num_frames=num_frames,
+ width=width,
+ height=height,
+ fps=fps,
+ generator=generator,
+ )
+
+ # Re-held here for the same reason the video anchor is: this pass re-noises every row, so a
+ # soundtrack opening held only in stage one is gone by stage two and the join's audio blend goes
+ # back to fading in invented sound one overlap early.
+ refined_audio, audio_prefix_mask, audio_prefix_clean = _hold_audio_prefix(
+ torch.lerp(audio, audio_noise, sigma), audio_prefix_latents, audio_count, fps
+ )
+
return LTX2DenoiseState(
video_latents=video_latents,
- audio_latents=torch.lerp(audio, audio_noise, sigma),
+ audio_latents=refined_audio,
+ audio_conditioning_mask=audio_prefix_mask,
+ clean_audio_latents=audio_prefix_clean,
sigmas=sigmas,
latent_frames=latent_frames,
latent_height=latent_height,
@@ -338,6 +612,8 @@ def build_refine_state(
clean_video_latents=clean_video_latents,
eta=LTX2_ANCESTRAL_ETA if distilled else 0.0,
noise_seed=seed + LTX2_REFINE_NOISE_SEED_OFFSET + LTX2_ANCESTRAL_NOISE_SEED_OFFSET,
+ keyframe_coords=keyframe_coords,
+ keyframe_tokens=keyframe_tokens,
)
@@ -389,6 +665,10 @@ def denoise(
video_coords = transformer.rope.prepare_video_coords(
1, state.latent_frames, state.latent_height, state.latent_width, device, fps=fps
)
+ if state.keyframe_coords is not None:
+ # Appended tokens need appended positions, in the same order: the coordinates are what tell
+ # the model *when* the held frame is, and without them it would read as more of frame 0.
+ video_coords = torch.cat([video_coords, state.keyframe_coords.to(device=device)], dim=2)
audio_coords = transformer.audio_rope.prepare_audio_coords(1, state.audio_latents_count, device)
timestep_scale = float(transformer.config.timestep_scale_multiplier)
@@ -460,7 +740,9 @@ def denoise(
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
+ # The keyframe rows are conditioning the model read, not picture it made, and they sit outside
+ # the latent grid's geometry -- unpacking with them still attached would reshape garbage.
+ return video_latents[:, : state.generated_tokens], audio_latents
def _encoder_inputs(
@@ -481,15 +763,30 @@ def _step_noise(
generator: torch.Generator,
device: torch.device,
) -> tuple[torch.Tensor | None, torch.Tensor | None]:
- """The ancestral step's re-injected noise, drawn video-first from one CPU generator."""
+ """The ancestral step's re-injected noise, drawn video-first from one CPU generator.
+
+ Drawn for the GENERATED grid, never for the appended keyframe rows, and then padded back out.
+ Those rows are put straight back by the mask restore, so their noise is discarded either way --
+ but drawing it would consume a different amount of the shared stream at every step, which
+ shifts the audio noise and, from the next step on, the picture too. A last frame would then not
+ change how a clip ends, it would change the clip: at a fixed seed on the distilled checkpoint
+ (the only schedule that takes this branch) adding one regenerates everything.
+ """
if state.eta <= 0:
return None, None
+ generated = state.generated_tokens
video_noise = randn_tensor(
- video_latents.shape, generator=generator, device=torch.device("cpu"), dtype=torch.float32
+ (video_latents.shape[0], generated, video_latents.shape[2]),
+ generator=generator,
+ device=torch.device("cpu"),
+ dtype=torch.float32,
)
audio_noise = randn_tensor(
audio_latents.shape, generator=generator, device=torch.device("cpu"), dtype=torch.float32
)
+ if video_noise.shape[1] != video_latents.shape[1]:
+ video_noise = torch.nn.functional.pad(video_noise, (0, 0, 0, video_latents.shape[1] - generated))
+
return video_noise.to(device), audio_noise.to(device)
diff --git a/invokeai/backend/ltx2/packing.py b/invokeai/backend/ltx2/packing.py
index 6aac7b391e..37ccc8fdd4 100644
--- a/invokeai/backend/ltx2/packing.py
+++ b/invokeai/backend/ltx2/packing.py
@@ -213,6 +213,59 @@ def base_canvas(height: int, width: int) -> tuple[int, int]:
return height // 2, width // 2
+def prepare_keyframe_coords(
+ latent_frames: int,
+ latent_height: int,
+ latent_width: int,
+ *,
+ pixel_frame_index: int,
+ num_pixel_frames: int,
+ fps: float,
+ device: torch.device | None = None,
+) -> torch.Tensor:
+ """RoPE coordinates for a keyframe appended to the sequence, as ``[1, 3, patches, 2]``.
+
+ A frame conditioned at latent index 0 overwrites tokens already in the grid, so it needs no
+ coordinates of its own. A frame conditioned anywhere else is *appended* to the sequence instead
+ -- there is no room in the grid for a second value at one position -- so it carries its own
+ position, which is what these are. Mirrors ``LTX2ConditionPipeline._prepare_keyframe_coords``
+ (diffusers ``pipelines/ltx2/pipeline_ltx2_condition.py``), itself a port of
+ ``VideoConditionByKeyframeIndex.apply_to``.
+
+ Two details are load-bearing and easy to get wrong. The causal fix that
+ ``prepare_video_coords`` applies to the first frame is deliberately NOT applied here: it exists
+ because latent frame 0 covers one pixel frame while the rest cover eight, and a keyframe placed
+ at a non-zero index is not that frame. And a single-pixel-frame keyframe has its temporal extent
+ clamped to ``[idx, idx + 1)`` rather than the VAE's eight-frame span, so it occupies one instant
+ instead of smearing across the group it lands in.
+ """
+ grid = torch.meshgrid(
+ torch.arange(0, latent_frames, LTX2_PATCH_SIZE_T, dtype=torch.float32, device=device),
+ torch.arange(0, latent_height, LTX2_PATCH_SIZE, dtype=torch.float32, device=device),
+ torch.arange(0, latent_width, LTX2_PATCH_SIZE, dtype=torch.float32, device=device),
+ indexing="ij",
+ )
+ starts = torch.stack(grid, dim=0)
+ extent = torch.tensor(
+ (LTX2_PATCH_SIZE_T, LTX2_PATCH_SIZE, LTX2_PATCH_SIZE), dtype=starts.dtype, device=device
+ ).view(3, 1, 1, 1)
+
+ latent_coords = torch.stack([starts, starts + extent], dim=-1).flatten(1, 3).unsqueeze(0)
+ scale = torch.tensor(
+ (LTX2_TEMPORAL_COMPRESSION, LTX2_SPATIAL_COMPRESSION, LTX2_SPATIAL_COMPRESSION),
+ dtype=latent_coords.dtype,
+ device=device,
+ ).view(1, 3, 1, 1)
+ pixel_coords = latent_coords * scale
+
+ pixel_coords[:, 0, :, :] += pixel_frame_index
+ if num_pixel_frames == 1:
+ pixel_coords[:, 0, :, 1:] = pixel_coords[:, 0, :, :1] + 1
+ pixel_coords[:, 0, :, :] /= fps
+
+ return pixel_coords
+
+
def _snap_axis(value: float, multiple: int = LTX2_CANVAS_MULTIPLE) -> int:
# round() is half-to-even, which is the behaviour the frontend's resolver mirrors.
return max(multiple, round(value / multiple) * multiple)
diff --git a/invokeai/frontend/web/openapi.json b/invokeai/frontend/web/openapi.json
index ad94a4f378..143145cd92 100644
--- a/invokeai/frontend/web/openapi.json
+++ b/invokeai/frontend/web/openapi.json
@@ -25898,6 +25898,9 @@
"ltx2_i2v",
"ltx2_a2v",
"ltx2_v2a",
+ "ltx2_lf2v",
+ "ltx2_flf2v",
+ "ltx2_extend_video",
"minimax_h3_lf2v",
"minimax_h3_flf2v",
"minimax_h3_extend_video",
@@ -39944,6 +39947,9 @@
{
"$ref": "#/components/schemas/LTX2DenoiseInvocation"
},
+ {
+ "$ref": "#/components/schemas/LTX2ExtendConditioningInvocation"
+ },
{
"$ref": "#/components/schemas/LTX2IdealDimensionsInvocation"
},
@@ -40697,6 +40703,9 @@
{
"$ref": "#/components/schemas/LTX2DenoiseOutput"
},
+ {
+ "$ref": "#/components/schemas/LTX2ExtendConditioningOutput"
+ },
{
"$ref": "#/components/schemas/LTX2IdealDimensionsOutput"
},
@@ -49254,6 +49263,9 @@
{
"$ref": "#/components/schemas/LTX2DenoiseInvocation"
},
+ {
+ "$ref": "#/components/schemas/LTX2ExtendConditioningInvocation"
+ },
{
"$ref": "#/components/schemas/LTX2IdealDimensionsInvocation"
},
@@ -49964,6 +49976,9 @@
{
"$ref": "#/components/schemas/LTX2DenoiseOutput"
},
+ {
+ "$ref": "#/components/schemas/LTX2ExtendConditioningOutput"
+ },
{
"$ref": "#/components/schemas/LTX2IdealDimensionsOutput"
},
@@ -50770,6 +50785,9 @@
{
"$ref": "#/components/schemas/LTX2DenoiseInvocation"
},
+ {
+ "$ref": "#/components/schemas/LTX2ExtendConditioningInvocation"
+ },
{
"$ref": "#/components/schemas/LTX2IdealDimensionsInvocation"
},
@@ -51871,6 +51889,9 @@
"ltx2_denoise": {
"$ref": "#/components/schemas/LTX2DenoiseOutput"
},
+ "ltx2_extend_conditioning": {
+ "$ref": "#/components/schemas/LTX2ExtendConditioningOutput"
+ },
"ltx2_ideal_dimensions": {
"$ref": "#/components/schemas/LTX2IdealDimensionsOutput"
},
@@ -52520,6 +52541,7 @@
"lscale",
"ltx2_audio_conditioning",
"ltx2_denoise",
+ "ltx2_extend_conditioning",
"ltx2_ideal_dimensions",
"ltx2_image_conditioning",
"ltx2_latent_upsample",
@@ -53255,6 +53277,9 @@
{
"$ref": "#/components/schemas/LTX2DenoiseInvocation"
},
+ {
+ "$ref": "#/components/schemas/LTX2ExtendConditioningInvocation"
+ },
{
"$ref": "#/components/schemas/LTX2IdealDimensionsInvocation"
},
@@ -54422,6 +54447,9 @@
{
"$ref": "#/components/schemas/LTX2DenoiseInvocation"
},
+ {
+ "$ref": "#/components/schemas/LTX2ExtendConditioningInvocation"
+ },
{
"$ref": "#/components/schemas/LTX2IdealDimensionsInvocation"
},
@@ -58386,6 +58414,23 @@
"orig_required": false,
"title": "Image Conditioning"
},
+ "keyframe_conditioning": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LTX2VideoConditioningField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "A frame held somewhere other than the start -- a last frame, or any interior keyframe. Its own `frame_index` says where; -1 is the last frame.",
+ "field_kind": "input",
+ "input": "connection",
+ "orig_default": null,
+ "orig_required": false,
+ "title": "Keyframe Conditioning"
+ },
"audio_conditioning": {
"anyOf": [
{
@@ -58403,6 +58448,23 @@
"orig_required": false,
"title": "Audio Conditioning"
},
+ "audio_prefix_conditioning": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LTX2AudioConditioningField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The opening of the soundtrack, held while the rest is generated. A continuation uses it so the join blends the source's real sound against a reproduction of itself rather than against newly invented sound.",
+ "field_kind": "input",
+ "input": "connection",
+ "orig_default": null,
+ "orig_required": false,
+ "title": "Audio Prefix Conditioning"
+ },
"full_video_conditioning": {
"anyOf": [
{
@@ -58620,7 +58682,7 @@
"tags": ["ltx", "ltx2", "video", "audio", "denoise"],
"title": "Denoise - LTX-2",
"type": "object",
- "version": "1.2.0",
+ "version": "1.4.0",
"output": {
"$ref": "#/components/schemas/LTX2DenoiseOutput"
}
@@ -58674,6 +58736,234 @@
"title": "LTX2DenoiseOutput",
"type": "object"
},
+ "LTX2ExtendConditioningInvocation": {
+ "category": "conditioning",
+ "class": "invocation",
+ "classification": "prototype",
+ "description": "Encodes the end of a clip so LTX-2 can continue it.\n\nA continuation is image-to-video with a longer anchor: instead of one held frame the generation\nopens with several latent frames of the source, held clean the same way. That is what carries\nthe source's *motion* across the join -- a single still frame fixes the picture but not its\ndirection, and clips extended from one tend to stall or lurch where they meet.\n\nThe held frames are regenerated as part of the output, so they appear in both clips. The join is\nwhat removes the duplication: a crossfade of ``context_frames`` consumes exactly those frames\nfrom each side, blending two renderings of the same moment into 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 continue.",
+ "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"
+ },
+ "audio_vae": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/VAEField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Audio VAE (mel spectrogram) for LTX-2",
+ "field_kind": "input",
+ "input": "connection",
+ "orig_default": null,
+ "orig_required": false,
+ "title": "Audio VAE"
+ },
+ "vocoder": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LTX2VocoderField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The vocoder, whose checkpoint carries the log-mel filters the audio VAE encodes from.",
+ "field_kind": "input",
+ "input": "connection",
+ "orig_default": null,
+ "orig_required": false,
+ "title": "Vocoder"
+ },
+ "fps": {
+ "default": 24.0,
+ "description": "The clip's frame rate, used to turn the held frame count into a span of its soundtrack.",
+ "field_kind": "input",
+ "input": "any",
+ "maximum": 120,
+ "minimum": 1,
+ "orig_default": 24.0,
+ "orig_required": false,
+ "title": "Fps",
+ "type": "number"
+ },
+ "width": {
+ "default": 1248,
+ "description": "Canvas width (must match Denoise).",
+ "exclusiveMinimum": 0,
+ "field_kind": "input",
+ "input": "any",
+ "multipleOf": 32,
+ "orig_default": 1248,
+ "orig_required": false,
+ "title": "Width",
+ "type": "integer"
+ },
+ "height": {
+ "default": 704,
+ "description": "Canvas height (must match Denoise).",
+ "exclusiveMinimum": 0,
+ "field_kind": "input",
+ "input": "any",
+ "multipleOf": 32,
+ "orig_default": 704,
+ "orig_required": false,
+ "title": "Height",
+ "type": "integer"
+ },
+ "context_frames": {
+ "default": 17,
+ "description": "Frames of the source to carry into the continuation. The VAE encodes 8k + 1 frames, so this is snapped DOWN to the nearest 9, 17, 25, 33, 41, 49... -- asking for 24 holds 17. A short source is capped at what it has. The `context_frames` output reports what was actually held, which is why the join reads it from there rather than from here. More context means smoother motion and more rhythmic context across the join, and less of the generation left for new material.",
+ "field_kind": "input",
+ "input": "any",
+ "maximum": 481,
+ "minimum": 1,
+ "orig_default": 17,
+ "orig_required": false,
+ "title": "Context Frames",
+ "type": "integer"
+ },
+ "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_extend_conditioning",
+ "default": "ltx2_extend_conditioning",
+ "field_kind": "node_attribute",
+ "title": "type",
+ "type": "string"
+ }
+ },
+ "required": ["type", "id"],
+ "tags": ["ltx", "ltx2", "video", "extend", "conditioning"],
+ "title": "Extend Conditioning - LTX-2",
+ "type": "object",
+ "version": "1.1.0",
+ "output": {
+ "$ref": "#/components/schemas/LTX2ExtendConditioningOutput"
+ }
+ },
+ "LTX2ExtendConditioningOutput": {
+ "class": "output",
+ "description": "The source's tail, held as the opening of the continuation.",
+ "properties": {
+ "video_conditioning": {
+ "$ref": "#/components/schemas/LTX2VideoConditioningField",
+ "description": "First-frame (VAE-latent) conditioning for LTX-2",
+ "field_kind": "output",
+ "title": "Image Conditioning",
+ "ui_hidden": false
+ },
+ "context_frames": {
+ "description": "Pixel frames of the source that are held. The generated clip reproduces these, so a join has to consume exactly this many to avoid repeating them.",
+ "field_kind": "output",
+ "title": "Context Frames",
+ "type": "integer",
+ "ui_hidden": false
+ },
+ "audio_conditioning": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LTX2AudioConditioningField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The held opening of the source's soundtrack, or nothing when the clip is silent.",
+ "field_kind": "output",
+ "title": "Audio Conditioning",
+ "ui_hidden": false
+ },
+ "type": {
+ "const": "ltx2_extend_conditioning_output",
+ "default": "ltx2_extend_conditioning_output",
+ "field_kind": "node_attribute",
+ "title": "type",
+ "type": "string"
+ }
+ },
+ "required": ["output_meta", "video_conditioning", "context_frames", "audio_conditioning", "type", "type"],
+ "title": "LTX2ExtendConditioningOutput",
+ "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": {
@@ -58701,9 +58991,14 @@
"description": "The clip's own frame rate, which the generation adopts.",
"title": "Fps",
"type": "number"
+ },
+ "source_video_name": {
+ "description": "The clip these latents were encoded from. The decode muxes its own frames back in rather than rendering the held latents, which would hand the user a VAE round trip of footage they already have.",
+ "title": "Source Video Name",
+ "type": "string"
}
},
- "required": ["latents_name", "width", "height", "num_frames", "fps"],
+ "required": ["latents_name", "width", "height", "num_frames", "fps", "source_video_name"],
"title": "LTX2FullVideoConditioningField",
"type": "object"
},
@@ -58850,7 +59145,7 @@
"category": "conditioning",
"class": "invocation",
"classification": "prototype",
- "description": "Encodes an image as the first frame of an LTX-2 generation.\n\nThe image is re-compressed as a single H.264 frame before it is encoded. That is not an\noptimization: LTX-2 was trained on frames that had been through a video codec, and a pristine\nsource is far enough out of that distribution that the clip visibly drifts away from it over\nthe first second. 18 is the CRF LTX-2.5 was trained against.",
+ "description": "Encodes an image as a held frame of an LTX-2 generation.\n\nThe image is re-compressed as a single H.264 frame before it is encoded. That is not an\noptimization: LTX-2 was trained on frames that had been through a video codec, and a pristine\nsource is far enough out of that distribution that the clip visibly drifts away from it over\nthe first second. 18 is the CRF LTX-2.5 was trained against.",
"node_pack": "invokeai",
"properties": {
"id": {
@@ -58944,6 +59239,16 @@
"title": "Strength",
"type": "number"
},
+ "frame_index": {
+ "default": 0,
+ "description": "Latent frame to hold this image at. 0 is the first frame; negative counts from the end, so -1 makes it the last. A frame held anywhere but 0 is appended to the model's sequence rather than overwriting the grid, which is what lets it coexist with a first frame.",
+ "field_kind": "input",
+ "input": "any",
+ "orig_default": 0,
+ "orig_required": false,
+ "title": "Frame Index",
+ "type": "integer"
+ },
"crf": {
"default": 18,
"description": "H.264 quality factor the image is re-compressed at before encoding. Higher is more compressed; 0 skips re-compression, which is off-distribution for this model.",
@@ -58968,7 +59273,7 @@
"tags": ["conditioning", "image", "ltx", "ltx2", "video"],
"title": "Image Conditioning - LTX-2",
"type": "object",
- "version": "1.0.0",
+ "version": "1.1.0",
"output": {
"$ref": "#/components/schemas/LTX2ImageConditioningOutput"
}
@@ -59240,6 +59545,23 @@
"orig_required": false,
"title": "Source Audio"
},
+ "source_video": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/LTX2FullVideoConditioningField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The clip whose soundtrack was generated. When set, its own frames are written out instead of the held video latents being decoded.",
+ "field_kind": "input",
+ "input": "connection",
+ "orig_default": null,
+ "orig_required": false,
+ "title": "Source Video"
+ },
"audio_latents": {
"anyOf": [
{
@@ -59352,7 +59674,7 @@
"tags": ["latents", "video", "audio", "vae", "l2v", "ltx", "ltx2"],
"title": "Latents to Video - LTX-2",
"type": "object",
- "version": "1.1.0",
+ "version": "1.2.0",
"output": {
"$ref": "#/components/schemas/VideoOutput"
}
@@ -59747,7 +60069,7 @@
"description": "LTX-2 transformer variants. Dev and Distilled are key-for-key identical checkpoints of the same\narchitecture; the variant decides the sampling recipe (guided ~40-step schedule vs the fixed\n8-sigma distilled schedule with CFG off), so it must travel with the model record.\n\nValues carry the family prefix because variant values are globally unique across enums\n(`FluxVariantType.Dev` already owns \"dev\")."
},
"LTX2VideoConditioningField": {
- "description": "First-frame (VAE-latent) conditioning for LTX-2 image-to-video.\n\nThe canvas the frame was encoded at rides along so the denoise node can reject a mismatch\nwith a named error rather than a shape failure inside the transformer.",
+ "description": "A frame (VAE-latent) held at one point in an LTX-2 generation.\n\nThe canvas the frame was encoded at rides along so the denoise node can reject a mismatch\nwith a named error rather than a shape failure inside the transformer.",
"properties": {
"latents_name": {
"description": "Name of the saved [1, 128, 1, H/32, W/32] latent tensor.",
@@ -59769,6 +60091,12 @@
"description": "How strongly the frame is held, 0 (ignored) to 1 (kept exactly).",
"title": "Strength",
"type": "number"
+ },
+ "frame_index": {
+ "default": 0,
+ "description": "Latent frame the image is held at. 0 is the first frame; negative counts from the end, so -1 is the last. Resolved against the clip's own length by the denoise node, which is why an encode stays valid when the frame count changes.",
+ "title": "Frame Index",
+ "type": "integer"
}
},
"required": ["latents_name", "width", "height"],
@@ -59907,7 +60235,7 @@
"tags": ["ltx", "ltx2", "video", "audio", "conditioning"],
"title": "Video Conditioning - LTX-2",
"type": "object",
- "version": "1.0.0",
+ "version": "1.1.0",
"output": {
"$ref": "#/components/schemas/LTX2VideoConditioningOutput"
}
diff --git a/invokeai/frontend/web/src/services/api/schema.ts b/invokeai/frontend/web/src/services/api/schema.ts
index 908180fa27..39babcaf21 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" | "ltx2_a2v" | "ltx2_v2a" | "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" | "ltx2_lf2v" | "ltx2_flf2v" | "ltx2_extend_video" | "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"]["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"];
+ [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"]["LTX2ExtendConditioningInvocation"] | 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"]["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"];
+ [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"]["LTX2ExtendConditioningOutput"] | 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"]["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: 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"]["LTX2ExtendConditioningInvocation"] | 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"]["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"];
+ 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"]["LTX2ExtendConditioningOutput"] | 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"]["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: 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"]["LTX2ExtendConditioningInvocation"] | 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
@@ -20825,6 +20825,7 @@ export type components = {
lscale: components["schemas"]["LatentsOutput"];
ltx2_audio_conditioning: components["schemas"]["LTX2AudioConditioningOutput"];
ltx2_denoise: components["schemas"]["LTX2DenoiseOutput"];
+ ltx2_extend_conditioning: components["schemas"]["LTX2ExtendConditioningOutput"];
ltx2_ideal_dimensions: components["schemas"]["LTX2IdealDimensionsOutput"];
ltx2_image_conditioning: components["schemas"]["LTX2ImageConditioningOutput"];
ltx2_latent_upsample: components["schemas"]["LTX2LatentUpsampleOutput"];
@@ -21032,7 +21033,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"]["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: 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"]["LTX2ExtendConditioningInvocation"] | 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
@@ -21119,7 +21120,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"]["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: 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"]["LTX2ExtendConditioningInvocation"] | 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
@@ -23190,12 +23191,24 @@ export type components = {
* @default null
*/
video_conditioning?: components["schemas"]["LTX2VideoConditioningField"] | null;
+ /**
+ * Keyframe Conditioning
+ * @description A frame held somewhere other than the start -- a last frame, or any interior keyframe. Its own `frame_index` says where; -1 is the last frame.
+ * @default null
+ */
+ keyframe_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;
+ /**
+ * Audio Prefix Conditioning
+ * @description The opening of the soundtrack, held while the rest is generated. A continuation uses it so the join blends the source's real sound against a reproduction of itself rather than against newly invented sound.
+ * @default null
+ */
+ audio_prefix_conditioning?: components["schemas"]["LTX2AudioConditioningField"] | null;
/**
* Video Conditioning
* @description A clip to generate a soundtrack for (video-to-audio)
@@ -23331,6 +23344,131 @@ export type components = {
*/
type: "ltx2_denoise_output";
};
+ /**
+ * Extend Conditioning - LTX-2
+ * @description Encodes the end of a clip so LTX-2 can continue it.
+ *
+ * A continuation is image-to-video with a longer anchor: instead of one held frame the generation
+ * opens with several latent frames of the source, held clean the same way. That is what carries
+ * the source's *motion* across the join -- a single still frame fixes the picture but not its
+ * direction, and clips extended from one tend to stall or lurch where they meet.
+ *
+ * The held frames are regenerated as part of the output, so they appear in both clips. The join is
+ * what removes the duplication: a crossfade of ``context_frames`` consumes exactly those frames
+ * from each side, blending two renderings of the same moment into one.
+ */
+ LTX2ExtendConditioningInvocation: {
+ /**
+ * 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 continue.
+ * @default null
+ */
+ video?: components["schemas"]["VideoField"] | null;
+ /**
+ * Video VAE
+ * @description VAE
+ * @default null
+ */
+ vae?: components["schemas"]["VAEField"] | null;
+ /**
+ * Audio VAE
+ * @description Audio VAE (mel spectrogram) for LTX-2
+ * @default null
+ */
+ audio_vae?: components["schemas"]["VAEField"] | null;
+ /**
+ * Vocoder
+ * @description The vocoder, whose checkpoint carries the log-mel filters the audio VAE encodes from.
+ * @default null
+ */
+ vocoder?: components["schemas"]["LTX2VocoderField"] | null;
+ /**
+ * Fps
+ * @description The clip's frame rate, used to turn the held frame count into a span of its soundtrack.
+ * @default 24
+ */
+ fps?: number;
+ /**
+ * Width
+ * @description Canvas width (must match Denoise).
+ * @default 1248
+ */
+ width?: number;
+ /**
+ * Height
+ * @description Canvas height (must match Denoise).
+ * @default 704
+ */
+ height?: number;
+ /**
+ * Context Frames
+ * @description Frames of the source to carry into the continuation. The VAE encodes 8k + 1 frames, so this is snapped DOWN to the nearest 9, 17, 25, 33, 41, 49... -- asking for 24 holds 17. A short source is capped at what it has. The `context_frames` output reports what was actually held, which is why the join reads it from there rather than from here. More context means smoother motion and more rhythmic context across the join, and less of the generation left for new material.
+ * @default 17
+ */
+ context_frames?: 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_extend_conditioning
+ * @constant
+ */
+ type: "ltx2_extend_conditioning";
+ };
+ /**
+ * LTX2ExtendConditioningOutput
+ * @description The source's tail, held as the opening of the continuation.
+ */
+ LTX2ExtendConditioningOutput: {
+ /**
+ * Image Conditioning
+ * @description First-frame (VAE-latent) conditioning for LTX-2
+ */
+ video_conditioning: components["schemas"]["LTX2VideoConditioningField"];
+ /**
+ * Context Frames
+ * @description Pixel frames of the source that are held. The generated clip reproduces these, so a join has to consume exactly this many to avoid repeating them.
+ */
+ context_frames: number;
+ /**
+ * Audio Conditioning
+ * @description The held opening of the source's soundtrack, or nothing when the clip is silent.
+ * @default null
+ */
+ audio_conditioning: components["schemas"]["LTX2AudioConditioningField"] | null;
+ /**
+ * type
+ * @default ltx2_extend_conditioning_output
+ * @constant
+ */
+ type: "ltx2_extend_conditioning_output";
+ };
/**
* LTX2FullVideoConditioningField
* @description A whole clip held frozen while its soundtrack is generated (video-to-audio).
@@ -23366,6 +23504,11 @@ export type components = {
* @description The clip's own frame rate, which the generation adopts.
*/
fps: number;
+ /**
+ * Source Video Name
+ * @description The clip these latents were encoded from. The decode muxes its own frames back in rather than rendering the held latents, which would hand the user a VAE round trip of footage they already have.
+ */
+ source_video_name: string;
};
/**
* LTX-2 Ideal Dimensions
@@ -23470,7 +23613,7 @@ export type components = {
};
/**
* Image Conditioning - LTX-2
- * @description Encodes an image as the first frame of an LTX-2 generation.
+ * @description Encodes an image as a held frame of an LTX-2 generation.
*
* The image is re-compressed as a single H.264 frame before it is encoded. That is not an
* optimization: LTX-2 was trained on frames that had been through a video codec, and a pristine
@@ -23524,6 +23667,12 @@ export type components = {
* @default 1
*/
strength?: number;
+ /**
+ * Frame Index
+ * @description Latent frame to hold this image at. 0 is the first frame; negative counts from the end, so -1 makes it the last. A frame held anywhere but 0 is appended to the model's sequence rather than overwriting the grid, which is what lets it coexist with a first frame.
+ * @default 0
+ */
+ frame_index?: number;
/**
* Crf
* @description H.264 quality factor the image is re-compressed at before encoding. Higher is more compressed; 0 skips re-compression, which is off-distribution for this model.
@@ -23686,6 +23835,12 @@ export type components = {
* @default null
*/
source_audio?: components["schemas"]["LTX2AudioConditioningField"] | null;
+ /**
+ * Source Video
+ * @description The clip whose soundtrack was generated. When set, its own frames are written out instead of the held video latents being decoded.
+ * @default null
+ */
+ source_video?: components["schemas"]["LTX2FullVideoConditioningField"] | null;
/**
* @description Packed audio latents from the denoise node. Omit for a silent video.
* @default null
@@ -23970,7 +24125,7 @@ export type components = {
LTX2VariantType: "ltx2_dev" | "ltx2_distilled";
/**
* LTX2VideoConditioningField
- * @description First-frame (VAE-latent) conditioning for LTX-2 image-to-video.
+ * @description A frame (VAE-latent) held at one point in an LTX-2 generation.
*
* The canvas the frame was encoded at rides along so the denoise node can reject a mismatch
* with a named error rather than a shape failure inside the transformer.
@@ -23997,6 +24152,12 @@ export type components = {
* @default 1
*/
strength?: number;
+ /**
+ * Frame Index
+ * @description Latent frame the image is held at. 0 is the first frame; negative counts from the end, so -1 is the last. Resolved against the clip's own length by the denoise node, which is why an encode stays valid when the frame count changes.
+ * @default 0
+ */
+ frame_index?: number;
};
/**
* Video Conditioning - LTX-2
diff --git a/invokeai/frontend/webv2/public/locales/en.json b/invokeai/frontend/webv2/public/locales/en.json
index efc38e520f..cc41881eb6 100644
--- a/invokeai/frontend/webv2/public/locales/en.json
+++ b/invokeai/frontend/webv2/public/locales/en.json
@@ -3878,7 +3878,7 @@
"initialVideoCapBlocked": "All 3 video reference slots are in use, so there is no room for the continuity reference this clip needs. Remove a video reference first.",
"lastFrame": "Last Frame",
"lastFrameExtendHelp": "Optional destination: the extension ends on this image.",
- "lastFrameHelp": "Optional: the video ends on this image (interpolates from the first frame).",
+ "lastFrameHelp": "Optional: the video ends on this image. With a first frame set, it interpolates between the two.",
"pauseSelection": "Pause selection in Preview",
"playSelection": "Play selection in Preview",
"sampleLength": "Sample Length (Frames)",
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 d356bd87ee..40577c52fa 100644
--- a/invokeai/frontend/webv2/src/features/video/core/__snapshots__/videoGraphNodeTypes.json
+++ b/invokeai/frontend/webv2/src/features/video/core/__snapshots__/videoGraphNodeTypes.json
@@ -1,25 +1,121 @@
{
- "_comment": "Generated by src/features/video/core/videoGraphCoverage.test.ts; regenerate with `vitest -u`. Excluded from oxfmt so the test alone owns its layout. Consumed by tests/app/invocations/test_frontend_graph_node_types.py, which checks every node type, edge field and literal input value below against the backend invocation registry. An empty literalInputs value list means the field is set to something other than a scalar, so only its name is checked.",
+ "connections": [
+ "collect collection collect collection",
+ "collect collection minimax_h3_reference_conditioning references",
+ "collect collection minimax_h3_text_encoder references",
+ "collect collection video_concat videos",
+ "core_metadata metadata ltx2_latents_to_video metadata",
+ "core_metadata metadata minimax_h3_latents_to_video metadata",
+ "core_metadata metadata video_concat metadata",
+ "core_metadata metadata wan_l2v metadata",
+ "extract_video_range fps float_to_int value",
+ "extract_video_range fps ltx2_denoise fps",
+ "extract_video_range fps ltx2_extend_conditioning fps",
+ "extract_video_range fps ltx2_latents_to_video fps",
+ "extract_video_range video collect item",
+ "extract_video_range video ltx2_extend_conditioning video",
+ "extract_video_range video video_frame_extract video",
+ "float_to_int value video_concat fps",
+ "float_to_int value wan_l2v fps",
+ "integer value core_metadata seed",
+ "integer value ltx2_denoise seed",
+ "integer value minimax_h3_denoise seed",
+ "integer value wan_video_denoise seed",
+ "ltx2_audio_conditioning audio_conditioning ltx2_denoise audio_conditioning",
+ "ltx2_audio_conditioning audio_conditioning ltx2_latents_to_video source_audio",
+ "ltx2_audio_conditioning num_frames ltx2_denoise num_frames",
+ "ltx2_denoise audio_latents ltx2_denoise audio_latents",
+ "ltx2_denoise audio_latents ltx2_latents_to_video audio_latents",
+ "ltx2_denoise video_latents ltx2_latent_upsample video_latents",
+ "ltx2_denoise video_latents ltx2_latents_to_video video_latents",
+ "ltx2_extend_conditioning audio_conditioning ltx2_denoise audio_prefix_conditioning",
+ "ltx2_extend_conditioning context_frames video_concat transition_frames",
+ "ltx2_extend_conditioning video_conditioning ltx2_denoise video_conditioning",
+ "ltx2_image_conditioning video_conditioning ltx2_denoise keyframe_conditioning",
+ "ltx2_image_conditioning video_conditioning ltx2_denoise video_conditioning",
+ "ltx2_latent_upsample latents ltx2_denoise latents",
+ "ltx2_latents_to_video video collect item",
+ "ltx2_model_loader audio_vae ltx2_audio_conditioning audio_vae",
+ "ltx2_model_loader audio_vae ltx2_extend_conditioning audio_vae",
+ "ltx2_model_loader audio_vae ltx2_latents_to_video audio_vae",
+ "ltx2_model_loader latent_upsampler ltx2_latent_upsample latent_upsampler",
+ "ltx2_model_loader text_encoder ltx2_text_encoder text_encoder",
+ "ltx2_model_loader transformer ltx2_denoise transformer",
+ "ltx2_model_loader vae ltx2_extend_conditioning vae",
+ "ltx2_model_loader vae ltx2_image_conditioning vae",
+ "ltx2_model_loader vae ltx2_latent_upsample vae",
+ "ltx2_model_loader vae ltx2_latents_to_video vae",
+ "ltx2_model_loader vae ltx2_video_conditioning vae",
+ "ltx2_model_loader vocoder ltx2_audio_conditioning vocoder",
+ "ltx2_model_loader vocoder ltx2_extend_conditioning vocoder",
+ "ltx2_model_loader vocoder ltx2_latents_to_video vocoder",
+ "ltx2_text_encoder conditioning ltx2_denoise positive_conditioning",
+ "ltx2_text_encoder negative_conditioning ltx2_denoise negative_conditioning",
+ "ltx2_video_conditioning num_frames ltx2_denoise num_frames",
+ "ltx2_video_conditioning video_conditioning ltx2_denoise full_video_conditioning",
+ "ltx2_video_conditioning video_conditioning ltx2_latents_to_video source_video",
+ "minimax_h3_denoise audio_latents minimax_h3_latents_to_video audio_latents",
+ "minimax_h3_denoise video_latents minimax_h3_latents_to_video video_latents",
+ "minimax_h3_frame_conditioning frame_conditioning minimax_h3_denoise frame_conditioning",
+ "minimax_h3_image_reference reference collect item",
+ "minimax_h3_latents_to_video video collect item",
+ "minimax_h3_model_loader audio_vae minimax_h3_latents_to_video audio_vae",
+ "minimax_h3_model_loader audio_vae minimax_h3_reference_conditioning audio_vae",
+ "minimax_h3_model_loader text_encoder minimax_h3_text_encoder text_encoder",
+ "minimax_h3_model_loader transformer minimax_h3_denoise transformer",
+ "minimax_h3_model_loader vae minimax_h3_frame_conditioning vae",
+ "minimax_h3_model_loader vae minimax_h3_latents_to_video vae",
+ "minimax_h3_model_loader vae minimax_h3_reference_conditioning vae",
+ "minimax_h3_reference_conditioning reference_conditioning minimax_h3_denoise reference_conditioning",
+ "minimax_h3_text_encoder conditioning minimax_h3_denoise positive_conditioning",
+ "string value core_metadata negative_prompt",
+ "string value core_metadata positive_prompt",
+ "string value ltx2_text_encoder negative_prompt",
+ "string value ltx2_text_encoder prompt",
+ "string value minimax_h3_text_encoder prompt",
+ "string value wan_text_encoder prompt",
+ "video_frame_extract image core_metadata first_frame_image",
+ "video_frame_extract image minimax_h3_frame_conditioning first_image",
+ "video_frame_extract image minimax_h3_text_encoder first_image",
+ "video_frame_extract image wan_ref_image_encoder image",
+ "wan_l2v video collect item",
+ "wan_model_loader transformer wan_video_denoise transformer",
+ "wan_model_loader vae wan_l2v vae",
+ "wan_model_loader vae wan_ref_image_encoder vae",
+ "wan_model_loader wan_t5_encoder wan_text_encoder wan_t5_encoder",
+ "wan_ref_image_encoder ref_image wan_video_denoise ref_image",
+ "wan_text_encoder conditioning wan_video_denoise negative_conditioning",
+ "wan_text_encoder conditioning wan_video_denoise positive_conditioning",
+ "wan_video_denoise latents wan_l2v latents"
+ ],
+ "_comment": "Generated by src/features/video/core/videoGraphCoverage.test.ts; regenerate with `vitest -u`. Excluded from oxfmt so the test alone owns its layout. Consumed by tests/app/invocations/test_frontend_graph_node_types.py, which checks every node type, edge field and literal input value below against the backend invocation registry, and every connection for whether the backend considers the two field types compatible. An empty literalInputs value list means the field is set to something other than a scalar, so only its name is checked.",
"byBase": {
"ltx-2": {
"modes": [
"audio-to-video",
+ "extend",
"first-frame",
+ "first-last",
+ "last-frame",
"txt2vid",
"video-to-audio"
],
"nodeTypes": [
+ "collect",
"core_metadata",
+ "extract_video_range",
"integer",
"ltx2_audio_conditioning",
"ltx2_denoise",
+ "ltx2_extend_conditioning",
"ltx2_image_conditioning",
"ltx2_latent_upsample",
"ltx2_latents_to_video",
"ltx2_model_loader",
"ltx2_text_encoder",
"ltx2_video_conditioning",
- "string"
+ "string",
+ "video_concat"
]
},
"minimax-h3": {
@@ -110,7 +206,10 @@
],
"generation_mode": [
"ltx2_a2v",
+ "ltx2_extend_video",
+ "ltx2_flf2v",
"ltx2_i2v",
+ "ltx2_lf2v",
"ltx2_t2v",
"ltx2_v2a",
"minimax_h3_extend_video",
@@ -292,7 +391,10 @@
"inputs": [
"audio_conditioning",
"audio_latents",
+ "audio_prefix_conditioning",
+ "fps",
"full_video_conditioning",
+ "keyframe_conditioning",
"latents",
"negative_conditioning",
"num_frames",
@@ -358,11 +460,52 @@
"video_latents"
]
},
+ "ltx2_extend_conditioning": {
+ "inputs": [
+ "audio_vae",
+ "fps",
+ "vae",
+ "video",
+ "vocoder"
+ ],
+ "literalInputs": {
+ "height": [
+ 1024,
+ 1536,
+ 512,
+ 704,
+ 768
+ ],
+ "is_intermediate": [
+ true
+ ],
+ "use_cache": [
+ true
+ ],
+ "video": [],
+ "width": [
+ 1248,
+ 1376,
+ 1792,
+ 2752,
+ 896
+ ]
+ },
+ "outputs": [
+ "audio_conditioning",
+ "context_frames",
+ "video_conditioning"
+ ]
+ },
"ltx2_image_conditioning": {
"inputs": [
"vae"
],
"literalInputs": {
+ "frame_index": [
+ -1,
+ 0
+ ],
"height": [
1024,
1536,
@@ -411,8 +554,10 @@
"inputs": [
"audio_latents",
"audio_vae",
+ "fps",
"metadata",
"source_audio",
+ "source_video",
"vae",
"video_latents",
"vocoder"
@@ -422,13 +567,16 @@
24
],
"is_intermediate": [
- false
+ false,
+ true
],
"use_cache": [
false
]
},
- "outputs": []
+ "outputs": [
+ "video"
+ ]
},
"ltx2_model_loader": {
"inputs": [],
@@ -694,6 +842,7 @@
"inputs": [
"fps",
"metadata",
+ "transition_frames",
"videos"
],
"literalInputs": {
diff --git a/invokeai/frontend/webv2/src/features/video/core/dimensions.test.ts b/invokeai/frontend/webv2/src/features/video/core/dimensions.test.ts
index 891b4101ea..f1703de94e 100644
--- a/invokeai/frontend/webv2/src/features/video/core/dimensions.test.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/dimensions.test.ts
@@ -2,6 +2,7 @@ import { describe, expect, it } from 'vitest';
import {
getVideoAspectRatioParts,
+ ltx2ExtendJoinFitsInMemory,
getVideoDurationSeconds,
invertVideoAspectRatioId,
isValidMiniMaxH3NumFrames,
@@ -303,3 +304,26 @@ describe('LTX-2 two-stage canvases', () => {
expect(getLtx2StageCanvases(Number.NaN, 1080, '1024p')).toBeNull();
});
});
+
+describe('ltx2ExtendJoinFitsInMemory', () => {
+ // `video_concat` buffers a crossfade at the FIRST input's native resolution and refuses over
+ // 512 MiB: `width * height * 3 * (transition_frames * 2 + 13)`. Pinned at the boundary rather
+ // than at comfortable sizes, because every way of getting the formula wrong -- dropping the
+ // blend's working frames, counting the crossfade's two sides once, misreading the budget --
+ // moves the threshold without changing the answer for a 1080p or a 4K source.
+ it('matches the backend budget exactly at the last size that fits', () => {
+ expect(ltx2ExtendJoinFitsInMemory(3_807_595, 1, 17)).toBe(true);
+ expect(ltx2ExtendJoinFitsInMemory(3_807_596, 1, 17)).toBe(false);
+ });
+
+ it('scales with the overlap the join has to blend', () => {
+ expect(ltx2ExtendJoinFitsInMemory(10_526_880, 1, 2)).toBe(true);
+ expect(ltx2ExtendJoinFitsInMemory(10_526_881, 1, 2)).toBe(false);
+ });
+
+ it('accepts the resolutions a user is likely to extend from', () => {
+ expect(ltx2ExtendJoinFitsInMemory(1920, 1080, 17)).toBe(true);
+ expect(ltx2ExtendJoinFitsInMemory(2560, 1440, 17)).toBe(true);
+ expect(ltx2ExtendJoinFitsInMemory(3840, 2160, 17)).toBe(false);
+ });
+});
diff --git a/invokeai/frontend/webv2/src/features/video/core/dimensions.ts b/invokeai/frontend/webv2/src/features/video/core/dimensions.ts
index d0d645d496..b4c687ad0a 100644
--- a/invokeai/frontend/webv2/src/features/video/core/dimensions.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/dimensions.ts
@@ -331,6 +331,28 @@ export const ltx2FramesForClip = (conditioning: VideoConditioningClip, fps: numb
return snapLtx2FramesDown(Math.trunc(seconds * fps));
};
+/**
+ * Frames of the source an LTX-2 continuation opens with, held clean so the model can read the
+ * clip's motion rather than just its last still. Mirrors `LTX2_DEFAULT_EXTEND_CONTEXT_FRAMES` in
+ * `invokeai/app/invocations/ltx2/ltx2_extend_conditioning.py`, which is the node's own default.
+ */
+export const LTX2_EXTEND_CONTEXT_FRAMES = 17;
+
+/**
+ * What the join can afford to blend, in source pixels. `video_concat` buffers the crossfade at the
+ * FIRST input's native resolution -- the trimmed source, not the generation canvas -- and refuses
+ * anything over 512 MiB. Mirrors `MAX_TRANSITION_MEMORY_BYTES` and `_BLEND_WORKING_FRAMES` in
+ * `invokeai/app/invocations/video_concat.py`, whose estimate is
+ * `width * height * 3 * (transition_frames * 2 + 13)` for a crossfade.
+ *
+ * At LTX-2's 17-frame overlap that caps a source at ~3.8 megapixels: 2560x1440 fits with 3% to
+ * spare, 4K needs 1115 MiB and does not. Without this the refusal lands in the join, after both
+ * encodes, the transformer and the decode have already run, and neither remedy its message offers
+ * is reachable from the panel.
+ */
+export const ltx2ExtendJoinFitsInMemory = (width: number, height: number, contextFrames: number): boolean =>
+ width * height * 3 * (contextFrames * 2 + 13) <= 512 * 1024 * 1024;
+
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 3e7dcb5090..58c87d5a13 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,16 @@ const LTX2_COMPONENTS: MainModelConfig = {
};
const LTX2_ENCODER = { base: 'ltx-2', key: 'gemma4', name: 'LTX-2.5 Text Encoder', type: 'gemma4_encoder' as const };
+const LTX2_SOURCE_CLIP = {
+ endFrame: 94,
+ fps: 24,
+ height: 704,
+ numFrames: 96,
+ startFrame: 0,
+ video_name: 'source.mp4',
+ width: 1248,
+};
+
/** 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 };
@@ -975,7 +985,12 @@ describe('compileVideoGraph — LTX-2', () => {
// 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();
+ const decode = nodeOfType(backendGraph, 'ltx2_latents_to_video');
+
+ expect(decode.source_audio).toBeUndefined();
+ // But the picture was the given half, so the user's own frames are written out rather than the
+ // held latents being decoded into a cover-cropped copy of footage they already have.
+ expect(hasEdge(backendGraph, conditioning.id, 'video_conditioning', decode.id, 'source_video')).toBe(true);
});
it('records the conditioning clip and the frames that ran, for recall', () => {
@@ -993,6 +1008,188 @@ describe('compileVideoGraph — LTX-2', () => {
});
});
+ it('holds a last frame as a keyframe, so it can coexist with a first one', () => {
+ const model = ltx2Model('ltx2_dev');
+ const { backendGraph } = compileVideoGraph(
+ ltx2SettingsFor(model, { firstFrameImage: FIRST_FRAME, lastFrameImage: LAST_FRAME }),
+ model
+ );
+ const first = backendGraph.nodes.image_conditioning;
+ const last = backendGraph.nodes.last_frame_conditioning;
+
+ // Index 0 overwrites the grid's opening tokens; -1 is appended to the sequence instead, which
+ // is the only reason both can be held at once.
+ expect(first).toMatchObject({ frame_index: 0 });
+ expect(last).toMatchObject({ frame_index: -1 });
+ expect(
+ hasEdge(backendGraph, 'image_conditioning', 'video_conditioning', 'denoise_latents', 'video_conditioning')
+ ).toBe(true);
+ expect(
+ hasEdge(backendGraph, 'last_frame_conditioning', 'video_conditioning', 'denoise_latents', 'keyframe_conditioning')
+ ).toBe(true);
+ expect(backendGraph.nodes.core_metadata).toMatchObject({ generation_mode: 'ltx2_flf2v' });
+ });
+
+ it('holds a last frame alone for last-frame-only generation', () => {
+ const model = ltx2Model('ltx2_dev');
+ const { backendGraph } = compileVideoGraph(ltx2SettingsFor(model, { lastFrameImage: LAST_FRAME }), model);
+
+ expect(backendGraph.nodes.image_conditioning).toBeUndefined();
+ expect(backendGraph.nodes.last_frame_conditioning).toMatchObject({ frame_index: -1 });
+ expect(backendGraph.nodes.core_metadata).toMatchObject({ generation_mode: 'ltx2_lf2v' });
+ });
+
+ it('re-encodes every held frame at the refine canvas', () => {
+ const model = ltx2Model('ltx2_dev');
+ const { backendGraph } = compileVideoGraph(
+ ltx2SettingsFor(model, {
+ aspectRatioId: '16:9',
+ firstFrameImage: FIRST_FRAME,
+ lastFrameImage: LAST_FRAME,
+ targetResolution: '1024p',
+ }),
+ model
+ );
+
+ // The refine pass re-noises every token, and appended keyframes never go through the upsampler
+ // at all -- so both frames have to be encoded again, at this pass's own (doubled) canvas.
+ expect(backendGraph.nodes.refine_image_conditioning).toMatchObject({ frame_index: 0, height: 1024, width: 1792 });
+ expect(backendGraph.nodes.refine_last_frame_conditioning).toMatchObject({ frame_index: -1, height: 1024 });
+ expect(backendGraph.nodes.image_conditioning).toMatchObject({ height: 512, width: 896 });
+ expect(
+ hasEdge(
+ backendGraph,
+ 'refine_last_frame_conditioning',
+ 'video_conditioning',
+ 'refine_latents',
+ 'keyframe_conditioning'
+ )
+ ).toBe(true);
+ });
+
+ it('continues a clip from its own tail and consumes the overlap in the join', () => {
+ const model = ltx2Model('ltx2_dev');
+ const { backendGraph } = compileVideoGraph(ltx2SettingsFor(model, { sourceVideo: LTX2_SOURCE_CLIP }), model);
+ const extend = nodeOfType(backendGraph, 'ltx2_extend_conditioning');
+ const concat = nodeOfType(backendGraph, 'video_concat');
+
+ expect(hasEdge(backendGraph, extend.id, 'video_conditioning', 'denoise_latents', 'video_conditioning')).toBe(true);
+ // The generated clip opens with the source's own tail, so the crossfade has to consume exactly
+ // those frames -- and only the node that read the clip knows how many it got.
+ expect(hasEdge(backendGraph, extend.id, 'context_frames', concat.id, 'transition_frames')).toBe(true);
+ expect(concat).toMatchObject({ transition: 'crossfade' });
+ // Both halves play at one speed, and the rate is read off the trimmed source at run time
+ // rather than from the gallery's record of it -- a video row's fps is nullable.
+ const extract = nodeOfType(backendGraph, 'extract_video_range');
+
+ // The denoise and the decode take the clip's true float rate.
+ expect(hasEdge(backendGraph, extract.id, 'fps', 'denoise_latents', 'fps')).toBe(true);
+ expect(hasEdge(backendGraph, extract.id, 'fps', backendGraph.nodes.extension_clip!.id, 'fps')).toBe(true);
+ // The join's fps is left unset on purpose: video_concat takes the first input's rate, which is
+ // this same clip. Wiring it is float -> Optional[int], which the queue refuses at enqueue.
+ expect(hasEdge(backendGraph, extract.id, 'fps', concat.id, 'fps')).toBe(false);
+ expect(concat).not.toHaveProperty('fps');
+ expect(extract).not.toHaveProperty('fps');
+
+ // And the anchor is the TRIMMED clip, not the gallery file: the join's source half ends at the
+ // user's trim, so anchoring past it would dissolve two unrelated moments together.
+ expect(hasEdge(backendGraph, extract.id, 'video', extend.id, 'video')).toBe(true);
+ // The join is the result; the generated half is kept as an intermediate beside it.
+ expect(backendGraph.nodes.extension_clip).toMatchObject({ is_intermediate: true });
+ expect(concat.is_intermediate).toBe(false);
+ expect(backendGraph.nodes.core_metadata).toMatchObject({ generation_mode: 'ltx2_extend_video' });
+ });
+
+ it('holds the source\u2019s closing sound over the span the join crossfades', () => {
+ // The join fades the held frames out of both halves. The picture survives it because both clips
+ // render the same instant; the soundtrack only does if it is held over the same span. Left
+ // generated, the blend fades invented audio in against the source\u2019s real audio and the new
+ // soundtrack starts one overlap early -- an audible seam at the junction.
+ const model = ltx2Model('ltx2_dev');
+ const { backendGraph } = compileVideoGraph(ltx2SettingsFor(model, { sourceVideo: LTX2_SOURCE_CLIP }), model);
+ const extend = nodeOfType(backendGraph, 'ltx2_extend_conditioning');
+
+ expect(hasEdge(backendGraph, 'model_loader', 'audio_vae', extend.id, 'audio_vae')).toBe(true);
+ expect(hasEdge(backendGraph, 'model_loader', 'vocoder', extend.id, 'vocoder')).toBe(true);
+ // The rate the held frames are counted at has to be the clip\u2019s own, or the held sound spans a
+ // different stretch of time than the held picture.
+ expect(hasEdge(backendGraph, nodeOfType(backendGraph, 'extract_video_range').id, 'fps', extend.id, 'fps')).toBe(
+ true
+ );
+ expect(hasEdge(backendGraph, extend.id, 'audio_conditioning', 'denoise_latents', 'audio_prefix_conditioning')).toBe(
+ true
+ );
+ // Held, not muxed. The decode's source_audio channel replaces the generated soundtrack wholesale
+ // with the source file's own -- right for audio-to-video, silently wrong here, where everything
+ // past the overlap is meant to be new sound.
+ expect(
+ hasEdge(backendGraph, extend.id, 'audio_conditioning', backendGraph.nodes.extension_clip!.id, 'source_audio')
+ ).toBe(false);
+ });
+
+ it('holds the closing sound through a two-stage continuation, encoding it once', () => {
+ // Stage two re-noises every audio row, so a prefix wired only into stage one is gone by the
+ // join and the seam is back with nothing else looking different. But the canvas never reaches
+ // the audio path, so a second anchor would re-read the clip, load the audio VAE and vocoder,
+ // and produce identical latents -- stage two is fed from stage one's encode instead.
+ const model = ltx2Model('ltx2_dev');
+ const { backendGraph } = compileVideoGraph(
+ ltx2SettingsFor(model, { aspectRatioId: '16:9', sourceVideo: LTX2_SOURCE_CLIP, targetResolution: '1024p' }),
+ model
+ );
+
+ expect(
+ hasEdge(backendGraph, 'extend_conditioning', 'audio_conditioning', 'refine_latents', 'audio_prefix_conditioning')
+ ).toBe(true);
+ // The refine anchor holds picture only: no audio models, so it never opens the soundtrack.
+ expect(hasEdge(backendGraph, 'model_loader', 'audio_vae', 'refine_extend_conditioning', 'audio_vae')).toBe(false);
+ expect(hasEdge(backendGraph, 'model_loader', 'vocoder', 'refine_extend_conditioning', 'vocoder')).toBe(false);
+ });
+
+ it('re-anchors a two-stage continuation at the refine canvas', () => {
+ const model = ltx2Model('ltx2_dev');
+ const { backendGraph } = compileVideoGraph(
+ ltx2SettingsFor(model, { aspectRatioId: '16:9', sourceVideo: LTX2_SOURCE_CLIP, targetResolution: '1024p' }),
+ model
+ );
+
+ // Without this the refine pass continues from nothing and the join cuts between two unrelated
+ // shots -- the same failure two-stage image-to-video had before it re-encoded its first frame.
+ expect(backendGraph.nodes.refine_extend_conditioning).toMatchObject({ height: 1024, width: 1792 });
+ expect(backendGraph.nodes.extend_conditioning).toMatchObject({ height: 512, width: 896 });
+ expect(
+ hasEdge(backendGraph, 'refine_extend_conditioning', 'video_conditioning', 'refine_latents', 'video_conditioning')
+ ).toBe(true);
+ });
+
+ it('lands a continuation on a destination frame', () => {
+ // The only path where both new mechanisms meet: a multi-frame leading anchor from the source's
+ // tail, and an appended keyframe at the end. The panel offers it deliberately -- the Last Frame
+ // field has its own copy for the extend case.
+ const model = ltx2Model('ltx2_dev');
+ const { backendGraph } = compileVideoGraph(
+ ltx2SettingsFor(model, { lastFrameImage: LAST_FRAME, sourceVideo: LTX2_SOURCE_CLIP }),
+ model
+ );
+ const extend = nodeOfType(backendGraph, 'ltx2_extend_conditioning');
+
+ expect(hasEdge(backendGraph, extend.id, 'video_conditioning', 'denoise_latents', 'video_conditioning')).toBe(true);
+ expect(backendGraph.nodes.last_frame_conditioning).toMatchObject({ frame_index: -1 });
+ expect(
+ hasEdge(backendGraph, 'last_frame_conditioning', 'video_conditioning', 'denoise_latents', 'keyframe_conditioning')
+ ).toBe(true);
+ // Still an extension: the join and its crossfade are unchanged by the destination frame.
+ expect(
+ hasEdge(
+ backendGraph,
+ extend.id,
+ 'context_frames',
+ nodeOfType(backendGraph, 'video_concat').id,
+ 'transition_frames'
+ )
+ ).toBe(true);
+ });
+
it('encodes the negative prompt whenever either classifier-free scale will consume it', () => {
const model = ltx2Model('ltx2_dev');
const isWired = (settings: Partial<VideoSettings>) => {
diff --git a/invokeai/frontend/webv2/src/features/video/core/graph.ts b/invokeai/frontend/webv2/src/features/video/core/graph.ts
index 09233c2242..9db263db62 100644
--- a/invokeai/frontend/webv2/src/features/video/core/graph.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/graph.ts
@@ -60,7 +60,10 @@ const WAN_GENERATION_MODES: Partial<Record<VideoGenerationMode, string>> = {
const LTX2_GENERATION_MODES: Partial<Record<VideoGenerationMode, string>> = {
'audio-to-video': 'ltx2_a2v',
+ extend: 'ltx2_extend_video',
'first-frame': 'ltx2_i2v',
+ 'first-last': 'ltx2_flf2v',
+ 'last-frame': 'ltx2_lf2v',
txt2vid: 'ltx2_t2v',
'video-to-audio': 'ltx2_v2a',
};
@@ -843,23 +846,102 @@ const buildLtx2VideoGraph = (settings: VideoSettings, model: MainModelConfig): B
}
addEdge(graph, seed, 'value', denoise, 'seed');
- if (mode === 'first-frame') {
- if (!settings.firstFrameImage) {
- throw new Error('A first frame is required for image-to-video generation.');
+ let extendConditioning: BackendInvocationContract | null = null;
+
+ /**
+ * The tail of the clip being continued, encoded at one canvas and held as the opening of one
+ * pass. Read from the TRIMMED source, not the gallery file: the join's source half ends at the
+ * user's trim, so anchoring on the raw file's last frames would dissolve two unrelated moments
+ * into each other wherever the trim cut something off. The literal is what keeps the node's
+ * required field valid in the graph JSON; the edge is what the run actually reads.
+ */
+ const addExtendAnchor = (
+ id: string,
+ sourceVideo: NonNullable<VideoSettings['sourceVideo']>,
+ extract: BackendInvocationContract,
+ canvas: { width: number; height: number },
+ pass: BackendInvocationContract,
+ holdAudio: boolean
+ ) => {
+ const conditioning = addNode(graph, {
+ height: canvas.height,
+ id,
+ type: 'ltx2_extend_conditioning',
+ video: { video_name: sourceVideo.video_name },
+ width: canvas.width,
+ });
+
+ addEdge(graph, extract, 'video', conditioning, 'video');
+ addEdge(graph, modelLoader, 'vae', conditioning, 'vae');
+ addEdge(graph, conditioning, 'video_conditioning', pass, 'video_conditioning');
+ // The same span of the source's sound as the picture it holds. Without it the join fades newly
+ // invented audio in against the source's real audio, and the new soundtrack starts one overlap
+ // early -- audible as the cut-over arriving a fraction of a second too soon.
+ //
+ // Only one anchor encodes it. The canvas never reaches the audio path, so a two-stage run's two
+ // anchors would read the same trimmed clip, load the audio VAE and vocoder, and produce byte-
+ // identical latents twice; the second pass is fed from the first instead.
+ if (holdAudio) {
+ addEdge(graph, modelLoader, 'audio_vae', conditioning, 'audio_vae');
+ addEdge(graph, modelLoader, 'vocoder', conditioning, 'vocoder');
+ addEdge(graph, extract, 'fps', conditioning, 'fps');
+ addEdge(graph, conditioning, 'audio_conditioning', pass, 'audio_prefix_conditioning');
}
- // The base pass's canvas: the refine pass inherits the anchored first frame through the
- // latents it is handed, and an encode made here could not be re-applied at twice the size.
- const imageConditioning = addNode(graph, {
- height: stages.base.height,
- id: 'image_conditioning',
- image: toImageField(settings.firstFrameImage),
+ return conditioning;
+ };
+
+ /**
+ * A held frame, encoded at one canvas and wired into one pass. Index 0 overwrites the grid's
+ * opening tokens; anything else is appended to the model's sequence as a keyframe, which is what
+ * lets a last frame coexist with a first one. Each pass needs its own encode at its own canvas --
+ * see the refine block below for why.
+ */
+ const addHeldFrame = (
+ id: string,
+ image: NonNullable<VideoSettings['firstFrameImage']>,
+ canvas: { width: number; height: number },
+ pass: BackendInvocationContract,
+ frameIndex: number
+ ) => {
+ const conditioning = addNode(graph, {
+ frame_index: frameIndex,
+ height: canvas.height,
+ id,
+ image: toImageField(image),
type: 'ltx2_image_conditioning',
- width: stages.base.width,
+ width: canvas.width,
});
- addEdge(graph, modelLoader, 'vae', imageConditioning, 'vae');
- addEdge(graph, imageConditioning, 'video_conditioning', denoise, 'video_conditioning');
+ addEdge(graph, modelLoader, 'vae', conditioning, 'vae');
+ addEdge(
+ graph,
+ conditioning,
+ 'video_conditioning',
+ pass,
+ frameIndex === 0 ? 'video_conditioning' : 'keyframe_conditioning'
+ );
+
+ return conditioning;
+ };
+
+ // The generation opens either from a still or from the tail of the clip being continued; a last
+ // frame rides on top of either as a keyframe. `-1` is resolved against the run's own frame count
+ // by the denoise node, so the encode does not go stale when the length changes.
+ // Keyed on the MODE rather than on whichever slot still holds something. Validation refuses every
+ // bad combination before a graph is built, so this is the second line rather than the first -- but
+ // a held frame reaching the graph unasked is both a silent change of output and, beside a
+ // whole-clip conditioning, a shape failure inside the transformer, and the sibling MiniMax builder
+ // guards the same way.
+ const holdsFirstFrame = (mode === 'first-frame' || mode === 'first-last') && settings.firstFrameImage;
+ const holdsLastFrame =
+ (mode === 'last-frame' || mode === 'first-last' || mode === 'extend') && settings.lastFrameImage;
+
+ if (holdsFirstFrame) {
+ addHeldFrame('image_conditioning', holdsFirstFrame, stages.base, denoise, 0);
+ }
+ if (holdsLastFrame) {
+ addHeldFrame('last_frame_conditioning', holdsLastFrame, stages.base, denoise, -1);
}
// The conditioning clip, in whichever role it was given. Both nodes report the frame count they
@@ -868,6 +950,7 @@ const buildLtx2VideoGraph = (settings: VideoSettings, model: MainModelConfig): B
// gallery's own frame count is duration x fps rounded.
const conditioningClip = settings.conditioningClip;
let audioConditioning: BackendInvocationContract | null = null;
+ let heldVideoConditioning: BackendInvocationContract | null = null;
if (mode === 'audio-to-video' || mode === 'video-to-audio') {
if (!conditioningClip) {
@@ -903,6 +986,7 @@ const buildLtx2VideoGraph = (settings: VideoSettings, model: MainModelConfig): B
addEdge(graph, modelLoader, 'vae', videoConditioning, 'vae');
addEdge(graph, videoConditioning, 'video_conditioning', denoise, 'full_video_conditioning');
addEdge(graph, videoConditioning, 'num_frames', denoise, 'num_frames');
+ heldVideoConditioning = videoConditioning;
}
}
@@ -943,30 +1027,29 @@ const buildLtx2VideoGraph = (settings: VideoSettings, model: MainModelConfig): B
addEdge(graph, upsample, 'latents', refine, 'latents');
addEdge(graph, denoise, 'audio_latents', refine, 'audio_latents');
- if (mode === 'first-frame' && settings.firstFrameImage) {
- // A second encode, at the refine canvas. The refine pass re-noises every token including
- // frame 0, so the base pass's anchor does not survive into it -- and the base pass's encode
- // is half this size, so it cannot be re-used. Without this, two-stage image-to-video would
- // regenerate the first frame from the prompt alone.
- const refineConditioning = addNode(graph, {
- height: stages.final.height,
- id: 'refine_image_conditioning',
- image: toImageField(settings.firstFrameImage),
- type: 'ltx2_image_conditioning',
- width: stages.final.width,
- });
-
- addEdge(graph, modelLoader, 'vae', refineConditioning, 'vae');
- addEdge(graph, refineConditioning, 'video_conditioning', refine, 'video_conditioning');
+ // A second encode of every held frame, at the refine canvas. The refine pass re-noises every
+ // token -- frame 0 included, and appended keyframes are not carried through the upsampler at
+ // all -- and the base pass's encodes are half this size, so they cannot be re-used. Without
+ // this, a two-stage run would regenerate its held frames from the prompt alone and quietly
+ // mean something different by "first frame" than a single-stage one.
+ if (holdsFirstFrame) {
+ addHeldFrame('refine_image_conditioning', holdsFirstFrame, stages.final, refine, 0);
+ }
+ if (holdsLastFrame) {
+ addHeldFrame('refine_last_frame_conditioning', holdsLastFrame, stages.final, refine, -1);
}
finalDenoise = refine;
}
+ // An extension's own clip is an intermediate: what the user asked for is the joined result, and
+ // `addSourceJoin` names the join `video_output`, so the decode has to give that id up or it would
+ // be silently overwritten by it.
+ const joining = mode === 'extend' && settings.sourceVideo !== null;
const output = addNode(graph, {
fps: timing.fps,
- id: 'video_output',
- is_intermediate: false,
+ id: joining ? 'extension_clip' : 'video_output',
+ is_intermediate: joining,
type: 'ltx2_latents_to_video',
use_cache: false,
});
@@ -979,14 +1062,76 @@ const buildLtx2VideoGraph = (settings: VideoSettings, model: MainModelConfig): B
// replace the user's recording with a vocoder's copy of itself.
addEdge(graph, audioConditioning, 'audio_conditioning', output, 'source_audio');
}
+ if (heldVideoConditioning) {
+ // And the mirror of it: the picture was the given half here, so the user's own frames are
+ // written out rather than the held latents being decoded back into a cover-cropped copy.
+ addEdge(graph, heldVideoConditioning, 'video_conditioning', output, 'source_video');
+ }
addEdge(graph, modelLoader, 'vae', output, 'vae');
addEdge(graph, modelLoader, 'audio_vae', output, 'audio_vae');
addEdge(graph, modelLoader, 'vocoder', output, 'vocoder');
+ // An extension is joined back onto the clip it continues. The generated half opens with the
+ // source's own tail -- held clean, so both clips render the same moment -- and the crossfade
+ // consumes exactly those frames from each side, which is what stops them playing twice. Its
+ // length comes over an edge rather than as a literal: a source shorter than the requested
+ // context contributes fewer frames, and only the node that read it knows how many.
+ const join = joining && settings.sourceVideo ? addSourceJoin(graph, settings.sourceVideo, output) : null;
+
+ if (join && settings.sourceVideo) {
+ // Built here rather than with the other conditioning because it reads the TRIMMED clip, which
+ // only exists once the join has been laid out.
+ extendConditioning = addExtendAnchor(
+ 'extend_conditioning',
+ settings.sourceVideo,
+ join.extract,
+ stages.base,
+ denoise,
+ true
+ );
+ if (twoStage) {
+ // Appended or not, a held anchor does not survive the refine pass's re-noise, and the
+ // upsampler never sees it -- so stage two is given the tail again at its own canvas. Its
+ // sound is not canvas-dependent, so it comes from the first anchor rather than a second
+ // encode of the same audio.
+ addExtendAnchor(
+ 'refine_extend_conditioning',
+ settings.sourceVideo,
+ join.extract,
+ stages.final,
+ finalDenoise,
+ false
+ );
+ addEdge(graph, extendConditioning, 'audio_conditioning', finalDenoise, 'audio_prefix_conditioning');
+ }
+
+ addEdge(graph, extendConditioning, 'context_frames', join.concat, 'transition_frames');
+ // The continuation inherits the source's own frame rate, read off the trimmed clip at run time
+ // rather than from the gallery's record of it -- a video row's fps is nullable, and a guess
+ // here would play the two halves at different speeds and mistime the generated soundtrack.
+ addEdge(graph, join.extract, 'fps', denoise, 'fps');
+ addEdge(graph, join.extract, 'fps', output, 'fps');
+ if (twoStage) {
+ addEdge(graph, join.extract, 'fps', finalDenoise, 'fps');
+ }
+ // The join's own fps is deliberately left unset: `video_concat` then takes the first input's
+ // rate, which is this same trimmed clip, and refuses the join outright if the two halves
+ // disagree. Wiring it would be worse in three ways -- the field is `Optional[int]`, so the edge
+ // is float -> int and the graph is refused at enqueue before anything runs; an int cannot carry
+ // 23.976; and forcing a rate would retime rather than catch a mismatch.
+ }
+
+ const joined = join?.concat ?? null;
+
addVideoMetadata({
extras: {
cfg_scale: guidance.cfg_scale,
- fps: timing.fps,
+ // What will actually be delivered: a continuation runs at the source's rate, every other mode
+ // at the panel's. Recorded rounded, mirroring what the clip reports back.
+ // For a continuation this is the gallery's reading of the source, which is the best number
+ // available when the graph is built -- the run itself takes the clip's true rate off the
+ // extract node, so a fractional source is delivered at 23.976 and recorded as 24.
+ fps: joined && settings.sourceVideo ? Math.round(settings.sourceVideo.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 } : {}),
@@ -1014,7 +1159,9 @@ const buildLtx2VideoGraph = (settings: VideoSettings, model: MainModelConfig): B
height: dimensions.height,
model,
negativeWired,
- outputs: [output],
+ // The joined clip is the result; the generated half is kept as an intermediate, and both carry
+ // the metadata so either can be recalled.
+ outputs: joined ? [output, joined] : [output],
settings,
width: dimensions.width,
});
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 ab37655edb..2118f34450 100644
--- a/invokeai/frontend/webv2/src/features/video/core/videoGraphCoverage.test.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/videoGraphCoverage.test.ts
@@ -277,6 +277,7 @@ describe('video graph coverage', () => {
{ inputs: Set<string>; literals: Map<string, Map<string, unknown>>; outputs: Set<string> }
> = {};
+ const connections = new Set<string>();
const fieldsFor = (nodeType: string) =>
(fields[nodeType] ??= { inputs: new Set(), literals: new Map(), outputs: new Set() });
@@ -314,15 +315,28 @@ describe('video graph coverage', () => {
for (const edge of graph.edges) {
fieldsFor(graph.nodes[edge.source.node_id]!.type).outputs.add(edge.source.field);
fieldsFor(graph.nodes[edge.destination.node_id]!.type).inputs.add(edge.destination.field);
+ // The connection itself, by node TYPE, so the Python side can ask the backend whether the
+ // two field types are actually compatible. Field names alone are not enough: a float wired
+ // into an int is two valid names and a graph the queue refuses at enqueue.
+ connections.add(
+ [
+ graph.nodes[edge.source.node_id]!.type,
+ edge.source.field,
+ graph.nodes[edge.destination.node_id]!.type,
+ edge.destination.field,
+ ].join(' ')
+ );
}
}
const contract = {
+ connections: [...connections].sort(),
_comment:
'Generated by src/features/video/core/videoGraphCoverage.test.ts; regenerate with ' +
'`vitest -u`. Excluded from oxfmt so the test alone owns its layout. Consumed by ' +
'tests/app/invocations/test_frontend_graph_node_types.py, which checks every node type, ' +
- 'edge field and literal input value below against the backend invocation registry. An ' +
+ 'edge field and literal input value below against the backend invocation registry, and ' +
+ 'every connection for whether the backend considers the two field types compatible. An ' +
'empty literalInputs value list means the field is set to something other than a scalar, ' +
'so only its name is checked.',
byBase,
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 4b08dbc178..891152367d 100644
--- a/invokeai/frontend/webv2/src/features/video/core/videoPolicies.test.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/videoPolicies.test.ts
@@ -1537,14 +1537,11 @@ const LTX2_ENCODER = {
};
describe('LTX-2 policy', () => {
- 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',
- ]);
+ it('offers every conditioning shape on both checkpoints', () => {
+ const modes = ['txt2vid', 'first-frame', 'last-frame', 'first-last', 'extend', 'audio-to-video', 'video-to-audio'];
+
+ expect(getVideoModes(ltx2('ltx2_dev'))).toEqual(modes);
+ expect(getVideoModes(ltx2('ltx2_distilled'))).toEqual(modes);
});
describe('whole-modality conditioning clips', () => {
@@ -1616,6 +1613,71 @@ describe('LTX-2 policy', () => {
expect(getVideoDimensions(wan, stale)?.source).toBe('aspect-ratio');
});
+ it('refuses a continuation with no room left to continue', () => {
+ // The generation opens by replaying the source's tail, so a frame count at or below that is
+ // all context and no continuation. Left to the backend it fails after both encoders have run,
+ // with a shape error about an anchor that does not fit its clip.
+ const clip = {
+ endFrame: 94,
+ fps: 24,
+ height: 704,
+ numFrames: 96,
+ startFrame: 0,
+ video_name: 's.mp4',
+ width: 1248,
+ };
+ const extending = (numFrames: number) =>
+ settingsFor(model, {
+ componentSourceModel: LTX2_COMPONENTS,
+ ltx2TextEncoderModel: LTX2_ENCODER,
+ numFrames,
+ sourceVideo: clip,
+ });
+
+ expect(getVideoValidationReasons(model, extending(17)).join(' ')).toContain('Raise Frames above 17');
+ expect(getVideoValidationReasons(model, extending(9)).join(' ')).toContain('Raise Frames above 17');
+ expect(getVideoValidationReasons(model, extending(25))).toEqual([]);
+ });
+
+ it('refuses a source the join could not afford to blend', () => {
+ // The crossfade is buffered at the SOURCE's own resolution, not the generation canvas, and
+ // `video_concat` refuses over 512 MiB. Unchecked, that refusal lands after both encodes, the
+ // transformer and the decode -- and neither remedy it names is reachable from the panel.
+ const atSize = (width: number, height: number) =>
+ settingsFor(model, {
+ componentSourceModel: LTX2_COMPONENTS,
+ ltx2TextEncoderModel: LTX2_ENCODER,
+ numFrames: 121,
+ sourceVideo: { endFrame: 94, fps: 24, height, numFrames: 96, startFrame: 0, video_name: 's.mp4', width },
+ });
+
+ expect(getVideoValidationReasons(model, atSize(2560, 1440))).toEqual([]);
+ expect(getVideoValidationReasons(model, atSize(3840, 2160)).join(' ')).toContain('at or below about 2560x1440');
+ });
+
+ it('refuses a trim the join could not blend out of', () => {
+ // The other side of the same arithmetic: the crossfade takes 17 frames from EACH half, so a
+ // source trimmed shorter than that fails inside the join -- after the whole generation.
+ const trimmed = (kept: number) =>
+ settingsFor(model, {
+ componentSourceModel: LTX2_COMPONENTS,
+ ltx2TextEncoderModel: LTX2_ENCODER,
+ numFrames: 121,
+ sourceVideo: {
+ endFrame: kept - 1,
+ fps: 24,
+ height: 704,
+ numFrames: 96,
+ startFrame: 0,
+ video_name: 's.mp4',
+ width: 1248,
+ },
+ });
+
+ expect(getVideoValidationReasons(model, trimmed(10)).join(' ')).toContain('keeps only 10');
+ expect(getVideoValidationReasons(model, trimmed(17))).toEqual([]);
+ });
+
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.
diff --git a/invokeai/frontend/webv2/src/features/video/core/videoPolicies.ts b/invokeai/frontend/webv2/src/features/video/core/videoPolicies.ts
index 3e29ea2cbb..0d8c8ec2c3 100644
--- a/invokeai/frontend/webv2/src/features/video/core/videoPolicies.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/videoPolicies.ts
@@ -34,6 +34,8 @@ import {
LTX2_NUM_FRAMES_MAX,
LTX2_NUM_FRAMES_MIN,
LTX2_NUM_FRAMES_SLIDER_MAX,
+ LTX2_EXTEND_CONTEXT_FRAMES,
+ ltx2ExtendJoinFitsInMemory,
LTX2_NUM_FRAMES_STEP,
ltx2FramesForClip,
MINIMAX_H3_FPS,
@@ -350,9 +352,10 @@ 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, plus the two
- // whole-modality conditioned modes. Keyframes and extension follow.
- modes: ['txt2vid', 'first-frame', 'audio-to-video', 'video-to-audio'] as const,
+ // Every conditioning shape the family supports: text-to-video, a held first and/or last frame,
+ // continuing an existing clip, and the two whole-modality modes -- all with a generated
+ // soundtrack.
+ modes: ['txt2vid', 'first-frame', 'last-frame', 'first-last', 'extend', 'audio-to-video', 'video-to-audio'] as const,
pixelMultiple: LTX2_CANVAS_MULTIPLE,
targetResolutions: LTX2_TARGET_RESOLUTION_OPTIONS,
};
@@ -2261,6 +2264,38 @@ export const getVideoValidationReasons = (model: MainModelConfig, settings: Vide
);
}
+ // An LTX-2 continuation replays the front of the source and then joins the two halves by
+ // crossfading exactly those frames out of each. Both sides therefore have a floor, and both fail
+ // late and confusingly without one: the generated side after the encoders have run, the source
+ // side inside the join, after the whole generation.
+ if (mode === 'extend' && model.base === 'ltx-2' && settings.sourceVideo) {
+ if (settings.numFrames <= LTX2_EXTEND_CONTEXT_FRAMES) {
+ reasons.push(
+ `A continuation opens with ${LTX2_EXTEND_CONTEXT_FRAMES} frames of the source, so anything at or ` +
+ `below that would be all replay and no continuation. Raise Frames above ${LTX2_EXTEND_CONTEXT_FRAMES}.`
+ );
+ }
+
+ if (
+ !ltx2ExtendJoinFitsInMemory(settings.sourceVideo.width, settings.sourceVideo.height, LTX2_EXTEND_CONTEXT_FRAMES)
+ ) {
+ reasons.push(
+ `The join blends ${LTX2_EXTEND_CONTEXT_FRAMES} frames of the initial video at its own ` +
+ `${settings.sourceVideo.width}x${settings.sourceVideo.height}, which needs more memory than it is ` +
+ `allowed. Use a source at or below about 2560x1440.`
+ );
+ }
+
+ const kept = settings.sourceVideo.endFrame - settings.sourceVideo.startFrame + 1;
+
+ if (kept < LTX2_EXTEND_CONTEXT_FRAMES) {
+ reasons.push(
+ `The join blends ${LTX2_EXTEND_CONTEXT_FRAMES} frames out of each half, but the initial video's trim ` +
+ `keeps only ${kept}. Keep at least ${LTX2_EXTEND_CONTEXT_FRAMES} frames of it.`
+ );
+ }
+ }
+
if (config.cfg.visible && (!Number.isFinite(settings.cfgScale) || settings.cfgScale < 1)) {
reasons.push('CFG must be at least 1.');
}
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 8c41cfeca6..58d1ccf6df 100644
--- a/invokeai/frontend/webv2/src/workbench/image-actions/executeVideoRecall.test.ts
+++ b/invokeai/frontend/webv2/src/workbench/image-actions/executeVideoRecall.test.ts
@@ -244,6 +244,65 @@ describe('executeVideoRecall', () => {
});
});
+describe('the LTX-2 keyframe and extend modes on recall', () => {
+ beforeEach(() => {
+ accountLifecycle.activate('test-account');
+ galleryApi.galleryVideos.metadata.mockReset();
+ galleryApi.galleryItems.resolve.mockReset();
+ galleryApi.galleryImages.resolveMany.mockReset();
+ });
+
+ const recallLtx2 = async (metadata: Record<string, unknown>) => {
+ recallSeq += 1;
+ galleryApi.galleryVideos.metadata.mockResolvedValue({
+ height: 704,
+ model: { base: 'ltx-2', key: 'ltx2-main', name: 'LTX-2.5 dev', type: 'main' },
+ num_frames: 121,
+ positive_prompt: 'a red fox',
+ seed: 7,
+ steps: 30,
+ width: 1248,
+ ...metadata,
+ });
+ galleryApi.galleryItems.resolve.mockResolvedValue({ ...item, durationSeconds: 4, fps: 24, name: 'source.mp4' });
+ galleryApi.galleryImages.resolveMany.mockResolvedValue([{ height: 704, imageName: 'last.png', width: 1248 }]);
+ const { commands, patchValues } = createCommands();
+
+ await executeVideoRecall({
+ commands,
+ getVideoValues: () => createDefaultVideoWidgetValues([ltx2Model]) as unknown as Record<string, unknown>,
+ item: { ...item, name: `ltx2-recall-${recallSeq}.mp4` },
+ kind: 'all',
+ models: [ltx2Model],
+ });
+
+ return patchValues.mock.calls.at(-1)?.[1] as Record<string, unknown> | undefined;
+ };
+
+ // Recognising the mode string is only the first half: an unlisted one is refused outright, but a
+ // listed one whose media never comes back is a silent downgrade to text-to-video.
+ it('restores the destination frame a last-frame run ended on', async () => {
+ expect(
+ await recallLtx2({ generation_mode: 'ltx2_lf2v', last_frame_image: { image_name: 'last.png' } })
+ ).toMatchObject({ lastFrameImage: { image_name: 'last.png' } });
+ });
+
+ it('restores the clip an extension continued, with the trim it ran at', async () => {
+ const written = await recallLtx2({
+ generation_mode: 'ltx2_extend_video',
+ source_video: { video_name: 'source.mp4' },
+ source_video_end_frame: 61,
+ source_video_start_frame: 12,
+ });
+
+ // The trim is what decides WHERE the continuation picked up; the default would continue from
+ // somewhere else entirely.
+ expect(written).toMatchObject({
+ sourceVideo: { endFrame: 61, startFrame: 12, video_name: 'source.mp4' },
+ });
+ });
+});
+
describe('the LTX-2 conditioning clip on recall', () => {
beforeEach(() => {
accountLifecycle.activate('test-account');
diff --git a/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.ts b/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.ts
index 114f357c3f..f441d3e773 100644
--- a/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.ts
+++ b/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.ts
@@ -65,6 +65,9 @@ const VIDEO_GENERATION_MODE_IDS: ReadonlySet<string> = new Set([
'ltx2_i2v',
'ltx2_a2v',
'ltx2_v2a',
+ 'ltx2_lf2v',
+ 'ltx2_flf2v',
+ 'ltx2_extend_video',
]);
export type VideoRecallKind = 'all' | 'remix' | 'prompts' | 'seed';
diff --git a/tests/app/invocations/test_frontend_graph_node_types.py b/tests/app/invocations/test_frontend_graph_node_types.py
index b249e03c11..8efa63499a 100644
--- a/tests/app/invocations/test_frontend_graph_node_types.py
+++ b/tests/app/invocations/test_frontend_graph_node_types.py
@@ -27,6 +27,7 @@ from pydantic import TypeAdapter, ValidationError
from invokeai.app.invocations.baseinvocation import BaseInvocation, InvocationRegistry
from invokeai.app.services.shared.graph import * # noqa: F401 F403 -- imports all invocations, populating the registry
+from invokeai.app.services.shared.graph import are_connection_types_compatible
_WEBV2 = Path(__file__).parents[3] / "invokeai" / "frontend" / "webv2" / "src" / "features"
@@ -61,6 +62,42 @@ def _invocation(node_type: str) -> type[BaseInvocation]:
return cls
+CONNECTION_CASES = [
+ (name, connection) for name, contract in CONTRACTS.items() for connection in sorted(contract.get("connections", []))
+]
+
+
+ ("contract", "connection"), CONNECTION_CASES, ids=lambda case: case if isinstance(case, str) else str(case)
+)
+def test_every_connection_the_panel_compiles_is_one_the_queue_will_accept(contract: str, connection: str) -> None:
+ """Field NAMES matching is not enough: a float wired into an int names two real fields and is
+ still refused, and `Graph.validate_self` runs on every enqueue -- so the whole generation dies
+ at submit, before anything runs, with no partial output to diagnose from. Checking the names
+ alone let exactly that ship in a video extension (`extract_video_range.fps` is a float,
+ `video_concat.fps` an `Optional[int]`); both sides of the fixture recorded the field happily.
+ """
+ source_type, source_field, destination_type, destination_field = connection.split(" ")
+ source_output = _invocation(source_type).get_output_annotation()
+ destination = _invocation(destination_type)
+
+ assert source_field in source_output.model_fields, (
+ f"webv2 reads '{source_field}' off a '{source_type}' node, which its output does not have."
+ )
+ assert destination_field in destination.model_fields, (
+ f"webv2 wires into '{destination_type}.{destination_field}', which that node does not have."
+ )
+
+ from_annotation = source_output.model_fields[source_field].annotation
+ to_annotation = destination.model_fields[destination_field].annotation
+
+ assert are_connection_types_compatible(from_annotation, to_annotation), (
+ f"webv2 connects {source_type}.{source_field} ({from_annotation}) into "
+ f"{destination_type}.{destination_field} ({to_annotation}), which the queue refuses as an "
+ f"invalid edge at enqueue."
+ )
+
+
# The number of architectures each panel supports. A contract that silently stopped being
# regenerated would make every assertion below vacuous, so the count is pinned: a new architecture
# updates this number and the fixture in the same commit.
diff --git a/tests/app/invocations/test_ltx2_nodes.py b/tests/app/invocations/test_ltx2_nodes.py
index bf4f0be55a..76aa2e2eae 100644
--- a/tests/app/invocations/test_ltx2_nodes.py
+++ b/tests/app/invocations/test_ltx2_nodes.py
@@ -9,8 +9,10 @@ import numpy as np
import pytest
import torch
from PIL import Image
+from pydantic import ValidationError
import invokeai.app.invocations.ltx2.ltx2_audio_conditioning as ltx2_audio_conditioning
+import invokeai.app.invocations.ltx2.ltx2_extend_conditioning as ltx2_extend_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 (
@@ -23,6 +25,10 @@ from invokeai.app.invocations.fields import (
)
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_extend_conditioning import (
+ LTX2_MAX_EXTEND_CONTEXT_FRAMES,
+ LTX2ExtendConditioningInvocation,
+)
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
@@ -35,6 +41,7 @@ from invokeai.app.invocations.model import (
VAEField,
)
from invokeai.app.invocations.vae.ltx2_latents_to_video import LTX2LatentsToVideoInvocation
+from invokeai.backend.ltx2.clip_frames import CanvasClip
from invokeai.backend.ltx2.constants import (
LTX2_AUDIO_LATENT_CHANNELS,
LTX2_AUDIO_LATENT_MEL_BINS,
@@ -637,10 +644,10 @@ def test_the_conditioning_clip_drops_its_ragged_tail_rather_than_padding_it(
) -> 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)]
+ frames = [np.full((512, 768, 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))
+ monkeypatch.setattr(ltx2_video_conditioning, "read_canvas_frames", lambda *_a, **_k: _canvas_clip(list(frames)))
def encode(pixels):
encoded["pixels"] = pixels
@@ -692,8 +699,8 @@ def test_a_conditioning_clip_under_one_frame_group_is_refused_with_its_length(
) -> 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)]),
+ "read_canvas_frames",
+ lambda *_a, **_k: _canvas_clip([np.zeros((64, 64, 3), dtype=np.uint8) for _ in range(5)]),
)
with pytest.raises(ValueError, match="decoded to 5 frame"):
@@ -710,7 +717,7 @@ def test_a_conditioning_clip_under_one_frame_group_is_refused_with_its_length(
},
{
"full_video_conditioning": LTX2FullVideoConditioningField(
- latents_name="video", width=1248, height=704, num_frames=89, fps=24.0
+ latents_name="video", width=1248, height=704, num_frames=89, fps=24.0, source_video_name="clip.mp4"
)
},
],
@@ -743,7 +750,7 @@ def test_a_held_modality_cannot_be_combined_with_a_refine_pass(conditioning: dic
(
{
"full_video_conditioning": LTX2FullVideoConditioningField(
- latents_name="video", width=768, height=704, num_frames=89, fps=24.0
+ latents_name="video", width=768, height=704, num_frames=89, fps=24.0, source_video_name="clip.mp4"
)
},
"width 768 vs 1248",
@@ -762,5 +769,630 @@ def test_a_conditioning_prepared_for_a_different_run_is_named_before_the_transfo
node.invoke(_context())
+def _keyframe_field(frame_index: int, **kwargs) -> LTX2VideoConditioningField:
+ defaults = {"latents_name": "keyframe", "width": 1248, "height": 704, "frame_index": frame_index}
+ return LTX2VideoConditioningField(**{**defaults, **kwargs})
+
+
+ ("num_frames", "frame_index", "expected"),
+ # 121 frames is 16 latent frames; 9 frames is 2.
+ [(121, -1, 15), (121, 15, 15), (121, 1, 1), (121, -15, 1), (9, -1, 1)],
+)
+def test_a_keyframes_index_is_resolved_against_the_clips_own_length(
+ num_frames: int, frame_index: int, expected: int
+) -> None:
+ """Negative indices count from the end, and they are resolved HERE rather than at the encode:
+ the conditioning node does not know how long the clip is, so resolving there would silently
+ land the frame at the wrong instant the moment someone changed the frame count."""
+ node = _denoise(num_frames=num_frames, keyframe_conditioning=_keyframe_field(frame_index))
+ context = _context()
+ context.tensors.load.return_value = torch.zeros(1, LTX2_LATENT_CHANNELS, 1, 22, 39)
+
+ assert node._resolve_keyframe(context)[1] == expected
+
+
+def test_a_keyframe_that_resolves_to_the_first_frame_names_the_input_that_owns_it() -> None:
+ """Index 0 is a different mechanism -- overwriting the grid rather than appending -- so this is
+ a wiring mistake, and the message has to say which input to use instead."""
+ node = _denoise(num_frames=121, keyframe_conditioning=_keyframe_field(0))
+
+ with pytest.raises(ValueError, match="Image Conditioning"):
+ node._resolve_keyframe(_context())
+
+
[email protected]("frame_index", [16, 40, -17, -200])
+def test_a_keyframe_outside_the_clip_is_refused_with_both_indices(frame_index: int) -> None:
+ node = _denoise(num_frames=121, keyframe_conditioning=_keyframe_field(frame_index))
+
+ with pytest.raises(ValueError, match="outside a 121-frame clip"):
+ node._resolve_keyframe(_context())
+
+
+def test_a_keyframe_encoded_for_another_canvas_is_refused_before_the_transformer_loads() -> None:
+ node = _denoise(num_frames=121, keyframe_conditioning=_keyframe_field(-1, width=768, height=512))
+
+ with pytest.raises(ValueError, match="keyframe conditioning was prepared"):
+ node._resolve_keyframe(_context())
+
+
[email protected]("refine", [False, True])
+def test_the_resolved_keyframe_reaches_the_state_the_run_is_built_from(monkeypatch, refine: bool) -> None:
+ """Resolving the index correctly is worth nothing if it is not handed on, and the resolution is
+ only reachable through a private helper -- so this crosses the seam between them, for the base
+ pass and the refine pass alike. A two-stage run that dropped the keyframe would end somewhere
+ else than a single-stage one."""
+ import invokeai.app.invocations.ltx2.ltx2_denoise as denoise_module
+
+ captured: dict[str, object] = {}
+
+ def fake_build(**kwargs):
+ captured.update(kwargs)
+ raise _StopAfterState
+
+ monkeypatch.setattr(denoise_module, "build_refine_state" if refine else "build_denoise_state", fake_build)
+ node = _denoise(
+ num_frames=121,
+ keyframe_conditioning=_keyframe_field(-1, strength=0.75),
+ **(
+ {"latents": LatentsField(latents_name="upscaled"), "audio_latents": LatentsField(latents_name="audio")}
+ if refine
+ else {}
+ ),
+ cfg_scale=1.0,
+ audio_cfg_scale=1.0,
+ stg_scale=0.0,
+ modality_scale=1.0,
+ )
+ context = _context()
+ context.tensors.load.return_value = torch.zeros(1, LTX2_LATENT_CHANNELS, 1, 22, 39)
+ context.conditioning.load.return_value = SimpleNamespace(
+ conditionings=[
+ LTX2ConditioningInfo(
+ video_embeds=torch.zeros(1, 4, 8),
+ audio_embeds=torch.zeros(1, 4, 6),
+ attention_mask=torch.ones(1, 4, dtype=torch.int64),
+ )
+ ]
+ )
+
+ with pytest.raises(_StopAfterState):
+ node.invoke(context)
+
+ assert captured["keyframe_latent_index"] == 15
+ assert captured["keyframe_strength"] == 0.75
+ assert captured["keyframe_latents"] is not None
+
+
[email protected]("refine", [False, True])
+def test_the_held_soundtrack_opening_reaches_both_passes(monkeypatch: pytest.MonkeyPatch, refine: bool) -> None:
+ """A continuation's held sound has to survive the whole run. Stage two re-noises every row, so a
+ prefix handed only to stage one is gone by the time the join crossfades -- which is exactly the
+ seam this exists to remove, and a two-stage run would have it back with nothing failing."""
+ import invokeai.app.invocations.ltx2.ltx2_denoise as denoise_module
+
+ captured: dict[str, object] = {}
+
+ def fake_build(**kwargs):
+ captured.update(kwargs)
+ raise _StopAfterState
+
+ monkeypatch.setattr(denoise_module, "build_refine_state" if refine else "build_denoise_state", fake_build)
+ prefix = torch.arange(18 * 128, dtype=torch.float32).reshape(1, 18, 128)
+ node = _denoise(
+ num_frames=121,
+ audio_prefix_conditioning=LTX2AudioConditioningField(
+ latents_name="held_opening",
+ num_audio_latents=18,
+ num_frames=17,
+ fps=24.0,
+ source_video_name="clip.mp4",
+ ),
+ **(
+ {"latents": LatentsField(latents_name="upscaled"), "audio_latents": LatentsField(latents_name="audio")}
+ if refine
+ else {}
+ ),
+ cfg_scale=1.0,
+ audio_cfg_scale=1.0,
+ stg_scale=0.0,
+ modality_scale=1.0,
+ )
+ context = _context()
+ context.tensors.load.side_effect = lambda name: (
+ prefix if name == "held_opening" else torch.zeros(1, LTX2_LATENT_CHANNELS, 16, 22, 39)
+ )
+ context.conditioning.load.return_value = SimpleNamespace(
+ conditionings=[
+ LTX2ConditioningInfo(
+ video_embeds=torch.zeros(1, 4, 8),
+ audio_embeds=torch.zeros(1, 4, 6),
+ attention_mask=torch.ones(1, 4, dtype=torch.int64),
+ )
+ ]
+ )
+
+ with pytest.raises(_StopAfterState):
+ node.invoke(context)
+
+ assert torch.equal(captured["audio_prefix_latents"], prefix)
+
+
+def _canvas_clip(frames: list[np.ndarray], source_frames: int | None = None) -> CanvasClip:
+ """What the reader hands back: the fitted frames, and how long the clip they came from is."""
+ return CanvasClip(frames, len(frames) if source_frames is None else source_frames)
+
+
+def test_a_held_opening_prepared_at_another_frame_rate_is_refused() -> None:
+ """The rate is the one thing no tensor shape records. A prefix sized at 24 fps and held at 30
+ covers a different stretch of time than the picture it belongs to, so the join crossfades real
+ source audio into the new material -- and the row count stays well inside what the clip has
+ room for, so nothing else would notice."""
+ node = _denoise(
+ num_frames=121,
+ fps=30.0,
+ audio_prefix_conditioning=LTX2AudioConditioningField(
+ latents_name="held_opening",
+ num_audio_latents=18,
+ num_frames=17,
+ fps=24.0,
+ source_video_name="clip.mp4",
+ ),
+ )
+
+ with pytest.raises(ValueError, match="Extend Conditioning - LTX-2 was prepared"):
+ node.invoke(_context())
+
+
+def _extend_conditioning(**kwargs) -> LTX2ExtendConditioningInvocation:
+ defaults = {"video": VideoField(video_name="clip.mp4"), "vae": VAEField(vae=_identifier("vae"))}
+ return LTX2ExtendConditioningInvocation(id="extend_cond", **{**defaults, **kwargs})
+
+
+def _stub_video_vae(context: MagicMock, latent_frames: int, height: int, width: int) -> dict:
+ encoded: dict = {}
+
+ def encode(pixels):
+ encoded["pixels"] = pixels
+ return SimpleNamespace(
+ latent_dist=SimpleNamespace(
+ mode=lambda: torch.zeros(1, LTX2_LATENT_CHANNELS, latent_frames, height // 32, width // 32)
+ )
+ )
+
+ vae = SimpleNamespace(
+ buffers=lambda: iter([]),
+ config=SimpleNamespace(scaling_factor=1.0),
+ enable_tiling=lambda **_kwargs: None,
+ encode=encode,
+ encoder=torch.nn.Identity(),
+ latents_mean=torch.zeros(LTX2_LATENT_CHANNELS),
+ latents_std=torch.ones(LTX2_LATENT_CHANNELS),
+ parameters=lambda: iter([torch.zeros(1)]),
+ spatial_compression_ratio=32,
+ temporal_compression_ratio=8,
+ use_framewise_decoding=False,
+ use_framewise_encoding=False,
+ use_tiling=False,
+ )
+ context.models.load.return_value.model_on_device.return_value.__enter__.return_value = (None, vae)
+ return encoded
+
+
+def test_an_extension_conditions_on_the_tail_of_the_clip_not_its_head(monkeypatch: pytest.MonkeyPatch) -> None:
+ """The whole point is to continue from where the clip ENDED. Reading the head would anchor the
+ continuation to the wrong moment, and nothing downstream could tell."""
+ captured: dict = {}
+
+ def fake_read(_path, **kwargs):
+ captured.update(kwargs)
+ return _canvas_clip([np.full((512, 768, 3), index, dtype=np.uint8) for index in range(kwargs["cap"])])
+
+ monkeypatch.setattr(ltx2_extend_conditioning, "read_canvas_frames", fake_read)
+ context = _ltx2_vae_context()
+ _stub_video_vae(context, latent_frames=3, height=512, width=768)
+ context.tensors.save.return_value = "extend_conditioning"
+
+ output = _extend_conditioning(width=768, height=512, context_frames=17).invoke(context)
+
+ assert captured["tail"] is True
+ assert captured["cap"] == 17
+ assert output.context_frames == 17
+ # Held from the first frame onward, which is what makes it a leading anchor rather than a keyframe.
+ assert output.video_conditioning.frame_index == 0
+
+
[email protected](("requested", "expected"), [(17, 17), (20, 17), (9, 9), (100, 97)])
+def test_the_context_length_is_snapped_down_to_whole_frame_groups(
+ monkeypatch: pytest.MonkeyPatch, requested: int, expected: int
+) -> None:
+ """The VAE encodes 8k + 1 frames, so a ragged request would have its tail dropped after the
+ read. Snapping first means the read asks for what it can actually use."""
+ captured: dict = {}
+
+ def fake_read(_path, **kwargs):
+ captured.update(kwargs)
+ return _canvas_clip([np.zeros((512, 768, 3), dtype=np.uint8) for _ in range(kwargs["cap"])])
+
+ monkeypatch.setattr(ltx2_extend_conditioning, "read_canvas_frames", fake_read)
+ context = _ltx2_vae_context()
+ _stub_video_vae(context, latent_frames=(expected - 1) // 8 + 1, height=512, width=768)
+ context.tensors.save.return_value = "extend_conditioning"
+
+ output = _extend_conditioning(width=768, height=512, context_frames=requested).invoke(context)
+
+ assert output.context_frames == expected
+ # Snapped BEFORE the read, so the decode is asked for what the VAE can actually use rather than
+ # for frames that are then thrown away.
+ assert captured["cap"] == expected
+
+
+def test_a_source_shorter_than_the_context_keeps_its_end(monkeypatch: pytest.MonkeyPatch) -> None:
+ """A clip with fewer frames than asked for still has to contribute its last whole group.
+ Trimming the wrong end anchors the continuation to where the clip BEGAN -- which still encodes,
+ still validates, and is simply the wrong moment."""
+ frames = [np.full((512, 768, 3), index, dtype=np.uint8) for index in range(12)]
+ monkeypatch.setattr(
+ ltx2_extend_conditioning, "read_canvas_frames", lambda _path, **_kwargs: _canvas_clip(list(frames))
+ )
+ context = _ltx2_vae_context()
+ encoded = _stub_video_vae(context, latent_frames=2, height=512, width=768)
+ context.tensors.save.return_value = "extend_conditioning"
+
+ output = _extend_conditioning(width=768, height=512, context_frames=17).invoke(context)
+
+ assert output.context_frames == 9
+ # Frames 3..11 of the source, not 0..8.
+ held = encoded["pixels"][0, 0, :, 0, 0].float()
+ assert held.tolist() == pytest.approx([(index / 127.5) - 1.0 for index in range(3, 12)], abs=2e-3)
+
+
+def test_a_clip_too_short_to_continue_from_says_how_much_is_needed(monkeypatch: pytest.MonkeyPatch) -> None:
+ monkeypatch.setattr(
+ ltx2_extend_conditioning,
+ "read_canvas_frames",
+ lambda _path, **_kwargs: _canvas_clip([np.zeros((512, 768, 3), dtype=np.uint8) for _ in range(5)]),
+ )
+
+ with pytest.raises(ValueError, match="at least 9 frames of the source"):
+ _extend_conditioning(width=768, height=512).invoke(_ltx2_vae_context())
+
+
+# Ten seconds at 24 fps. The audio stubs hand the node a track of exactly this length, so its trim
+# to the picture's span is a no-op unless a test deliberately makes the decode longer.
+SOURCE_CLIP_FRAMES = 240
+
+
+def _stub_extend_audio(
+ monkeypatch: pytest.MonkeyPatch, context: MagicMock, *, samples: np.ndarray | None, rows: int = 64
+) -> dict:
+ """The soundtrack side of the extend node, with the mel front end and VAE stubbed out."""
+ seen: dict = {}
+
+ monkeypatch.setattr(
+ ltx2_extend_conditioning,
+ "extract_audio_pcm",
+ lambda _path, **_kwargs: None if samples is None else (samples, 16000),
+ )
+
+ def fake_encode(_audio_vae, _vocoder, waveform, *, sample_rate):
+ seen["waveform"] = waveform.clone()
+ seen["sample_rate"] = sample_rate
+ # One row per index, so a trim is visible in the values rather than only in the count.
+ return torch.arange(rows, dtype=torch.float32).reshape(1, rows, 1).expand(1, rows, 128).contiguous()
+
+ monkeypatch.setattr(ltx2_extend_conditioning, "encode_audio_latents", fake_encode)
+
+ saved: list[torch.Tensor] = []
+
+ def save(tensor):
+ saved.append(tensor)
+ return f"saved_{len(saved)}"
+
+ context.tensors.save.side_effect = save
+ seen["saved"] = saved
+ return seen
+
+
+def _extend_with_audio(**kwargs) -> LTX2ExtendConditioningInvocation:
+ return _extend_conditioning(
+ width=768,
+ height=512,
+ audio_vae=VAEField(vae=_identifier("audio_vae")),
+ vocoder=LTX2VocoderField(vocoder=_identifier("vocoder")),
+ **kwargs,
+ )
+
+
+def test_an_extension_holds_the_closing_sound_of_the_clip_it_continues(monkeypatch: pytest.MonkeyPatch) -> None:
+ """The join crossfades the held frames out of both halves. The picture survives that because it
+ is held on both sides; the soundtrack only does if it is held too. Left generated, the blend
+ fades invented audio in against the source's real audio and the new soundtrack starts an overlap
+ early -- audible as a seam at the junction."""
+ monkeypatch.setattr(
+ ltx2_extend_conditioning,
+ "read_canvas_frames",
+ lambda _path, **kwargs: _canvas_clip(
+ [np.zeros((512, 768, 3), dtype=np.uint8) for _ in range(kwargs["cap"])], SOURCE_CLIP_FRAMES
+ ),
+ )
+ context = _ltx2_vae_context()
+ _stub_video_vae(context, latent_frames=3, height=512, width=768)
+ # Ten seconds of sound, each sample naming its own index.
+ samples = np.arange(160000, dtype=np.float32).reshape(1, -1)
+ seen = _stub_extend_audio(monkeypatch, context, samples=samples)
+
+ output = _extend_with_audio(context_frames=17, fps=24.0).invoke(context)
+
+ assert output.audio_conditioning is not None
+ # The clip's END: the same 17 frames the picture holds, not its opening.
+ wanted = round(17 / 24.0 * 16000)
+ assert seen["waveform"].shape[1] == wanted
+ assert seen["waveform"][0, 0].item() == pytest.approx(160000 - wanted)
+ # Trimmed with the same function the denoise sizes the stream from, so the two cannot disagree.
+ held = audio_latent_count(17, 24.0)
+ assert output.audio_conditioning.num_audio_latents == held
+ assert output.audio_conditioning.num_frames == 17
+ assert output.audio_conditioning.fps == 24.0
+ rows = seen["saved"][0]
+ assert rows.shape[1] == held
+ # The FIRST rows of the encode, which are the earliest of the held span -- the opening of the
+ # continuation. Taking them from the end would hold the wrong instant.
+ assert rows[0, :, 0].tolist() == list(range(held))
+
+
+def test_the_held_sound_is_cut_from_the_span_the_picture_occupies_not_the_decode(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ """A decoded AAC track runs past the last frame by the codec's end padding -- 688 samples
+ (14.3 ms) on the muxes the trim node emits -- and its content is front-aligned. Taking the tail
+ of the untrimmed decode would hold audio that starts 14 ms after the picture does and ends in
+ padding, and the join would blend it against the source's own correctly-aligned tail: comb
+ filtering across the whole overlap, which is the artifact this is here to remove."""
+ monkeypatch.setattr(
+ ltx2_extend_conditioning,
+ "read_canvas_frames",
+ lambda _path, **kwargs: _canvas_clip(
+ [np.zeros((512, 768, 3), dtype=np.uint8) for _ in range(kwargs["cap"])], SOURCE_CLIP_FRAMES
+ ),
+ )
+ context = _ltx2_vae_context()
+ _stub_video_vae(context, latent_frames=3, height=512, width=768)
+ # The picture spans 240 frames at 24 fps = 160000 samples; the decode carries 688 more.
+ picture = SOURCE_CLIP_FRAMES // 24 * 16000
+ seen = _stub_extend_audio(monkeypatch, context, samples=np.arange(picture + 688, dtype=np.float32).reshape(1, -1))
+
+ _extend_with_audio(context_frames=17, fps=24.0).invoke(context)
+
+ wanted = round(17 / 24.0 * 16000)
+ assert seen["waveform"].shape[1] == wanted
+ # Ends where the PICTURE ends, not where the decode does.
+ assert seen["waveform"][0, -1].item() == pytest.approx(picture - 1)
+ assert seen["waveform"][0, 0].item() == pytest.approx(picture - wanted)
+
+
+def test_an_extension_of_a_silent_clip_still_makes_its_own_soundtrack(monkeypatch: pytest.MonkeyPatch) -> None:
+ """Nothing to hold is not a failure: the continuation invents the whole soundtrack, as it did
+ before any of this existed."""
+ monkeypatch.setattr(
+ ltx2_extend_conditioning,
+ "read_canvas_frames",
+ lambda _path, **kwargs: _canvas_clip(
+ [np.zeros((512, 768, 3), dtype=np.uint8) for _ in range(kwargs["cap"])], SOURCE_CLIP_FRAMES
+ ),
+ )
+ context = _ltx2_vae_context()
+ _stub_video_vae(context, latent_frames=3, height=512, width=768)
+ _stub_extend_audio(monkeypatch, context, samples=None)
+
+ assert _extend_with_audio(context_frames=17).invoke(context).audio_conditioning is None
+
+
+def test_a_track_that_ends_early_holds_silence_anchored_to_the_picture(monkeypatch: pytest.MonkeyPatch) -> None:
+ """Uploaded footage often has sound that stops before the picture does. Taking the tail of the
+ SHORT track would hold an earlier instant than the frames held beside it -- a clip whose audio
+ stops two seconds early would hold sound from two seconds before those frames, and the join
+ would blend it against the source's real soundtrack. The held span is padded to the picture
+ instead, so what is held is the silence the clip actually has there."""
+ monkeypatch.setattr(
+ ltx2_extend_conditioning,
+ "read_canvas_frames",
+ lambda _path, **kwargs: _canvas_clip(
+ [np.zeros((512, 768, 3), dtype=np.uint8) for _ in range(kwargs["cap"])], SOURCE_CLIP_FRAMES
+ ),
+ )
+ context = _ltx2_vae_context()
+ _stub_video_vae(context, latent_frames=3, height=512, width=768)
+ # Sound for the first half second of a ten-second clip, every sample naming its own index.
+ seen = _stub_extend_audio(monkeypatch, context, samples=np.arange(1, 8001, dtype=np.float32).reshape(1, -1))
+
+ output = _extend_with_audio(context_frames=17, fps=24.0).invoke(context)
+
+ assert output.audio_conditioning is not None
+ wanted = round(17 / 24.0 * 16000)
+ assert seen["waveform"].shape[1] == wanted
+ # Entirely silence: the picture's last 0.7s is long after the track ran out. Non-zero values
+ # here would mean the slice had drifted back to where the sound actually was.
+ assert seen["waveform"].abs().max().item() == 0.0
+
+
+def test_an_extension_without_the_audio_models_holds_only_the_picture(monkeypatch: pytest.MonkeyPatch) -> None:
+ """The audio models are optional inputs, so a graph that does not wire them must still run."""
+ monkeypatch.setattr(
+ ltx2_extend_conditioning,
+ "read_canvas_frames",
+ lambda _path, **kwargs: _canvas_clip(
+ [np.zeros((512, 768, 3), dtype=np.uint8) for _ in range(kwargs["cap"])], SOURCE_CLIP_FRAMES
+ ),
+ )
+ context = _ltx2_vae_context()
+ _stub_video_vae(context, latent_frames=3, height=512, width=768)
+ context.tensors.save.return_value = "extend_conditioning"
+
+ output = _extend_conditioning(width=768, height=512, context_frames=17).invoke(context)
+
+ assert output.audio_conditioning is None
+ assert output.context_frames == 17
+
+
+def test_a_context_longer_than_the_model_can_generate_is_refused_before_any_decoding() -> None:
+ """A tail read cannot stop early, so `context_frames` sizes a buffer of SOURCE-resolution frames
+ held before any of them are fitted to the canvas. Unbounded, asking for 1001 frames of a 1080p
+ clip reserves ~6 GiB of host memory and encodes all of it before the denoise rejects the anchor
+ for exceeding the generation's length. Nothing past the model's own maximum is usable anyway."""
+ with pytest.raises(ValidationError):
+ _extend_conditioning(width=768, height=512, context_frames=LTX2_MAX_EXTEND_CONTEXT_FRAMES + 1)
+
+ # The boundary itself is allowed, so the cap does not quietly exclude a usable length.
+ assert _extend_conditioning(context_frames=LTX2_MAX_EXTEND_CONTEXT_FRAMES).context_frames == (
+ LTX2_MAX_EXTEND_CONTEXT_FRAMES
+ )
+
+
+def test_an_extension_refuses_a_vae_from_another_architecture() -> None:
+ with pytest.raises(ValueError, match="Expected an LTX-2"):
+ _extend_conditioning().invoke(_ltx2_vae_context(BaseModelType.Wan))
+
+
+def _full_video_field(num_frames: int = 9, **kwargs) -> LTX2FullVideoConditioningField:
+ defaults = {
+ "latents_name": "video",
+ "width": 768,
+ "height": 512,
+ "num_frames": num_frames,
+ "fps": 24.0,
+ "source_video_name": "clip.mp4",
+ }
+ return LTX2FullVideoConditioningField(**{**defaults, **kwargs})
+
+
+def test_video_to_audio_writes_the_users_own_frames_at_their_own_size(monkeypatch: pytest.MonkeyPatch) -> None:
+ """The picture was the given half, so decoding the held latents would hand back a cover-cropped
+ VAE round trip of footage the user already has. Their frames are written instead -- at the
+ resolution they shot, not the canvas the model needed."""
+ source = [np.full((360, 640, 3), index, dtype=np.uint8) for index in range(12)]
+ monkeypatch.setattr(ltx2_latents_to_video, "iter_video_frames", lambda *_a, **_k: iter(source))
+
+ node = _latents_to_video(source_video=_full_video_field(num_frames=9))
+ frames, height, width = node._source_frames(_context())
+ written = list(frames)
+
+ # Trimmed to what was generated, and untouched otherwise.
+ assert (height, width) == (360, 640)
+ assert len(written) == 9
+ assert [int(frame[0, 0, 0]) for frame in written] == list(range(9))
+
+
+def test_a_source_clip_that_shrank_since_it_was_encoded_is_refused(monkeypatch: pytest.MonkeyPatch) -> None:
+ monkeypatch.setattr(
+ ltx2_latents_to_video,
+ "iter_video_frames",
+ lambda *_a, **_k: iter([np.zeros((360, 640, 3), dtype=np.uint8) for _ in range(4)]),
+ )
+
+ frames, _height, _width = _latents_to_video(source_video=_full_video_field(num_frames=9))._source_frames(_context())
+
+ with pytest.raises(ValueError, match="now decodes to 4 frame"):
+ list(frames)
+
+
+def test_the_source_clip_is_streamed_rather_than_collected(monkeypatch: pytest.MonkeyPatch) -> None:
+ """These are full-resolution frames -- a 4K clip of 241 is 5.6 GiB -- and none of it is budgeted
+ by the model cache. Only the first frame may be held, to report the geometry the writer needs."""
+ decoded = 0
+
+ def counting_frames(*_a, **_k):
+ nonlocal decoded
+ for index in range(12):
+ decoded += 1
+ yield np.full((360, 640, 3), index, dtype=np.uint8)
+
+ monkeypatch.setattr(ltx2_latents_to_video, "iter_video_frames", counting_frames)
+ node = _latents_to_video(source_video=_full_video_field(num_frames=9))
+ frames, _height, _width = node._source_frames(_context())
+
+ # Geometry is known without draining the clip.
+ assert decoded == 1
+ next(frames)
+ assert decoded == 1 # the first frame was the one already read
+ next(frames)
+ assert decoded == 2
+
+
+def test_the_held_latents_are_not_decoded_when_the_source_clip_is_wired(monkeypatch: pytest.MonkeyPatch) -> None:
+ """The whole point is to skip that work: decoding is a second tiled VAE pass over a clip whose
+ pixels are already on disk."""
+ monkeypatch.setattr(
+ ltx2_latents_to_video,
+ "iter_video_frames",
+ lambda *_a, **_k: iter([np.zeros((360, 640, 3), dtype=np.uint8) for _ in range(9)]),
+ )
+ node = _latents_to_video(source_video=_full_video_field(num_frames=9))
+ monkeypatch.setattr(
+ type(node), "_decode_video", lambda *_a, **_k: pytest.fail("the held latents were decoded anyway")
+ )
+ monkeypatch.setattr(type(node), "_decode_audio_to_wav", lambda *_a, **_k: None)
+ context = _context()
+ context.util.is_canceled.return_value = False
+ context.videos.save.side_effect = _StopAfterState
+
+ with pytest.raises(_StopAfterState):
+ node.invoke(context)
+
+
+def test_a_last_frame_encode_wired_into_the_first_frame_slot_is_refused() -> None:
+ """The two slots are different mechanisms -- one overwrites the opening grid tokens, the other
+ appends -- so this slot cannot honour a non-zero index. Holding it at frame 0 anyway would do
+ the opposite of what the field's own description promises."""
+ node = _denoise(video_conditioning=_keyframe_field(-1))
+
+ with pytest.raises(ValueError, match="Keyframe Conditioning instead"):
+ node._load_image_latents(_context())
+
+
+def test_the_reservation_covers_the_keyframe_rows_the_transformer_attends_over(monkeypatch) -> None:
+ """A held keyframe adds rows to every forward -- 858 on top of 13728 at 1248x704 x121 -- and the
+ working-memory fit is tightest exactly where running out costs the most."""
+ import invokeai.app.invocations.ltx2.ltx2_denoise as denoise_module
+
+ captured: list[int] = []
+ node = _denoise(num_frames=121, keyframe_conditioning=_keyframe_field(-1), cfg_scale=1.0, audio_cfg_scale=1.0)
+ monkeypatch.setattr(
+ type(node),
+ "_estimate_working_memory",
+ lambda _self, sequence, _audio: captured.append(sequence) or (_ for _ in ()).throw(_StopAfterState()),
+ )
+ monkeypatch.setattr(denoise_module, "build_denoise_state", _denoise_state_stub(keyframe_rows=858))
+ context = _context()
+ context.tensors.load.return_value = torch.zeros(1, LTX2_LATENT_CHANNELS, 1, 22, 39)
+ context.conditioning.load.return_value = SimpleNamespace(
+ conditionings=[
+ LTX2ConditioningInfo(
+ video_embeds=torch.zeros(1, 4, 8),
+ audio_embeds=torch.zeros(1, 4, 6),
+ attention_mask=torch.ones(1, 4, dtype=torch.int64),
+ )
+ ]
+ )
+
+ with pytest.raises(_StopAfterState):
+ node.invoke(context)
+
+ assert captured == [13728 + 858]
+
+
+def _denoise_state_stub(keyframe_rows: int):
+ """A state whose sequence already carries the appended rows, as the real one would."""
+
+ def build(**_kwargs):
+ state = SimpleNamespace(
+ video_latents=torch.zeros(1, 13728 + keyframe_rows, LTX2_LATENT_CHANNELS),
+ audio_latents_count=126,
+ )
+ return state
+
+ return build
+
+
class _StopAfterState(Exception):
"""Ends the invocation once the state has been built, before any model is loaded."""
diff --git a/tests/app/services/workflow_records/test_default_workflows_registry.py b/tests/app/services/workflow_records/test_default_workflows_registry.py
index 6baa9d6706..2d8d0c2a30 100644
--- a/tests/app/services/workflow_records/test_default_workflows_registry.py
+++ b/tests/app/services/workflow_records/test_default_workflows_registry.py
@@ -16,6 +16,7 @@ import pytest
from invokeai.app.invocations.baseinvocation import InvocationRegistry
from invokeai.app.services.shared.graph import * # noqa: F401 F403 -- imports all invocations, populating the registry
+from invokeai.app.services.shared.graph import are_connection_types_compatible
WORKFLOW_DIR = Path("invokeai/app/services/workflow_records/default_workflows")
WAN_WORKFLOWS = sorted(
@@ -26,8 +27,8 @@ WAN_WORKFLOWS = sorted(
def test_wan_workflow_glob_finds_the_bundled_workflows() -> None:
# Guard against the glob silently matching nothing (e.g. after a rename).
- # 12 Wan workflows + 6 MiniMax H3 video workflows.
- assert len(WAN_WORKFLOWS) == 18
+ # 12 Wan workflows + 6 MiniMax H3 video workflows + 1 LTX-2 video workflow.
+ assert len(WAN_WORKFLOWS) == 19
@pytest.mark.parametrize("workflow_path", WAN_WORKFLOWS, ids=lambda p: p.stem)
@@ -52,3 +53,68 @@ def test_bundled_workflow_nodes_match_invocation_registry(workflow_path: Path) -
assert input_name in field_names, (
f"{workflow_path.name}: node '{node_type}' embeds unknown input '{input_name}'"
)
+
+
[email protected]("workflow_path", WAN_WORKFLOWS, ids=lambda p: p.stem)
+def test_bundled_workflow_edges_are_ones_the_queue_will_accept(workflow_path: Path) -> None:
+ """Every edge must connect field types the queue accepts, as `Graph.validate_self()` checks.
+
+ This covers edge TYPING only -- not the cycle, duplicate-input or required-input checks
+ `validate_self` also performs.
+
+ A workflow whose wiring the queue refuses is worse than a broken one: it loads, it draws, and
+ it fails only when the user presses Invoke. The trap is asymmetric numeric coercion -- `int` is
+ accepted where a `float` is wanted but never the reverse -- so an edge like
+ `extract_video_range.fps -> video_concat.fps` (float into `Optional[int]`) is rejected after
+ the model has loaded. This is the same check the compiled-graph contract test applies to the
+ panel; bundled workflows are hand-authored and need it more.
+ """
+ invocations = InvocationRegistry.get_invocations_map()
+ workflow = json.loads(workflow_path.read_text(encoding="utf-8"))
+ node_types = {node["data"]["id"]: node["data"]["type"] for node in workflow["nodes"]}
+
+ for edge in workflow["edges"]:
+ # A collapsed edge stands in for every connection between two collapsed nodes and names no
+ # handles; there is nothing to type-check. Several bundled workflows outside this glob carry
+ # them, and one saved from the editor would land here.
+ if "sourceHandle" not in edge or "targetHandle" not in edge:
+ continue
+ source_type = node_types.get(edge["source"])
+ target_type = node_types.get(edge["target"])
+ assert source_type is not None, f"{workflow_path.name}: edge from unknown node {edge['source']}"
+ assert target_type is not None, f"{workflow_path.name}: edge to unknown node {edge['target']}"
+
+ output_cls = invocations[source_type].get_output_annotation()
+ source_field = output_cls.model_fields.get(edge["sourceHandle"])
+ target_field = invocations[target_type].model_fields.get(edge["targetHandle"])
+ assert source_field is not None, f"{workflow_path.name}: '{source_type}' has no output '{edge['sourceHandle']}'"
+ assert target_field is not None, f"{workflow_path.name}: '{target_type}' has no input '{edge['targetHandle']}'"
+
+ assert are_connection_types_compatible(source_field.annotation, target_field.annotation), (
+ f"{workflow_path.name}: the queue refuses "
+ f"{source_type}.{edge['sourceHandle']} -> {target_type}.{edge['targetHandle']} "
+ f"({source_field.annotation} into {target_field.annotation})"
+ )
+
+
[email protected]("workflow_path", WAN_WORKFLOWS, ids=lambda p: p.stem)
+def test_every_exposed_field_has_a_value_instance_on_its_node(workflow_path: Path) -> None:
+ """An exposed field with no `data.inputs` entry is silently dropped, and its value never runs.
+
+ Legacy web rebuilds the linear form from `exposedFields` when the stored form is empty and
+ DELETES every rebuilt element whose node carries no matching input instance, so the control
+ never appears; `buildNodesGraph` separately reduces over `data.inputs` alone, so the field is
+ also absent from the enqueued graph. A workflow exposing a required field it stores no instance
+ for therefore loads with warnings, shows no control for it, and cannot be invoked at all -- the
+ failure this catches, which node versions and edge types both look past.
+ """
+ workflow = json.loads(workflow_path.read_text(encoding="utf-8"))
+ instances = {node["data"]["id"]: set(node["data"].get("inputs", {})) for node in workflow["nodes"]}
+
+ for exposed in workflow.get("exposedFields", []):
+ node_id, field_name = exposed["nodeId"], exposed["fieldName"]
+ assert node_id in instances, f"{workflow_path.name}: exposes a field on unknown node {node_id}"
+ assert field_name in instances[node_id], (
+ f"{workflow_path.name}: exposes '{field_name}' on node {node_id}, which stores no value "
+ f"instance for it — the control is dropped on load and the field never reaches the graph"
+ )
diff --git a/tests/backend/ltx2/test_ltx2_clip_frames.py b/tests/backend/ltx2/test_ltx2_clip_frames.py
new file mode 100644
index 0000000000..7b21c9f2d5
--- /dev/null
+++ b/tests/backend/ltx2/test_ltx2_clip_frames.py
@@ -0,0 +1,131 @@
+"""Reading and encoding a gallery clip's frames onto an LTX-2 canvas.
+
+Every caller of these two functions mocks them away, so without this file `tail` could be a no-op
+and the whole suite would still pass -- while every video extension silently anchored on the
+opening of the clip it was meant to continue.
+"""
+
+from types import SimpleNamespace
+
+import numpy as np
+import pytest
+import torch
+
+import invokeai.backend.ltx2.clip_frames as clip_frames
+from invokeai.backend.ltx2.clip_frames import encode_canvas_clip, read_canvas_frames
+from invokeai.backend.ltx2.constants import LTX2_LATENT_CHANNELS
+
+CANVAS = {"height": 64, "width": 96}
+
+
+def _source(count: int, height: int = 128, width: int = 192) -> list[np.ndarray]:
+ """Frames whose top-left pixel is their own index, so a slice is identifiable."""
+ return [np.full((height, width, 3), index, dtype=np.uint8) for index in range(count)]
+
+
+def decoded(monkeypatch: pytest.MonkeyPatch):
+ def install(frames: list[np.ndarray]) -> dict[str, int]:
+ counter = {"decoded": 0}
+
+ def iter_frames(*_args, **_kwargs):
+ for frame in frames:
+ counter["decoded"] += 1
+ yield frame
+
+ monkeypatch.setattr(clip_frames, "iter_video_frames", iter_frames)
+ return counter
+
+ return install
+
+
+def test_the_head_read_stops_at_the_cap(decoded) -> None:
+ counter = decoded(_source(40))
+
+ frames, source_frames = read_canvas_frames(None, cap=10, **CANVAS)
+
+ assert [int(frame[0, 0, 0]) for frame in frames] == list(range(10))
+ # Stopped rather than decoded and discarded: nothing upstream bounds a clip's length.
+ assert counter["decoded"] == 10
+ # And so it cannot say how long the clip is -- it never reached the end.
+ assert source_frames is None
+
+
+def test_the_tail_read_keeps_the_END_of_the_clip(decoded) -> None:
+ """The whole point of an extension is to continue from where the clip stopped. Keeping the head
+ still encodes, still validates, and anchors the continuation to the wrong moment."""
+ decoded(_source(40))
+
+ frames, source_frames = read_canvas_frames(None, cap=5, tail=True, **CANVAS)
+
+ assert [int(frame[0, 0, 0]) for frame in frames] == [35, 36, 37, 38, 39]
+ # A tail read runs to the end, so it knows the clip's whole length -- which is the only way a
+ # caller can convert the picture's span into seconds and line a soundtrack up against it.
+ assert source_frames == 40
+
+
+def test_a_clip_shorter_than_the_cap_comes_back_whole(decoded) -> None:
+ decoded(_source(3))
+
+ assert len(read_canvas_frames(None, cap=10, tail=True, **CANVAS).frames) == 3
+
+
+def test_every_frame_returned_is_on_the_canvas(decoded) -> None:
+ decoded(_source(4, height=128, width=192))
+
+ for tail in (False, True):
+ frames, _ = read_canvas_frames(None, cap=4, tail=tail, **CANVAS)
+ assert all(frame.shape == (64, 96, 3) for frame in frames), tail
+
+
+def test_the_tail_read_fits_only_the_frames_it_keeps(monkeypatch: pytest.MonkeyPatch, decoded) -> None:
+ """A tail read cannot stop early -- the last frames are only known once the clip ends -- so
+ fitting on the way past would run a LANCZOS resize over the whole recording to keep a second of
+ it: ~145 s for a five-minute source, and twice that on a two-stage run."""
+ decoded(_source(40))
+ fits = {"count": 0}
+ real_fit = clip_frames.fit_to_canvas
+
+ def counting_fit(image, height, width):
+ fits["count"] += 1
+ return real_fit(image, height, width)
+
+ monkeypatch.setattr(clip_frames, "fit_to_canvas", counting_fit)
+
+ read_canvas_frames(None, cap=5, tail=True, **CANVAS)
+
+ assert fits["count"] == 5
+
+
+def test_the_encode_releases_the_frames_it_was_handed() -> None:
+ """The stack is a second copy of the clip; holding both across the encode is hundreds of MiB at
+ the callers' own caps that no model-cache budget accounts for."""
+ frames = [np.zeros((64, 96, 3), dtype=np.uint8) for _ in range(9)]
+ captured: dict[str, torch.Tensor] = {}
+
+ def encode(pixels):
+ captured["pixels"] = pixels
+ return SimpleNamespace(latent_dist=SimpleNamespace(mode=lambda: torch.zeros(1, LTX2_LATENT_CHANNELS, 2, 2, 3)))
+
+ vae = SimpleNamespace(
+ buffers=lambda: iter([]),
+ config=SimpleNamespace(scaling_factor=1.0),
+ enable_tiling=lambda **_kwargs: None,
+ encode=encode,
+ encoder=torch.nn.Identity(),
+ latents_mean=torch.zeros(LTX2_LATENT_CHANNELS),
+ latents_std=torch.ones(LTX2_LATENT_CHANNELS),
+ parameters=lambda: iter([torch.zeros(1)]),
+ spatial_compression_ratio=32,
+ temporal_compression_ratio=8,
+ use_framewise_decoding=False,
+ use_framewise_encoding=False,
+ use_tiling=False,
+ )
+
+ encode_canvas_clip(vae, frames, tile_size=512, temporal_tile=16)
+
+ assert frames == []
+ # And the clip reached the VAE as [1, 3, T, H, W] in [-1, 1].
+ assert captured["pixels"].shape == (1, 3, 9, 64, 96)
+ assert float(captured["pixels"].min()) == pytest.approx(-1.0, abs=2e-3)
diff --git a/tests/backend/ltx2/test_ltx2_denoise.py b/tests/backend/ltx2/test_ltx2_denoise.py
index b90ae65b7c..6046cd861b 100644
--- a/tests/backend/ltx2/test_ltx2_denoise.py
+++ b/tests/backend/ltx2/test_ltx2_denoise.py
@@ -14,7 +14,13 @@ from invokeai.backend.ltx2.constants import (
LTX2_REFINE_NOISE_SEED_OFFSET,
LTX2_STAGE_2_NOISE_SCALE,
)
-from invokeai.backend.ltx2.denoise import build_denoise_state, build_refine_state, denoise, preview_latent_frame
+from invokeai.backend.ltx2.denoise import (
+ _step_noise,
+ build_denoise_state,
+ build_refine_state,
+ denoise,
+ preview_latent_frame,
+)
from invokeai.backend.ltx2.guidance import LTX2Guidance
from invokeai.backend.ltx2.packing import (
audio_latent_count,
@@ -63,7 +69,14 @@ class TransformerStub(torch.nn.Module):
video, audio = kwargs["hidden_states"].float(), kwargs["audio_hidden_states"].float()
# x0 = x - sigma * v, so this velocity predicts the target at any sigma.
sigma = float(kwargs["sigma"][0]) / 1000.0
- video_velocity = torch.zeros_like(video) if self.target is None else (video - self.target) / max(sigma, 1e-6)
+ target = self.target
+ if target is not None and target.shape[1] < video.shape[1]:
+ # Keyframe tokens ride on the end of the sequence. The target is extended with a value
+ # they are NOT already at, so they drift unless something holds them -- extending with
+ # their own value would give them zero velocity and quietly excuse the mask from
+ # working at all.
+ target = torch.cat([target, torch.full_like(video[:, target.shape[1] :], -3.0)], dim=1)
+ video_velocity = torch.zeros_like(video) if target is None else (video - 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)
)
@@ -326,6 +339,295 @@ def test_a_conditioning_clip_encoded_for_another_canvas_is_refused() -> None:
_state(frozen_video_latents=torch.randn(1, LTX2_LATENT_CHANNELS, LATENT[0], LATENT[1] + 1, LATENT[2]))
+def _keyframe(seed: int = 8) -> torch.Tensor:
+ return torch.randn(1, LTX2_LATENT_CHANNELS, 1, LATENT[1], LATENT[2], generator=torch.Generator().manual_seed(seed))
+
+
+def test_a_keyframe_rides_on_the_end_of_the_sequence_and_is_trimmed_off_the_result() -> None:
+ """A last frame cannot overwrite grid tokens the way the first frame does -- the generation
+ needs that position too -- so it is appended, and the model sees a longer sequence than the clip
+ it returns. If the extra rows survived into the output, unpacking would reshape garbage."""
+ keyframe = _keyframe()
+ state = _state(keyframe_latents=keyframe, keyframe_latent_index=LATENT[0] - 1)
+ transformer = TransformerStub(target=torch.randn(1, ROWS, LTX2_LATENT_CHANNELS))
+ extra = LATENT[1] * LATENT[2]
+
+ assert state.keyframe_tokens == extra
+ assert state.video_latents.shape[1] == ROWS + extra
+
+ video, _ = _denoise(transformer, state, LTX2Guidance(**OFF))
+
+ # What the model was handed, versus what came back.
+ for call in transformer.calls:
+ assert call["hidden_states"].shape[1] == ROWS + extra
+ assert call["video_coords"].shape[2] == ROWS + extra
+ assert video.shape[1] == ROWS
+ unpack_video_latents(video, *LATENT) # would raise if the trim were wrong
+
+
+def test_a_keyframe_is_presented_clean_at_every_forward_and_keeps_its_value() -> None:
+ keyframe = _keyframe()
+ state = _state(keyframe_latents=keyframe, keyframe_latent_index=LATENT[0] - 1)
+ transformer = TransformerStub(target=torch.randn(1, ROWS, LTX2_LATENT_CHANNELS))
+ packed = pack_video_latents(keyframe)
+
+ _denoise(transformer, state, LTX2Guidance(**OFF))
+
+ for call in transformer.calls:
+ held = call["hidden_states"].float()[:, ROWS:]
+ assert torch.allclose(held, packed, atol=1e-5)
+ assert torch.equal(call["timestep"][0, ROWS:], torch.zeros(state.keyframe_tokens))
+ assert (call["timestep"][0, :ROWS] > 0).all()
+
+
+def test_a_keyframes_coordinates_place_it_at_its_own_instant_not_at_frame_zero() -> None:
+ """The coordinates are the only thing saying *when* the held frame is; without them the model
+ reads it as more of frame 0 and interpolates toward it from the start."""
+ index = LATENT[0] - 1
+ state = _state(keyframe_latents=_keyframe(), keyframe_latent_index=index)
+ transformer = TransformerStub()
+
+ _denoise(transformer, state, LTX2Guidance(**OFF))
+
+ coords = transformer.calls[0]["video_coords"]
+ keyframe_start = coords[0, 0, ROWS:, 0]
+ # (index - 1) * 8 + 1 pixel frames in, expressed in seconds at the run's own frame rate.
+ assert torch.allclose(keyframe_start, torch.full_like(keyframe_start, ((index - 1) * 8 + 1) / 24.0))
+
+
+def test_a_first_frame_and_a_keyframe_compose_into_first_to_last_interpolation() -> None:
+ """The two use the same mask at different ends of it: one overwrites grid tokens, one appends.
+ Both have to survive the run, or interpolation silently becomes plain image-to-video."""
+ image_latents = torch.randn(1, LTX2_LATENT_CHANNELS, 1, LATENT[1], LATENT[2])
+ keyframe = _keyframe()
+ state = _state(image_latents=image_latents, keyframe_latents=keyframe, keyframe_latent_index=LATENT[0] - 1)
+ transformer = TransformerStub(target=torch.randn(1, ROWS, LTX2_LATENT_CHANNELS))
+
+ video, _ = _denoise(transformer, state, LTX2Guidance(**OFF))
+
+ anchor_rows = LATENT[1] * LATENT[2]
+ for call in transformer.calls:
+ assert torch.equal(call["timestep"][0, :anchor_rows], torch.zeros(anchor_rows))
+ assert torch.equal(call["timestep"][0, ROWS:], torch.zeros(state.keyframe_tokens))
+ assert (call["timestep"][0, anchor_rows:ROWS] > 0).all()
+ assert torch.allclose(unpack_video_latents(video, *LATENT)[:, :, :1], image_latents, atol=1e-5)
+
+
+def test_a_partially_held_keyframe_is_noised_to_its_share_of_the_step() -> None:
+ state = _state(keyframe_latents=_keyframe(), keyframe_latent_index=LATENT[0] - 1, keyframe_strength=0.5)
+ transformer = TransformerStub()
+
+ _denoise(transformer, state, LTX2Guidance(**OFF))
+
+ half = float(state.sigmas[0]) * 1000 * 0.5
+ held = transformer.calls[0]["timestep"][0, ROWS:]
+ assert held.tolist() == pytest.approx([half] * state.keyframe_tokens)
+
+
[email protected]("index", [0, -1, LATENT[0], LATENT[0] + 5])
+def test_a_keyframe_outside_the_clip_or_at_frame_zero_is_refused(index: int) -> None:
+ """Index 0 is the first frame's job, and an index past the end names a moment the clip does
+ not contain -- both are graph mistakes that would otherwise be a shape failure much later."""
+ with pytest.raises(ValueError, match="keyframe"):
+ _state(keyframe_latents=_keyframe(), keyframe_latent_index=index)
+
+
+def test_a_keyframe_encoded_for_another_canvas_is_refused() -> None:
+ with pytest.raises(ValueError, match="keyframe was encoded"):
+ _state(
+ keyframe_latents=torch.randn(1, LTX2_LATENT_CHANNELS, 1, LATENT[1] + 1, LATENT[2]),
+ keyframe_latent_index=LATENT[0] - 1,
+ )
+
+
[email protected]("distilled", [False, True])
+def test_adding_a_keyframe_does_not_reshuffle_the_generation(distilled: bool) -> None:
+ """The ancestral branch draws fresh noise every step from one shared stream, sized from the
+ sequence -- which the keyframe rows are part of. Drawing for them would shift the audio noise
+ and, from the next step on, the picture too, so adding a last frame would not change how a clip
+ ends, it would change the clip. The distilled checkpoint is the only schedule that takes that
+ branch, which is why it needs its own case here."""
+ keyframe = _keyframe()
+ common = {
+ "num_frames": FRAMES,
+ "height": HEIGHT,
+ "width": WIDTH,
+ "fps": 24.0,
+ "seed": 7,
+ "distilled": distilled,
+ "num_steps": 3,
+ }
+ plain = build_denoise_state(**common)
+ with_keyframe = build_denoise_state(**common, keyframe_latents=keyframe, keyframe_latent_index=LATENT[0] - 1)
+
+ assert with_keyframe.eta == (1.0 if distilled else 0.0)
+
+ generators = [torch.Generator(device="cpu").manual_seed(state.noise_seed) for state in (plain, with_keyframe)]
+ for _step in range(3):
+ plain_noise = _step_noise(plain, plain.video_latents, plain.audio_latents, generators[0], torch.device("cpu"))
+ keyed_noise = _step_noise(
+ with_keyframe, with_keyframe.video_latents, with_keyframe.audio_latents, generators[1], torch.device("cpu")
+ )
+ if not distilled:
+ assert plain_noise == (None, None)
+ continue
+ assert torch.equal(keyed_noise[0][:, :ROWS], plain_noise[0])
+ assert torch.equal(keyed_noise[1], plain_noise[1])
+
+
+def test_a_keyframe_beside_a_whole_clip_conditioning_is_refused() -> None:
+ """The frozen branch replaces the entire sequence, taking the appended rows with it and leaving
+ the keyframe's coordinates and token count pointing at tokens that are gone."""
+ with pytest.raises(ValueError, match="keyframe cannot be combined"):
+ _state(
+ keyframe_latents=_keyframe(),
+ keyframe_latent_index=LATENT[0] - 1,
+ frozen_video_latents=torch.randn(1, LTX2_LATENT_CHANNELS, *LATENT),
+ )
+
+
+def test_adding_a_keyframe_does_not_reshuffle_the_noise_the_rest_of_the_clip_would_have_had() -> None:
+ """Its noise is drawn last, so the same seed keeps the same generation and a user adding a last
+ frame sees their clip end differently rather than change entirely."""
+ plain = _state()
+ with_keyframe = _state(keyframe_latents=_keyframe(), keyframe_latent_index=LATENT[0] - 1)
+
+ assert torch.equal(with_keyframe.video_latents[:, :ROWS], plain.video_latents)
+ assert torch.equal(with_keyframe.audio_latents, plain.audio_latents)
+
+
+def test_the_refine_pass_is_given_the_keyframe_again_or_it_would_end_somewhere_else() -> None:
+ """Appended tokens do not go through the upsampler, and the refine pass re-noises every token
+ it does have -- so a last frame held only in stage one is gone by stage two, and a two-stage
+ run would quietly mean something different by "last frame" than a single-stage one."""
+ keyframe = _keyframe()
+ state = build_refine_state(
+ video_latents=torch.randn(1, LTX2_LATENT_CHANNELS, *LATENT),
+ audio_latents=torch.randn(1, audio_latent_count(FRAMES, 24.0), 128),
+ num_frames=FRAMES,
+ height=HEIGHT,
+ width=WIDTH,
+ fps=24.0,
+ seed=7,
+ distilled=False,
+ num_steps=2,
+ noise_scale=LTX2_STAGE_2_NOISE_SCALE,
+ keyframe_latents=keyframe,
+ keyframe_latent_index=LATENT[0] - 1,
+ )
+ transformer = TransformerStub(target=torch.randn(1, ROWS, LTX2_LATENT_CHANNELS))
+
+ assert state.keyframe_tokens == LATENT[1] * LATENT[2]
+
+ video, _ = _denoise(transformer, state, LTX2Guidance(**OFF))
+
+ packed = pack_video_latents(keyframe)
+ for call in transformer.calls:
+ assert torch.allclose(call["hidden_states"].float()[:, ROWS:], packed, atol=1e-5)
+ assert video.shape[1] == ROWS
+
+
[email protected]("held", [1, 2])
+def test_a_leading_anchor_may_span_several_latent_frames_for_an_extension(held: int) -> None:
+ """A still frame says where a clip starts but nothing about how it was moving, so an extension
+ seeded from one stalls or lurches at the join. Several latent frames of the source carry its
+ motion in, held by the same mask over more of the front of the grid."""
+ anchor = torch.randn(1, LTX2_LATENT_CHANNELS, held, LATENT[1], LATENT[2])
+ state = _state(image_latents=anchor)
+ transformer = TransformerStub(target=torch.randn(1, ROWS, LTX2_LATENT_CHANNELS))
+
+ held_rows = held * LATENT[1] * LATENT[2]
+
+ assert state.conditioning_mask is not None
+ assert torch.equal(state.conditioning_mask[0, :held_rows], torch.ones(held_rows))
+ assert torch.equal(state.conditioning_mask[0, held_rows:], torch.zeros(ROWS - held_rows))
+
+ video, _ = _denoise(transformer, state, LTX2Guidance(**OFF))
+
+ for call in transformer.calls:
+ assert torch.equal(call["timestep"][0, :held_rows], torch.zeros(held_rows))
+ assert (call["timestep"][0, held_rows:] > 0).all()
+ assert torch.allclose(unpack_video_latents(video, *LATENT)[:, :, :held], anchor, atol=1e-5)
+
+
+def test_an_anchor_longer_than_the_clip_is_refused() -> None:
+ with pytest.raises(ValueError, match="image conditioning was encoded"):
+ _state(image_latents=torch.randn(1, LTX2_LATENT_CHANNELS, LATENT[0] + 1, LATENT[1], LATENT[2]))
+
+
+def _audio_prefix(rows: int, seed: int = 11) -> torch.Tensor:
+ return torch.randn(1, rows, AUDIO_WIDTH, generator=torch.Generator().manual_seed(seed))
+
+
+def test_holding_the_soundtracks_opening_leaves_the_rest_to_be_generated() -> None:
+ """A continuation replays the source's last moments and the join crossfades exactly those out of
+ both halves. The picture survives that because it is held; the soundtrack has to be held over
+ the same span or the blend fades invented audio in against the source's real audio, and the new
+ soundtrack audibly starts one overlap early."""
+ held = 4
+ prefix = _audio_prefix(held)
+ state = _state(audio_prefix_latents=prefix)
+ transformer = TransformerStub(audio_target=torch.full((1, AUDIO_ROWS, AUDIO_WIDTH), 5.0))
+
+ _, audio = _denoise(transformer, state, LTX2Guidance(**OFF))
+
+ for call in transformer.calls:
+ # The opening is clean at every forward; everything after it is noised as usual.
+ assert torch.equal(call["audio_timestep"][0, :held], torch.zeros(held))
+ assert (call["audio_timestep"][0, held:] > 0).all()
+ assert torch.allclose(call["audio_hidden_states"].float()[:, :held], prefix, atol=1e-5)
+
+ assert torch.allclose(audio[:, :held], prefix, atol=1e-5)
+ # And the rest was genuinely generated, not held.
+ assert torch.allclose(audio[:, held:], torch.full((1, AUDIO_ROWS - held, AUDIO_WIDTH), 5.0), atol=1e-4)
+
+
+def test_the_refine_pass_holds_the_soundtracks_opening_again() -> None:
+ """Stage two re-noises every row, so an opening held only in stage one is gone by the join."""
+ held = 4
+ prefix = _audio_prefix(held)
+ state = build_refine_state(
+ video_latents=torch.randn(1, LTX2_LATENT_CHANNELS, *LATENT),
+ audio_latents=torch.randn(1, audio_latent_count(FRAMES, 24.0), AUDIO_WIDTH),
+ num_frames=FRAMES,
+ height=HEIGHT,
+ width=WIDTH,
+ fps=24.0,
+ seed=7,
+ distilled=False,
+ num_steps=2,
+ noise_scale=LTX2_STAGE_2_NOISE_SCALE,
+ audio_prefix_latents=prefix,
+ )
+ transformer = TransformerStub(audio_target=torch.full((1, AUDIO_ROWS, AUDIO_WIDTH), 5.0))
+
+ _, audio = _denoise(transformer, state, LTX2Guidance(**OFF))
+
+ assert torch.allclose(audio[:, :held], prefix, atol=1e-5)
+
+
+def test_holding_the_whole_soundtrack_and_its_opening_at_once_is_refused() -> None:
+ with pytest.raises(ValueError, match="held whole and held at its opening"):
+ _state(frozen_audio_latents=_soundtrack(), audio_prefix_latents=_audio_prefix(4))
+
+
+ "shape",
+ [
+ (1, 0, AUDIO_WIDTH),
+ (1, AUDIO_ROWS + 1, AUDIO_WIDTH),
+ (1, 4, AUDIO_WIDTH + 1),
+ # Saved tensors are whatever the workflow pointed at. A prefix of the wrong rank must be
+ # named like the others rather than raising a bare IndexError on its missing dimension.
+ (AUDIO_ROWS,),
+ (1, AUDIO_ROWS),
+ ],
+)
+def test_a_held_opening_that_does_not_fit_the_soundtrack_is_refused(shape: tuple[int, ...]) -> None:
+ with pytest.raises(ValueError, match="held opening of the soundtrack"):
+ _state(audio_prefix_latents=torch.zeros(shape))
+
+
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 70eaafb31f..7952e68132 100644
--- a/tests/backend/ltx2/test_ltx2_geometry.py
+++ b/tests/backend/ltx2/test_ltx2_geometry.py
@@ -1,15 +1,26 @@
"""LTX-2 latent geometry: what the canvas rules allow and how latents pack."""
+import importlib.util
+import pathlib
+from types import SimpleNamespace
+
import pytest
import torch
-from invokeai.backend.ltx2.constants import LTX2_FRAME_MODULUS
+from invokeai.backend.ltx2.constants import (
+ LTX2_FRAME_MODULUS,
+ LTX2_PATCH_SIZE,
+ LTX2_PATCH_SIZE_T,
+ LTX2_SPATIAL_COMPRESSION,
+ LTX2_TEMPORAL_COMPRESSION,
+)
from invokeai.backend.ltx2.packing import (
audio_latent_count,
base_canvas,
latent_frame_count,
pack_audio_latents,
pack_video_latents,
+ prepare_keyframe_coords,
require_patch_geometry,
resolve_canvas,
snap_num_frames,
@@ -158,3 +169,97 @@ def test_a_canvas_that_cannot_be_halved_onto_the_grid_is_refused() -> None:
def test_a_grid_that_is_not_a_multiple_of_the_canvas_one_is_refused() -> None:
with pytest.raises(ValueError, match="canvas grid"):
resolve_canvas(16, 9, 1024, multiple=48)
+
+
+def _load_upstream_keyframe_coords():
+ """`_prepare_keyframe_coords` lifted out of the installed diffusers source.
+
+ The module it lives in cannot be imported here: it pulls a Gemma-4 symbol from a transformers
+ version this integration deliberately does not require (the loader builds the text tower alone
+ for exactly that reason). Compiling the one function out of the real file keeps the comparison
+ against upstream's actual code rather than against a copy of it that would drift in step.
+ """
+ import ast
+
+ # Located by path, never imported: importing it is what fails.
+ spec = importlib.util.find_spec("diffusers.pipelines.ltx2.pipeline_ltx2_condition")
+ assert spec is not None and spec.origin is not None, "diffusers LTX-2 condition pipeline not installed"
+ source = pathlib.Path(spec.origin).read_text()
+ tree = ast.parse(source)
+ node = next(
+ (
+ item
+ for cls in tree.body
+ if isinstance(cls, ast.ClassDef)
+ for item in cls.body
+ if isinstance(item, ast.FunctionDef) and item.name == "_prepare_keyframe_coords"
+ ),
+ None,
+ )
+ assert node is not None, (
+ "diffusers no longer defines `_prepare_keyframe_coords` on a pipeline class. Our port in "
+ "`prepare_keyframe_coords` was derived from it, so find where the convention moved and "
+ "re-point this comparison rather than deleting it."
+ )
+ module = ast.Module(body=[node], type_ignores=[])
+ ast.fix_missing_locations(module)
+ namespace: dict = {"torch": torch}
+ exec(compile(module, "<upstream>", "exec"), namespace) # noqa: S102
+
+ return namespace["_prepare_keyframe_coords"]
+
+
+ ("latent_frames", "num_pixel_frames", "pixel_frame_index", "fps"),
+ [(1, 1, 120, 24.0), (1, 1, 0, 24.0), (2, 9, 48, 30.0), (4, 25, 96, 16.0), (1, 1, 480, 60.0)],
+)
+def test_keyframe_coords_match_the_released_pipelines_own(
+ latent_frames: int, num_pixel_frames: int, pixel_frame_index: int, fps: float
+) -> None:
+ """Our port against the implementation it is a port OF, rather than against itself.
+
+ `_prepare_keyframe_coords` is a method on the diffusers pipeline, so it is called here unbound
+ with a stub carrying only the four geometry attributes it reads. If diffusers changes the
+ convention -- the causal fix, the single-frame clamp, the seconds conversion -- this fails
+ instead of our keyframes quietly landing at the wrong instant.
+ """
+ upstream = _load_upstream_keyframe_coords()
+ stub = SimpleNamespace(
+ transformer_spatial_patch_size=LTX2_PATCH_SIZE,
+ transformer_temporal_patch_size=LTX2_PATCH_SIZE_T,
+ vae_spatial_compression_ratio=LTX2_SPATIAL_COMPRESSION,
+ vae_temporal_compression_ratio=LTX2_TEMPORAL_COMPRESSION,
+ )
+ latent_height, latent_width = 704 // LTX2_SPATIAL_COMPRESSION, 1248 // LTX2_SPATIAL_COMPRESSION
+
+ expected = upstream(
+ stub,
+ keyframe_latent_num_frames=latent_frames,
+ keyframe_latent_height=latent_height,
+ keyframe_latent_width=latent_width,
+ pixel_frame_idx=pixel_frame_index,
+ num_pixel_frames=num_pixel_frames,
+ fps=fps,
+ device=torch.device("cpu"),
+ )
+ ours = prepare_keyframe_coords(
+ latent_frames,
+ latent_height,
+ latent_width,
+ pixel_frame_index=pixel_frame_index,
+ num_pixel_frames=num_pixel_frames,
+ fps=fps,
+ )
+
+ assert ours.shape == expected.shape
+ assert torch.equal(ours, expected)
+
+
+def test_a_single_frame_keyframe_occupies_one_instant_not_the_group_it_lands_in() -> None:
+ """The clamp the port carries: without it a still frame would claim the whole 8-frame span the
+ VAE scale implies, and the model would read it as eight frames of held picture."""
+ coords = prepare_keyframe_coords(1, 2, 2, pixel_frame_index=120, num_pixel_frames=1, fps=24.0)
+ start, end = coords[0, 0, :, 0], coords[0, 0, :, 1]
+
+ assert torch.allclose(start, torch.full_like(start, 120 / 24.0))
+ assert torch.allclose(end, torch.full_like(end, 121 / 24.0))