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.

fix(minimax-h3): review fixes for the bundled video workflows

Lincoln Steinec46fd2355f6
diff --git a/invokeai/app/invocations/minimax_h3_lora_loader.py b/invokeai/app/invocations/minimax_h3_lora_loader.py
index dcc9cdbc2a..70e6cb2918 100644
--- a/invokeai/app/invocations/minimax_h3_lora_loader.py
+++ b/invokeai/app/invocations/minimax_h3_lora_loader.py
@@ -30,6 +30,25 @@ class MiniMaxH3LoRALoaderOutput(BaseInvocationOutput):
)
+@invocation_output("minimax_h3_lora_collection_loader_output")
+class MiniMaxH3LoRACollectionLoaderOutput(BaseInvocationOutput):
+ """MiniMax H3 LoRA collection loader output.
+
+ Separate from the single loader's output because a collection applies zero or more LoRAs,
+ so its metadata echo is a list — which is also what `core_metadata.loras` takes directly,
+ with no intervening collect node.
+ """
+
+ transformer: Optional[MiniMaxH3TransformerField] = OutputField(
+ default=None, description=FieldDescriptions.transformer, title="MiniMax H3 Transformer"
+ )
+ lora_metadata: list[LoRAMetadataField] = OutputField(
+ default=[],
+ description="The applied LoRAs, in the shape Core Metadata's `loras` field takes.",
+ title="LoRA Metadata",
+ )
+
+
@invocation(
"minimax_h3_lora_loader",
title="Apply LoRA - MiniMax H3",
@@ -92,7 +111,7 @@ class MiniMaxH3LoRALoaderInvocation(BaseInvocation):
title="Apply LoRA Collection - MiniMax H3",
tags=["lora", "model", "minimax"],
category="model",
- version="1.0.0",
+ version="1.1.0",
classification=Classification.Prototype,
)
class MiniMaxH3LoRACollectionLoader(BaseInvocation):
@@ -112,17 +131,16 @@ class MiniMaxH3LoRACollectionLoader(BaseInvocation):
title="Transformer",
)
- def invoke(self, context: InvocationContext) -> MiniMaxH3LoRALoaderOutput:
- output = MiniMaxH3LoRALoaderOutput()
-
+ def invoke(self, context: InvocationContext) -> MiniMaxH3LoRACollectionLoaderOutput:
if self.transformer is None:
- return output
+ return MiniMaxH3LoRACollectionLoaderOutput()
- output.transformer = self.transformer.model_copy(deep=True)
+ transformer = self.transformer.model_copy(deep=True)
if self.loras is None:
- return output
+ return MiniMaxH3LoRACollectionLoaderOutput(transformer=transformer)
+ lora_metadata: list[LoRAMetadataField] = []
loras = self.loras if isinstance(self.loras, list) else [self.loras]
for lora in loras:
lora_key = lora.lora.key
@@ -138,8 +156,9 @@ class MiniMaxH3LoRACollectionLoader(BaseInvocation):
f"base={getattr(stored_config.base, 'value', stored_config.base)})."
)
- if any(item.lora.key == lora_key for item in output.transformer.loras):
+ if any(item.lora.key == lora_key for item in transformer.loras):
continue
- output.transformer.loras.append(lora)
+ transformer.loras.append(lora)
+ lora_metadata.append(LoRAMetadataField(model=lora.lora, weight=lora.weight))
- return output
+ return MiniMaxH3LoRACollectionLoaderOutput(transformer=transformer, lora_metadata=lora_metadata)
diff --git a/invokeai/app/invocations/video_frame_extract_range.py b/invokeai/app/invocations/video_frame_extract_range.py
index 2c85698044..78badebfaa 100644
--- a/invokeai/app/invocations/video_frame_extract_range.py
+++ b/invokeai/app/invocations/video_frame_extract_range.py
@@ -20,6 +20,7 @@ from pathlib import Path
from typing import Callable, Iterator, Optional, Protocol
import numpy as np
+from PIL import Image
from invokeai.app.invocations.baseinvocation import (
BaseInvocation,
@@ -67,6 +68,7 @@ def _write_frame_range(
start: int,
end: int,
is_canceled: Optional[Callable[[], bool]] = None,
+ resize_to: Optional[tuple[int, int]] = None,
) -> int:
"""Streams frames[start..end] (inclusive) from a lazy decoder into the writer.
@@ -75,6 +77,9 @@ def _write_frame_range(
tens of gigabytes, so peak memory here must stay one-frame-sized regardless of the
requested range. Decoding stops as soon as ``end`` has been written. Returns the
number of frames written.
+
+ ``resize_to`` is a ``(width, height)`` pair; each frame is resampled to it on the way
+ past, one frame at a time, so the streaming memory profile is unchanged.
"""
written = 0
for idx, frame in enumerate(islice(frames, end + 1)):
@@ -82,6 +87,8 @@ def _write_frame_range(
raise CanceledException
if idx < start:
continue
+ if resize_to is not None and (frame.shape[1], frame.shape[0]) != resize_to:
+ frame = np.asarray(Image.fromarray(frame).resize(resize_to, Image.LANCZOS))
writer.append_data(np.ascontiguousarray(frame))
written += 1
return written
@@ -112,7 +119,7 @@ class ExtractVideoRangeOutput(BaseInvocationOutput):
title="Frame Range from Video",
tags=["video", "trim", "range", "frames"],
category="video",
- version="1.2.0",
+ version="1.3.0",
classification=Classification.Prototype,
)
class ExtractVideoRangeInvocation(BaseInvocation, WithMetadata, WithBoard):
@@ -127,6 +134,12 @@ class ExtractVideoRangeInvocation(BaseInvocation, WithMetadata, WithBoard):
with the video when the output fps changes playback speed); silent
sources stay silent.
+ Setting ``width``/``height`` conforms the trimmed clip to that canvas (0 on an
+ axis keeps the source's). This is what lets a trimmed source be concatenated
+ with a generated clip: Concatenate Videos rejects mismatched dimensions, and
+ video models render onto their own fixed canvas family, so the source segment
+ has to be brought onto the same canvas first.
+
The resolved (positive) ``start_frame`` and ``end_frame`` are also emitted as
outputs, so chained workflows can re-use the boundary indices — e.g. feeding
them into a downstream Frame from Video to extract the same boundary frame.
@@ -150,6 +163,19 @@ class ExtractVideoRangeInvocation(BaseInvocation, WithMetadata, WithBoard):
description="Output frame rate. 0 = match the source video's frame rate "
"(falls back to 16 fps if the source rate can't be probed).",
)
+ width: int = InputField(
+ default=0,
+ ge=0,
+ description="Output width in pixels. 0 = keep the source width. Set both width and height "
+ "to conform the trimmed clip to a specific canvas — e.g. to match a generated clip before "
+ "concatenating, since Concatenate Videos rejects mismatched dimensions.",
+ )
+ height: int = InputField(
+ default=0,
+ ge=0,
+ description="Output height in pixels. 0 = keep the source height. Aspect ratio is not "
+ "preserved: the frame is resampled to exactly the requested canvas.",
+ )
def invoke(self, context: InvocationContext) -> ExtractVideoRangeOutput:
video_path = context.videos.get_path(self.video.video_name)
@@ -185,9 +211,22 @@ class ExtractVideoRangeInvocation(BaseInvocation, WithMetadata, WithBoard):
else:
output_fps = 16.0
- # libx264 + yuv420p needs even dimensions. Reject odd sources up front with a
- # clear message instead of surfacing an opaque ffmpeg error mid-encode.
- _validate_even_dimensions(width, height, self.video.video_name)
+ # Conform to the requested canvas when either axis is set; 0 on an axis keeps the
+ # source's. Everything downstream (the encoder, the even-dimension check, the saved
+ # video record) uses the output dimensions, not the source's.
+ out_width = self.width or width
+ out_height = self.height or height
+ resize_to = (out_width, out_height) if (out_width, out_height) != (width, height) else None
+
+ # libx264 + yuv420p needs even dimensions. Reject odd sizes up front with a clear
+ # message instead of surfacing an opaque ffmpeg error mid-encode.
+ if resize_to is None:
+ _validate_even_dimensions(out_width, out_height, self.video.video_name)
+ elif out_width % 2 or out_height % 2:
+ raise ValueError(
+ f"Requested output size is {out_width}x{out_height}; H.264 encoding requires even "
+ "dimensions. Choose an even width and height."
+ )
context.util.signal_progress(f"Transcoding frames {start}-{end} of {n_frames} @ {output_fps:.2f} fps")
@@ -207,6 +246,7 @@ class ExtractVideoRangeInvocation(BaseInvocation, WithMetadata, WithBoard):
start,
end,
is_canceled=context.util.is_canceled,
+ resize_to=resize_to,
)
finally:
writer.close()
@@ -249,12 +289,13 @@ class ExtractVideoRangeInvocation(BaseInvocation, WithMetadata, WithBoard):
out_duration = num_frames / output_fps
context.logger.info(
f"Encoded trimmed MP4: {num_frames} frames @ {output_fps:.2f} fps "
- f"({out_duration:.2f}s) at {width}x{height}" + (", with AAC audio" if audio is not None else ", silent")
+ f"({out_duration:.2f}s) at {out_width}x{out_height}"
+ + (", with AAC audio" if audio is not None else ", silent")
)
video_dto = context.videos.save(
source_path=source_path,
- width=width,
- height=height,
+ width=out_width,
+ height=out_height,
duration=out_duration,
fps=output_fps,
)
diff --git a/invokeai/app/services/workflow_records/default_workflows/Extend Video - MiniMax H3.json b/invokeai/app/services/workflow_records/default_workflows/Extend Video - MiniMax H3.json
index ba104b9d2e..87c567b7c6 100644
--- a/invokeai/app/services/workflow_records/default_workflows/Extend Video - MiniMax H3.json
+++ b/invokeai/app/services/workflow_records/default_workflows/Extend Video - MiniMax H3.json
@@ -5,10 +5,10 @@
"version": "1.0.0",
"contact": "",
"tags": "minimax h3, extend video, video, audio",
- "notes": "Drop in a video, use the Start Frame and End Frame fields to choose the span you want to keep, and describe what should happen next in the prompt. The frame at End Frame becomes the first frame of the generated continuation, and the two clips are joined with a short cross-fade over that hand-off point. Frames counts here are 0-based and accept negative indices, so End Frame -1 means 'the last frame'.\n\nOnly the newly generated segment is described by the recorded frame count and canvas -- the length of the joined result is the source span plus that segment.\n\nEach InvokeAI install assigns its own internal model IDs, so every model field ships blank -- pick your installed models in the form after loading:\n\n- Model: the MiniMax H3 FL2VA install (diffusers layout). Required.\n- Transformer (single file) / Text Encoder (single file): optional single-file replacements for the install's transformer and Qwen3-VL encoder (e.g. the pruned int8 repacks). Leave blank to use the ones in the main install.\n- LoRA: the MiniMax H3 Turbo step-distillation LoRA.\n\nSteps default to 6, which assumes the Turbo LoRA is loaded. Without a step-distillation LoRA, raise steps to about 50 -- the reference default -- or the result will be badly under-denoised.\n\nMiniMax H3 generates the video and a synchronized stereo soundtrack together; the soundtrack is muxed into the MP4 automatically (AAC, 32 kHz). The frame rate is fixed at 24 fps and frame counts snap to a 17n+5 grid: 124 frames = ~5.2 s, up to 345 frames = 14.4 s. Width and height must be multiples of 32; the native canvas has a 768 px short edge (max 768x1344).\n\nThe model is guidance-distilled: no negative prompt, no CFG.\n\nA keyframe is part of BOTH the text conditioning (vision context) and the VAE frame conditioning -- the denoise node rejects the graph if the two disagree. Each image node here feeds Prompt - MiniMax H3 and Frame Conditioning - MiniMax H3 together, and one MiniMax H3 Ideal Dimensions node feeds the canvas to all three consumers, so the coupling holds automatically. Keep it that way if you edit a copy.\n\nThe Core Metadata node records the prompt, steps, seed, canvas size, frame count, any keyframe images and every model ID onto the saved video, so the gallery's Metadata tab is filled in and the video is findable by searching its prompt text. Each value is read over an edge from the node that actually used it, so nothing recorded can drift from what the form is set to. If you rewire the graph, keep those edges attached.",
+ "notes": "Drop in a video, use the Start Frame and End Frame fields to choose the span you want to keep, and describe what should happen next in the prompt. The frame at End Frame becomes the first frame of the generated continuation, and the two clips are joined with a short cross-fade over that hand-off point. Frames counts here are 0-based and accept negative indices, so End Frame -1 means 'the last frame'.\n\nOnly the newly generated segment is described by the recorded frame count and canvas -- the length of the joined result is the source span plus that segment.\n\nYour footage is conformed to the model's canvas before the join. H3 renders only onto its own canvas family, and Concatenate Videos refuses clips of differing size or rate, so the trimmed source is resampled to the resolved canvas (aspect is snapped to the nearest supported size, so a 16:9 source is stretched very slightly) and retimed to 24 fps. A source shot at another rate therefore plays faster or slower than the original, audio included -- trim from a 24 fps clip if that matters.\n\nEach InvokeAI install assigns its own internal model IDs, so every model field ships blank -- pick your installed models in the form after loading:\n\n- Model: the MiniMax H3 FL2VA install (diffusers layout). Required.\n- Transformer (single file) / Text Encoder (single file): optional single-file replacements for the install's transformer and Qwen3-VL encoder (e.g. the pruned int8 repacks). Leave blank to use the ones in the main install.\n- LoRA: the MiniMax H3 Turbo step-distillation LoRA.\n\nSteps default to 6, which assumes the Turbo LoRA is loaded. The LoRA field is required: with it blank the workflow will not run. To generate without a step-distillation LoRA, edit the graph -- delete the 'Apply LoRA - MiniMax H3' node and the 'LoRAs (metadata)' Collect node next to it, connect Main Model's Transformer output straight to Denoise's Transformer input, and raise Steps to about 50 (the reference default) or the result will be badly under-denoised.\n\nMiniMax H3 generates the video and a synchronized stereo soundtrack together; the soundtrack is muxed into the MP4 automatically (AAC, 32 kHz). The frame rate is fixed at 24 fps and frame counts snap to a 17n+5 grid: 124 frames = ~5.2 s, up to 345 frames = 14.4 s. Width and height must be multiples of 32; the native canvas has a 768 px short edge (max 768x1344).\n\nThe model is guidance-distilled: no negative prompt, no CFG.\n\nA keyframe is part of BOTH the text conditioning (vision context) and the VAE frame conditioning -- the denoise node rejects the graph if the two disagree. Each image node here feeds Prompt - MiniMax H3 and Frame Conditioning - MiniMax H3 together, and one MiniMax H3 Ideal Dimensions node feeds the canvas to all three consumers, so the coupling holds automatically. Keep it that way if you edit a copy.\n\nThe Core Metadata node records the prompt, steps, seed, canvas size, frame count, any keyframe images and every model ID onto the saved video, so the gallery's Metadata tab is filled in and the video is findable by searching its prompt text. Each value is read over an edge from the node that actually used it, so nothing recorded can drift from what the form is set to. If you rewire the graph, keep those edges attached.",
"exposedFields": [
{
- "nodeId": "52e0f43e-0593-4ba6-bb50-df63464a6189",
+ "nodeId": "9b6d1f04-3c2a-4e58-9f71-2b8c4d6e0a10",
"fieldName": "video"
},
{
@@ -380,22 +380,47 @@
"y": -60
}
},
+ {
+ "id": "9b6d1f04-3c2a-4e58-9f71-2b8c4d6e0a10",
+ "type": "invocation",
+ "data": {
+ "id": "9b6d1f04-3c2a-4e58-9f71-2b8c4d6e0a10",
+ "version": "1.0.0",
+ "nodePack": "invokeai",
+ "label": "Source Video",
+ "notes": "The clip to continue. Its dimensions decide the canvas: MiniMax H3 renders onto its own canvas family, so the aspect ratio here is snapped to the nearest supported size and the trimmed source is resampled onto it before the two clips are joined.",
+ "type": "video",
+ "inputs": {
+ "video": {
+ "name": "video",
+ "label": "Source Video",
+ "description": ""
+ }
+ },
+ "isOpen": true,
+ "isIntermediate": true,
+ "useCache": true
+ },
+ "position": {
+ "x": -560,
+ "y": -220
+ }
+ },
{
"id": "52e0f43e-0593-4ba6-bb50-df63464a6189",
"type": "invocation",
"data": {
"id": "52e0f43e-0593-4ba6-bb50-df63464a6189",
- "version": "1.2.0",
+ "version": "1.3.0",
"nodePack": "invokeai",
"label": "",
- "notes": "Trims the source clip to the part you want to keep; the generated continuation starts from the frame at End Frame. The output rate is pinned to 24 fps -- H3 only generates at 24 fps, and the two clips have to share a rate before they can be joined. A source at another rate is retimed here, video and audio together.",
+ "notes": "Trims the source clip to the part you want to keep, and resamples it onto the canvas resolved above; the generated continuation starts from the frame at End Frame. Both clips have to share a size and a rate before Concatenate Videos will join them, so the output rate is pinned to 24 fps as well -- H3 only generates at 24 fps. A source at another rate is retimed here, video and audio together, so its segment plays faster or slower than the original.",
"type": "extract_video_range",
"inputs": {
"video": {
"name": "video",
"label": "",
- "description": "",
- "value": null
+ "description": ""
},
"start_frame": {
"name": "start_frame",
@@ -415,11 +440,17 @@
"description": "",
"value": 24
},
- "board": {
- "name": "board",
+ "width": {
+ "name": "width",
+ "label": "",
+ "description": "",
+ "value": 0
+ },
+ "height": {
+ "name": "height",
"label": "",
"description": "",
- "value": "auto"
+ "value": 0
}
},
"isOpen": true,
@@ -447,12 +478,6 @@
"label": "",
"description": "",
"value": -1
- },
- "board": {
- "name": "board",
- "label": "",
- "description": "",
- "value": "auto"
}
},
"isOpen": true,
@@ -645,12 +670,6 @@
"label": "",
"description": "",
"value": 2
- },
- "board": {
- "name": "board",
- "label": "",
- "description": "",
- "value": "auto"
}
},
"isOpen": true,
@@ -928,22 +947,6 @@
"targetHandle": "frame_conditioning",
"type": "default"
},
- {
- "id": "edge-52e0f43e-width-9e8d7c6b-width",
- "source": "52e0f43e-0593-4ba6-bb50-df63464a6189",
- "sourceHandle": "width",
- "target": "9e8d7c6b-5a4f-4e3d-9c2b-1a0f9e8d7c6b",
- "targetHandle": "width",
- "type": "default"
- },
- {
- "id": "edge-52e0f43e-height-9e8d7c6b-height",
- "source": "52e0f43e-0593-4ba6-bb50-df63464a6189",
- "sourceHandle": "height",
- "target": "9e8d7c6b-5a4f-4e3d-9c2b-1a0f9e8d7c6b",
- "targetHandle": "height",
- "type": "default"
- },
{
"id": "edge-9e8d7c6b-width-9a73db93-width",
"source": "9e8d7c6b-5a4f-4e3d-9c2b-1a0f9e8d7c6b",
@@ -1017,12 +1020,52 @@
"type": "default"
},
{
- "id": "edge-52e0f43e-video-9e2b5033-source_video",
- "source": "52e0f43e-0593-4ba6-bb50-df63464a6189",
+ "id": "edge-9b6d1f04-video-52e0f43e-video",
+ "source": "9b6d1f04-3c2a-4e58-9f71-2b8c4d6e0a10",
+ "sourceHandle": "video",
+ "target": "52e0f43e-0593-4ba6-bb50-df63464a6189",
+ "targetHandle": "video",
+ "type": "default"
+ },
+ {
+ "id": "edge-9b6d1f04-video-9e2b5033-source_video",
+ "source": "9b6d1f04-3c2a-4e58-9f71-2b8c4d6e0a10",
"sourceHandle": "video",
"target": "9e2b5033-4c5d-4e7f-a081-9c0d1e2f3a04",
"targetHandle": "source_video",
"type": "default"
+ },
+ {
+ "id": "edge-9b6d1f04-width-9e8d7c6b-width",
+ "source": "9b6d1f04-3c2a-4e58-9f71-2b8c4d6e0a10",
+ "sourceHandle": "width",
+ "target": "9e8d7c6b-5a4f-4e3d-9c2b-1a0f9e8d7c6b",
+ "targetHandle": "width",
+ "type": "default"
+ },
+ {
+ "id": "edge-9b6d1f04-height-9e8d7c6b-height",
+ "source": "9b6d1f04-3c2a-4e58-9f71-2b8c4d6e0a10",
+ "sourceHandle": "height",
+ "target": "9e8d7c6b-5a4f-4e3d-9c2b-1a0f9e8d7c6b",
+ "targetHandle": "height",
+ "type": "default"
+ },
+ {
+ "id": "edge-9e8d7c6b-width-52e0f43e-width",
+ "source": "9e8d7c6b-5a4f-4e3d-9c2b-1a0f9e8d7c6b",
+ "sourceHandle": "width",
+ "target": "52e0f43e-0593-4ba6-bb50-df63464a6189",
+ "targetHandle": "width",
+ "type": "default"
+ },
+ {
+ "id": "edge-9e8d7c6b-height-52e0f43e-height",
+ "source": "9e8d7c6b-5a4f-4e3d-9c2b-1a0f9e8d7c6b",
+ "sourceHandle": "height",
+ "target": "52e0f43e-0593-4ba6-bb50-df63464a6189",
+ "targetHandle": "height",
+ "type": "default"
}
],
"form": {
@@ -1059,7 +1102,7 @@
"type": "node-field",
"data": {
"fieldIdentifier": {
- "nodeId": "52e0f43e-0593-4ba6-bb50-df63464a6189",
+ "nodeId": "9b6d1f04-3c2a-4e58-9f71-2b8c4d6e0a10",
"fieldName": "video"
},
"showDescription": false
diff --git a/invokeai/app/services/workflow_records/default_workflows/Extend Video - Wan 2.2 Lightning w_ Concept LoRAs.json b/invokeai/app/services/workflow_records/default_workflows/Extend Video - Wan 2.2 Lightning w_ Concept LoRAs.json
index e6fbe09ec4..62cb680485 100644
--- a/invokeai/app/services/workflow_records/default_workflows/Extend Video - Wan 2.2 Lightning w_ Concept LoRAs.json
+++ b/invokeai/app/services/workflow_records/default_workflows/Extend Video - Wan 2.2 Lightning w_ Concept LoRAs.json
@@ -2,10 +2,10 @@
"name": "Extend Video - Wan 2.2 Lightning w/ Concept LoRAs",
"author": "InvokeAI",
"description": "This workflow adds frames to an existing video. Provide a starting video and use the sliders to select the starting and ending frames. The workflow will create a new video starting from the selected ending frame and then concatenate the new video to the end of the first video, performing a quick cross-fade at the selected ending frame to generate a smooth transition.\n\nInput slots for a concept LoRA pair (high and low noise) are provided.",
- "version": "1.0.0",
+ "version": "1.1.0",
"contact": "",
"tags": "wan2.2, video to video, video, lightning, lora",
- "notes": "Each InvokeAI install assigns its own internal model IDs, so the model fields are left blank -- select these in the form after loading:\n\nMain Model node:\n- Main Model: Wan 2.2 I2V A14B High Noise (Q4_K_M GGUF recommended for <=16 GB VRAM)\n- Transformer (Low Noise): Wan 2.2 I2V A14B Low Noise (Q4_K_M)\n- VAE: Wan 2.2 A14B VAE\n- T5 Encoder: Wan T5 Encoder (UMT5-XXL)\n\nLightning LoRAs (4-step distillation, I2V variant):\n- Apply Lightning LoRA (High Noise): Wan 2.2 I2V Lightning High Noise (4-step)\n- Apply Lightning LoRA (Low Noise): Wan 2.2 I2V Lightning Low Noise (4-step)\n\nOptional concept LoRAs (your own style/subject LoRAs):\n- Apply Concept LoRA (High Noise) / (Low Noise): leave empty, or select a high/low-noise concept LoRA pair.\n\nManually edit the \"Concatenate Videos\" node to fine-tune the transition type and number of transition frames.",
+ "notes": "Your footage is conformed to the model's canvas before the join. Wan renders onto a 16-pixel grid at the resolution you pick in the form, and Concatenate Videos refuses clips of differing size, so the trimmed source is resampled onto the resolved canvas (aspect is snapped to the nearest grid size, so a 16:9 source is stretched very slightly). Changing Target Resolution rescales the source segment to match.\n\nEach InvokeAI install assigns its own internal model IDs, so the model fields are left blank -- select these in the form after loading:\n\nMain Model node:\n- Main Model: Wan 2.2 I2V A14B High Noise (Q4_K_M GGUF recommended for <=16 GB VRAM)\n- Transformer (Low Noise): Wan 2.2 I2V A14B Low Noise (Q4_K_M)\n- VAE: Wan 2.2 A14B VAE\n- T5 Encoder: Wan T5 Encoder (UMT5-XXL)\n\nLightning LoRAs (4-step distillation, I2V variant):\n- Apply Lightning LoRA (High Noise): Wan 2.2 I2V Lightning High Noise (4-step)\n- Apply Lightning LoRA (Low Noise): Wan 2.2 I2V Lightning Low Noise (4-step)\n\nOptional concept LoRAs (your own style/subject LoRAs):\n- Apply Concept LoRA (High Noise) / (Low Noise): leave empty, or select a high/low-noise concept LoRA pair.\n\nManually edit the \"Concatenate Videos\" node to fine-tune the transition type and number of transition frames.",
"exposedFields": [
{
"nodeId": "1a0e6c7b-9d2f-4b3c-8e1a-2f3d4c5b6a7e",
@@ -725,15 +725,42 @@
"y": 229.5
}
},
+ {
+ "id": "7c3a1e58-4b62-4d09-9a17-5e8f2c0b6d31",
+ "type": "invocation",
+ "data": {
+ "id": "7c3a1e58-4b62-4d09-9a17-5e8f2c0b6d31",
+ "version": "1.0.0",
+ "nodePack": "invokeai",
+ "label": "Source Video",
+ "notes": "The clip to continue. Its dimensions decide the canvas: the aspect ratio here is snapped to the nearest size Wan can render, and the trimmed source is resampled onto that canvas before the two clips are joined.",
+ "type": "video",
+ "inputs": {
+ "video": {
+ "name": "video",
+ "label": "Source Video",
+ "description": "",
+ "value": null
+ }
+ },
+ "isOpen": true,
+ "isIntermediate": true,
+ "useCache": true
+ },
+ "position": {
+ "x": -350,
+ "y": 0
+ }
+ },
{
"id": "52e0f43e-0593-4ba6-bb50-df63464a6189",
"type": "invocation",
"data": {
"id": "52e0f43e-0593-4ba6-bb50-df63464a6189",
- "version": "1.2.0",
+ "version": "1.3.0",
"nodePack": "invokeai",
"label": "",
- "notes": "",
+ "notes": "Trims the source clip to the part you want to keep, and resamples it onto the canvas resolved by Wan 2.2 I2V Ideal Dimensions. Both clips must share a size before Concatenate Videos will join them, and Wan renders only onto its own 16-pixel grid, so the source segment is brought onto that canvas here. Output frame rate still follows the source (fps 0).",
"type": "extract_video_range",
"inputs": {
"board": {
@@ -769,6 +796,18 @@
"label": "",
"description": "",
"value": 0
+ },
+ "width": {
+ "name": "width",
+ "label": "",
+ "description": "",
+ "value": 0
+ },
+ "height": {
+ "name": "height",
+ "label": "",
+ "description": "",
+ "value": 0
}
},
"dynamicInputTemplates": {},
@@ -996,22 +1035,6 @@
"sourceHandle": "value",
"targetHandle": "num_frames"
},
- {
- "id": "reactflow__edge-c2b5afb3-d079-4afb-9354-4c1a7aeae73awidth-d27f29bf-6f26-4088-b1cc-c722ecd9fd61width",
- "type": "default",
- "source": "c2b5afb3-d079-4afb-9354-4c1a7aeae73a",
- "target": "d27f29bf-6f26-4088-b1cc-c722ecd9fd61",
- "sourceHandle": "width",
- "targetHandle": "width"
- },
- {
- "id": "reactflow__edge-c2b5afb3-d079-4afb-9354-4c1a7aeae73aheight-d27f29bf-6f26-4088-b1cc-c722ecd9fd61height",
- "type": "default",
- "source": "c2b5afb3-d079-4afb-9354-4c1a7aeae73a",
- "target": "d27f29bf-6f26-4088-b1cc-c722ecd9fd61",
- "sourceHandle": "height",
- "targetHandle": "height"
- },
{
"id": "reactflow__edge-c2b5afb3-d079-4afb-9354-4c1a7aeae73aimage-97c6fecb-8354-4ace-b337-e544b0ba9982image",
"type": "default",
@@ -1099,6 +1122,46 @@
"target": "4d3b9faf-c05b-7e6f-bf4d-5c6a7f8e9dab",
"sourceHandle": "transformer",
"targetHandle": "transformer"
+ },
+ {
+ "id": "edge-srcvideo-extract",
+ "type": "default",
+ "source": "7c3a1e58-4b62-4d09-9a17-5e8f2c0b6d31",
+ "target": "52e0f43e-0593-4ba6-bb50-df63464a6189",
+ "sourceHandle": "video",
+ "targetHandle": "video"
+ },
+ {
+ "id": "edge-srcvideo-ideal-w",
+ "type": "default",
+ "source": "7c3a1e58-4b62-4d09-9a17-5e8f2c0b6d31",
+ "target": "d27f29bf-6f26-4088-b1cc-c722ecd9fd61",
+ "sourceHandle": "width",
+ "targetHandle": "width"
+ },
+ {
+ "id": "edge-srcvideo-ideal-h",
+ "type": "default",
+ "source": "7c3a1e58-4b62-4d09-9a17-5e8f2c0b6d31",
+ "target": "d27f29bf-6f26-4088-b1cc-c722ecd9fd61",
+ "sourceHandle": "height",
+ "targetHandle": "height"
+ },
+ {
+ "id": "edge-ideal-extract-w",
+ "type": "default",
+ "source": "d27f29bf-6f26-4088-b1cc-c722ecd9fd61",
+ "target": "52e0f43e-0593-4ba6-bb50-df63464a6189",
+ "sourceHandle": "width",
+ "targetHandle": "width"
+ },
+ {
+ "id": "edge-ideal-extract-h",
+ "type": "default",
+ "source": "d27f29bf-6f26-4088-b1cc-c722ecd9fd61",
+ "target": "52e0f43e-0593-4ba6-bb50-df63464a6189",
+ "sourceHandle": "height",
+ "targetHandle": "height"
}
],
"form": {
@@ -1520,7 +1583,7 @@
"parentId": "container-1lpcsDWjRx",
"data": {
"fieldIdentifier": {
- "nodeId": "52e0f43e-0593-4ba6-bb50-df63464a6189",
+ "nodeId": "7c3a1e58-4b62-4d09-9a17-5e8f2c0b6d31",
"fieldName": "video"
},
"showDescription": false
diff --git a/invokeai/app/services/workflow_records/default_workflows/Extend Video - Wan 2.2 Lightning.json b/invokeai/app/services/workflow_records/default_workflows/Extend Video - Wan 2.2 Lightning.json
index ed45abf141..fe888c3531 100644
--- a/invokeai/app/services/workflow_records/default_workflows/Extend Video - Wan 2.2 Lightning.json
+++ b/invokeai/app/services/workflow_records/default_workflows/Extend Video - Wan 2.2 Lightning.json
@@ -2,10 +2,10 @@
"name": "Extend Video - Wan 2.2 Lightning",
"author": "InvokeAI",
"description": "This workflow adds frames to an existing video. Provide a starting video and use the sliders to select the starting and ending frames. The workflow will create a new video starting from the selected ending frame and then concatenate the new video to the end of the first video, performing a quick cross-fade at the selected ending frame to generate a smooth transition.",
- "version": "1.0.0",
+ "version": "1.1.0",
"contact": "",
"tags": "wan2.2, video to video, video, lightning, lora",
- "notes": "Each InvokeAI install assigns its own internal model IDs, so the model fields are left blank -- select these in the form after loading:\n\nMain Model node:\n- Main Model: Wan 2.2 I2V A14B High Noise (Q4_K_M GGUF recommended for <=16 GB VRAM)\n- Transformer (Low Noise): Wan 2.2 I2V A14B Low Noise (Q4_K_M)\n- VAE: Wan 2.2 A14B VAE\n- T5 Encoder: Wan T5 Encoder (UMT5-XXL)\n\nLightning LoRAs (4-step distillation, I2V variant):\n- Apply Lightning LoRA (High Noise): Wan 2.2 I2V Lightning High Noise (4-step)\n- Apply Lightning LoRA (Low Noise): Wan 2.2 I2V Lightning Low Noise (4-step)\n\nEdit the \"Concatenate Videos\" node to adjust the transition and number of transition frames.",
+ "notes": "Your footage is conformed to the model's canvas before the join. Wan renders onto a 16-pixel grid at the resolution you pick in the form, and Concatenate Videos refuses clips of differing size, so the trimmed source is resampled onto the resolved canvas (aspect is snapped to the nearest grid size, so a 16:9 source is stretched very slightly). Changing Target Resolution rescales the source segment to match.\n\nEach InvokeAI install assigns its own internal model IDs, so the model fields are left blank -- select these in the form after loading:\n\nMain Model node:\n- Main Model: Wan 2.2 I2V A14B High Noise (Q4_K_M GGUF recommended for <=16 GB VRAM)\n- Transformer (Low Noise): Wan 2.2 I2V A14B Low Noise (Q4_K_M)\n- VAE: Wan 2.2 A14B VAE\n- T5 Encoder: Wan T5 Encoder (UMT5-XXL)\n\nLightning LoRAs (4-step distillation, I2V variant):\n- Apply Lightning LoRA (High Noise): Wan 2.2 I2V Lightning High Noise (4-step)\n- Apply Lightning LoRA (Low Noise): Wan 2.2 I2V Lightning Low Noise (4-step)\n\nEdit the \"Concatenate Videos\" node to adjust the transition and number of transition frames.",
"exposedFields": [
{
"nodeId": "1a0e6c7b-9d2f-4b3c-8e1a-2f3d4c5b6a7e",
@@ -27,30 +27,6 @@
"nodeId": "1a0e6c7b-9d2f-4b3c-8e1a-2f3d4c5b6a7e",
"fieldName": "wan_t5_encoder_model"
},
- {
- "nodeId": "3466ad11-a931-4adc-b394-9ec287f0c23b",
- "fieldName": "lora"
- },
- {
- "nodeId": "3466ad11-a931-4adc-b394-9ec287f0c23b",
- "fieldName": "weight"
- },
- {
- "nodeId": "3466ad11-a931-4adc-b394-9ec287f0c23b",
- "fieldName": "target"
- },
- {
- "nodeId": "9b4cde65-699f-42c1-8889-76ac91fcb62f",
- "fieldName": "lora"
- },
- {
- "nodeId": "9b4cde65-699f-42c1-8889-76ac91fcb62f",
- "fieldName": "weight"
- },
- {
- "nodeId": "9b4cde65-699f-42c1-8889-76ac91fcb62f",
- "fieldName": "target"
- },
{
"nodeId": "2b1f7d8c-ae3f-5c4d-9f2b-3a4e5d6c7b8f",
"fieldName": "prompt"
@@ -739,15 +715,42 @@
"y": 105.04759620704448
}
},
+ {
+ "id": "7c3a1e58-4b62-4d09-9a17-5e8f2c0b6d31",
+ "type": "invocation",
+ "data": {
+ "id": "7c3a1e58-4b62-4d09-9a17-5e8f2c0b6d31",
+ "version": "1.0.0",
+ "nodePack": "invokeai",
+ "label": "Source Video",
+ "notes": "The clip to continue. Its dimensions decide the canvas: the aspect ratio here is snapped to the nearest size Wan can render, and the trimmed source is resampled onto that canvas before the two clips are joined.",
+ "type": "video",
+ "inputs": {
+ "video": {
+ "name": "video",
+ "label": "Source Video",
+ "description": "",
+ "value": null
+ }
+ },
+ "isOpen": true,
+ "isIntermediate": true,
+ "useCache": true
+ },
+ "position": {
+ "x": -560.7591703842118,
+ "y": 102.45237449232519
+ }
+ },
{
"id": "52e0f43e-0593-4ba6-bb50-df63464a6189",
"type": "invocation",
"data": {
"id": "52e0f43e-0593-4ba6-bb50-df63464a6189",
- "version": "1.2.0",
+ "version": "1.3.0",
"nodePack": "invokeai",
"label": "",
- "notes": "",
+ "notes": "Trims the source clip to the part you want to keep, and resamples it onto the canvas resolved by Wan 2.2 I2V Ideal Dimensions. Both clips must share a size before Concatenate Videos will join them, and Wan renders only onto its own 16-pixel grid, so the source segment is brought onto that canvas here. Output frame rate still follows the source (fps 0).",
"type": "extract_video_range",
"inputs": {
"board": {
@@ -783,6 +786,18 @@
"label": "",
"description": "",
"value": 0
+ },
+ "width": {
+ "name": "width",
+ "label": "",
+ "description": "",
+ "value": 0
+ },
+ "height": {
+ "name": "height",
+ "label": "",
+ "description": "",
+ "value": 0
}
},
"isOpen": true,
@@ -983,22 +998,6 @@
"sourceHandle": "value",
"targetHandle": "num_frames"
},
- {
- "id": "reactflow__edge-c2b5afb3-d079-4afb-9354-4c1a7aeae73awidth-d27f29bf-6f26-4088-b1cc-c722ecd9fd61width",
- "type": "default",
- "source": "c2b5afb3-d079-4afb-9354-4c1a7aeae73a",
- "target": "d27f29bf-6f26-4088-b1cc-c722ecd9fd61",
- "sourceHandle": "width",
- "targetHandle": "width"
- },
- {
- "id": "reactflow__edge-c2b5afb3-d079-4afb-9354-4c1a7aeae73aheight-d27f29bf-6f26-4088-b1cc-c722ecd9fd61height",
- "type": "default",
- "source": "c2b5afb3-d079-4afb-9354-4c1a7aeae73a",
- "target": "d27f29bf-6f26-4088-b1cc-c722ecd9fd61",
- "sourceHandle": "height",
- "targetHandle": "height"
- },
{
"id": "reactflow__edge-c2b5afb3-d079-4afb-9354-4c1a7aeae73aimage-97c6fecb-8354-4ace-b337-e544b0ba9982image",
"type": "default",
@@ -1070,6 +1069,46 @@
"target": "6f5dcb1c-e27d-9fb0-d16f-7e8cbaa1fcbd",
"sourceHandle": "value",
"targetHandle": "fps"
+ },
+ {
+ "id": "edge-srcvideo-extract",
+ "type": "default",
+ "source": "7c3a1e58-4b62-4d09-9a17-5e8f2c0b6d31",
+ "target": "52e0f43e-0593-4ba6-bb50-df63464a6189",
+ "sourceHandle": "video",
+ "targetHandle": "video"
+ },
+ {
+ "id": "edge-srcvideo-ideal-w",
+ "type": "default",
+ "source": "7c3a1e58-4b62-4d09-9a17-5e8f2c0b6d31",
+ "target": "d27f29bf-6f26-4088-b1cc-c722ecd9fd61",
+ "sourceHandle": "width",
+ "targetHandle": "width"
+ },
+ {
+ "id": "edge-srcvideo-ideal-h",
+ "type": "default",
+ "source": "7c3a1e58-4b62-4d09-9a17-5e8f2c0b6d31",
+ "target": "d27f29bf-6f26-4088-b1cc-c722ecd9fd61",
+ "sourceHandle": "height",
+ "targetHandle": "height"
+ },
+ {
+ "id": "edge-ideal-extract-w",
+ "type": "default",
+ "source": "d27f29bf-6f26-4088-b1cc-c722ecd9fd61",
+ "target": "52e0f43e-0593-4ba6-bb50-df63464a6189",
+ "sourceHandle": "width",
+ "targetHandle": "width"
+ },
+ {
+ "id": "edge-ideal-extract-h",
+ "type": "default",
+ "source": "d27f29bf-6f26-4088-b1cc-c722ecd9fd61",
+ "target": "52e0f43e-0593-4ba6-bb50-df63464a6189",
+ "sourceHandle": "height",
+ "targetHandle": "height"
}
],
"form": {
@@ -1487,7 +1526,7 @@
"parentId": "container-1lpcsDWjRx",
"data": {
"fieldIdentifier": {
- "nodeId": "52e0f43e-0593-4ba6-bb50-df63464a6189",
+ "nodeId": "7c3a1e58-4b62-4d09-9a17-5e8f2c0b6d31",
"fieldName": "video"
},
"showDescription": false
diff --git a/invokeai/app/services/workflow_records/default_workflows/Extend Video to Image - Wan 2.2 Lightning.json b/invokeai/app/services/workflow_records/default_workflows/Extend Video to Image - Wan 2.2 Lightning.json
index 737c1c20b8..e058ce343e 100644
--- a/invokeai/app/services/workflow_records/default_workflows/Extend Video to Image - Wan 2.2 Lightning.json
+++ b/invokeai/app/services/workflow_records/default_workflows/Extend Video to Image - Wan 2.2 Lightning.json
@@ -2,10 +2,10 @@
"name": "Extend Video to Image - Wan 2.2 Lightning",
"author": "InvokeAI",
"description": "This workflow adds frames to an existing video and interpolates the new video to a selected end image. Provide a starting video and use the sliders to select the starting and ending frames. Provide a destination image to specify how the last frame of the extended video should look. The workflow will create a new video starting from the selected ending frame and then concatenate the new video to the end of the first video, performing a quick cross-fade at the selected ending frame to generate a smooth transition.",
- "version": "1.0.0",
+ "version": "1.1.0",
"contact": "",
"tags": "wan2.2, video to video, video, lightning, lora",
- "notes": "Each InvokeAI install assigns its own internal model IDs, so the model fields are left blank -- select these in the form after loading:\n\nMain Model node:\n- Main Model: Wan 2.2 I2V A14B High Noise (Q4_K_M GGUF recommended for <=16 GB VRAM)\n- Transformer (Low Noise): Wan 2.2 I2V A14B Low Noise (Q4_K_M)\n- VAE: Wan 2.2 A14B VAE\n- T5 Encoder: Wan T5 Encoder (UMT5-XXL)\n\nLightning LoRAs (4-step distillation, I2V variant):\n- Apply Lightning LoRA (High Noise): Wan 2.2 I2V Lightning High Noise (4-step)\n- Apply Lightning LoRA (Low Noise): Wan 2.2 I2V Lightning Low Noise (4-step)\n\nEdit the \"Concatenate Videos\" node to adjust the transition and number of transition frames.",
+ "notes": "Your footage is conformed to the model's canvas before the join. Wan renders onto a 16-pixel grid at the resolution you pick in the form, and Concatenate Videos refuses clips of differing size, so the trimmed source is resampled onto the resolved canvas (aspect is snapped to the nearest grid size, so a 16:9 source is stretched very slightly). Changing Target Resolution rescales the source segment to match.\n\nEach InvokeAI install assigns its own internal model IDs, so the model fields are left blank -- select these in the form after loading:\n\nMain Model node:\n- Main Model: Wan 2.2 I2V A14B High Noise (Q4_K_M GGUF recommended for <=16 GB VRAM)\n- Transformer (Low Noise): Wan 2.2 I2V A14B Low Noise (Q4_K_M)\n- VAE: Wan 2.2 A14B VAE\n- T5 Encoder: Wan T5 Encoder (UMT5-XXL)\n\nLightning LoRAs (4-step distillation, I2V variant):\n- Apply Lightning LoRA (High Noise): Wan 2.2 I2V Lightning High Noise (4-step)\n- Apply Lightning LoRA (Low Noise): Wan 2.2 I2V Lightning Low Noise (4-step)\n\nEdit the \"Concatenate Videos\" node to adjust the transition and number of transition frames.",
"exposedFields": [
{
"nodeId": "1a0e6c7b-9d2f-4b3c-8e1a-2f3d4c5b6a7e",
@@ -27,30 +27,6 @@
"nodeId": "1a0e6c7b-9d2f-4b3c-8e1a-2f3d4c5b6a7e",
"fieldName": "wan_t5_encoder_model"
},
- {
- "nodeId": "3466ad11-a931-4adc-b394-9ec287f0c23b",
- "fieldName": "lora"
- },
- {
- "nodeId": "3466ad11-a931-4adc-b394-9ec287f0c23b",
- "fieldName": "weight"
- },
- {
- "nodeId": "3466ad11-a931-4adc-b394-9ec287f0c23b",
- "fieldName": "target"
- },
- {
- "nodeId": "9b4cde65-699f-42c1-8889-76ac91fcb62f",
- "fieldName": "lora"
- },
- {
- "nodeId": "9b4cde65-699f-42c1-8889-76ac91fcb62f",
- "fieldName": "weight"
- },
- {
- "nodeId": "9b4cde65-699f-42c1-8889-76ac91fcb62f",
- "fieldName": "target"
- },
{
"nodeId": "2b1f7d8c-ae3f-5c4d-9f2b-3a4e5d6c7b8f",
"fieldName": "prompt"
@@ -509,7 +485,7 @@
"parentId": "container-1lpcsDWjRx",
"data": {
"fieldIdentifier": {
- "nodeId": "52e0f43e-0593-4ba6-bb50-df63464a6189",
+ "nodeId": "7c3a1e58-4b62-4d09-9a17-5e8f2c0b6d31",
"fieldName": "video"
},
"showDescription": false
@@ -1237,15 +1213,42 @@
"y": 105.04759620704448
}
},
+ {
+ "id": "7c3a1e58-4b62-4d09-9a17-5e8f2c0b6d31",
+ "type": "invocation",
+ "data": {
+ "id": "7c3a1e58-4b62-4d09-9a17-5e8f2c0b6d31",
+ "version": "1.0.0",
+ "nodePack": "invokeai",
+ "label": "Source Video",
+ "notes": "The clip to continue. Its dimensions decide the canvas: the aspect ratio here is snapped to the nearest size Wan can render, and the trimmed source is resampled onto that canvas before the two clips are joined.",
+ "type": "video",
+ "inputs": {
+ "video": {
+ "name": "video",
+ "label": "Source Video",
+ "description": "",
+ "value": null
+ }
+ },
+ "isOpen": true,
+ "isIntermediate": true,
+ "useCache": true
+ },
+ "position": {
+ "x": -560.7591703842118,
+ "y": 102.45237449232519
+ }
+ },
{
"id": "52e0f43e-0593-4ba6-bb50-df63464a6189",
"type": "invocation",
"data": {
"id": "52e0f43e-0593-4ba6-bb50-df63464a6189",
- "version": "1.2.0",
+ "version": "1.3.0",
"nodePack": "invokeai",
"label": "",
- "notes": "",
+ "notes": "Trims the source clip to the part you want to keep, and resamples it onto the canvas resolved by Wan 2.2 I2V Ideal Dimensions. Both clips must share a size before Concatenate Videos will join them, and Wan renders only onto its own 16-pixel grid, so the source segment is brought onto that canvas here. Output frame rate still follows the source (fps 0).",
"type": "extract_video_range",
"inputs": {
"board": {
@@ -1281,6 +1284,18 @@
"label": "",
"description": "",
"value": 0
+ },
+ "width": {
+ "name": "width",
+ "label": "",
+ "description": "",
+ "value": 0
+ },
+ "height": {
+ "name": "height",
+ "label": "",
+ "description": "",
+ "value": 0
}
},
"isOpen": true,
@@ -1562,22 +1577,6 @@
"sourceHandle": "value",
"targetHandle": "num_frames"
},
- {
- "id": "reactflow__edge-c2b5afb3-d079-4afb-9354-4c1a7aeae73awidth-d27f29bf-6f26-4088-b1cc-c722ecd9fd61width",
- "type": "default",
- "source": "c2b5afb3-d079-4afb-9354-4c1a7aeae73a",
- "target": "d27f29bf-6f26-4088-b1cc-c722ecd9fd61",
- "sourceHandle": "width",
- "targetHandle": "width"
- },
- {
- "id": "reactflow__edge-c2b5afb3-d079-4afb-9354-4c1a7aeae73aheight-d27f29bf-6f26-4088-b1cc-c722ecd9fd61height",
- "type": "default",
- "source": "c2b5afb3-d079-4afb-9354-4c1a7aeae73a",
- "target": "d27f29bf-6f26-4088-b1cc-c722ecd9fd61",
- "sourceHandle": "height",
- "targetHandle": "height"
- },
{
"id": "reactflow__edge-c2b5afb3-d079-4afb-9354-4c1a7aeae73aimage-97c6fecb-8354-4ace-b337-e544b0ba9982image",
"type": "default",
@@ -1681,6 +1680,46 @@
"target": "97c6fecb-8354-4ace-b337-e544b0ba9982",
"sourceHandle": "image",
"targetHandle": "end_image"
+ },
+ {
+ "id": "edge-srcvideo-extract",
+ "type": "default",
+ "source": "7c3a1e58-4b62-4d09-9a17-5e8f2c0b6d31",
+ "target": "52e0f43e-0593-4ba6-bb50-df63464a6189",
+ "sourceHandle": "video",
+ "targetHandle": "video"
+ },
+ {
+ "id": "edge-srcvideo-ideal-w",
+ "type": "default",
+ "source": "7c3a1e58-4b62-4d09-9a17-5e8f2c0b6d31",
+ "target": "d27f29bf-6f26-4088-b1cc-c722ecd9fd61",
+ "sourceHandle": "width",
+ "targetHandle": "width"
+ },
+ {
+ "id": "edge-srcvideo-ideal-h",
+ "type": "default",
+ "source": "7c3a1e58-4b62-4d09-9a17-5e8f2c0b6d31",
+ "target": "d27f29bf-6f26-4088-b1cc-c722ecd9fd61",
+ "sourceHandle": "height",
+ "targetHandle": "height"
+ },
+ {
+ "id": "edge-ideal-extract-w",
+ "type": "default",
+ "source": "d27f29bf-6f26-4088-b1cc-c722ecd9fd61",
+ "target": "52e0f43e-0593-4ba6-bb50-df63464a6189",
+ "sourceHandle": "width",
+ "targetHandle": "width"
+ },
+ {
+ "id": "edge-ideal-extract-h",
+ "type": "default",
+ "source": "d27f29bf-6f26-4088-b1cc-c722ecd9fd61",
+ "target": "52e0f43e-0593-4ba6-bb50-df63464a6189",
+ "sourceHandle": "height",
+ "targetHandle": "height"
}
]
}
diff --git a/invokeai/app/services/workflow_records/default_workflows/First Frame to Video - MiniMax H3.json b/invokeai/app/services/workflow_records/default_workflows/First Frame to Video - MiniMax H3.json
index 421e1ea6e7..19163c24a7 100644
--- a/invokeai/app/services/workflow_records/default_workflows/First Frame to Video - MiniMax H3.json
+++ b/invokeai/app/services/workflow_records/default_workflows/First Frame to Video - MiniMax H3.json
@@ -2,10 +2,10 @@
"name": "First Frame to Video - MiniMax H3",
"author": "InvokeAI",
"description": "Animate an image with MiniMax H3 (FL2VA): the video starts from your image and moves as the prompt describes, with a jointly generated AAC stereo soundtrack. The canvas follows the image's aspect ratio, and the generation parameters are recorded onto the saved video.",
- "version": "1.0.0",
+ "version": "1.1.0",
"contact": "",
"tags": "minimax h3, image to video, first frame, video, audio",
- "notes": "The first frame is stretched onto the target canvas, so a source image whose aspect ratio is close to the canvas will look most natural.\n\nEach InvokeAI install assigns its own internal model IDs, so every model field ships blank -- pick your installed models in the form after loading:\n\n- Model: the MiniMax H3 FL2VA install (diffusers layout). Required.\n- Transformer (single file) / Text Encoder (single file): optional single-file replacements for the install's transformer and Qwen3-VL encoder (e.g. the pruned int8 repacks). Leave blank to use the ones in the main install.\n- LoRA: the MiniMax H3 Turbo step-distillation LoRA.\n\nSteps default to 6, which assumes the Turbo LoRA is loaded. Without a step-distillation LoRA, raise steps to about 50 -- the reference default -- or the result will be badly under-denoised.\n\nMiniMax H3 generates the video and a synchronized stereo soundtrack together; the soundtrack is muxed into the MP4 automatically (AAC, 32 kHz). The frame rate is fixed at 24 fps and frame counts snap to a 17n+5 grid: 124 frames = ~5.2 s, up to 345 frames = 14.4 s. Width and height must be multiples of 32; the native canvas has a 768 px short edge (max 768x1344).\n\nThe model is guidance-distilled: no negative prompt, no CFG.\n\nA keyframe is part of BOTH the text conditioning (vision context) and the VAE frame conditioning -- the denoise node rejects the graph if the two disagree. Each image node here feeds Prompt - MiniMax H3 and Frame Conditioning - MiniMax H3 together, and one MiniMax H3 Ideal Dimensions node feeds the canvas to all three consumers, so the coupling holds automatically. Keep it that way if you edit a copy.\n\nThe Core Metadata node records the prompt, steps, seed, canvas size, frame count, any keyframe images and every model ID onto the saved video, so the gallery's Metadata tab is filled in and the video is findable by searching its prompt text. Each value is read over an edge from the node that actually used it, so nothing recorded can drift from what the form is set to. If you rewire the graph, keep those edges attached.",
+ "notes": "The first frame is stretched onto the target canvas, so a source image whose aspect ratio is close to the canvas will look most natural.\n\nEach InvokeAI install assigns its own internal model IDs, so every model field ships blank -- pick your installed models in the form after loading:\n\n- Model: the MiniMax H3 FL2VA install (diffusers layout). Required.\n- Transformer (single file) / Text Encoder (single file): optional single-file replacements for the install's transformer and Qwen3-VL encoder (e.g. the pruned int8 repacks). Leave blank to use the ones in the main install.\n- LoRA: the MiniMax H3 Turbo step-distillation LoRA.\n\nSteps default to 6, which assumes the Turbo LoRA is loaded. The LoRA field is required: with it blank the workflow will not run. To generate without a step-distillation LoRA, edit the graph -- delete the 'Apply LoRA - MiniMax H3' node and the 'LoRAs (metadata)' Collect node next to it, connect Main Model's Transformer output straight to Denoise's Transformer input, and raise Steps to about 50 (the reference default) or the result will be badly under-denoised.\n\nMiniMax H3 generates the video and a synchronized stereo soundtrack together; the soundtrack is muxed into the MP4 automatically (AAC, 32 kHz). The frame rate is fixed at 24 fps and frame counts snap to a 17n+5 grid: 124 frames = ~5.2 s, up to 345 frames = 14.4 s. Width and height must be multiples of 32; the native canvas has a 768 px short edge (max 768x1344).\n\nThe model is guidance-distilled: no negative prompt, no CFG.\n\nA keyframe is part of BOTH the text conditioning (vision context) and the VAE frame conditioning -- the denoise node rejects the graph if the two disagree. Each image node here feeds Prompt - MiniMax H3 and Frame Conditioning - MiniMax H3 together, and one MiniMax H3 Ideal Dimensions node feeds the canvas to all three consumers, so the coupling holds automatically. Keep it that way if you edit a copy.\n\nThe Core Metadata node records the prompt, steps, seed, canvas size, frame count, any keyframe images and every model ID onto the saved video, so the gallery's Metadata tab is filled in and the video is findable by searching its prompt text. Each value is read over an edge from the node that actually used it, so nothing recorded can drift from what the form is set to. If you rewire the graph, keep those edges attached.",
"exposedFields": [
{
"nodeId": "9f71d3a4-6f0b-45bd-9c73-a99b40e24b06",
diff --git a/invokeai/app/services/workflow_records/default_workflows/First and Last Frame to Video - MiniMax H3.json b/invokeai/app/services/workflow_records/default_workflows/First and Last Frame to Video - MiniMax H3.json
index 8dc48d3940..5593f33545 100644
--- a/invokeai/app/services/workflow_records/default_workflows/First and Last Frame to Video - MiniMax H3.json
+++ b/invokeai/app/services/workflow_records/default_workflows/First and Last Frame to Video - MiniMax H3.json
@@ -5,7 +5,7 @@
"version": "1.0.0",
"contact": "",
"tags": "minimax h3, image to video, first frame, last frame, interpolate, video, audio",
- "notes": "The first frame is stretched onto the canvas and the last frame is cover-cropped onto it, so the two images should share an aspect ratio -- otherwise the end of the clip will be framed differently from the start. The canvas is derived from the first image.\n\nEach InvokeAI install assigns its own internal model IDs, so every model field ships blank -- pick your installed models in the form after loading:\n\n- Model: the MiniMax H3 FL2VA install (diffusers layout). Required.\n- Transformer (single file) / Text Encoder (single file): optional single-file replacements for the install's transformer and Qwen3-VL encoder (e.g. the pruned int8 repacks). Leave blank to use the ones in the main install.\n- LoRA: the MiniMax H3 Turbo step-distillation LoRA.\n\nSteps default to 6, which assumes the Turbo LoRA is loaded. Without a step-distillation LoRA, raise steps to about 50 -- the reference default -- or the result will be badly under-denoised.\n\nMiniMax H3 generates the video and a synchronized stereo soundtrack together; the soundtrack is muxed into the MP4 automatically (AAC, 32 kHz). The frame rate is fixed at 24 fps and frame counts snap to a 17n+5 grid: 124 frames = ~5.2 s, up to 345 frames = 14.4 s. Width and height must be multiples of 32; the native canvas has a 768 px short edge (max 768x1344).\n\nThe model is guidance-distilled: no negative prompt, no CFG.\n\nA keyframe is part of BOTH the text conditioning (vision context) and the VAE frame conditioning -- the denoise node rejects the graph if the two disagree. Each image node here feeds Prompt - MiniMax H3 and Frame Conditioning - MiniMax H3 together, and one MiniMax H3 Ideal Dimensions node feeds the canvas to all three consumers, so the coupling holds automatically. Keep it that way if you edit a copy.\n\nThe Core Metadata node records the prompt, steps, seed, canvas size, frame count, any keyframe images and every model ID onto the saved video, so the gallery's Metadata tab is filled in and the video is findable by searching its prompt text. Each value is read over an edge from the node that actually used it, so nothing recorded can drift from what the form is set to. If you rewire the graph, keep those edges attached.",
+ "notes": "The first frame is stretched onto the canvas and the last frame is cover-cropped onto it, so the two images should share an aspect ratio -- otherwise the end of the clip will be framed differently from the start. The canvas is derived from the first image.\n\nEach InvokeAI install assigns its own internal model IDs, so every model field ships blank -- pick your installed models in the form after loading:\n\n- Model: the MiniMax H3 FL2VA install (diffusers layout). Required.\n- Transformer (single file) / Text Encoder (single file): optional single-file replacements for the install's transformer and Qwen3-VL encoder (e.g. the pruned int8 repacks). Leave blank to use the ones in the main install.\n- LoRA: the MiniMax H3 Turbo step-distillation LoRA.\n\nSteps default to 6, which assumes the Turbo LoRA is loaded. The LoRA field is required: with it blank the workflow will not run. To generate without a step-distillation LoRA, edit the graph -- delete the 'Apply LoRA - MiniMax H3' node and the 'LoRAs (metadata)' Collect node next to it, connect Main Model's Transformer output straight to Denoise's Transformer input, and raise Steps to about 50 (the reference default) or the result will be badly under-denoised.\n\nMiniMax H3 generates the video and a synchronized stereo soundtrack together; the soundtrack is muxed into the MP4 automatically (AAC, 32 kHz). The frame rate is fixed at 24 fps and frame counts snap to a 17n+5 grid: 124 frames = ~5.2 s, up to 345 frames = 14.4 s. Width and height must be multiples of 32; the native canvas has a 768 px short edge (max 768x1344).\n\nThe model is guidance-distilled: no negative prompt, no CFG.\n\nA keyframe is part of BOTH the text conditioning (vision context) and the VAE frame conditioning -- the denoise node rejects the graph if the two disagree. Each image node here feeds Prompt - MiniMax H3 and Frame Conditioning - MiniMax H3 together, and one MiniMax H3 Ideal Dimensions node feeds the canvas to all three consumers, so the coupling holds automatically. Keep it that way if you edit a copy.\n\nThe Core Metadata node records the prompt, steps, seed, canvas size, frame count, any keyframe images and every model ID onto the saved video, so the gallery's Metadata tab is filled in and the video is findable by searching its prompt text. Each value is read over an edge from the node that actually used it, so nothing recorded can drift from what the form is set to. If you rewire the graph, keep those edges attached.",
"exposedFields": [
{
"nodeId": "9f71d3a4-6f0b-45bd-9c73-a99b40e24b06",
diff --git a/invokeai/app/services/workflow_records/default_workflows/Image to Video - Wan 2.2 Lightning.json b/invokeai/app/services/workflow_records/default_workflows/Image to Video - Wan 2.2 Lightning.json
index 9c6cf476b6..5457edeb2c 100644
--- a/invokeai/app/services/workflow_records/default_workflows/Image to Video - Wan 2.2 Lightning.json
+++ b/invokeai/app/services/workflow_records/default_workflows/Image to Video - Wan 2.2 Lightning.json
@@ -27,30 +27,6 @@
"nodeId": "1a0e6c7b-9d2f-4b3c-8e1a-2f3d4c5b6a7e",
"fieldName": "wan_t5_encoder_model"
},
- {
- "nodeId": "3466ad11-a931-4adc-b394-9ec287f0c23b",
- "fieldName": "lora"
- },
- {
- "nodeId": "3466ad11-a931-4adc-b394-9ec287f0c23b",
- "fieldName": "weight"
- },
- {
- "nodeId": "3466ad11-a931-4adc-b394-9ec287f0c23b",
- "fieldName": "target"
- },
- {
- "nodeId": "9b4cde65-699f-42c1-8889-76ac91fcb62f",
- "fieldName": "lora"
- },
- {
- "nodeId": "9b4cde65-699f-42c1-8889-76ac91fcb62f",
- "fieldName": "weight"
- },
- {
- "nodeId": "9b4cde65-699f-42c1-8889-76ac91fcb62f",
- "fieldName": "target"
- },
{
"nodeId": "2b1f7d8c-ae3f-5c4d-9f2b-3a4e5d6c7b8f",
"fieldName": "prompt"
@@ -474,7 +450,10 @@
"label": "",
"description": ""
},
- "end_image": { "name": "end_image", "label": "" },
+ "end_image": {
+ "name": "end_image",
+ "label": ""
+ },
"vae": {
"name": "vae",
"label": "",
diff --git a/invokeai/app/services/workflow_records/default_workflows/Image to Video - Wan 2.2 TI2V-5B (Low Quality).json b/invokeai/app/services/workflow_records/default_workflows/Image to Video - Wan 2.2 TI2V-5B (Low Quality).json
index c11adaed75..349c9862c5 100644
--- a/invokeai/app/services/workflow_records/default_workflows/Image to Video - Wan 2.2 TI2V-5B (Low Quality).json
+++ b/invokeai/app/services/workflow_records/default_workflows/Image to Video - Wan 2.2 TI2V-5B (Low Quality).json
@@ -27,30 +27,6 @@
"nodeId": "1a0e6c7b-9d2f-4b3c-8e1a-2f3d4c5b6a7e",
"fieldName": "wan_t5_encoder_model"
},
- {
- "nodeId": "3466ad11-a931-4adc-b394-9ec287f0c23b",
- "fieldName": "lora"
- },
- {
- "nodeId": "3466ad11-a931-4adc-b394-9ec287f0c23b",
- "fieldName": "weight"
- },
- {
- "nodeId": "3466ad11-a931-4adc-b394-9ec287f0c23b",
- "fieldName": "target"
- },
- {
- "nodeId": "9b4cde65-699f-42c1-8889-76ac91fcb62f",
- "fieldName": "lora"
- },
- {
- "nodeId": "9b4cde65-699f-42c1-8889-76ac91fcb62f",
- "fieldName": "weight"
- },
- {
- "nodeId": "9b4cde65-699f-42c1-8889-76ac91fcb62f",
- "fieldName": "target"
- },
{
"nodeId": "2b1f7d8c-ae3f-5c4d-9f2b-3a4e5d6c7b8f",
"fieldName": "prompt"
@@ -385,7 +361,10 @@
"label": "",
"description": ""
},
- "end_image": { "name": "end_image", "label": "" },
+ "end_image": {
+ "name": "end_image",
+ "label": ""
+ },
"vae": {
"name": "vae",
"label": "",
diff --git a/invokeai/app/services/workflow_records/default_workflows/Interpolate 2 Images to Video - Wan 2.2 Lightning.json b/invokeai/app/services/workflow_records/default_workflows/Interpolate 2 Images to Video - Wan 2.2 Lightning.json
index 8a1515ee6d..b7fb034b50 100644
--- a/invokeai/app/services/workflow_records/default_workflows/Interpolate 2 Images to Video - Wan 2.2 Lightning.json
+++ b/invokeai/app/services/workflow_records/default_workflows/Interpolate 2 Images to Video - Wan 2.2 Lightning.json
@@ -27,30 +27,6 @@
"nodeId": "1a0e6c7b-9d2f-4b3c-8e1a-2f3d4c5b6a7e",
"fieldName": "wan_t5_encoder_model"
},
- {
- "nodeId": "3466ad11-a931-4adc-b394-9ec287f0c23b",
- "fieldName": "lora"
- },
- {
- "nodeId": "3466ad11-a931-4adc-b394-9ec287f0c23b",
- "fieldName": "weight"
- },
- {
- "nodeId": "3466ad11-a931-4adc-b394-9ec287f0c23b",
- "fieldName": "target"
- },
- {
- "nodeId": "9b4cde65-699f-42c1-8889-76ac91fcb62f",
- "fieldName": "lora"
- },
- {
- "nodeId": "9b4cde65-699f-42c1-8889-76ac91fcb62f",
- "fieldName": "weight"
- },
- {
- "nodeId": "9b4cde65-699f-42c1-8889-76ac91fcb62f",
- "fieldName": "target"
- },
{
"nodeId": "2b1f7d8c-ae3f-5c4d-9f2b-3a4e5d6c7b8f",
"fieldName": "prompt"
diff --git a/invokeai/app/services/workflow_records/default_workflows/Last Frame to Video - MiniMax H3.json b/invokeai/app/services/workflow_records/default_workflows/Last Frame to Video - MiniMax H3.json
index 71a12effe3..4d9b9d3825 100644
--- a/invokeai/app/services/workflow_records/default_workflows/Last Frame to Video - MiniMax H3.json
+++ b/invokeai/app/services/workflow_records/default_workflows/Last Frame to Video - MiniMax H3.json
@@ -5,7 +5,7 @@
"version": "1.0.0",
"contact": "",
"tags": "minimax h3, image to video, last frame, video, audio",
- "notes": "The last frame is cover-cropped onto the target canvas. Write the prompt as a description of the whole clip, not just its final moment.\n\nEach InvokeAI install assigns its own internal model IDs, so every model field ships blank -- pick your installed models in the form after loading:\n\n- Model: the MiniMax H3 FL2VA install (diffusers layout). Required.\n- Transformer (single file) / Text Encoder (single file): optional single-file replacements for the install's transformer and Qwen3-VL encoder (e.g. the pruned int8 repacks). Leave blank to use the ones in the main install.\n- LoRA: the MiniMax H3 Turbo step-distillation LoRA.\n\nSteps default to 6, which assumes the Turbo LoRA is loaded. Without a step-distillation LoRA, raise steps to about 50 -- the reference default -- or the result will be badly under-denoised.\n\nMiniMax H3 generates the video and a synchronized stereo soundtrack together; the soundtrack is muxed into the MP4 automatically (AAC, 32 kHz). The frame rate is fixed at 24 fps and frame counts snap to a 17n+5 grid: 124 frames = ~5.2 s, up to 345 frames = 14.4 s. Width and height must be multiples of 32; the native canvas has a 768 px short edge (max 768x1344).\n\nThe model is guidance-distilled: no negative prompt, no CFG.\n\nA keyframe is part of BOTH the text conditioning (vision context) and the VAE frame conditioning -- the denoise node rejects the graph if the two disagree. Each image node here feeds Prompt - MiniMax H3 and Frame Conditioning - MiniMax H3 together, and one MiniMax H3 Ideal Dimensions node feeds the canvas to all three consumers, so the coupling holds automatically. Keep it that way if you edit a copy.\n\nThe Core Metadata node records the prompt, steps, seed, canvas size, frame count, any keyframe images and every model ID onto the saved video, so the gallery's Metadata tab is filled in and the video is findable by searching its prompt text. Each value is read over an edge from the node that actually used it, so nothing recorded can drift from what the form is set to. If you rewire the graph, keep those edges attached.",
+ "notes": "The last frame is cover-cropped onto the target canvas. Write the prompt as a description of the whole clip, not just its final moment.\n\nEach InvokeAI install assigns its own internal model IDs, so every model field ships blank -- pick your installed models in the form after loading:\n\n- Model: the MiniMax H3 FL2VA install (diffusers layout). Required.\n- Transformer (single file) / Text Encoder (single file): optional single-file replacements for the install's transformer and Qwen3-VL encoder (e.g. the pruned int8 repacks). Leave blank to use the ones in the main install.\n- LoRA: the MiniMax H3 Turbo step-distillation LoRA.\n\nSteps default to 6, which assumes the Turbo LoRA is loaded. The LoRA field is required: with it blank the workflow will not run. To generate without a step-distillation LoRA, edit the graph -- delete the 'Apply LoRA - MiniMax H3' node and the 'LoRAs (metadata)' Collect node next to it, connect Main Model's Transformer output straight to Denoise's Transformer input, and raise Steps to about 50 (the reference default) or the result will be badly under-denoised.\n\nMiniMax H3 generates the video and a synchronized stereo soundtrack together; the soundtrack is muxed into the MP4 automatically (AAC, 32 kHz). The frame rate is fixed at 24 fps and frame counts snap to a 17n+5 grid: 124 frames = ~5.2 s, up to 345 frames = 14.4 s. Width and height must be multiples of 32; the native canvas has a 768 px short edge (max 768x1344).\n\nThe model is guidance-distilled: no negative prompt, no CFG.\n\nA keyframe is part of BOTH the text conditioning (vision context) and the VAE frame conditioning -- the denoise node rejects the graph if the two disagree. Each image node here feeds Prompt - MiniMax H3 and Frame Conditioning - MiniMax H3 together, and one MiniMax H3 Ideal Dimensions node feeds the canvas to all three consumers, so the coupling holds automatically. Keep it that way if you edit a copy.\n\nThe Core Metadata node records the prompt, steps, seed, canvas size, frame count, any keyframe images and every model ID onto the saved video, so the gallery's Metadata tab is filled in and the video is findable by searching its prompt text. Each value is read over an edge from the node that actually used it, so nothing recorded can drift from what the form is set to. If you rewire the graph, keep those edges attached.",
"exposedFields": [
{
"nodeId": "9a82e4b5-7f1c-46ce-8d84-b0ac51f35c07",
diff --git a/invokeai/app/services/workflow_records/default_workflows/Text to Video - MiniMax H3.json b/invokeai/app/services/workflow_records/default_workflows/Text to Video - MiniMax H3.json
index 7ca1823f05..b3bc4135ef 100644
--- a/invokeai/app/services/workflow_records/default_workflows/Text to Video - MiniMax H3.json
+++ b/invokeai/app/services/workflow_records/default_workflows/Text to Video - MiniMax H3.json
@@ -2,10 +2,10 @@
"name": "Text to Video - MiniMax H3",
"author": "InvokeAI",
"description": "Text-to-video generation with MiniMax H3 (FL2VA). Produces an MP4 with a jointly generated AAC stereo soundtrack, and records the generation parameters onto the video so they show up in the gallery's Metadata tab.",
- "version": "1.0.0",
+ "version": "1.1.0",
"contact": "",
"tags": "minimax h3, text to video, video, audio",
- "notes": "Describe the clip in the prompt, set the canvas aspect and length, and generate.\n\nEach InvokeAI install assigns its own internal model IDs, so every model field ships blank -- pick your installed models in the form after loading:\n\n- Model: the MiniMax H3 FL2VA install (diffusers layout). Required.\n- Transformer (single file) / Text Encoder (single file): optional single-file replacements for the install's transformer and Qwen3-VL encoder (e.g. the pruned int8 repacks). Leave blank to use the ones in the main install.\n- LoRA: the MiniMax H3 Turbo step-distillation LoRA.\n\nSteps default to 6, which assumes the Turbo LoRA is loaded. Without a step-distillation LoRA, raise steps to about 50 -- the reference default -- or the result will be badly under-denoised.\n\nMiniMax H3 generates the video and a synchronized stereo soundtrack together; the soundtrack is muxed into the MP4 automatically (AAC, 32 kHz). The frame rate is fixed at 24 fps and frame counts snap to a 17n+5 grid: 124 frames = ~5.2 s, up to 345 frames = 14.4 s. Width and height must be multiples of 32; the native canvas has a 768 px short edge (max 768x1344).\n\nThe model is guidance-distilled: no negative prompt, no CFG.\n\nWidth and Height on the MiniMax H3 Ideal Dimensions node are the aspect ratio you are asking for, not the final canvas: the node snaps them onto a canvas the model supports. This template ships with the '768 lowres' preset (long edge 768) for quick renders -- switch it to '768 highres' for the model's native resolution.\n\nThe Core Metadata node records the prompt, steps, seed, canvas size, frame count, any keyframe images and every model ID onto the saved video, so the gallery's Metadata tab is filled in and the video is findable by searching its prompt text. Each value is read over an edge from the node that actually used it, so nothing recorded can drift from what the form is set to. If you rewire the graph, keep those edges attached.",
+ "notes": "Describe the clip in the prompt, set the canvas aspect and length, and generate.\n\nEach InvokeAI install assigns its own internal model IDs, so every model field ships blank -- pick your installed models in the form after loading:\n\n- Model: the MiniMax H3 FL2VA install (diffusers layout). Required.\n- Transformer (single file) / Text Encoder (single file): optional single-file replacements for the install's transformer and Qwen3-VL encoder (e.g. the pruned int8 repacks). Leave blank to use the ones in the main install.\n- LoRA: the MiniMax H3 Turbo step-distillation LoRA.\n\nSteps default to 6, which assumes the Turbo LoRA is loaded. The LoRA field is required: with it blank the workflow will not run. To generate without a step-distillation LoRA, edit the graph -- delete the 'Apply LoRA - MiniMax H3' node and the 'LoRAs (metadata)' Collect node next to it, connect Main Model's Transformer output straight to Denoise's Transformer input, and raise Steps to about 50 (the reference default) or the result will be badly under-denoised.\n\nMiniMax H3 generates the video and a synchronized stereo soundtrack together; the soundtrack is muxed into the MP4 automatically (AAC, 32 kHz). The frame rate is fixed at 24 fps and frame counts snap to a 17n+5 grid: 124 frames = ~5.2 s, up to 345 frames = 14.4 s. Width and height must be multiples of 32; the native canvas has a 768 px short edge (max 768x1344).\n\nThe model is guidance-distilled: no negative prompt, no CFG.\n\nWidth and Height on the MiniMax H3 Ideal Dimensions node are the aspect ratio you are asking for, not the final canvas: the node snaps them onto a canvas the model supports. This template ships with the '768 lowres' preset (long edge 768) for quick renders -- switch it to '768 highres' for the model's native resolution.\n\nThe Core Metadata node records the prompt, steps, seed, canvas size, frame count, any keyframe images and every model ID onto the saved video, so the gallery's Metadata tab is filled in and the video is findable by searching its prompt text. Each value is read over an edge from the node that actually used it, so nothing recorded can drift from what the form is set to. If you rewire the graph, keep those edges attached.",
"exposedFields": [
{
"nodeId": "9c0f3e11-2a3b-4c5d-8e6f-7a8b9c0d1e02",
diff --git a/invokeai/app/services/workflow_records/default_workflows/Text to Video - Wan 2.2 Lightning.json b/invokeai/app/services/workflow_records/default_workflows/Text to Video - Wan 2.2 Lightning.json
index d4ad5af999..8d2ee5107a 100644
--- a/invokeai/app/services/workflow_records/default_workflows/Text to Video - Wan 2.2 Lightning.json
+++ b/invokeai/app/services/workflow_records/default_workflows/Text to Video - Wan 2.2 Lightning.json
@@ -27,30 +27,6 @@
"nodeId": "1a0e6c7b-9d2f-4b3c-8e1a-2f3d4c5b6a7e",
"fieldName": "wan_t5_encoder_model"
},
- {
- "nodeId": "3466ad11-a931-4adc-b394-9ec287f0c23b",
- "fieldName": "lora"
- },
- {
- "nodeId": "3466ad11-a931-4adc-b394-9ec287f0c23b",
- "fieldName": "weight"
- },
- {
- "nodeId": "3466ad11-a931-4adc-b394-9ec287f0c23b",
- "fieldName": "target"
- },
- {
- "nodeId": "9b4cde65-699f-42c1-8889-76ac91fcb62f",
- "fieldName": "lora"
- },
- {
- "nodeId": "9b4cde65-699f-42c1-8889-76ac91fcb62f",
- "fieldName": "weight"
- },
- {
- "nodeId": "9b4cde65-699f-42c1-8889-76ac91fcb62f",
- "fieldName": "target"
- },
{
"nodeId": "2b1f7d8c-ae3f-5c4d-9f2b-3a4e5d6c7b8f",
"fieldName": "prompt"
diff --git a/invokeai/frontend/web/openapi.json b/invokeai/frontend/web/openapi.json
index c6338021a3..239890f6a6 100644
--- a/invokeai/frontend/web/openapi.json
+++ b/invokeai/frontend/web/openapi.json
@@ -28506,7 +28506,7 @@
"category": "video",
"class": "invocation",
"classification": "prototype",
- "description": "Trim a video to a contiguous frame range and re-encode as MP4.\n\nBoth bounds are inclusive and 0-based \u2014 ``start_frame=10, end_frame=50``\nemits 41 frames. Negative indices count from the end (``end_frame=-1``\nis the final frame), matching ``video_frame_extract``. The output frame\nrate defaults to the source video's frame rate; set ``fps=0`` to inherit\nit (or 16 fps if the source rate can't be probed). If the source has an\naudio track, the same range of it is carried into the output (retimed\nwith the video when the output fps changes playback speed); silent\nsources stay silent.\n\nThe resolved (positive) ``start_frame`` and ``end_frame`` are also emitted as\noutputs, so chained workflows can re-use the boundary indices \u2014 e.g. feeding\nthem into a downstream Frame from Video to extract the same boundary frame.",
+ "description": "Trim a video to a contiguous frame range and re-encode as MP4.\n\nBoth bounds are inclusive and 0-based \u2014 ``start_frame=10, end_frame=50``\nemits 41 frames. Negative indices count from the end (``end_frame=-1``\nis the final frame), matching ``video_frame_extract``. The output frame\nrate defaults to the source video's frame rate; set ``fps=0`` to inherit\nit (or 16 fps if the source rate can't be probed). If the source has an\naudio track, the same range of it is carried into the output (retimed\nwith the video when the output fps changes playback speed); silent\nsources stay silent.\n\nSetting ``width``/``height`` conforms the trimmed clip to that canvas (0 on an\naxis keeps the source's). This is what lets a trimmed source be concatenated\nwith a generated clip: Concatenate Videos rejects mismatched dimensions, and\nvideo models render onto their own fixed canvas family, so the source segment\nhas to be brought onto the same canvas first.\n\nThe resolved (positive) ``start_frame`` and ``end_frame`` are also emitted as\noutputs, so chained workflows can re-use the boundary indices \u2014 e.g. feeding\nthem into a downstream Frame from Video to extract the same boundary frame.",
"node_pack": "invokeai",
"properties": {
"board": {
@@ -28614,6 +28614,28 @@
"title": "Fps",
"type": "integer"
},
+ "width": {
+ "default": 0,
+ "description": "Output width in pixels. 0 = keep the source width. Set both width and height to conform the trimmed clip to a specific canvas \u2014 e.g. to match a generated clip before concatenating, since Concatenate Videos rejects mismatched dimensions.",
+ "field_kind": "input",
+ "input": "any",
+ "minimum": 0,
+ "orig_default": 0,
+ "orig_required": false,
+ "title": "Width",
+ "type": "integer"
+ },
+ "height": {
+ "default": 0,
+ "description": "Output height in pixels. 0 = keep the source height. Aspect ratio is not preserved: the frame is resampled to exactly the requested canvas.",
+ "field_kind": "input",
+ "input": "any",
+ "minimum": 0,
+ "orig_default": 0,
+ "orig_required": false,
+ "title": "Height",
+ "type": "integer"
+ },
"type": {
"const": "extract_video_range",
"default": "extract_video_range",
@@ -28626,7 +28648,7 @@
"tags": ["video", "trim", "range", "frames"],
"title": "Frame Range from Video",
"type": "object",
- "version": "1.2.0",
+ "version": "1.3.0",
"output": {
"$ref": "#/components/schemas/ExtractVideoRangeOutput"
}
@@ -37133,6 +37155,9 @@
{
"$ref": "#/components/schemas/MiniMaxH3FrameConditioningOutput"
},
+ {
+ "$ref": "#/components/schemas/MiniMaxH3LoRACollectionLoaderOutput"
+ },
{
"$ref": "#/components/schemas/MiniMaxH3LoRALoaderOutput"
},
@@ -46063,6 +46088,9 @@
{
"$ref": "#/components/schemas/MiniMaxH3FrameConditioningOutput"
},
+ {
+ "$ref": "#/components/schemas/MiniMaxH3LoRACollectionLoaderOutput"
+ },
{
"$ref": "#/components/schemas/MiniMaxH3LoRALoaderOutput"
},
@@ -47896,7 +47924,7 @@
"$ref": "#/components/schemas/VideoOutput"
},
"minimax_h3_lora_collection_loader": {
- "$ref": "#/components/schemas/MiniMaxH3LoRALoaderOutput"
+ "$ref": "#/components/schemas/MiniMaxH3LoRACollectionLoaderOutput"
},
"minimax_h3_lora_loader": {
"$ref": "#/components/schemas/MiniMaxH3LoRALoaderOutput"
@@ -69315,11 +69343,53 @@
"tags": ["lora", "model", "minimax"],
"title": "Apply LoRA Collection - MiniMax H3",
"type": "object",
- "version": "1.0.0",
+ "version": "1.1.0",
"output": {
- "$ref": "#/components/schemas/MiniMaxH3LoRALoaderOutput"
+ "$ref": "#/components/schemas/MiniMaxH3LoRACollectionLoaderOutput"
}
},
+ "MiniMaxH3LoRACollectionLoaderOutput": {
+ "class": "output",
+ "description": "MiniMax H3 LoRA collection loader output.\n\nSeparate from the single loader's output because a collection applies zero or more LoRAs,\nso its metadata echo is a list \u2014 which is also what `core_metadata.loras` takes directly,\nwith no intervening collect node.",
+ "properties": {
+ "transformer": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/MiniMaxH3TransformerField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Transformer",
+ "field_kind": "output",
+ "title": "MiniMax H3 Transformer",
+ "ui_hidden": false
+ },
+ "lora_metadata": {
+ "default": [],
+ "description": "The applied LoRAs, in the shape Core Metadata's `loras` field takes.",
+ "field_kind": "output",
+ "items": {
+ "$ref": "#/components/schemas/LoRAMetadataField"
+ },
+ "title": "LoRA Metadata",
+ "type": "array",
+ "ui_hidden": false
+ },
+ "type": {
+ "const": "minimax_h3_lora_collection_loader_output",
+ "default": "minimax_h3_lora_collection_loader_output",
+ "field_kind": "node_attribute",
+ "title": "type",
+ "type": "string"
+ }
+ },
+ "required": ["output_meta", "transformer", "lora_metadata", "type", "type"],
+ "title": "MiniMaxH3LoRACollectionLoaderOutput",
+ "type": "object"
+ },
"MiniMaxH3LoRALoaderInvocation": {
"category": "model",
"class": "invocation",
diff --git a/invokeai/frontend/web/src/services/api/schema.ts b/invokeai/frontend/web/src/services/api/schema.ts
index 1748fc7753..bd27b6dc1a 100644
--- a/invokeai/frontend/web/src/services/api/schema.ts
+++ b/invokeai/frontend/web/src/services/api/schema.ts
@@ -11119,6 +11119,12 @@ export type components = {
* with the video when the output fps changes playback speed); silent
* sources stay silent.
*
+ * Setting ``width``/``height`` conforms the trimmed clip to that canvas (0 on an
+ * axis keeps the source's). This is what lets a trimmed source be concatenated
+ * with a generated clip: Concatenate Videos rejects mismatched dimensions, and
+ * video models render onto their own fixed canvas family, so the source segment
+ * has to be brought onto the same canvas first.
+ *
* The resolved (positive) ``start_frame`` and ``end_frame`` are also emitted as
* outputs, so chained workflows can re-use the boundary indices — e.g. feeding
* them into a downstream Frame from Video to extract the same boundary frame.
@@ -11174,6 +11180,18 @@ export type components = {
* @default 0
*/
fps?: number;
+ /**
+ * Width
+ * @description Output width in pixels. 0 = keep the source width. Set both width and height to conform the trimmed clip to a specific canvas — e.g. to match a generated clip before concatenating, since Concatenate Videos rejects mismatched dimensions.
+ * @default 0
+ */
+ width?: number;
+ /**
+ * Height
+ * @description Output height in pixels. 0 = keep the source height. Aspect ratio is not preserved: the frame is resampled to exactly the requested canvas.
+ * @default 0
+ */
+ height?: number;
/**
* type
* @default extract_video_range
@@ -14956,7 +14974,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"]["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"]["Gemma2EncoderOutput"] | components["schemas"]["GradientMaskOutput"] | components["schemas"]["IPAdapterOutput"] | components["schemas"]["IdealSizeOutput"] | components["schemas"]["Ideogram4ConditioningOutput"] | components["schemas"]["Ideogram4ModelLoaderOutput"] | components["schemas"]["IfInvocationOutput"] | components["schemas"]["ImageCollectionOutput"] | components["schemas"]["ImageGeneratorOutput"] | components["schemas"]["ImageOutput"] | components["schemas"]["ImagePanelCoordinateOutput"] | components["schemas"]["IntegerCollectionOutput"] | components["schemas"]["IntegerGeneratorOutput"] | components["schemas"]["IntegerOutput"] | components["schemas"]["IterateInvocationOutput"] | components["schemas"]["Krea2ConditioningOutput"] | components["schemas"]["Krea2LoRALoaderOutput"] | components["schemas"]["Krea2ModelLoaderOutput"] | components["schemas"]["LatentsCollectionOutput"] | components["schemas"]["LatentsMetaOutput"] | components["schemas"]["LatentsOutput"] | components["schemas"]["LoRALoaderOutput"] | components["schemas"]["LoRASelectorOutput"] | components["schemas"]["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"]["MiniMaxH3LoRALoaderOutput"] | components["schemas"]["MiniMaxH3ModelLoaderOutput"] | 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"]["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"]["Gemma2EncoderOutput"] | components["schemas"]["GradientMaskOutput"] | components["schemas"]["IPAdapterOutput"] | components["schemas"]["IdealSizeOutput"] | components["schemas"]["Ideogram4ConditioningOutput"] | components["schemas"]["Ideogram4ModelLoaderOutput"] | components["schemas"]["IfInvocationOutput"] | components["schemas"]["ImageCollectionOutput"] | components["schemas"]["ImageGeneratorOutput"] | components["schemas"]["ImageOutput"] | components["schemas"]["ImagePanelCoordinateOutput"] | components["schemas"]["IntegerCollectionOutput"] | components["schemas"]["IntegerGeneratorOutput"] | components["schemas"]["IntegerOutput"] | components["schemas"]["IterateInvocationOutput"] | components["schemas"]["Krea2ConditioningOutput"] | components["schemas"]["Krea2LoRALoaderOutput"] | components["schemas"]["Krea2ModelLoaderOutput"] | components["schemas"]["LatentsCollectionOutput"] | components["schemas"]["LatentsMetaOutput"] | components["schemas"]["LatentsOutput"] | components["schemas"]["LoRALoaderOutput"] | components["schemas"]["LoRASelectorOutput"] | components["schemas"]["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"]["MiniMaxH3LoRACollectionLoaderOutput"] | components["schemas"]["MiniMaxH3LoRALoaderOutput"] | components["schemas"]["MiniMaxH3ModelLoaderOutput"] | 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
@@ -19053,7 +19071,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"]["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"]["Gemma2EncoderOutput"] | components["schemas"]["GradientMaskOutput"] | components["schemas"]["IPAdapterOutput"] | components["schemas"]["IdealSizeOutput"] | components["schemas"]["Ideogram4ConditioningOutput"] | components["schemas"]["Ideogram4ModelLoaderOutput"] | components["schemas"]["IfInvocationOutput"] | components["schemas"]["ImageCollectionOutput"] | components["schemas"]["ImageGeneratorOutput"] | components["schemas"]["ImageOutput"] | components["schemas"]["ImagePanelCoordinateOutput"] | components["schemas"]["IntegerCollectionOutput"] | components["schemas"]["IntegerGeneratorOutput"] | components["schemas"]["IntegerOutput"] | components["schemas"]["IterateInvocationOutput"] | components["schemas"]["Krea2ConditioningOutput"] | components["schemas"]["Krea2LoRALoaderOutput"] | components["schemas"]["Krea2ModelLoaderOutput"] | components["schemas"]["LatentsCollectionOutput"] | components["schemas"]["LatentsMetaOutput"] | components["schemas"]["LatentsOutput"] | components["schemas"]["LoRALoaderOutput"] | components["schemas"]["LoRASelectorOutput"] | components["schemas"]["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"]["MiniMaxH3LoRALoaderOutput"] | components["schemas"]["MiniMaxH3ModelLoaderOutput"] | 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"]["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"]["Gemma2EncoderOutput"] | components["schemas"]["GradientMaskOutput"] | components["schemas"]["IPAdapterOutput"] | components["schemas"]["IdealSizeOutput"] | components["schemas"]["Ideogram4ConditioningOutput"] | components["schemas"]["Ideogram4ModelLoaderOutput"] | components["schemas"]["IfInvocationOutput"] | components["schemas"]["ImageCollectionOutput"] | components["schemas"]["ImageGeneratorOutput"] | components["schemas"]["ImageOutput"] | components["schemas"]["ImagePanelCoordinateOutput"] | components["schemas"]["IntegerCollectionOutput"] | components["schemas"]["IntegerGeneratorOutput"] | components["schemas"]["IntegerOutput"] | components["schemas"]["IterateInvocationOutput"] | components["schemas"]["Krea2ConditioningOutput"] | components["schemas"]["Krea2LoRALoaderOutput"] | components["schemas"]["Krea2ModelLoaderOutput"] | components["schemas"]["LatentsCollectionOutput"] | components["schemas"]["LatentsMetaOutput"] | components["schemas"]["LatentsOutput"] | components["schemas"]["LoRALoaderOutput"] | components["schemas"]["LoRASelectorOutput"] | components["schemas"]["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"]["MiniMaxH3LoRACollectionLoaderOutput"] | components["schemas"]["MiniMaxH3LoRALoaderOutput"] | components["schemas"]["MiniMaxH3ModelLoaderOutput"] | 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
@@ -19342,7 +19360,7 @@ export type components = {
minimax_h3_ideal_dimensions: components["schemas"]["IdealSizeOutput"];
minimax_h3_latents_to_image: components["schemas"]["ImageOutput"];
minimax_h3_latents_to_video: components["schemas"]["VideoOutput"];
- minimax_h3_lora_collection_loader: components["schemas"]["MiniMaxH3LoRALoaderOutput"];
+ minimax_h3_lora_collection_loader: components["schemas"]["MiniMaxH3LoRACollectionLoaderOutput"];
minimax_h3_lora_loader: components["schemas"]["MiniMaxH3LoRALoaderOutput"];
minimax_h3_model_loader: components["schemas"]["MiniMaxH3ModelLoaderOutput"];
minimax_h3_text_encoder: components["schemas"]["MiniMaxH3ConditioningOutput"];
@@ -29453,6 +29471,34 @@ export type components = {
*/
type: "minimax_h3_lora_collection_loader";
};
+ /**
+ * MiniMaxH3LoRACollectionLoaderOutput
+ * @description MiniMax H3 LoRA collection loader output.
+ *
+ * Separate from the single loader's output because a collection applies zero or more LoRAs,
+ * so its metadata echo is a list — which is also what `core_metadata.loras` takes directly,
+ * with no intervening collect node.
+ */
+ MiniMaxH3LoRACollectionLoaderOutput: {
+ /**
+ * MiniMax H3 Transformer
+ * @description Transformer
+ * @default null
+ */
+ transformer: components["schemas"]["MiniMaxH3TransformerField"] | null;
+ /**
+ * LoRA Metadata
+ * @description The applied LoRAs, in the shape Core Metadata's `loras` field takes.
+ * @default []
+ */
+ lora_metadata: components["schemas"]["LoRAMetadataField"][];
+ /**
+ * type
+ * @default minimax_h3_lora_collection_loader_output
+ * @constant
+ */
+ type: "minimax_h3_lora_collection_loader_output";
+ };
/**
* Apply LoRA - MiniMax H3
* @description Apply a LoRA model to a MiniMax H3 transformer (e.g. the Turbo step-distillation LoRA).
diff --git a/invokeai/frontend/webv2/src/features/workflow/core/buildGraph.test.ts b/invokeai/frontend/webv2/src/features/workflow/core/buildGraph.test.ts
index 1f40f1491f..98b0e63b99 100644
--- a/invokeai/frontend/webv2/src/features/workflow/core/buildGraph.test.ts
+++ b/invokeai/frontend/webv2/src/features/workflow/core/buildGraph.test.ts
@@ -16,6 +16,7 @@ const input = (name: string, overrides: Partial<FieldInputTemplate> = {}): Field
description: '',
exclusiveMaximum: null,
exclusiveMinimum: null,
+ fieldKind: 'input',
input: 'any',
maximum: null,
minimum: null,
diff --git a/invokeai/frontend/webv2/src/features/workflow/core/document.test.ts b/invokeai/frontend/webv2/src/features/workflow/core/document.test.ts
index 2fea6f6e21..b57878d1d9 100644
--- a/invokeai/frontend/webv2/src/features/workflow/core/document.test.ts
+++ b/invokeai/frontend/webv2/src/features/workflow/core/document.test.ts
@@ -21,6 +21,7 @@ const template: InvocationTemplate = {
description: '',
exclusiveMaximum: null,
exclusiveMinimum: null,
+ fieldKind: 'input',
input: 'any',
maximum: null,
minimum: null,
diff --git a/invokeai/frontend/webv2/src/features/workflow/core/fields.test.ts b/invokeai/frontend/webv2/src/features/workflow/core/fields.test.ts
index 73836317e5..9c33652d5d 100644
--- a/invokeai/frontend/webv2/src/features/workflow/core/fields.test.ts
+++ b/invokeai/frontend/webv2/src/features/workflow/core/fields.test.ts
@@ -11,6 +11,7 @@ const input = (overrides: Partial<FieldInputTemplate> = {}): FieldInputTemplate
description: '',
exclusiveMaximum: null,
exclusiveMinimum: null,
+ fieldKind: 'input',
input: 'any',
maximum: null,
minimum: null,
diff --git a/invokeai/frontend/webv2/src/features/workflow/core/layerWorkflow.test.ts b/invokeai/frontend/webv2/src/features/workflow/core/layerWorkflow.test.ts
index 76bbe1837d..daa9f139e9 100644
--- a/invokeai/frontend/webv2/src/features/workflow/core/layerWorkflow.test.ts
+++ b/invokeai/frontend/webv2/src/features/workflow/core/layerWorkflow.test.ts
@@ -29,6 +29,7 @@ const input = (name: string, overrides: Partial<FieldInputTemplate> = {}): Field
description: '',
exclusiveMaximum: null,
exclusiveMinimum: null,
+ fieldKind: 'input',
input: 'any',
maximum: null,
minimum: null,
diff --git a/invokeai/frontend/webv2/src/features/workflow/core/properties.test.ts b/invokeai/frontend/webv2/src/features/workflow/core/properties.test.ts
index 6005588e48..541dba0d86 100644
--- a/invokeai/frontend/webv2/src/features/workflow/core/properties.test.ts
+++ b/invokeai/frontend/webv2/src/features/workflow/core/properties.test.ts
@@ -21,6 +21,7 @@ const template: InvocationTemplate = {
description: '',
exclusiveMaximum: null,
exclusiveMinimum: null,
+ fieldKind: 'input',
input: 'any',
maximum: null,
minimum: null,
diff --git a/invokeai/frontend/webv2/src/features/workflow/core/types.ts b/invokeai/frontend/webv2/src/features/workflow/core/types.ts
index 8ea8c2575b..385df5c7fc 100644
--- a/invokeai/frontend/webv2/src/features/workflow/core/types.ts
+++ b/invokeai/frontend/webv2/src/features/workflow/core/types.ts
@@ -25,6 +25,12 @@ export interface FieldInputTemplate {
description: string;
type: FieldType;
required: boolean;
+ /**
+ * `internal` marks a field the backend provides rather than the node author declaring it
+ * (`metadata`). It is a real, connectable input, but it is not part of the node's authored
+ * signature, so heuristics that pick "the" input for a node must skip it.
+ */
+ fieldKind: 'input' | 'internal';
/** How the field receives data: only via edge, only direct value, or either. */
input: 'connection' | 'direct' | 'any';
default?: unknown;
diff --git a/invokeai/frontend/webv2/src/features/workflow/core/validation.test.ts b/invokeai/frontend/webv2/src/features/workflow/core/validation.test.ts
index a5e2b60de6..637bfd9eb0 100644
--- a/invokeai/frontend/webv2/src/features/workflow/core/validation.test.ts
+++ b/invokeai/frontend/webv2/src/features/workflow/core/validation.test.ts
@@ -114,6 +114,7 @@ const templates: InvocationTemplates = {
description: '',
exclusiveMaximum: null,
exclusiveMinimum: null,
+ fieldKind: 'input',
input: 'connection',
maximum: null,
minimum: null,
@@ -151,6 +152,7 @@ const templates: InvocationTemplates = {
description: '',
exclusiveMaximum: null,
exclusiveMinimum: null,
+ fieldKind: 'input',
input: 'any',
maximum: null,
minimum: null,
@@ -204,6 +206,24 @@ describe('getCompatibleInputTemplate', () => {
expect(getCompatibleInputTemplate(template, single('ImageField'))).toBeNull();
expect(getCompatibleInputTemplate(template, null)?.name).toBe('early');
});
+
+ it('never auto-connects to an internal-kind input', () => {
+ // `metadata` has no `ui_order` and precedes the authored fields in the schema, so it
+ // sorts first on every WithMetadata node. Dragging onto the canvas must still land on
+ // the node's real input -- including when the source type could not be resolved, which
+ // skips the type check entirely.
+ const baseInput = templates.number.inputs.value;
+ const template = {
+ ...templates.number,
+ inputs: {
+ metadata: { ...baseInput, fieldKind: 'internal' as const, input: 'connection' as const, name: 'metadata' },
+ value: { ...baseInput, name: 'value' },
+ },
+ };
+
+ expect(getCompatibleInputTemplate(template, single('IntegerField'))?.name).toBe('value');
+ expect(getCompatibleInputTemplate(template, null)?.name).toBe('value');
+ });
});
describe('getWorkflowSourceFieldType', () => {
diff --git a/invokeai/frontend/webv2/src/features/workflow/core/validation.ts b/invokeai/frontend/webv2/src/features/workflow/core/validation.ts
index 012ad26754..7f61733593 100644
--- a/invokeai/frontend/webv2/src/features/workflow/core/validation.ts
+++ b/invokeai/frontend/webv2/src/features/workflow/core/validation.ts
@@ -175,6 +175,11 @@ export const getCompatibleInputTemplate = (
inputTemplates.find(
(inputTemplate) =>
!inputTemplate.uiHidden &&
+ // `metadata` sorts first on every WithMetadata node (no `ui_order`, and it precedes
+ // the authored fields in the schema), so without this it would win the drag-to-canvas
+ // auto-connect for any source whose type it accepts — or for any source whose type
+ // could not be resolved, which skips the type check below entirely.
+ inputTemplate.fieldKind !== 'internal' &&
inputTemplate.input !== 'direct' &&
(sourceType === null || validateConnectionTypes(sourceType, inputTemplate.type))
) ?? null
diff --git a/invokeai/frontend/webv2/src/features/workflow/core/workflowJson.test.ts b/invokeai/frontend/webv2/src/features/workflow/core/workflowJson.test.ts
index f1968155be..f2e8d95b67 100644
--- a/invokeai/frontend/webv2/src/features/workflow/core/workflowJson.test.ts
+++ b/invokeai/frontend/webv2/src/features/workflow/core/workflowJson.test.ts
@@ -23,6 +23,7 @@ const template: InvocationTemplate = {
description: '',
exclusiveMaximum: null,
exclusiveMinimum: null,
+ fieldKind: 'input',
input: 'any',
maximum: null,
minimum: null,
diff --git a/invokeai/frontend/webv2/src/features/workflow/data/templates.test.ts b/invokeai/frontend/webv2/src/features/workflow/data/templates.test.ts
index bfea62f07d..a39e3d0716 100644
--- a/invokeai/frontend/webv2/src/features/workflow/data/templates.test.ts
+++ b/invokeai/frontend/webv2/src/features/workflow/data/templates.test.ts
@@ -184,15 +184,17 @@ describe('parseOpenApiToTemplates', () => {
expect(denoise?.inputs.scheduler?.options).toEqual(['euler', 'ddim']);
});
- it('keeps internal-kind metadata and board inputs, but drops node attributes', () => {
- // `metadata` and `board` are the only two internal-kind properties in the schema, and both
- // are connectable: without them a bundled workflow's Core Metadata edge has no handle to
- // land on and is dropped on re-save.
+ it('keeps the internal-kind metadata input, but drops board and node attributes', () => {
+ // `metadata` and `board` are the only two internal-kind properties in the schema.
+ // `metadata` has to be here or a bundled workflow's Core Metadata edge has no handle to
+ // land on and is dropped on re-save. `board` stays out: this app re-homes results onto
+ // the active gallery board after every run, so a per-node board control would do nothing.
const saveVideo = templates.save_video;
- expect(Object.keys(saveVideo?.inputs ?? {}).sort()).toEqual(['board', 'latents', 'metadata']);
+ expect(Object.keys(saveVideo?.inputs ?? {}).sort()).toEqual(['latents', 'metadata']);
expect(saveVideo?.inputs.metadata?.type.name).toBe('MetadataField');
- expect(saveVideo?.inputs.board?.type.name).toBe('BoardField');
+ expect(saveVideo?.inputs.metadata?.fieldKind).toBe('internal');
+ expect(saveVideo?.inputs.latents?.fieldKind).toBe('input');
});
it('parses output templates', () => {
diff --git a/invokeai/frontend/webv2/src/features/workflow/data/templates.ts b/invokeai/frontend/webv2/src/features/workflow/data/templates.ts
index bab6af64df..aaed625666 100644
--- a/invokeai/frontend/webv2/src/features/workflow/data/templates.ts
+++ b/invokeai/frontend/webv2/src/features/workflow/data/templates.ts
@@ -42,6 +42,8 @@ const isJsonObject = (value: unknown): value is JsonObject => typeof value === '
const INVOCATION_DENYLIST = new Set(['graph', 'linear_ui_output']);
const RESERVED_INPUT_FIELD_NAMES = new Set(['id', 'type', 'use_cache', 'is_intermediate']);
+/** `field_kind: 'internal'` properties that are nonetheless real, connectable inputs here. */
+const CONNECTABLE_INTERNAL_FIELD_NAMES = new Set(['metadata']);
const RESERVED_FIELD_TYPE_NAMES = new Set(['IsIntermediate']);
const OPENAPI_TO_FIELD_TYPE_MAP: Record<string, string> = {
@@ -195,7 +197,12 @@ const getDefaultValueForType = (type: FieldType, options: string[] | null): unkn
}
};
-const buildInputTemplate = (name: string, property: JsonObject, type: FieldType): FieldInputTemplate => {
+const buildInputTemplate = (
+ name: string,
+ property: JsonObject,
+ type: FieldType,
+ fieldKind: FieldInputTemplate['fieldKind']
+): FieldInputTemplate => {
const enumValues = Array.isArray(property.enum)
? property.enum
: property.const !== undefined
@@ -216,6 +223,7 @@ const buildInputTemplate = (name: string, property: JsonObject, type: FieldType)
description: typeof property.description === 'string' ? property.description : '',
exclusiveMaximum: getNumberOrNull(property.exclusiveMaximum),
exclusiveMinimum: getNumberOrNull(property.exclusiveMinimum),
+ fieldKind,
input,
maximum: getNumberOrNull(property.maximum),
minimum: getNumberOrNull(property.minimum),
@@ -276,11 +284,21 @@ const parseInvocationSchema = (schema: JsonObject, schemas: JsonObject): Invocat
}
// `internal` covers exactly two properties across the whole schema: `metadata` and
- // `board`. Both are real, connectable inputs — a workflow that wires a Core Metadata
- // node into a save node needs the `metadata` handle to exist. The node-level
- // attributes (`id`, `type`, `use_cache`, `is_intermediate`) are `node_attribute`, so
- // they stay excluded here as well as by RESERVED_INPUT_FIELD_NAMES.
- if (rawProperty.field_kind !== 'input' && rawProperty.field_kind !== 'internal') {
+ // `board`. `metadata` is admitted because it is a real, connectable input — a workflow
+ // that wires a Core Metadata node into a save node needs that handle to exist, and
+ // without it the edge is invisible in the editor and dropped on re-save.
+ //
+ // `board` stays out. It is a direct input whose value this app does not honour: the
+ // queue runtime re-homes every result onto the active gallery board after a run
+ // (see `addImagesToDestination`), and `toBoardGraphValue` reads `'auto'` as "no board"
+ // where the v6 editor reads it as "the auto-add board". Admitting it would render a
+ // control on ~104 node types that silently does nothing. Revisit if those two are fixed.
+ //
+ // The node-level attributes (`id`, `type`, `use_cache`, `is_intermediate`) are
+ // `node_attribute`, so they stay excluded here as well as by RESERVED_INPUT_FIELD_NAMES.
+ const isConnectableInternal = rawProperty.field_kind === 'internal' && CONNECTABLE_INTERNAL_FIELD_NAMES.has(name);
+
+ if (rawProperty.field_kind !== 'input' && !isConnectableInternal) {
continue;
}
@@ -290,7 +308,7 @@ const parseInvocationSchema = (schema: JsonObject, schemas: JsonObject): Invocat
continue;
}
- inputs[name] = buildInputTemplate(name, rawProperty, fieldType);
+ inputs[name] = buildInputTemplate(name, rawProperty, fieldType, isConnectableInternal ? 'internal' : 'input');
}
const outputRefName = isJsonObject(schema.output) ? getRef(schema.output) : null;
diff --git a/invokeai/frontend/webv2/src/features/workflow/ui/editor/flowAdapters.test.ts b/invokeai/frontend/webv2/src/features/workflow/ui/editor/flowAdapters.test.ts
index 837040b3c5..809c50f3f7 100644
--- a/invokeai/frontend/webv2/src/features/workflow/ui/editor/flowAdapters.test.ts
+++ b/invokeai/frontend/webv2/src/features/workflow/ui/editor/flowAdapters.test.ts
@@ -31,6 +31,7 @@ const createTemplate = (outputType: FieldType = single('IntegerField')): Invocat
description: '',
exclusiveMaximum: null,
exclusiveMinimum: null,
+ fieldKind: 'input',
input: 'any',
maximum: null,
minimum: null,
diff --git a/tests/app/invocations/test_minimax_h3_lora_loader.py b/tests/app/invocations/test_minimax_h3_lora_loader.py
new file mode 100644
index 0000000000..943e429019
--- /dev/null
+++ b/tests/app/invocations/test_minimax_h3_lora_loader.py
@@ -0,0 +1,115 @@
+"""Tests for the MiniMax H3 LoRA loaders' metadata echo.
+
+Regression context: the single loader gained a required ``lora_metadata`` output so a
+workflow can record the LoRA it applied without retyping the model key. The collection
+loader shared that output class and constructed it with no arguments, so every
+invocation of ``minimax_h3_lora_collection_loader`` -- which the legacy Generate tab
+inserts whenever any H3 LoRA is enabled -- raised a pydantic ValidationError. It now has
+its own output whose echo is a list, the shape ``core_metadata.loras`` takes directly.
+"""
+
+from unittest.mock import MagicMock
+
+import pytest
+
+from invokeai.app.invocations.minimax_h3_lora_loader import (
+ MiniMaxH3LoRACollectionLoader,
+ MiniMaxH3LoRACollectionLoaderOutput,
+ MiniMaxH3LoRALoaderInvocation,
+)
+from invokeai.app.invocations.model import LoRAField, MiniMaxH3TransformerField, ModelIdentifierField
+from invokeai.backend.model_manager.taxonomy import BaseModelType, ModelType
+
+
+def _identifier(key: str, model_type: ModelType = ModelType.LoRA) -> ModelIdentifierField:
+ return ModelIdentifierField(key=key, hash=f"hash-{key}", name=key, base=BaseModelType.MiniMaxH3, type=model_type)
+
+
+def _transformer() -> MiniMaxH3TransformerField:
+ return MiniMaxH3TransformerField(transformer=_identifier("transformer", ModelType.Main))
+
+
+def _context(*lora_keys: str) -> MagicMock:
+ context = MagicMock()
+ context.models.exists.side_effect = lambda key: key in lora_keys
+ context.models.get_config.side_effect = lambda key: MagicMock(type=ModelType.LoRA, base=BaseModelType.MiniMaxH3)
+ return context
+
+
+def test_collection_loader_output_constructs_with_no_arguments() -> None:
+ """The exact regression: `invoke` builds this empty on the no-transformer path."""
+ output = MiniMaxH3LoRACollectionLoaderOutput()
+ assert output.transformer is None
+ assert output.lora_metadata == []
+
+
+def test_collection_loader_returns_cleanly_without_a_transformer() -> None:
+ output = MiniMaxH3LoRACollectionLoader(id="n").invoke(_context())
+ assert output.transformer is None
+ assert output.lora_metadata == []
+
+
+def test_collection_loader_echoes_every_applied_lora() -> None:
+ loras = [LoRAField(lora=_identifier("turbo"), weight=1.0), LoRAField(lora=_identifier("style"), weight=0.6)]
+ node = MiniMaxH3LoRACollectionLoader(id="n", transformer=_transformer(), loras=loras)
+
+ output = node.invoke(_context("turbo", "style"))
+
+ assert output.transformer is not None
+ assert [item.lora.key for item in output.transformer.loras] == ["turbo", "style"]
+ assert [(item.model.key, item.weight) for item in output.lora_metadata] == [("turbo", 1.0), ("style", 0.6)]
+
+
+def test_collection_loader_skips_duplicates_in_both_the_transformer_and_the_echo() -> None:
+ transformer = _transformer()
+ transformer.loras.append(LoRAField(lora=_identifier("turbo"), weight=1.0))
+ node = MiniMaxH3LoRACollectionLoader(
+ id="n", transformer=transformer, loras=[LoRAField(lora=_identifier("turbo"), weight=0.5)]
+ )
+
+ output = node.invoke(_context("turbo"))
+
+ assert output.transformer is not None
+ assert len(output.transformer.loras) == 1
+ assert output.lora_metadata == []
+
+
+def test_collection_loader_accepts_a_single_lora() -> None:
+ node = MiniMaxH3LoRACollectionLoader(
+ id="n", transformer=_transformer(), loras=LoRAField(lora=_identifier("turbo"), weight=1.0)
+ )
+
+ output = node.invoke(_context("turbo"))
+
+ assert [item.model.key for item in output.lora_metadata] == ["turbo"]
+
+
+def test_collection_loader_does_not_mutate_its_input_transformer() -> None:
+ transformer = _transformer()
+ node = MiniMaxH3LoRACollectionLoader(
+ id="n", transformer=transformer, loras=[LoRAField(lora=_identifier("turbo"), weight=1.0)]
+ )
+
+ node.invoke(_context("turbo"))
+
+ assert transformer.loras == []
+
+
+def test_single_loader_echoes_the_lora_it_applied() -> None:
+ node = MiniMaxH3LoRALoaderInvocation(id="n", lora=_identifier("turbo"), weight=0.8, transformer=_transformer())
+
+ output = node.invoke(_context("turbo"))
+
+ assert output.lora_metadata.model.key == "turbo"
+ assert output.lora_metadata.weight == 0.8
+ assert output.transformer is not None
+ assert [item.lora.key for item in output.transformer.loras] == ["turbo"]
+
+
+def test_single_loader_rejects_a_non_h3_lora() -> None:
+ node = MiniMaxH3LoRALoaderInvocation(id="n", lora=_identifier("turbo"), transformer=_transformer())
+ context = _context("turbo")
+ context.models.get_config.side_effect = lambda key: MagicMock(type=ModelType.LoRA, base=BaseModelType.Flux)
+
+ with pytest.raises(ValueError, match="is not a MiniMax H3 LoRA"):
+ node.invoke(context)
diff --git a/tests/app/invocations/test_video_frame_extract_range.py b/tests/app/invocations/test_video_frame_extract_range.py
index a62590ec81..b679eaf7dd 100644
--- a/tests/app/invocations/test_video_frame_extract_range.py
+++ b/tests/app/invocations/test_video_frame_extract_range.py
@@ -112,3 +112,88 @@ def test_invocation_only_saves_complete_requested_range(written: int, should_rai
output = invocation.invoke(context)
assert output.end_frame == 4
context.videos.save.assert_called_once()
+
+
+class TestWriteFrameRangeResizes:
+ """`resize_to` conforms the trimmed clip to a target canvas (see the concat pairing below)."""
+
+ def test_frames_are_resampled_to_the_requested_canvas(self) -> None:
+ writer = RecordingWriter()
+ written = _write_frame_range(_lazy_frames(4, [0]), writer, start=0, end=3, resize_to=(8, 6))
+ assert written == 4
+ assert [f.shape for f in writer.frames] == [(6, 8, 3)] * 4
+
+ def test_matching_frames_pass_through_untouched(self) -> None:
+ writer = RecordingWriter()
+ _write_frame_range(_lazy_frames(2, [0]), writer, start=0, end=1, resize_to=(4, 4))
+ assert [f.shape for f in writer.frames] == [(4, 4, 3)] * 2
+
+
+def _resize_invocation(**kwargs: object) -> tuple[ExtractVideoRangeInvocation, MagicMock]:
+ invocation = ExtractVideoRangeInvocation(
+ video=VideoField(video_name="input.mp4"), start_frame=0, end_frame=4, **kwargs
+ )
+ context = MagicMock()
+ context.videos.get_path.return_value = Path("input.mp4")
+ context.util.is_canceled.return_value = False
+ return invocation, context
+
+
+def test_invocation_saves_the_requested_canvas() -> None:
+ """A 1920x1080 source trimmed onto a 1344x768 canvas must be recorded as 1344x768.
+
+ This is what lets Extend Video concatenate the trimmed source with the generated
+ clip -- `video_concat` rejects mismatched dimensions outright.
+ """
+ invocation, context = _resize_invocation(width=1344, height=768)
+ base_output = MagicMock(
+ video=VideoField(video_name="output.mp4"), width=1344, height=768, num_frames=5, fps=8.0, duration=0.625
+ )
+
+ with (
+ patch("invokeai.app.invocations.video_frame_extract_range.probe_video", return_value=(1920, 1080, 0.625, 8.0)),
+ patch("invokeai.app.invocations.video_frame_extract_range.decoder_frame_count", return_value=5),
+ patch("invokeai.app.invocations.video_frame_extract_range.make_mp4_writer", return_value=MagicMock()),
+ patch("invokeai.app.invocations.video_frame_extract_range._write_frame_range", return_value=5) as write,
+ patch("invokeai.app.invocations.video_frame_extract_range.extract_audio_pcm", return_value=None),
+ patch("invokeai.app.invocations.video_frame_extract_range.VideoOutput.build", return_value=base_output),
+ ):
+ output = invocation.invoke(context)
+
+ assert write.call_args.kwargs["resize_to"] == (1344, 768)
+ saved = context.videos.save.call_args.kwargs
+ assert (saved["width"], saved["height"]) == (1344, 768)
+ assert output.video.video_name == "output.mp4"
+
+
+def test_invocation_keeps_source_dimensions_when_canvas_is_unset() -> None:
+ invocation, context = _resize_invocation()
+ base_output = MagicMock(
+ video=VideoField(video_name="output.mp4"), width=32, height=32, num_frames=5, fps=8.0, duration=0.625
+ )
+
+ with (
+ patch("invokeai.app.invocations.video_frame_extract_range.probe_video", return_value=(32, 32, 0.625, 8.0)),
+ patch("invokeai.app.invocations.video_frame_extract_range.decoder_frame_count", return_value=5),
+ patch("invokeai.app.invocations.video_frame_extract_range.make_mp4_writer", return_value=MagicMock()),
+ patch("invokeai.app.invocations.video_frame_extract_range._write_frame_range", return_value=5) as write,
+ patch("invokeai.app.invocations.video_frame_extract_range.extract_audio_pcm", return_value=None),
+ patch("invokeai.app.invocations.video_frame_extract_range.VideoOutput.build", return_value=base_output),
+ ):
+ invocation.invoke(context)
+
+ assert write.call_args.kwargs["resize_to"] is None
+ saved = context.videos.save.call_args.kwargs
+ assert (saved["width"], saved["height"]) == (32, 32)
+
+
+def test_invocation_rejects_an_odd_requested_canvas() -> None:
+ invocation, context = _resize_invocation(width=1345, height=768)
+
+ with (
+ patch("invokeai.app.invocations.video_frame_extract_range.probe_video", return_value=(1920, 1080, 0.625, 8.0)),
+ patch("invokeai.app.invocations.video_frame_extract_range.decoder_frame_count", return_value=5),
+ pytest.raises(ValueError, match="Requested output size is 1345x768"),
+ ):
+ invocation.invoke(context)
+ context.videos.save.assert_not_called()