The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
{
"1": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "minimax_h3_ref2va_pruned_int8_convrot.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "H3 Ref2VA · INT8"
}
},
"2": {
"class_type": "MiniMaxH3SigmaShift",
"inputs": {
"shift_video": 12,
"shift_audio": 3,
"model": [
"1",
0
]
},
"_meta": {
"title": "H3 sampling shift"
}
},
"3": {
"class_type": "ModelAttentionBackend",
"inputs": {
"attention": "comfy kitchen attention",
"model": [
"2",
0
]
},
"_meta": {
"title": "Optimized attention"
}
},
"4": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors",
"strength_model": 1,
"model": [
"3",
0
]
},
"_meta": {
"title": "FL2V Turbo · 8-step LoRA"
}
},
"850": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "h3_character_swap_v1.5.safetensors",
"strength_model": 1,
"model": [
"4",
0
]
},
"_meta": {
"title": "Character Swap LoRA (V1.5)"
}
},
"6": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",
"type": "minimax",
"device": "default"
},
"_meta": {
"title": "Qwen · H3 text encoder"
}
},
"58": {
"class_type": "SelectCLIPDevice",
"inputs": {
"device": "gpu:0",
"clip": [
"6",
0
]
},
"_meta": {
"title": "Text encoder device"
}
},
"7": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "minimax_h3_video_vae_fp16.safetensors"
},
"_meta": {
"title": "H3 video VAE"
}
},
"8": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "minimax_h3_audio_vae_fp32.safetensors"
},
"_meta": {
"title": "H3 audio VAE"
}
},
"9": {
"class_type": "LoadImage",
"inputs": {
"image": "reference.png"
},
"_meta": {
"title": "2 · Character reference"
}
},
"30": {
"class_type": "LoadVideo",
"inputs": {
"file": "source.mp4"
},
"_meta": {
"title": "1 · Source performance video"
}
},
"trim": {
"class_type": "Video Slice",
"inputs": {
"start_time": 0,
"duration": 5.0,
"strict_duration": false,
"video": [
"30",
0
]
},
"_meta": {
"title": "The chosen part"
}
},
"31": {
"class_type": "H3CharacterSwapPrepareVideo",
"inputs": {
"resolution": "768",
"duration_seconds": 5.0,
"video": [
"trim",
0
]
},
"_meta": {
"title": "Prepare · 24 fps / pixel budget"
}
},
"100": {
"class_type": "CheckpointLoaderSimple",
"inputs": {
"ckpt_name": "sam3.1_multiplex_fp16.safetensors"
},
"_meta": {
"title": "SAM 3.1 · model"
}
},
"101": {
"class_type": "CLIPTextEncode",
"inputs": {
"text": "person",
"clip": [
"100",
1
]
},
"_meta": {
"title": "4 · Find the subject"
}
},
"102": {
"class_type": "ImageFromBatch",
"inputs": {
"batch_index": 0,
"length": 1,
"image": [
"31",
0
]
},
"_meta": {
"title": "Detection frame · first frame"
}
},
"103": {
"class_type": "SAM3_Detect",
"inputs": {
"threshold": 0.35,
"refine_iterations": 2,
"individual_masks": true,
"model": [
"100",
0
],
"image": [
"102",
0
],
"conditioning": [
"101",
0
],
"positive_coords": "",
"negative_coords": ""
},
"_meta": {
"title": "Detect individual people"
}
},
"104": {
"class_type": "H3CharacterSwapSelectSubject",
"inputs": {
"selection": "largest",
"index": 0,
"masks": [
"103",
0
]
},
"_meta": {
"title": "Select the person to replace"
}
},
"105": {
"class_type": "SAM3_VideoTrack",
"inputs": {
"detection_threshold": 0.5,
"max_objects": 1,
"detect_interval": 1,
"images": [
"31",
0
],
"model": [
"100",
0
],
"initial_mask": [
"104",
0
],
"conditioning": [
"101",
0
]
},
"_meta": {
"title": "Track selected person"
}
},
"106": {
"class_type": "SAM3_TrackToMask",
"inputs": {
"object_indices": "",
"track_data": [
"105",
0
]
},
"_meta": {
"title": "Selected track → mask"
}
},
"107": {
"class_type": "H3CharacterSwapRecoverMasks",
"inputs": {
"recover_empty_frames": true,
"source_frames": [
"31",
5
],
"masks": [
"106",
0
],
"images": [
"31",
0
],
"model": [
"100",
0
],
"conditioning": [
"101",
0
],
"selection": [
"104",
1
]
},
"_meta": {
"title": "Recover empty frames · same as app"
}
},
"110": {
"class_type": "H3CharacterSwapExpandMask",
"inputs": {
"expansion_px": 64,
"source_frames": [
"31",
5
],
"masks": [
"107",
0
],
"images": [
"31",
0
]
},
"_meta": {
"title": "Expand mask · matches the app"
}
},
"800": {
"class_type": "H3CharacterSwapModels",
"inputs": {
"model": [
"850",
0
],
"clip": [
"58",
0
],
"video_vae": [
"7",
0
],
"audio_vae": [
"8",
0
]
},
"_meta": {
"title": "Shared models"
}
},
"801": {
"class_type": "H3CharacterSwapSettings",
"inputs": {
"prompt": "Replace the selected person in <Video 1> with the character in <Picture 1>. Preserve the source performance, scene and audio timing. Start from the first frame in <Picture 2>.",
"seed": 904239,
"audio_guide": true,
"steps": 8,
"cfg": 1,
"sampler_name": "er_sde",
"scheduler": "normal",
"activation_memory_gib": 17
},
"_meta": {
"title": "5 · Prompt & audio guide"
}
},
"anchor_image": {
"class_type": "LoadImage",
"inputs": {
"image": "anchor.png"
},
"_meta": {
"title": "First frame made by the app"
}
},
"anchor_fit": {
"class_type": "ImageScale",
"inputs": {
"upscale_method": "lanczos",
"crop": "center",
"image": [
"anchor_image",
0
],
"width": [
"31",
2
],
"height": [
"31",
3
]
},
"_meta": {
"title": "Anchor at the video's exact size"
}
},
"803": {
"class_type": "H3CharacterSwapShot",
"inputs": {
"use_anchor": true,
"use_mask": true,
"shot_id": "character-swap",
"source_frames": [
"31",
5
],
"fps": [
"31",
6
],
"source_video": [
"trim",
0
],
"source": [
"31",
0
],
"source_audio": [
"31",
1
],
"reference": [
"9",
0
],
"anchor": [
"anchor_fit",
0
],
"body_mask": [
"110",
0
]
},
"_meta": {
"title": "Prepare swap inputs"
}
},
"805": {
"class_type": "H3CharacterSwapWindowPlan",
"inputs": {
"window_frames": "124",
"history_frames": "18",
"shot": [
"803",
0
],
"settings": [
"801",
0
]
},
"_meta": {
"title": "Continuation · window / history"
}
},
"806": {
"class_type": "H3CharacterSwapController",
"inputs": {
"models": [
"800",
0
],
"shot": [
"803",
0
],
"plan": [
"805",
0
]
},
"_meta": {
"title": "6 · Generate character swap"
}
},
"807": {
"class_type": "H3CharacterSwapAssemble",
"inputs": {
"filename_prefix": "fuobe-character-swap",
"state": [
"806",
0
],
"shot": [
"806",
1
]
},
"_meta": {
"title": "7 · Result with source audio"
}
},
"808": {
"class_type": "CreateVideo",
"inputs": {
"fps": 24,
"bit_depth": 8,
"color_space": "sRGB",
"codec": "none",
"images": [
"807",
0
],
"audio": [
"807",
1
]
},
"_meta": {
"title": "Video for the app"
}
},
"809": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "fuobe/character-swap",
"format": "mp4",
"format.codec": "h264",
"video": [
"808",
0
]
},
"_meta": {
"title": "Save result"
}
}
}