LTX 2.3 IC-LoRA Union Control
Gere vídeos LTX 2.3 com IC-LoRA usando entradas de controle alinhadas, como profundidade, pose ou bordas.
Dentro do workflow
Uma prévia somente leitura do modelo de origem. Abra-o no Cloud para explorar os nós e fazer alterações.
Loading the graph
Open full-size workflow previewArquivos neste workflow
- Saída
- Vídeo
- Autor
- Autor indisponível
Chame este modelo pelo seu código
A solicitação abaixo usa o mesmo grafo e as mesmas configurações preparadas no Playground. Cada envio pode iniciar uma execução paga; não tente novamente automaticamente um envio cujo resultado seja desconhecido.
What you need
- Runs on
- Comfy Cloud
- Chave
- COMFY_API_KEY
- Seus arquivos
- Enviados pelo código a partir de suas URLs
Requer um plano pago do Cloud e créditos.
# Python 3.10+: pip install comfy-sdk==0.4.0
import os
from comfy_sdk import Comfy
api_key = os.environ.get("COMFY_API_KEY", "").strip()
if not api_key: raise RuntimeError("Set COMFY_API_KEY")
os.environ.setdefault("COMFY_BASE_URL", "https://cloud.comfy.org")
client = Comfy(api_key=api_key)
workflow = client.workflows.from_json({
"68": {
"class_type": "SaveVideo",
"inputs": {
"codec": "auto",
"filename_prefix": "video/ltx2.3_ic_lora",
"format": "auto",
"format.codec": "auto",
"video": [
"129:122",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"199": {
"class_type": "LoadVideo",
"inputs": {
"file": "UPLOADED_video_FILENAME"
},
"_meta": {
"title": "Load Video"
}
},
"200": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"692": {
"class_type": "Video Slice",
"inputs": {
"duration": 5,
"start_time": 0,
"strict_duration": False,
"video": [
"199",
0
]
},
"_meta": {
"title": "Trim Video"
}
},
"129:101": {
"class_type": "LTXVEmptyLatentAudio",
"inputs": {
"audio_vae": [
"129:126",
0
],
"batch_size": 1,
"frame_rate": [
"129:114",
0
],
"frames_number": [
"129:694",
2
]
},
"_meta": {
"title": "Empty LTXV Latent Audio"
}
},
"129:103": {
"class_type": "LTXAVTextEncoderLoader",
"inputs": {
"ckpt_name": "ltx-2.3-22b-distilled-fp8.safetensors",
"device": "default",
"text_encoder": "gemma_3_12B_it_fp4_mixed.safetensors"
},
"_meta": {
"title": "Load LTXV Audio Text Encoder"
}
},
"129:105": {
"class_type": "VAEDecodeTiled",
"inputs": {
"overlap": 64,
"samples": [
"129:106",
2
],
"temporal_overlap": 64,
"temporal_size": 4096,
"tile_size": 768,
"vae": [
"129:127",
2
]
},
"_meta": {
"title": "VAE Decode (Tiled)"
}
},
"129:106": {
"class_type": "LTXVCropGuides",
"inputs": {
"latent": [
"129:121",
0
],
"negative": [
"129:115",
1
],
"positive": [
"129:115",
0
]
},
"_meta": {
"title": "LTXVCropGuides"
}
},
"129:107": {
"class_type": "LTXVAudioVAEDecode",
"inputs": {
"audio_vae": [
"129:126",
0
],
"samples": [
"129:121",
1
]
},
"_meta": {
"title": "LTXV Audio VAE Decode"
}
},
"129:108": {
"class_type": "EmptyLTXVLatentVideo",
"inputs": {
"batch_size": 1,
"height": [
"129:98",
0
],
"length": [
"129:694",
2
],
"width": [
"129:113",
0
]
},
"_meta": {
"title": "Empty LTXV Latent Video"
}
},
"129:109": {
"class_type": "LTXVConditioning",
"inputs": {
"frame_rate": [
"129:123",
0
],
"negative": [
"129:112",
0
],
"positive": [
"129:128",
0
]
},
"_meta": {
"title": "LTXVConditioning"
}
},
"129:112": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"129:103",
0
],
"text": "blurry, out of focus, overexposed, underexposed, low contrast, washed out colors, excessive noise, grainy texture, poor lighting, flickering, motion blur, distorted proportions, unnatural skin tones, deformed facial features, asymmetrical face, missing facial features, extra limbs, disfigured hands, wrong hand count, artifacts around text, unreadable text on shirt or hat, incorrect lettering on cap (“PNTR”), incorrect t-shirt slogan (“JUST DO IT”), missing microphone, misplaced microphone, inconsistent perspective, camera shake, incorrect depth of field, background too sharp, background clutter, distracting reflections, harsh shadows, inconsistent lighting direction, color banding, cartoonish rendering, 3D CGI look, unrealistic materials, uncanny valley effect, incorrect ethnicity, wrong gender, exaggerated expressions, smiling, laughing, exaggerated sadness, wrong gaze direction, eyes looking at camera, mismatched lip sync, silent or muted audio, distorted voice, robotic voice, echo, background noise, off-sync audio, missing sniff sounds, incorrect dialogue, added dialogue, repetitive speech, jittery movement, awkward pauses, incorrect timing, unnatural transitions, inconsistent framing, tilted camera, missing door or shelves, missing shallow depth of field, flat lighting, inconsistent tone, cinematic oversaturation, stylized filters, or AI artifacts."
},
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"129:113": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 1280
},
"_meta": {
"title": "Width"
}
},
"129:114": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 25
},
"_meta": {
"title": "Frame Rate(int)"
}
},
"129:115": {
"class_type": "LTXVAddGuide",
"inputs": {
"frame_idx": 0,
"iclora_parameters": [
"129:196",
0
],
"image": [
"697:25",
0
],
"latent": [
"129:198",
0
],
"negative": [
"129:109",
1
],
"positive": [
"129:109",
0
],
"strength": 1,
"vae": [
"129:127",
2
]
},
"_meta": {
"title": "LTXVAddGuide"
}
},
"129:119": {
"class_type": "LTXVConcatAVLatent",
"inputs": {
"audio_latent": [
"129:101",
0
],
"video_latent": [
"129:115",
2
]
},
"_meta": {
"title": "Concat AV Latent"
}
},
"129:121": {
"class_type": "LTXVSeparateAVLatent",
"inputs": {
"av_latent": [
"129:704",
0
]
},
"_meta": {
"title": "Separate AV Latent"
}
},
"129:122": {
"class_type": "CreateVideo",
"inputs": {
"audio": [
"129:107",
0
],
"bit_depth": "auto",
"chroma_subsampling": "auto",
"codec": "none",
"color_space": "sRGB",
"fps": [
"129:123",
0
],
"images": [
"129:105",
0
]
},
"_meta": {
"title": "Create Video"
}
},
"129:123": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "a",
"values.a": [
"129:114",
0
]
},
"_meta": {
"title": "Math Expression"
}
},
"129:126": {
"class_type": "LTXVAudioVAELoader",
"inputs": {
"ckpt_name": "ltx-2.3-22b-distilled-fp8.safetensors"
},
"_meta": {
"title": "Load LTXV Audio VAE"
}
},
"129:127": {
"class_type": "CheckpointLoaderSimple",
"inputs": {
"ckpt_name": "ltx-2.3-22b-distilled-fp8.safetensors"
},
"_meta": {
"title": "Load Checkpoint"
}
},
"129:128": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"129:103",
0
],
"text": [
"129:211",
0
]
},
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"129:195": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "ltx-2.3-22b-ic-lora-union-control-ref0.5.safetensors",
"model": [
"129:127",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
},
"129:196": {
"class_type": "GetICLoRAParameters",
"inputs": {
"iclora_model": [
"129:195",
0
]
},
"_meta": {
"title": "Get IC-LoRA Parameters"
}
},
"129:198": {
"class_type": "LTXVImgToVideoInplace",
"inputs": {
"bypass": False,
"image": [
"200",
0
],
"latent": [
"129:108",
0
],
"strength": 1,
"vae": [
"129:127",
2
]
},
"_meta": {
"title": "LTXVImgToVideoInplace"
}
},
"129:208": {
"class_type": "LoraLoader",
"inputs": {
"clip": [
"129:103",
0
],
"lora_name": "gemma-3-12b-it-abliterated_lora_rank64_bf16.safetensors",
"model": [
"129:127",
0
],
"strength_clip": 1,
"strength_model": 1
},
"_meta": {
"title": "Load LoRA (Model and CLIP)"
}
},
"129:209": {
"class_type": "TextGenerateLTX2Prompt",
"inputs": {
"clip": [
"129:208",
1
],
"image": [
"200",
0
],
"max_length": 2048,
"mtp": "auto",
"prompt": "A slow forward dolly shot on a bright, sunlit day in a lush jungle ruin. A lone figure in nature-themed armor stands before a weathered stone arch overgrown with ivy. A textured marble sphere wrapped in twisting vines levitates in the arch’s center, spinning slowly. As the camera glides forward, vines sway softly, leaves flutter in the light breeze. Strong golden sunlight streams through the canopy, illuminating the mossy ruins with bright, clear light. The scene feels vibrant and peaceful, with subtle natural motion.",
"sampling_mode": "on",
"sampling_mode.min_p": 0.05,
"sampling_mode.presence_penalty": 0,
"sampling_mode.repetition_penalty": 1.05,
"sampling_mode.seed": 0,
"sampling_mode.temperature": 0.7,
"sampling_mode.top_k": 64,
"sampling_mode.top_p": 0.95,
"thinking": False,
"use_default_template": True
},
"_meta": {
"title": "Generate LTX2 Prompt"
}
},
"129:210": {
"class_type": "PreviewAny",
"inputs": {
"source": [
"129:211",
0
]
},
"_meta": {
"title": "Preview as Text"
}
},
"129:211": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": "A slow forward dolly shot on a bright, sunlit day in a lush jungle ruin. A lone figure in nature-themed armor stands before a weathered stone arch overgrown with ivy. A textured marble sphere wrapped in twisting vines levitates in the arch’s center, spinning slowly. As the camera glides forward, vines sway softly, leaves flutter in the light breeze. Strong golden sunlight streams through the canopy, illuminating the mossy ruins with bright, clear light. The scene feels vibrant and peaceful, with subtle natural motion.",
"on_true": [
"129:209",
0
],
"switch": [
"129:212",
0
]
},
"_meta": {
"title": "If/Else Switch"
}
},
"129:212": {
"class_type": "PrimitiveBoolean",
"inputs": {
"value": False
},
"_meta": {
"title": "Boolean (Enable Prompt Enhance)"
}
},
"129:694": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"697:25",
0
]
},
"_meta": {
"title": "Get Image Size"
}
},
"129:704": {
"class_type": "KSampler",
"inputs": {
"cfg": 1,
"denoise": 1,
"latent_image": [
"129:119",
0
],
"model": [
"129:195",
0
],
"negative": [
"129:115",
1
],
"positive": [
"129:115",
0
],
"sampler_name": "euler_ancestral",
"scheduler": "linear_quadratic",
"seed": 0,
"steps": 8
},
"_meta": {
"title": "KSampler"
}
},
"129:98": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 704
},
"_meta": {
"title": "height"
}
},
"697:13": {
"class_type": "MoGeInference",
"inputs": {
"apply_mask": True,
"batch_size": 4,
"force_projection": True,
"fov_x_degrees": 0,
"image": [
"697:53",
0
],
"moge_model": [
"697:32",
0
],
"refine_steps": 3,
"resolution_level": 9
},
"_meta": {
"title": "Run MoGe Inference"
}
},
"697:23": {
"class_type": "MoGeRender",
"inputs": {
"moge_geometry": [
"697:13",
0
],
"output": "depth_colored"
},
"_meta": {
"title": "Render MoGe Geometry"
}
},
"697:25": {
"class_type": "MoGeRender",
"inputs": {
"moge_geometry": [
"697:13",
0
],
"output": "depth"
},
"_meta": {
"title": "Render MoGe Geometry"
}
},
"697:32": {
"class_type": "LoadMoGeModel",
"inputs": {
"model_name": "moge_2_vitl_normal_fp16.safetensors"
},
"_meta": {
"title": "Load MoGe Model"
}
},
"697:36": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "a > 2048",
"values.a": [
"697:37",
0
]
},
"_meta": {
"title": "Math Expression"
}
},
"697:37": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"697:70",
0
]
},
"_meta": {
"title": "Get Image Size"
}
},
"697:42": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"697:70",
0
],
"on_true": [
"697:705",
0
],
"switch": [
"697:36",
2
]
},
"_meta": {
"title": "If/Else Switch"
}
},
"697:45": {
"class_type": "MoGeRender",
"inputs": {
"moge_geometry": [
"697:13",
0
],
"output": "mask"
},
"_meta": {
"title": "Render MoGe Geometry"
}
},
"697:53": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"697:70",
0
],
"on_true": [
"697:42",
0
],
"switch": True
},
"_meta": {
"title": "If/Else Switch"
}
},
"697:696": {
"class_type": "ImageToMask",
"inputs": {
"channel": "red",
"image": [
"697:45",
0
]
},
"_meta": {
"title": "Convert Image to Mask"
}
},
"697:70": {
"class_type": "GetVideoComponents",
"inputs": {
"video": [
"692",
0
]
},
"_meta": {
"title": "Get Video Components"
}
},
"697:705": {
"class_type": "ResizeImageMaskNode",
"inputs": {
"input": [
"697:70",
0
],
"resize_type": "scale longer dimension",
"resize_type.longer_size": 2048,
"scale_method": "area"
},
"_meta": {
"title": "Resize Image/Mask"
}
}
})
workflow.set_input("200", "image", client.assets.from_url("https://comfy.org/catalog-media/854d6a2b-a2e3-4ae0-bcf4-5537bb139933/18af35f5-7750-4c20-a6b5-69df5c6abe5b"))
workflow.set_input("199", "file", client.assets.from_url("https://comfy.org/catalog-media/58c2298b-949e-46fc-aa5a-10abb297cec6/18217dbe-05d6-45d4-913e-e811d8c82121"))
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)
for output in job.get_outputs("68"):
output.to_file(output.name)Experimente um exemplo
Sobre este fluxo de trabalho
IC-LoRA (in-context LoRA) is control that is learned rather than bolted on: the LoRA reads a control signal as extra context for the same 22B transformer, so the render keeps LTX 2.3's own look while following the structure it is shown. This graph derives that structure from a reference clip — MoGe estimates depth, the depth is normalised and fed to the guide — and pins the opening frame with a still, which is the combination that makes a shot reproducible: move the camera in the reference, keep the subject from the image. `prompt` describes what should happen in the shot; `duration` trims the reference clip to the length you want to render, and width/height set the canvas, best kept to the reference's own 1280x704.\n\nGraph: LoadVideo -> Video Slice -> MoGe depth (moge_2_vitl) -> LTXVAddGuide inside the LTX 2.3 subgraph (union-control IC-LoRA, 8 steps, euler_ancestral), plus LoadImage for the start frame; VAEDecodeTiled and the audio VAE are wired in the same pass -> SaveVideo at 25 fps.
Workflows relacionados
- Seedance 2.5
Change a video’s background
- LTX-2.3
Remove an object from a video
- LTX-2.3
Expand a video’s frame
- SSCAIL-2
Replace a character in a video
- SSeedVR2
Upscale a video
- LTX-2.3
Restore archival footage
- SSAM3, Wan2.1 VACE
Alterar Qualquer Objeto
- PPruna P-Video
Ampliar Vídeo: Pruna P-Video
- SSeedVR2
Ampliar Vídeo: SeedVR2
- Topaz
Ampliar vídeo: Topaz Starlight Precise 2.5
- ByteDance vCube
Ampliação de Vídeo: ByteDance vCube
- SSeedVR2
Ampliação de Vídeo: SeedVR2 3B Int8