The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
feat(video): MiniMax H3 runs as a video model with sound
purple30e4b14f5083
diff --git a/src-tauri/src/commands/model_sniff.rs b/src-tauri/src/commands/model_sniff.rsindex d81aaa45..8bf0e6f2 100644--- a/src-tauri/src/commands/model_sniff.rs+++ b/src-tauri/src/commands/model_sniff.rs@@ -93,7 +93,11 @@ pub fn classify<'a>(tensors: impl IntoIterator<Item = (&'a str, Option<&'a [u64]}}let has = |s: &str| stems.contains(s);- let arch = if has("double_stream_modulation_img") {+ let arch = if has("audio_patch_proj") && has("video_patch_proj") {+ // MiniMax H3: picture and sound from one model (Discord 2026-09-26,+ // a CivitAI repack listed as an image model).+ Some("minimaxh3")+ } else if has("double_stream_modulation_img") {Some("flux2")} else if has("distilled_guidance_layer") {Some("chroma")@@ -259,6 +263,9 @@ mod tests {assert_eq!(arch(&["double_stream_blocks.0.x", "caption_projection.0.x"]).as_deref(), Some("hidream"));assert_eq!(arch(&["model.diffusion_model.joint_blocks.0.x", "text_encoders.clip_l.x"]).as_deref(), Some("sd3"));assert_eq!(arch(&["blocks.0.x", "patch_embedding.weight", "text_embedding.0.weight"]).as_deref(), Some("wan"));+ assert_eq!(arch(&["blocks.0.attn.qkv_proj.weight", "token_refiner.0.x", "audio_patch_proj.weight", "video_patch_proj.weight", "adaln_t_table"]).as_deref(), Some("minimaxh3"));+ // One half alone is not H3.+ assert_eq!(arch(&["blocks.0.x", "video_patch_proj.weight"]), None);assert_eq!(arch(&["foo.weight"]), None);assert_eq!(arch(&["encoder.conv_in.weight", "decoder.conv_out.weight"]).as_deref(), Some("vae"));assert_eq!(arch(&["model.layers.0.mlp.weight", "model.embed_tokens.weight"]).as_deref(), Some("text_encoder"));diff --git a/src/api/__tests__/app-wide-smoke.test.ts b/src/api/__tests__/app-wide-smoke.test.tsindex 8b407e3a..2f9e6350 100644--- a/src/api/__tests__/app-wide-smoke.test.ts+++ b/src/api/__tests__/app-wide-smoke.test.ts@@ -46,7 +46,7 @@ function fullNodes(): CategorizedNodes {'EmptyLatentImage', 'EmptySD3LatentImage', 'EmptyFlux2LatentImage','EmptyHunyuanLatentVideo', 'EmptyLTXVLatentVideo','EmptyMochiLatentVideo', 'EmptyCosmosLatentVideo',- 'CogVideoXEmptyLatents', 'Wan22ImageToVideoLatent',+ 'CogVideoXEmptyLatents', 'Wan22ImageToVideoLatent', 'MiniMaxH3ImageToVideo',],textEncoders: ['CLIPTextEncode', 'ConditioningZeroOut', 'TextEncodeQwenImage21', 'CogVideoXTextEncode', 'PyramidFlowTextEncode', 'AllegroTextEncode'],decoders: ['VAEDecode', 'CogVideoXVAEDecode', 'PyramidFlowDecode', 'AllegroDecoder'],diff --git a/src/api/__tests__/comfyui-bundles.test.ts b/src/api/__tests__/comfyui-bundles.test.tsindex d75de35b..efe94a82 100644--- a/src/api/__tests__/comfyui-bundles.test.ts+++ b/src/api/__tests__/comfyui-bundles.test.ts@@ -17,8 +17,9 @@ describe('Video Bundle Definitions', () => {// uncensored GGUF finetunes (NSFW Wan 14B t2v + Wan 2.2 Rapid AIO i2v).// 2026-07-24 removes three that could never run: both CogVideoX bundles// (21 GB each) and Pyramid Flow, whose builders emitted node class names no- // wrapper registers. See wrapper-node-names.test.ts.- expect(bundles.length).toBe(13)+ // wrapper registers. See wrapper-node-names.test.ts. 2026-10-01 adds+ // MiniMax H3 (video with sound).+ expect(bundles.length).toBe(14)})it('every bundle has required fields', () => {@@ -91,7 +92,7 @@ describe('Video Bundle Definitions', () => {it('every workflow type is a known strategy', () => {const knownWorkflows = ['wan', 'wan22', 'hunyuan', 'ltx', 'animatediff', 'cogvideo', 'framepack',- 'svd', 'mochi', 'cosmos', 'pyramidflow', 'allegro']+ 'svd', 'mochi', 'cosmos', 'pyramidflow', 'allegro', 'minimaxh3']for (const b of bundles) {expect(knownWorkflows).toContain(b.workflow)}diff --git a/src/api/__tests__/comfyui-integration.test.ts b/src/api/__tests__/comfyui-integration.test.tsindex cdf1287f..bd0453a8 100644--- a/src/api/__tests__/comfyui-integration.test.ts+++ b/src/api/__tests__/comfyui-integration.test.ts@@ -29,7 +29,7 @@ function allNodesAvailable(): CategorizedNodes {'EmptyLatentImage', 'EmptySD3LatentImage', 'EmptyFlux2LatentImage','EmptyHunyuanLatentVideo', 'EmptyLTXVLatentVideo','EmptyMochiLatentVideo', 'EmptyCosmosLatentVideo',- 'CogVideoXEmptyLatents', 'Wan22ImageToVideoLatent',+ 'CogVideoXEmptyLatents', 'Wan22ImageToVideoLatent', 'MiniMaxH3ImageToVideo',],textEncoders: ['CLIPTextEncode', 'CogVideoXTextEncode', 'PyramidFlowTextEncode', 'AllegroTextEncode'],decoders: ['VAEDecode', 'CogVideoXVAEDecode', 'PyramidFlowDecode', 'AllegroDecoder'],@@ -67,7 +67,7 @@ describe('Full Pipeline: Bundle → Strategy for all 14 video bundles', () => {const workflowToModelType: Record<string, ModelType> = {wan: 'wan', wan22: 'wan22', hunyuan: 'hunyuan', ltx: 'ltx', animatediff: 'sd15',cogvideo: 'cogvideo', framepack: 'framepack', svd: 'svd',- mochi: 'mochi', cosmos: 'cosmos', pyramidflow: 'pyramidflow', allegro: 'allegro',+ mochi: 'mochi', cosmos: 'cosmos', pyramidflow: 'pyramidflow', allegro: 'allegro', minimaxh3: 'minimaxh3',}const modelType = workflowToModelType[workflow]expect(modelType).toBeDefined()@@ -86,7 +86,7 @@ describe('Bundle consistency checks', () => {const bundles = getVideoBundles()it('all video bundle workflows map to video model types', () => {- const videoWorkflows = ['wan', 'wan22', 'hunyuan', 'ltx', 'animatediff', 'cogvideo', 'framepack', 'svd', 'mochi', 'cosmos', 'pyramidflow', 'allegro']+ const videoWorkflows = ['wan', 'wan22', 'hunyuan', 'ltx', 'animatediff', 'cogvideo', 'framepack', 'svd', 'mochi', 'cosmos', 'pyramidflow', 'allegro', 'minimaxh3']for (const b of bundles) {expect(videoWorkflows).toContain(b.workflow)}@@ -106,7 +106,7 @@ describe('Bundle consistency checks', () => {it('native bundles (no customNodes) use native ComfyUI strategies', () => {const nativeBundles = bundles.filter(b => !b.customNodes || b.customNodes.length === 0)- const nativeWorkflows = ['wan', 'wan22', 'hunyuan', 'ltx', 'svd', 'mochi', 'cosmos']+ const nativeWorkflows = ['wan', 'wan22', 'hunyuan', 'ltx', 'svd', 'mochi', 'cosmos', 'minimaxh3']for (const b of nativeBundles) {expect(nativeWorkflows).toContain(b.workflow)}@@ -142,6 +142,7 @@ describe('Model filename classification consistency', () => {framepack: ['framepack'],pyramidflow: ['pyramidflow'],allegro: ['allegro'],+ minimaxh3: ['minimaxh3'],// AnimateDiff uses SD1.5 checkpoints — they classify as sd15 or unknownanimatediff: ['sd15', 'unknown'],}diff --git a/src/api/__tests__/minimax-h3-is-a-video-model-with-sound.test.ts b/src/api/__tests__/minimax-h3-is-a-video-model-with-sound.test.tsnew file mode 100644index 00000000..e35be480--- /dev/null+++ b/src/api/__tests__/minimax-h3-is-a-video-model-with-sound.test.ts@@ -0,0 +1,183 @@+/**+ * Discord 2026-09-26 (throwaway): MiniMax H3 from CivitAI showed up as an+ * image model. LU did not know the family, so it went to the image picker and+ * the checkpoint loader. It is a video model that writes its own sound, built+ * the way the official Comfy-Org templates build it.+ *+ * Run: npx vitest run src/api/__tests__/minimax-h3-is-a-video-model-with-sound.test.ts+ */+import { describe, it, expect, vi, beforeEach } from 'vitest'++vi.mock('../comfyui-nodes', async (importOriginal) => {+ const actual = await importOriginal<typeof import('../comfyui-nodes')>()+ return { ...actual, getAllNodeInfo: vi.fn() }+})+vi.mock('../backend', async (importOriginal) => {+ const actual = await importOriginal<typeof import('../backend')>()+ return { ...actual, localFetch: vi.fn(), comfyuiUrl: (p: string) => `http://test${p}` }+})++import { buildDynamicWorkflow, snapMiniMaxH3Length, WorkflowUnavailableError } from '../dynamic-workflow'+import { getAllNodeInfo } from '../comfyui-nodes'+import { classifyModel, isImageModelType, isVideoModelType, isI2VModel, isT2VCapable, findMatchingCLIP, findMatchingVAE } from '../comfyui'+import { resolveI2VResolution } from '../vram-handoff'+import { getVideoBundles } from '../discover'+import { localFetch } from '../backend'+import { nodeOf } from './graph-test-support'++const FL2VA = 'minimax_h3_fl2va_pruned_int8_convrot.safetensors'+const REF2VA = 'minimax_h3_ref2va_pruned_int8_convrot.safetensors'+const ENCODER = 'qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors'+const VIDEO_VAE = 'minimax_h3_video_vae_int8_convrot.safetensors'+const AUDIO_VAE = 'minimax_h3_audio_vae_fp32.safetensors'++const H3_NODES: Record<string, unknown> = {+ UNETLoader: { input: { required: { unet_name: [[FL2VA, REF2VA]] } } },+ CLIPLoader: { input: { required: { clip_name: [[ENCODER]] } } },+ VAELoader: { input: { required: { vae_name: [[VIDEO_VAE, AUDIO_VAE]] } } },+ LoraLoaderModelOnly: { input: { required: {} } },+ MiniMaxH3ImageToVideo: { input: { required: {} } },+ MiniMaxH3ReferenceToVideo: { input: { required: {} } },+ BasicGuider: { input: { required: {} } },+ BasicScheduler: { input: { required: {} } },+ KSamplerSelect: { input: { required: {} } },+ RandomNoise: { input: { required: {} } },+ SamplerCustomAdvanced: { input: { required: {} } },+ VAEDecode: { input: { required: {} } },+ VAEDecodeAudio: { input: { required: {} } },+ LoadImage: { input: { required: {} } },+ ImageScale: { input: { required: {} } },+ CreateVideo: { input: { required: {} } },+ SaveVideo: { input: { required: {} } },+}++function serveEnums(vaes: string[], clips: string[]) {+ vi.mocked(localFetch).mockResolvedValue({+ ok: true,+ json: async () => ({+ CLIPLoader: { input: { required: { clip_name: [clips] } } },+ VAELoader: { input: { required: { vae_name: [vaes] } } },+ }),+ } as never)+}++const run = (model: string, extra: Record<string, unknown> = {}) => ({+ model, prompt: 'a drummer on a rooftop, the snare cracks on every hit', negativePrompt: '',+ sampler: 'res_multistep', scheduler: 'simple', steps: 20, cfgScale: 1,+ width: 1344, height: 768, seed: 7, batchSize: 1, frames: 124, fps: 24, ...extra,+}) as never++beforeEach(() => {+ vi.mocked(getAllNodeInfo).mockResolvedValue(H3_NODES as never)+ serveEnums([VIDEO_VAE, AUDIO_VAE], [ENCODER])+})++describe('MiniMax H3 is a video model', () => {+ it('both weight sets land in the video lane, for text and for a start image', () => {+ for (const name of [FL2VA, REF2VA, 'MiniMax-H3-civitai-repack.safetensors']) {+ expect(classifyModel(name)).toBe('minimaxh3')+ expect(isVideoModelType(classifyModel(name))).toBe(true)+ expect(isImageModelType(classifyModel(name))).toBe(false)+ expect(isI2VModel(name)).toBe(true)+ expect(isT2VCapable(name)).toBe(true)+ }+ })++ it('the Model Manager offers the four files of the official template', () => {+ const bundle = getVideoBundles().find((b) => b.workflow === 'minimaxh3')!+ expect(bundle.files.map((f) => f.filename)).toEqual([FL2VA, ENCODER, VIDEO_VAE, AUDIO_VAE])+ for (const f of bundle.files) expect(f.downloadUrl).toMatch(/^https:\/\/huggingface\.co\/Comfy-Org\/MiniMax-H3\/resolve\/main\//)+ })+})++describe('the graph follows the official templates', () => {+ it('text to video: UNET, CLIPLoader(minimax), MiniMaxH3ImageToVideo, BasicGuider, both decoders, CreateVideo with sound', async () => {+ const wf = await buildDynamicWorkflow(run(FL2VA), 'minimaxh3')+ expect(nodeOf(wf, 'UNETLoader')![1].inputs.unet_name).toBe(FL2VA)+ expect(nodeOf(wf, 'CLIPLoader')![1].inputs).toMatchObject({ clip_name: ENCODER, type: 'minimax' })+ const [encId, enc] = nodeOf(wf, 'MiniMaxH3ImageToVideo')!+ expect(enc.inputs).toMatchObject({ width: 1344, height: 768, length: 124 })+ expect(enc.inputs.first_frame).toBeUndefined()+ const sample = nodeOf(wf, 'SamplerCustomAdvanced')!+ expect(sample[1].inputs.latent_image).toEqual([encId, 1])+ expect(nodeOf(wf, 'BasicGuider')![1].inputs.conditioning).toEqual([encId, 0])+ expect(nodeOf(wf, 'KSamplerSelect')![1].inputs.sampler_name).toBe('res_multistep')+ // Each decoder gets its own autoencoder, both read the one sampled latent.+ const vaeOf = (id: unknown) => wf[(id as [string, number])[0]]?.inputs?.vae_name+ expect(vaeOf(nodeOf(wf, 'VAEDecode')![1].inputs.vae)).toBe(VIDEO_VAE)+ expect(vaeOf(nodeOf(wf, 'VAEDecodeAudio')![1].inputs.vae)).toBe(AUDIO_VAE)+ expect(nodeOf(wf, 'VAEDecodeAudio')![1].inputs.samples).toEqual([sample[0], 0])+ const create = nodeOf(wf, 'CreateVideo')![1].inputs+ expect(create.fps).toBe(24)+ expect(create.audio).toEqual([nodeOf(wf, 'VAEDecodeAudio')![0], 0])+ expect(nodeOf(wf, 'KSampler')).toBeUndefined()+ expect(nodeOf(wf, 'CheckpointLoaderSimple')).toBeUndefined()+ })++ it('a start image becomes the first frame, cropped to the canvas', async () => {+ const wf = await buildDynamicWorkflow(run(FL2VA, { inputImage: 'still.png' }), 'minimaxh3')+ const [scaleId, scale] = nodeOf(wf, 'ImageScale')!+ expect(scale.inputs).toMatchObject({ width: 1344, height: 768, crop: 'center' })+ expect(nodeOf(wf, 'MiniMaxH3ImageToVideo')![1].inputs.first_frame).toEqual([scaleId, 0])+ })++ it('ref2va weights take the image as reference picture 1 and the audio VAE', async () => {+ const wf = await buildDynamicWorkflow(run(REF2VA, { inputImage: 'face.png' }), 'minimaxh3')+ const ref = nodeOf(wf, 'MiniMaxH3ReferenceToVideo')![1].inputs+ expect(ref['ref_images.ref_image_0']).toEqual([nodeOf(wf, 'ImageScale')![0], 0])+ expect(ref.ref_image_size).toBe('match')+ expect(wf[(ref.audio_vae as [string, number])[0]]?.inputs?.vae_name).toBe(AUDIO_VAE)+ expect(nodeOf(wf, 'MiniMaxH3ImageToVideo')).toBeUndefined()+ })++ it('a video LoRA patches the model the guider and scheduler read', async () => {+ const wf = await buildDynamicWorkflow(run(FL2VA, { lora: 'minimax_h3_fl2v_turbo_8step_v1.0_comfyui_bf16.safetensors' }), 'minimaxh3')+ const [loraId] = nodeOf(wf, 'LoraLoaderModelOnly')!+ expect(nodeOf(wf, 'BasicGuider')![1].inputs.model).toEqual([loraId, 0])+ expect(nodeOf(wf, 'BasicScheduler')![1].inputs.model).toEqual([loraId, 0])+ })++ it('frame counts snap up to the 17k+5 grid', () => {+ expect(snapMiniMaxH3Length(124)).toBe(124)+ expect(snapMiniMaxH3Length(120)).toBe(124)+ expect(snapMiniMaxH3Length(125)).toBe(141)+ expect(snapMiniMaxH3Length(1)).toBe(5)+ expect(snapMiniMaxH3Length(360)).toBe(362)+ })++ it('a portrait still gets a portrait canvas in the chat tool', () => {+ expect(resolveI2VResolution('minimaxh3', 768, 1344)).toEqual({ width: 768, height: 1344 })+ expect(resolveI2VResolution('minimaxh3', 1024, 1024)).toEqual({ width: 768, height: 768 })+ expect(resolveI2VResolution('minimaxh3', 0, 0)).toEqual({ width: 1344, height: 768 })+ })++ // Negative control: an install without the H3 nodes gets the update+ // sentence, never a graph ComfyUI would refuse.+ it('an older ComfyUI is told to update', async () => {+ const old = { ...H3_NODES }+ delete old.MiniMaxH3ImageToVideo+ delete old.MiniMaxH3ReferenceToVideo+ vi.mocked(getAllNodeInfo).mockResolvedValue(old as never)+ const err = await buildDynamicWorkflow(run(FL2VA), 'minimaxh3').catch((e) => e)+ expect(err).toBeInstanceOf(WorkflowUnavailableError)+ expect(String(err.message)).toMatch(/Update ComfyUI/)+ })+})++describe('the H3 files stay out of the other families', () => {+ // The H3 encoder is a Qwen3-VL file too, and both VAEs say minimax.+ it('Krea 2, FLUX 2, HunyuanVideo and FramePack never take the 32B H3 encoder', async () => {+ serveEnums([VIDEO_VAE, AUDIO_VAE], [ENCODER])+ await expect(findMatchingCLIP('krea2', 'krea-2-dev-fp8.safetensors')).rejects.toThrow(/Krea 2 text encoder/)+ await expect(findMatchingCLIP('flux2', 'flux2_klein_4b_fp4.safetensors')).rejects.toThrow()+ await expect(findMatchingCLIP('hunyuan', 'hunyuanvideo1.5_720p.safetensors')).rejects.toThrow()+ await expect(findMatchingCLIP('framepack', 'FramePackI2V_HY.safetensors')).rejects.toThrow()+ })++ it('H3 takes the video VAE for the picture and says what is missing', async () => {+ expect(await findMatchingVAE('minimaxh3')).toBe(VIDEO_VAE)+ serveEnums(['wan_2.1_vae.safetensors'], ['umt5_xxl_fp8_e4m3fn_scaled.safetensors'])+ await expect(findMatchingVAE('minimaxh3')).rejects.toThrow(/minimax_h3_video_vae_int8_convrot/)+ await expect(findMatchingCLIP('minimaxh3', FL2VA)).rejects.toThrow(/qwen3vl_32b_minimax_h3_nvfp4_awq/)+ })+})diff --git a/src/api/__tests__/wrapper-node-names.test.ts b/src/api/__tests__/wrapper-node-names.test.tsindex 434ba5ae..786271dd 100644--- a/src/api/__tests__/wrapper-node-names.test.ts+++ b/src/api/__tests__/wrapper-node-names.test.ts@@ -61,7 +61,12 @@ const CORE_NODES = new Set(['EmptyLatentImage', 'EmptyLTXVLatentVideo', 'Wan22ImageToVideoLatent', 'TrimVideoLatent','WanSoundImageToVideo', 'WanAnimateToVideo', 'WanVaceToVideo',// sampling- 'KSampler',+ // BasicGuider, BasicScheduler, KSamplerSelect, RandomNoise and+ // SamplerCustomAdvanced: comfy_extras/nodes_custom_sampler.py; the two+ // MiniMax H3 encode nodes: comfy_extras/nodes_minimax_h3.py, listed in+ // nodes.py's extras. Both read in ComfyUI master on 2026-10-01.+ 'KSampler', 'BasicGuider', 'BasicScheduler', 'KSamplerSelect', 'RandomNoise', 'SamplerCustomAdvanced',+ 'MiniMaxH3ImageToVideo', 'MiniMaxH3ReferenceToVideo',// lora'LoraLoader', 'LoraLoaderModelOnly',// decode + image opsdiff --git a/src/api/comfyui-nodes.ts b/src/api/comfyui-nodes.tsindex 96ce7a03..392ab50d 100644--- a/src/api/comfyui-nodes.ts+++ b/src/api/comfyui-nodes.ts@@ -142,6 +142,9 @@ export function categorizeNodes(allNodes: Record<string, NodeMetadata>): CategorCogVideoXEmptyLatents: 'latentInit',// Wan 2.2 TI2V-5B unified latent (optional start_image → I2V, absent → T2V)Wan22ImageToVideoLatent: 'latentInit',+ // MiniMax H3: the encode node also builds the joint picture-and-sound+ // latent, so it stands in for the empty latent (ComfyUI PR #15224).+ MiniMaxH3ImageToVideo: 'latentInit',// ConditioningConditioningZeroOut: 'textEncoders',// Text encodingdiff --git a/src/api/comfyui.ts b/src/api/comfyui.tsindex e528db0b..7e8f437e 100644--- a/src/api/comfyui.ts+++ b/src/api/comfyui.ts@@ -159,7 +159,7 @@ export function galleryTypeForFile(// 2.5.8: ace / wans2v / wananimate / wanvace are the specialized local-lane// architectures (music, talking character, motion control). They are neither// image nor video picker material — each lane has its own model list.-export type ModelType = 'flux' | 'flux2' | 'krea2' | 'zimage' | 'ernie_image' | 'qwenimage' | 'qwenimage1' | 'chroma' | 'hidream' | 'sd3' | 'lumina2' | 'sdxl' | 'sd15' | 'wan' | 'wan22' | 'hunyuan' | 'ltx' | 'mochi' | 'cosmos' | 'cogvideo' | 'svd' | 'framepack' | 'pyramidflow' | 'allegro' | 'ace' | 'wans2v' | 'wananimate' | 'wanvace' | 'animatediff' | 'unknown'+export type ModelType = 'flux' | 'flux2' | 'krea2' | 'zimage' | 'ernie_image' | 'qwenimage' | 'qwenimage1' | 'chroma' | 'hidream' | 'sd3' | 'lumina2' | 'sdxl' | 'sd15' | 'wan' | 'wan22' | 'hunyuan' | 'ltx' | 'mochi' | 'cosmos' | 'cogvideo' | 'svd' | 'framepack' | 'pyramidflow' | 'allegro' | 'ace' | 'wans2v' | 'wananimate' | 'wanvace' | 'animatediff' | 'minimaxh3' | 'unknown'export type VideoBackend = 'wan' | 'animatediff' | 'none'export interface ClassifiedModel {@@ -255,6 +255,11 @@ export function classifyModel(name: string | null | undefined): ModelType {// TI2V-5B path the wan2.2 tag would otherwise route them onto.if (lower.includes('rapid') && lower.includes('aio')) return 'wan'+ // MiniMax H3 (Comfy-Org/MiniMax-H3): video with its own sound track, from+ // text, a first/last frame (fl2va) or references (ref2va). Before every+ // generic tag: its CivitAI repacks carry anything in their names.+ if (lower.includes('minimax_h3') || lower.includes('minimaxh3') || lower.includes('minimax-h3')) return 'minimaxh3'+// Video models — most specific first (order matters: specific before generic)if (lower.includes('cogvideo')) return 'cogvideo'if (lower.includes('framepack')) return 'framepack'@@ -363,6 +368,7 @@ export function isImageModelType(type: ModelType): boolean {export function isVideoModelType(type: ModelType): boolean {return type === 'wan' || type === 'wan22' || type === 'hunyuan' || type === 'ltx' || type === 'mochi' || type === 'cosmos'|| type === 'cogvideo' || type === 'svd' || type === 'framepack' || type === 'pyramidflow' || type === 'allegro'+ || type === 'minimaxh3'}/**@@ -376,7 +382,7 @@ export function isI2VModel(name: string): boolean {const lower = name.toLowerCase()return lower.includes('i2v') || lower.includes('svd') || lower.includes('framepack')|| lower.includes('ti2v') || lower.includes('wan2.2') || lower.includes('wan2_2') || lower.includes('wan22')- || lower.includes('ltx') || lower.includes('video2world')+ || lower.includes('ltx') || lower.includes('video2world') || classifyModel(name) === 'minimaxh3'}/**@@ -503,6 +509,10 @@ export const MODEL_TYPE_DEFAULTS: Record<string, ModelTypeDefaults> = {wan22: { steps: 30, cfg: 5.0, sampler: 'euler', scheduler: 'simple', width: 1024, height: 576, frames: 49, fps: 24 },hunyuan: { steps: 30, cfg: 6.0, sampler: 'euler', scheduler: 'normal', width: 848, height: 480, frames: 45, fps: 24 },ltx: { steps: 20, cfg: 3.0, sampler: 'euler', scheduler: 'normal', width: 768, height: 512, frames: 97, fps: 24 },+ // Official templates video_minimax_h3_t2v / _i2v (Comfy-Org/workflow_templates,+ // read 2026-10-01): res_multistep / simple, 20 steps, BasicGuider (no CFG),+ // 1344x768 native canvas, 24 fps, 124 frames is the node's ~5 s default.+ minimaxh3: { steps: 20, cfg: 1.0, sampler: 'res_multistep', scheduler: 'simple', width: 1344, height: 768, frames: 124, fps: 24 },mochi: { steps: 30, cfg: 4.5, sampler: 'euler', scheduler: 'normal', width: 848, height: 480, frames: 84, fps: 24 },cosmos: { steps: 35, cfg: 7.0, sampler: 'euler', scheduler: 'normal', width: 1024, height: 1024, frames: 121, fps: 24 },cogvideo: { steps: 50, cfg: 6.0, sampler: 'euler_ancestral', scheduler: 'normal', width: 480, height: 480, frames: 49, fps: 8 },@@ -955,7 +965,7 @@ export function isStrayAddonFile(name: string): boolean {const SNIFF_TYPES: Record<string, ModelType> = {flux: 'flux', flux2: 'flux2', krea2: 'krea2', zimage: 'zimage', ernie_image: 'ernie_image',qwenimage: 'qwenimage', qwenimage1: 'qwenimage1', chroma: 'chroma', hidream: 'hidream',- sd3: 'sd3', lumina2: 'lumina2', sdxl: 'sdxl', sd15: 'sd15', wan: 'wan',+ sd3: 'sd3', lumina2: 'lumina2', sdxl: 'sdxl', sd15: 'sd15', wan: 'wan', minimaxh3: 'minimaxh3',}/** Name types the header may overrule: the image families and 'unknown'. A@@ -1536,6 +1546,14 @@ function isQwen3vl8b(name: string): boolean {return /qwen3[._-]?vl[._-]?8b/.test(name.toLowerCase())}+/** MiniMax H3's own encoder (qwen3vl_32b_minimax_h3_*). It is a Qwen3-VL file+ * too, so every family that matches its encoder on a generic qwen / qwen3vl+ * stem has to step around it, or a box holding both loads a 32B encoder+ * into a 4B slot. */+function isMinimaxEncoder(name: string): boolean {+ return name.toLowerCase().includes('minimax')+}+export async function findMatchingVAE(modelType: ModelType): Promise<string> {const vaes = await getVAEModels()if (vaes.length === 0) throw new Error('No VAE models found. Download a VAE for your model type from the Model Manager.')@@ -1623,6 +1641,14 @@ export async function findMatchingVAE(modelType: ModelType): Promise<string> {if (match) return matchreturn vaes[0]}+ if (modelType === 'minimaxh3') {+ // The VIDEO autoencoder; the audio one is a second file of its own+ // (findMiniMaxAudioVAE), and the two are not interchangeable.+ const match = vaes.find(v => lower(v).includes('minimax_h3_video_vae'))+ || vaes.find(v => lower(v).includes('minimax') && lower(v).includes('video'))+ if (match) return match+ throw new Error(`No MiniMax H3 video VAE found. Download "minimax_h3_video_vae_int8_convrot.safetensors" from the Model Manager.`)+ }if (modelType === 'mochi') {const match = vaes.find(v => lower(v).includes('mochi'))if (match) return match@@ -1696,6 +1722,16 @@ export async function findFramePackCLIPPair(): Promise<{ clipL: string; llavaLlareturn { clipL, llavaLlama3 }}+/** MiniMax H3's audio autoencoder. The model writes picture and sound into+ * one latent and decodes the sound half with this file. */+export async function findMiniMaxAudioVAE(): Promise<string> {+ const vaes = await getVAEModels()+ const match = vaes.find(v => v.toLowerCase().includes('minimax_h3_audio_vae'))+ || vaes.find(v => v.toLowerCase().includes('minimax') && v.toLowerCase().includes('audio'))+ if (match) return match+ throw new Error(`No MiniMax H3 audio VAE found. Download "minimax_h3_audio_vae_fp32.safetensors" from the Model Manager.`)+}+/*** Pick the right text encoder for a model.*@@ -1732,9 +1768,9 @@ export async function findMatchingCLIP(modelType: ModelType, activeModelName?: s// filename of the active UNet (see `modelIsFp4` above). Fallback// order ensures we never hard-fail when the "ideal" encoder isn't// installed: we try the paired one first, then the other.- const qwenFp4 = clips.find(c => lower(c).includes('qwen') && (lower(c).includes('fp4') || lower(c).includes('nf4')) && !lower(c).includes('qwen_2.5_vl'))+ const qwenFp4 = clips.find(c => lower(c).includes('qwen') && (lower(c).includes('fp4') || lower(c).includes('nf4')) && !lower(c).includes('qwen_2.5_vl') && !isMinimaxEncoder(c))const qwenFull = clips.find(c => lower(c).includes('qwen_3_4b') && !lower(c).includes('fp4') && !lower(c).includes('nf4') && !lower(c).includes('vl'))- const qwenAny = clips.find(c => lower(c).includes('qwen') && !lower(c).includes('qwen_2.5_vl'))+ const qwenAny = clips.find(c => lower(c).includes('qwen') && !lower(c).includes('qwen_2.5_vl') && !isMinimaxEncoder(c))const mistral = clips.find(c => lower(c).includes('mistral'))const match = modelIsFp4? (qwenFp4 || qwenFull || qwenAny || mistral)@@ -1765,8 +1801,8 @@ export async function findMatchingCLIP(modelType: ModelType, activeModelName?: s// The 8B file is excluded throughout: it belongs to Qwen-Image 2.1, and// since that bundle landed in the Model Manager a box can hold both.const match = clips.find(c => /qwen3[._-]?vl[._-]?4b/.test(lower(c)))- || clips.find(c => (lower(c).includes('qwen3vl') || lower(c).includes('qwen3_vl')) && !isQwen3vl8b(c))- || clips.find(c => lower(c).includes('qwen') && lower(c).includes('vl') && !isQwen3vl8b(c))+ || clips.find(c => (lower(c).includes('qwen3vl') || lower(c).includes('qwen3_vl')) && !isQwen3vl8b(c) && !isMinimaxEncoder(c))+ || clips.find(c => lower(c).includes('qwen') && lower(c).includes('vl') && !isQwen3vl8b(c) && !isMinimaxEncoder(c))if (match) return matchthrow new Error(`No Krea 2 text encoder found. Download "qwen3vl_4b_fp8_scaled.safetensors" from the Model Manager.`)}@@ -1778,7 +1814,7 @@ export async function findMatchingCLIP(modelType: ModelType, activeModelName?: s}if (modelType === 'hunyuan') {// HunyuanVideo 1.5 uses Qwen 2.5 VL, older versions use llava_llama3- const match = clips.find(c => lower(c).includes('qwen'))+ const match = clips.find(c => lower(c).includes('qwen') && !isMinimaxEncoder(c))|| clips.find(c => lower(c).includes('llava'))|| clips.find(c => lower(c).includes('umt5'))if (match) return match@@ -1795,6 +1831,14 @@ export async function findMatchingCLIP(modelType: ModelType, activeModelName?: sif (match) return matchthrow new Error(`No LTX Video text encoder found. Download "gemma_3_12B_it_fp8_scaled.safetensors" from the Model Manager.`)}+ if (modelType === 'minimaxh3') {+ // Qwen3-VL 32B, tuned for H3 and shipped only under H3's own names. The+ // nvfp4 tier is the one the official templates load (15.7 GB).+ const match = clips.find(c => isMinimaxEncoder(c) && lower(c).includes('nvfp4'))+ || clips.find(c => isMinimaxEncoder(c))+ if (match) return match+ throw new Error(`No MiniMax H3 text encoder found. Download "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors" from the Model Manager.`)+ }if (modelType === 'mochi') {const match = clips.find(c => lower(c).includes('t5') && !lower(c).includes('umt5') && !lower(c).includes('oldt5'))if (match) return match@@ -1812,7 +1856,7 @@ export async function findMatchingCLIP(modelType: ModelType, activeModelName?: sthrow new Error(`No CogVideoX text encoder found. Download "t5xxl_fp16.safetensors" from the Model Manager.`)}if (modelType === 'framepack') {- const match = clips.find(c => lower(c).includes('llava') || lower(c).includes('qwen'))+ const match = clips.find(c => lower(c).includes('llava') || (lower(c).includes('qwen') && !isMinimaxEncoder(c)))|| clips.find(c => lower(c).includes('umt5'))if (match) return matchthrow new Error(`No FramePack text encoder found. Download "llava_llama3_fp8_scaled.safetensors" from the Model Manager.`)diff --git a/src/api/component-registry.ts b/src/api/component-registry.tsindex 0f31aa48..55cd4dfb 100644--- a/src/api/component-registry.ts+++ b/src/api/component-registry.ts@@ -114,6 +114,14 @@ export const COMPONENT_REGISTRY: Record<string, ComponentRequirements> = {loader: 'UNETLoader', needsSeparateVAE: false, needsSeparateCLIP: true, clipType: 'ltxv',clip: { matchPatterns: ['gemma'], downloadFilename: 'gemma_3_12B_it_fp8_scaled.safetensors', downloadUrl: 'https://huggingface.co/Comfy-Org/ltx-2/resolve/main/split_files/text_encoders/gemma_3_12B_it_fp8_scaled.safetensors', subfolder: 'text_encoders' },},+ // MiniMax H3 (Discord, throwaway 2026-09-26): one model for picture and sound. The+ // video VAE comes from here, the audio VAE is a second file the builder+ // finds through findMiniMaxAudioVAE.+ minimaxh3: {+ loader: 'UNETLoader', needsSeparateVAE: true, needsSeparateCLIP: true, clipType: 'minimax',+ vae: { matchPatterns: ['minimax_h3_video_vae', 'minimax'], downloadFilename: 'minimax_h3_video_vae_int8_convrot.safetensors', downloadUrl: 'https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/vae/minimax_h3_video_vae_int8_convrot.safetensors', subfolder: 'vae', sizeGB: 2.8 },+ clip: { matchPatterns: ['minimax_h3_nvfp4', 'minimax'], downloadFilename: 'qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors', downloadUrl: 'https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors', subfolder: 'text_encoders', sizeGB: 15.7 },+ },mochi: {loader: 'UNETLoader', needsSeparateVAE: true, needsSeparateCLIP: true, clipType: 'mochi',vae: { matchPatterns: ['mochi'], downloadFilename: 'mochi_vae.safetensors', downloadUrl: 'https://huggingface.co/Comfy-Org/mochi_preview_repackaged/resolve/main/split_files/vae/mochi_vae.safetensors', subfolder: 'vae' },diff --git a/src/api/dynamic-workflow.ts b/src/api/dynamic-workflow.tsindex d313b580..bc82b81c 100644--- a/src/api/dynamic-workflow.ts+++ b/src/api/dynamic-workflow.ts@@ -1,5 +1,5 @@import {- classifyModel, findMatchingVAE, findMatchingCLIP, findFluxCLIPPair,+ classifyModel, findMatchingVAE, findMatchingCLIP, findFluxCLIPPair, findMiniMaxAudioVAE,findMatchingAudioEncoder, findMatchingClipVision, findFramePackCLIPPair,} from './comfyui'import type { ModelType, GenerateParams, VideoParams } from './comfyui'@@ -84,6 +84,7 @@ export type WorkflowStrategy =| 'unet_cosmos' // Cosmos: UNETLoader + CLIPLoader(oldt5) + VAELoader + EmptyCosmosLatentVideo| 'svd' // SVD: ImageOnlyCheckpointLoader + SVD_img2vid_Conditioning| 'framepack' // FramePack: Kijai wrapper + image input+ | 'minimaxh3' // MiniMax H3: UNET + CLIPLoader(minimax) + video VAE + audio VAE, picture and sound in one pass// cogvideo / pyramidflow / allegro are gone on purpose (2026-07-24). Their// builders emitted node names no wrapper registers, so those model types now// resolve to 'unavailable' with an honest reason instead of a ComfyUI 400.@@ -198,6 +199,17 @@ export function determineStrategy(return { strategy: 'unavailable', reason: 'LTX Video requires UNETLoader + CLIPLoader nodes' }}+ // MiniMax H3 → its own encode node, which also builds the joint+ // picture-and-sound latent. The nodes arrived with ComfyUI PR #15224, so an+ // older install gets the update sentence (fixable in place) instead of a 400.+ if (modelType === 'minimaxh3') {+ const hasH3 = nodes.latentInit.includes('MiniMaxH3ImageToVideo')+ if (hasUNET && hasCLIPLoader && hasVAELoader && hasH3) {+ return { strategy: 'minimaxh3', reason: 'MiniMax H3 → UNETLoader + CLIPLoader(minimax) + MiniMaxH3ImageToVideo' }+ }+ return { strategy: 'unavailable', reason: 'MiniMax H3 needs a newer ComfyUI. Update ComfyUI in Settings.' }+ }+// Wan 2.2 TI2V-5B → UNET + CLIP + Wan 2.2 VAE + Wan22ImageToVideoLatent (T2V & I2V)if (modelType === 'wan22') {const hasWan22Latent = nodes.latentInit.includes('Wan22ImageToVideoLatent')@@ -632,6 +644,9 @@ export async function buildDynamicWorkflow(if (strategy === 'framepack') {return await buildFramePackWorkflow(params as VideoParams, seed, nodes)}+ if (strategy === 'minimaxh3') {+ return await buildMiniMaxH3Workflow(params as VideoParams, seed, allNodes)+ }// ─── Standard Strategies (UNET/Checkpoint → CLIP → Latent → KSampler → VAEDecode) ───@@ -1764,6 +1779,106 @@ async function buildWan22Workflow(params: VideoParams, seed: number, nodes: Catereturn workflow}+/** MiniMax H3 counts frames in blocks of 17 plus 5 (124 is about five+ * seconds at 24 fps). Rounds UP, as the official template does, so a request+ * never comes back shorter than asked. */+export function snapMiniMaxH3Length(frames: number): number {+ const f = Math.max(5, Number.isFinite(frames) ? Math.round(frames) : 124)+ return f + ((5 - (f % 17)) + 17) % 17+}++/**+ * MiniMax H3 (Discord, throwaway 2026-09-26: "shows up as an image model").+ * One model writes picture and sound together, wired as the official+ * Comfy-Org t2v/i2v and r2v templates do: the encode node builds the joint+ * latent, BasicGuider and SamplerCustomAdvanced sample it, and VAEDecode and+ * VAEDecodeAudio each pull their half back out before CreateVideo muxes them.+ *+ * Two sets of weights share the family. fl2va takes the source image as the+ * first frame; ref2va takes it as a reference the prompt can call+ * <Picture 1>.+ */+async function buildMiniMaxH3Workflow(params: VideoParams, seed: number, allNodes: NodePresence): Promise<ComfyApiGraph> {+ const isRef2va = /ref2va/i.test(params.model)+ const encodeNode = isRef2va ? 'MiniMaxH3ReferenceToVideo' : 'MiniMaxH3ImageToVideo'+ requireNodes(allNodes, [encodeNode, 'BasicGuider', 'SamplerCustomAdvanced', 'VAEDecodeAudio'], 'MiniMax H3')++ const workflow: ComfyApiGraph = {}+ let n = 1+ const snap32 = (v: number | undefined, def: number) => Math.max(32, Math.round(((v && v > 0) ? v : def) / 32) * 32)+ const width = snap32(params.width, 1344)+ const height = snap32(params.height, 768)+ const length = snapMiniMaxH3Length(params.frames || 124)++ const [clipName, vaeName, audioVaeName] = await Promise.all([+ findMatchingCLIP('minimaxh3', params.model),+ findMatchingVAE('minimaxh3'),+ findMiniMaxAudioVAE(),+ ])++ const unetId = String(n++)+ const clipId = String(n++)+ const vaeId = String(n++)+ const audioVaeId = String(n++)+ addUnetLoader(workflow, unetId, params.model, allNodes)+ workflow[clipId] = { class_type: 'CLIPLoader', inputs: { clip_name: clipName, type: 'minimax', device: 'default' } }+ workflow[vaeId] = { class_type: 'VAELoader', inputs: { vae_name: vaeName } }+ workflow[audioVaeId] = { class_type: 'VAELoader', inputs: { vae_name: audioVaeName } }++ // Video LoRAs (the turbo ones included) patch the model only.+ let modelSrc = unetId+ const loras = normalizeLoraList(params.lora)+ const strengths = normalizeLoraStrengths(params.loraStrength, loras.length)+ loras.forEach((loraName, i) => {+ const loraId = String(n++)+ workflow[loraId] = {+ class_type: 'LoraLoaderModelOnly',+ inputs: { lora_name: loraName, strength_model: strengths[i], model: [modelSrc, 0] },+ }+ modelSrc = loraId+ })++ const encodeInputs: ComfyNodeInputs = { clip: [clipId, 0], vae: [vaeId, 0], prompt: params.prompt, width, height, length }+ if (params.inputImage) {+ // The node stretches a first frame to the canvas; a center crop keeps+ // the picture's proportions instead.+ const imageId = String(n++)+ const scaleId = String(n++)+ workflow[imageId] = { class_type: 'LoadImage', inputs: { image: params.inputImage } }+ workflow[scaleId] = { class_type: 'ImageScale', inputs: { image: [imageId, 0], upscale_method: 'lanczos', width, height, crop: 'center' } }+ if (isRef2va) encodeInputs['ref_images.ref_image_0'] = [scaleId, 0]+ else encodeInputs.first_frame = [scaleId, 0]+ }+ if (isRef2va) {+ encodeInputs.audio_vae = [audioVaeId, 0]+ encodeInputs.ref_image_size = 'match'+ }+ const encodeId = String(n++)+ workflow[encodeId] = { class_type: encodeNode, inputs: encodeInputs }++ const guiderId = String(n++)+ const schedulerId = String(n++)+ const samplerSelectId = String(n++)+ const noiseId = String(n++)+ const sampleId = String(n++)+ workflow[guiderId] = { class_type: 'BasicGuider', inputs: { model: [modelSrc, 0], conditioning: [encodeId, 0] } }+ workflow[schedulerId] = { class_type: 'BasicScheduler', inputs: { model: [modelSrc, 0], scheduler: params.scheduler || 'simple', steps: params.steps, denoise: 1 } }+ workflow[samplerSelectId] = { class_type: 'KSamplerSelect', inputs: { sampler_name: params.sampler || 'res_multistep' } }+ workflow[noiseId] = { class_type: 'RandomNoise', inputs: { noise_seed: seed } }+ workflow[sampleId] = {+ class_type: 'SamplerCustomAdvanced',+ inputs: { noise: [noiseId, 0], guider: [guiderId, 0], sampler: [samplerSelectId, 0], sigmas: [schedulerId, 0], latent_image: [encodeId, 1] },+ }++ const decodeId = String(n++)+ const decodeAudioId = String(n++)+ workflow[decodeId] = { class_type: 'VAEDecode', inputs: { samples: [sampleId, 0], vae: [vaeId, 0] } }+ workflow[decodeAudioId] = { class_type: 'VAEDecodeAudio', inputs: { samples: [sampleId, 0], vae: [audioVaeId, 0] } }++ addVideoWithAudioOutput(workflow, n, decodeId, params.fps || 24, [decodeAudioId, 0], allNodes, params.prompt)+ return workflow+}+// ─── 2.5.8 specialized local lanes (music / talking character / motion) ─────//// These intents run on node families that ship with CURRENT ComfyUI coresdiff --git a/src/api/model-bundles.ts b/src/api/model-bundles.tsindex 67fdee3d..e0c60037 100644--- a/src/api/model-bundles.ts+++ b/src/api/model-bundles.ts@@ -803,6 +803,50 @@ export function getVideoBundles(): ModelBundle[] {},],},+ // MiniMax H3 (Discord, throwaway 2026-09-26). The files and the int8+ // tier are the official Comfy-Org templates' (video_minimax_h3_t2v/_i2v);+ // sizes read from Hugging Face on 2026-10-01. The 21 GB model alone sets+ // the VRAM line.+ {+ name: 'MiniMax H3 · Video with Sound',+ description: 'Video with its own sound track, speech, effects and music in one pass. From a prompt alone or from a first frame. Up to about 15 seconds at 24 fps.',+ tags: ['MiniMax H3', 'Audio', '768p'],+ verified: true,+ totalSizeGB: 40.1,+ vramRequired: '24+ GB',+ workflow: 'minimaxh3',+ url: 'https://huggingface.co/Comfy-Org/MiniMax-H3',+ files: [+ {+ name: 'MiniMax H3 fl2va (int8)',+ description: 'Main model, text or first frame to video with sound.',+ pulls: '', tags: ['Model', '21 GB'], updated: 'New',+ downloadUrl: 'https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/diffusion_models/minimax_h3_fl2va_pruned_int8_convrot.safetensors',+ filename: 'minimax_h3_fl2va_pruned_int8_convrot.safetensors', subfolder: 'diffusion_models', sizeGB: 21.0,+ },+ {+ name: 'Qwen3-VL 32B Text Encoder (NVFP4)',+ description: 'Required text encoder for MiniMax H3. Runs on any NVIDIA card, not only Blackwell.',+ pulls: '', tags: ['Text Encoder', '15.7 GB'], updated: 'New',+ downloadUrl: 'https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors',+ filename: 'qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors', subfolder: 'text_encoders', sizeGB: 15.7,+ },+ {+ name: 'MiniMax H3 Video VAE',+ description: 'Required, decodes the picture.',+ pulls: '', tags: ['VAE', '2.8 GB'], updated: 'New',+ downloadUrl: 'https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/vae/minimax_h3_video_vae_int8_convrot.safetensors',+ filename: 'minimax_h3_video_vae_int8_convrot.safetensors', subfolder: 'vae', sizeGB: 2.8,+ },+ {+ name: 'MiniMax H3 Audio VAE',+ description: 'Required, decodes the sound.',+ pulls: '', tags: ['VAE', '605 MB'], updated: 'New',+ downloadUrl: 'https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/vae/minimax_h3_audio_vae_fp32.safetensors',+ filename: 'minimax_h3_audio_vae_fp32.safetensors', subfolder: 'vae', sizeGB: 0.6,+ },+ ],+ },// ─── NEW VIDEO BUNDLES ───{name: 'AnimateDiff Lightning',diff --git a/src/api/vram-handoff.ts b/src/api/vram-handoff.tsindex c3f89498..b9ebc944 100644--- a/src/api/vram-handoff.ts+++ b/src/api/vram-handoff.ts@@ -1364,9 +1364,11 @@ async function generateVideo(// opens on it). Handle it HERE, before the SVD/FramePack I2V branch — wan22 now// matches isI2VModel(), but that branch's 25-frame / 8-fps tuning would butcher// it (wan22 is 24 fps, up to ~7 s). buildDynamicWorkflow routes to buildWan22.- if (type === 'wan22') {+ // MiniMax H3 takes the same road: its encode node has an optional first+ // frame, so one graph serves both modes, at 24 fps and up to ~15 s.+ if (type === 'wan22' || type === 'minimaxh3') {const { buildDynamicWorkflow } = await import('./dynamic-workflow')- const d = MODEL_TYPE_DEFAULTS.wan22+ const d = MODEL_TYPE_DEFAULTS[type]const av = args as Record<string, unknown>// Optional source still (I2V). A wrong/hallucinated name falls back to the@@ -1393,8 +1395,9 @@ async function generateVideo(const frameRej = videoFrameReject(model, args, caps)if (frameRej) return frameRej- // 24 fps native; up to ~7 s (169 frames). resolveClip honors `seconds`/`frames`.- const vMax = caps?.frameRange?.max ?? 169+ // 24 fps native; Wan up to ~7 s (169 frames), MiniMax H3 up to ~15 s+ // (362, the top of its trained range). resolveClip honors `seconds`/`frames`.+ const vMax = caps?.frameRange?.max ?? (type === 'minimaxh3' ? 362 : 169)const { frames, fps } = resolveClip(args, { defFps: d.fps, defFrames: d.frames, maxFrames: vMax })const tun = resolveTunables(args, caps, { steps: d.steps, cfg: d.cfg, sampler: d.sampler, scheduler: d.scheduler })if (tun.reject) return `Cannot generate: ${tun.reject}`@@ -1407,7 +1410,7 @@ async function generateVideo(const tunCfg = (avq.cfg ?? avq.cfg_scale ?? avq.cfgScale) !== undefined ? tun.cfg : d.cfg// I2V → resolution from the source aspect (faithful framing); T2V → model default.- const base = inputImage ? resolveI2VResolution('wan22', srcW, srcH) : { width: d.width, height: d.height }+ const base = inputImage ? resolveI2VResolution(type, srcW, srcH) : { width: d.width, height: d.height }const snapped = snapToVideoGrid(clampInt(av.width, base.width, 64, 2048), clampInt(av.height, base.height, 64, 2048))const seed = (typeof av.seed === 'number' && Number.isFinite(av.seed)) ? Math.floor(av.seed) : -1@@ -1430,7 +1433,7 @@ async function generateVideo(},type,)- log.info('vram_handoff.video.submit', { model, mode: inputImage ? 'i2v' : 't2v', wan22: true, steps: tunSteps, cfg: tunCfg })+ log.info('vram_handoff.video.submit', { model, mode: inputImage ? 'i2v' : 't2v', family: type, steps: tunSteps, cfg: tunCfg })const submitted = await submitCancellable(workflow, seq)if (submitted === CANCELLED) return `${label('video')} generation cancelled.`const promptId = submitted@@ -2039,6 +2042,7 @@ export function resolveI2VResolution(): { width: number; height: number } {const landscapeDefault = { width: 1024, height: 576 }if (!srcW || !srcH || srcW <= 0 || srcH <= 0) {+ if (type === 'minimaxh3') return { width: 1344, height: 768 }return (type === 'svd' || type === 'wan22') ? landscapeDefault : { width: 768, height: 768 }}const aspect = srcW / srcH@@ -2046,6 +2050,20 @@ export function resolveI2VResolution(// Square is closer to landscape than portrait; center-crop handles the rest.return aspect >= 0.95 ? { width: 1024, height: 576 } : { width: 576, height: 1024 }}+ if (type === 'minimaxh3') {+ // The official templates' canvas: a 768 short edge, capped at 1344x768+ // worth of pixels, snapped to 32. Keeps the source aspect.+ const MAX_PX = 1344 * 768+ let w = aspect >= 1 ? 768 * aspect : 768+ let h = aspect >= 1 ? 768 : 768 / aspect+ if (w * h > MAX_PX) {+ const s = Math.sqrt(MAX_PX / (w * h))+ w *= s+ h *= s+ }+ const snap = (v: number) => Math.max(32, Math.round(v / 32) * 32)+ return { width: snap(w), height: snap(h) }+ }if (type === 'wan22') {// Wan 2.2 5B trains at 1280×704 / 704×1280. Keep the SOURCE aspect (faithful// framing) and snap to 32 (the latent grid); an ImageScale(crop:center) indiff --git a/src/components/create/experimental/ParamGroups.tsx b/src/components/create/experimental/ParamGroups.tsxindex 55546160..1dd67886 100644--- a/src/components/create/experimental/ParamGroups.tsx+++ b/src/components/create/experimental/ParamGroups.tsx@@ -22,7 +22,7 @@ import { HINWEIS_TEXT } from '../../../lib/hinweis'// builder (LoraLoaderModelOnly insert). The remaining families (cogvideo/svd/// framepack/pyramidflow/allegro) use wrapper nodes with no LoRA seam, so we hide// the stack for them rather than offer a control that silently does nothing.-const VIDEO_LORA_FAMILIES = new Set(['wan', 'wan22', 'hunyuan', 'ltx', 'mochi', 'cosmos'])+const VIDEO_LORA_FAMILIES = new Set(['wan', 'wan22', 'hunyuan', 'ltx', 'mochi', 'cosmos', 'minimaxh3'])// The full param surface, reorganized into 3 frequency-ranked Sections.// Sampler/scheduler/LoRA/VAE lists come live from ComfyUI via CreateContext,diff --git a/src/components/create/experimental/badges.ts b/src/components/create/experimental/badges.tsindex 0e7cc447..cfa54404 100644--- a/src/components/create/experimental/badges.ts+++ b/src/components/create/experimental/badges.ts@@ -47,6 +47,8 @@ export const TYPE_BADGE: Record<ModelType, { label: string; color: string }> = {wan22: { label: 'Wan 2.2', color: 'bg-orange-500/15 text-orange-300' },hunyuan: { label: 'Hunyuan', color: 'bg-red-500/15 text-red-300' },ltx: { label: 'LTX', color: 'bg-cyan-500/15 text-cyan-300' },+ // Video with sound like LTX, so it shares LTX's row.+ minimaxh3: { label: 'MiniMax H3', color: 'bg-cyan-500/15 text-cyan-300' },mochi: { label: 'Mochi', color: 'bg-pink-500/15 text-pink-300' },cosmos: { label: 'Cosmos', color: 'bg-emerald-500/15 text-emerald-300' },cogvideo: { label: 'CogVideo', color: 'bg-stone-500/15 text-stone-300' },diff --git a/src/stores/createStore.ts b/src/stores/createStore.tsindex 9ab0fed2..3dc88ccd 100644--- a/src/stores/createStore.ts+++ b/src/stores/createStore.ts@@ -152,6 +152,7 @@ export const MODEL_TYPE_DEFAULTS: Record<ModelType, {wan22: { steps: 30, cfgScale: 5.0, sampler: 'euler', scheduler: 'simple', width: 1024, height: 576, frames: 49, fps: 24 },hunyuan: { steps: 30, cfgScale: 6.0, sampler: 'euler', scheduler: 'normal', width: 848, height: 480, frames: 45, fps: 15 },ltx: { steps: 20, cfgScale: 1.0, sampler: 'euler', scheduler: 'simple', width: 768, height: 512, frames: 97, fps: 24 },+ minimaxh3: { steps: 20, cfgScale: 1.0, sampler: 'res_multistep', scheduler: 'simple', width: 1344, height: 768, frames: 124, fps: 24 },mochi: { steps: 40, cfgScale: 4.5, sampler: 'euler', scheduler: 'normal', width: 848, height: 480, frames: 49, fps: 24 },cosmos: { steps: 30, cfgScale: 7.0, sampler: 'euler', scheduler: 'normal', width: 1280, height: 704, frames: 57, fps: 24 },cogvideo: { steps: 50, cfgScale: 6.0, sampler: 'euler', scheduler: 'normal', width: 720, height: 480, frames: 49, fps: 8 },