LTX-2.5 DFR:图生视频
用 LTX-2.5 的 DFR(Diffusion Fidelity Rendering)路径,从一张图片生成带声音的短视频:先在半分辨率下生成并携带每秒一个细节关键帧,再做空间 ×2 细节重采样(pixel-spatial IC-LoRA),最后可选地做时间 ×2...
查看工作流内部
源模板的只读预览。在 Cloud 中打开,即可查看节点并进行修改。
Loading the graph
Open full-size workflow preview运行于
此工作流中的文件
- ltx-2.5-audio-vae-bf16.safetensors
- ltx-2.5-video-vae-bf16.safetensors
- ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors
- ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors
- gemma4_e2b_it_bf16.safetensors
- gemma4-12b-with-proj-ltx-2.5-bf16.safetensors
- ltx-2.5-latent-temporal-upscaler-x2-bf16-1.0.safetensors
- ltx-2.5-22b-ic-lora-pixel-spatial-upscaler-x2-1.0.safetensors
- 输出
- 视频
- 作者
- 作者信息暂不可用
从代码中调用该模型
以下请求使用与体验区相同的预设图和设置。每次提交都可能开始一次付费运行;如果提交结果未知,请勿自动重试。
What you need
- Runs on
- Comfy Cloud
- 密钥
- COMFY_API_KEY
- 你的文件
- 由代码根据链接上传
需要付费的 Cloud 方案和额度。
# 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({
"2004": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_FILENAME"
},
"_meta": {
"title": "Start image (I2V)"
}
},
"4852": {
"class_type": "SaveVideo",
"inputs": {
"codec": "auto",
"filename_prefix": "video/LTX-2.5_DFR_i2v",
"format": "auto",
"format.codec": "auto",
"video": [
"5953:5895",
0
]
},
"_meta": {
"title": "Save video (mp4 + audio)"
}
},
"5954": {
"class_type": "ResolutionSelector",
"inputs": {
"aspect_ratio": "16:9 (Widescreen)",
"megapixels": 0.87,
"multiple": 32
},
"_meta": {
"title": "Output size (aspect / megapixels)"
}
},
"5957": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"5953:5726",
0
]
},
"_meta": {
"title": "Preview frame"
}
},
"5953:5508": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "Use the provided start image as the first frame. The man looks up at the camera and speaks in a relaxed deadpan voice: \"Honey, I'm working from home.\" His mouth moves naturally with the speech, then he calmly sprays the hose across the lawn again, the water arc catching the light under the fluorescent panels. Subtle camera drift, warm comedy advertising mood."
},
"_meta": {
"title": "Prompt (positive)"
}
},
"5953:5509": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": ""
},
"_meta": {
"title": "Prompt (negative)"
}
},
"5953:5725": {
"class_type": "LatentCutToBatch",
"inputs": {
"dim": "t",
"samples": [
"5953:5841",
3
],
"slice_size": 1
},
"_meta": {
"title": "LatentCutToBatch"
}
},
"5953:5726": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"5953:5725",
0
],
"vae": [
"5953:5741",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"5953:5729": {
"class_type": "ResizeImageMaskNode",
"inputs": {
"input": [
"5953:5904",
0
],
"resize_type": "scale by multiplier",
"resize_type.multiplier": 0.25,
"scale_method": "area"
},
"_meta": {
"title": "Resize Image/Mask"
}
},
"5953:5740": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "ltx-2.5-audio-vae-bf16.safetensors"
},
"_meta": {
"title": "Load VAE - Audio"
}
},
"5953:5741": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "ltx-2.5-video-vae-bf16.safetensors"
},
"_meta": {
"title": "Load VAE - Video"
}
},
"5953:5742": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Transformer"
}
},
"5953:5743": {
"class_type": "LatentUpscaleModelLoader",
"inputs": {
"model_name": "ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors"
},
"_meta": {
"title": "Load Latent Upscale Model"
}
},
"5953:5744": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "gemma4_e2b_it_bf16.safetensors",
"device": "default",
"type": "ltxv"
},
"_meta": {
"title": "Load CLIP - Prompt Enhancer"
}
},
"5953:5745": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "gemma4-12b-with-proj-ltx-2.5-bf16.safetensors",
"device": "default",
"type": "ltxv"
},
"_meta": {
"title": "Load CLIP - Text Encoder"
}
},
"5953:5747": {
"class_type": "LatentUpscaleModelLoader",
"inputs": {
"model_name": "ltx-2.5-latent-temporal-upscaler-x2-bf16-1.0.safetensors"
},
"_meta": {
"title": "Temporal x2 upscaler"
}
},
"5953:5766": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"5953:5745",
0
],
"text": ""
},
"_meta": {
"title": "CLIP Text Encode (Negative Prompt)"
}
},
"5953:5767": {
"class_type": "PrimitiveBoolean",
"inputs": {
"value": False
},
"_meta": {
"title": "Boolean (Switch to T2V)"
}
},
"5953:5768": {
"class_type": "TextGenerateLTX2Prompt",
"inputs": {
"clip": [
"5953:5744",
0
],
"max_length": 600,
"mtp": "auto",
"prompt": [
"5953:5508",
0
],
"sampling_mode": "on",
"sampling_mode.min_p": 0,
"sampling_mode.presence_penalty": 0,
"sampling_mode.repetition_penalty": 1.15,
"sampling_mode.seed": [
"5953:5952",
0
],
"sampling_mode.temperature": 0.01,
"sampling_mode.top_k": 0,
"sampling_mode.top_p": 1,
"thinking": False,
"use_default_template": True
},
"_meta": {
"title": "Positive prompt (t2v) enhancer - TextGenerateLTX2Prompt"
}
},
"5953:5769": {
"class_type": "TextGenerateLTX2Prompt",
"inputs": {
"clip": [
"5953:5744",
0
],
"image": [
"5953:5729",
0
],
"max_length": 600,
"mtp": "auto",
"prompt": [
"5953:5509",
0
],
"sampling_mode": "on",
"sampling_mode.min_p": 0,
"sampling_mode.presence_penalty": 0,
"sampling_mode.repetition_penalty": 1.15,
"sampling_mode.seed": [
"5953:5952",
0
],
"sampling_mode.temperature": 0.01,
"sampling_mode.top_k": 0,
"sampling_mode.top_p": 1,
"thinking": False,
"use_default_template": True
},
"_meta": {
"title": "Positive prompt + image enhancer - TextGenerateLTX2Prompt"
}
},
"5953:5770": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"5953:5768",
0
],
"on_true": [
"5953:5769",
0
],
"switch": [
"5953:5767",
0
]
},
"_meta": {
"title": "If/Else Switch (Enhanced Output)"
}
},
"5953:5771": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"5953:5745",
0
],
"text": [
"5953:5910",
0
]
},
"_meta": {
"title": "CLIP Text Encode (Positive Prompt)"
}
},
"5953:5772": {
"class_type": "LTXVConditioning",
"inputs": {
"frame_rate": [
"5953:5917",
0
],
"negative": [
"5953:5766",
0
],
"positive": [
"5953:5771",
0
]
},
"_meta": {
"title": "LTXVConditioning"
}
},
"5953:5773": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"5953:5508",
0
],
"on_true": [
"5953:5770",
0
],
"switch": [
"5953:5909",
0
]
},
"_meta": {
"title": "If/Else Switch"
}
},
"5953:5776": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "1 + floor(a*b/8)*8",
"values.a": [
"5953:5917",
0
],
"values.b": [
"5953:5918",
0
]
},
"_meta": {
"title": "Math Expression"
}
},
"5953:5790": {
"class_type": "LTXVPreprocess",
"inputs": {
"image": [
"5953:5729",
0
],
"img_compression": 18
},
"_meta": {
"title": "LTXV Preprocess"
}
},
"5953:5791": {
"class_type": "EmptyLTXVLatentVideo",
"inputs": {
"batch_size": 1,
"height": [
"5953:5948",
1
],
"length": [
"5953:5776",
1
],
"width": [
"5953:5945",
1
]
},
"_meta": {
"title": "Empty LTXV Latent Video"
}
},
"5953:5792": {
"class_type": "LTXVEmptyLatentAudio",
"inputs": {
"audio_vae": [
"5953:5740",
0
],
"batch_size": 1,
"frame_rate": [
"5953:5917",
0
],
"frames_number": [
"5953:5776",
1
]
},
"_meta": {
"title": "Empty LTXV Latent Audio"
}
},
"5953:5793": {
"class_type": "LTXVImgToVideoInplace",
"inputs": {
"bypass": [
"5953:5767",
0
],
"image": [
"5953:5790",
0
],
"latent": [
"5953:5791",
0
],
"strength": 1,
"vae": [
"5953:5741",
0
]
},
"_meta": {
"title": "LTXVImgToVideoInplace"
}
},
"5953:5794": {
"class_type": "LTXVConcatAVLatent",
"inputs": {
"audio_latent": [
"5953:5792",
0
],
"video_latent": [
"5953:5795",
2
]
},
"_meta": {
"title": "Concat AV Latent"
}
},
"5953:5795": {
"class_type": "LTXVAddGeneratedKeyframes",
"inputs": {
"frame_indices": "",
"interval_frames": 24,
"latent": [
"5953:5793",
0
],
"negative": [
"5953:5772",
1
],
"positive": [
"5953:5772",
0
],
"vae": [
"5953:5741",
0
]
},
"_meta": {
"title": "Add empty keyframes"
}
},
"5953:5808": {
"class_type": "RandomNoise",
"inputs": {
"noise_seed": 43
},
"_meta": {
"title": "RandomNoise"
}
},
"5953:5809": {
"class_type": "CFGGuider",
"inputs": {
"cfg": 1,
"model": [
"5953:5742",
0
],
"negative": [
"5953:5795",
1
],
"positive": [
"5953:5795",
0
]
},
"_meta": {
"title": "CFG Guider"
}
},
"5953:5810": {
"class_type": "KSamplerSelect",
"inputs": {
"sampler_name": "euler"
},
"_meta": {
"title": "KSamplerSelect"
}
},
"5953:5811": {
"class_type": "ManualSigmas",
"inputs": {
"sigmas": "1.0, 0.99375, 0.9875, 0.98125, 0.975, 0.909375, 0.725, 0.421875, 0.0"
},
"_meta": {
"title": "ManualSigmas"
}
},
"5953:5813": {
"class_type": "SamplerCustomAdvanced",
"inputs": {
"guider": [
"5953:5809",
0
],
"latent_image": [
"5953:5794",
0
],
"noise": [
"5953:5808",
0
],
"sampler": [
"5953:5810",
0
],
"sigmas": [
"5953:5811",
0
]
},
"_meta": {
"title": "SamplerCustomAdvanced"
}
},
"5953:5814": {
"class_type": "LTXVSeparateAVLatent",
"inputs": {
"av_latent": [
"5953:5813",
0
]
},
"_meta": {
"title": "Separate AV Latent"
}
},
"5953:5831": {
"class_type": "LTXVLatentUpsampler",
"inputs": {
"samples": [
"5953:5838",
2
],
"upscale_model": [
"5953:5743",
0
],
"vae": [
"5953:5741",
0
]
},
"_meta": {
"title": "LTXVLatentUpsampler"
}
},
"5953:5832": {
"class_type": "LTXVImgToVideoInplace",
"inputs": {
"bypass": [
"5953:5767",
0
],
"image": [
"5953:5729",
0
],
"latent": [
"5953:5831",
0
],
"strength": 1,
"vae": [
"5953:5741",
0
]
},
"_meta": {
"title": "LTXVImgToVideoInplace"
}
},
"5953:5833": {
"class_type": "LTXVConcatAVLatent",
"inputs": {
"audio_latent": [
"5953:5814",
1
],
"video_latent": [
"5953:5845",
2
]
},
"_meta": {
"title": "Concat AV Latent"
}
},
"5953:5834": {
"class_type": "KSamplerSelect",
"inputs": {
"sampler_name": "euler"
},
"_meta": {
"title": "KSamplerSelect"
}
},
"5953:5835": {
"class_type": "CFGGuider",
"inputs": {
"cfg": 1,
"model": [
"5953:5903",
0
],
"negative": [
"5953:5845",
1
],
"positive": [
"5953:5845",
0
]
},
"_meta": {
"title": "CFG Guider"
}
},
"5953:5836": {
"class_type": "LTXVSeparateAVLatent",
"inputs": {
"av_latent": [
"5953:5837",
0
]
},
"_meta": {
"title": "Separate AV Latent"
}
},
"5953:5837": {
"class_type": "SamplerCustomAdvanced",
"inputs": {
"guider": [
"5953:5835",
0
],
"latent_image": [
"5953:5833",
0
],
"noise": [
"5953:5843",
0
],
"sampler": [
"5953:5834",
0
],
"sigmas": [
"5953:5842",
0
]
},
"_meta": {
"title": "SamplerCustomAdvanced"
}
},
"5953:5838": {
"class_type": "LTXVSeparateGeneratedKeyframes",
"inputs": {
"keyframes_to_batch": False,
"latent": [
"5953:5814",
0
],
"negative": [
"5953:5795",
1
],
"positive": [
"5953:5795",
0
]
},
"_meta": {
"title": "Separate stage-1 keyframes"
}
},
"5953:5839": {
"class_type": "LTXVLatentUpsampler",
"inputs": {
"samples": [
"5953:5838",
3
],
"upscale_model": [
"5953:5743",
0
],
"vae": [
"5953:5741",
0
]
},
"_meta": {
"title": "Upsample keyframes"
}
},
"5953:5840": {
"class_type": "LTXVAddGeneratedKeyframes",
"inputs": {
"frame_indices": "",
"interval_frames": 24,
"keyframes": [
"5953:5839",
0
],
"latent": [
"5953:5832",
0
],
"negative": [
"5953:5838",
1
],
"positive": [
"5953:5838",
0
],
"vae": [
"5953:5741",
0
]
},
"_meta": {
"title": "Warm-start stage-2 keyframes"
}
},
"5953:5841": {
"class_type": "LTXVSeparateGeneratedKeyframes",
"inputs": {
"keyframes_to_batch": False,
"latent": [
"5953:5836",
0
],
"negative": [
"5953:5845",
1
],
"positive": [
"5953:5845",
0
]
},
"_meta": {
"title": "Separate stage-2 keyframes"
}
},
"5953:5842": {
"class_type": "ManualSigmas",
"inputs": {
"sigmas": "0.909375, 0.725, 0.421875, 0.0"
},
"_meta": {
"title": "ManualSigmas"
}
},
"5953:5843": {
"class_type": "RandomNoise",
"inputs": {
"noise_seed": 43
},
"_meta": {
"title": "RandomNoise"
}
},
"5953:5844": {
"class_type": "LTXVCropGuides",
"inputs": {
"latent": [
"5953:5841",
2
],
"negative": [
"5953:5841",
1
],
"positive": [
"5953:5841",
0
]
},
"_meta": {
"title": "Crop detailing reference"
}
},
"5953:5845": {
"class_type": "LTXVAddLatentGuide",
"inputs": {
"guiding_latent": [
"5953:5838",
2
],
"latent": [
"5953:5840",
2
],
"latent_idx": 0,
"negative": [
"5953:5840",
1
],
"positive": [
"5953:5840",
0
],
"strength": 1,
"vae": [
"5953:5741",
0
]
},
"_meta": {
"title": "Detailing reference (half-res)"
}
},
"5953:5871": {
"class_type": "LTXVLatentUpsampler",
"inputs": {
"samples": [
"5953:5844",
2
],
"upscale_model": [
"5953:5747",
0
],
"vae": [
"5953:5741",
0
]
},
"_meta": {
"title": "Temporal x2 upsample"
}
},
"5953:5872": {
"class_type": "LTXVImgToVideoInplace",
"inputs": {
"bypass": [
"5953:5767",
0
],
"image": [
"5953:5729",
0
],
"latent": [
"5953:5871",
0
],
"strength": 1,
"vae": [
"5953:5741",
0
]
},
"_meta": {
"title": "Re-apply I2V on x2 canvas"
}
},
"5953:5873": {
"class_type": "LTXVGeneratedKeyframesToGuides",
"inputs": {
"keyframes": [
"5953:5841",
3
],
"latent": [
"5953:5872",
0
],
"negative": [
"5953:5844",
1
],
"override_frame_indices": "",
"positive": [
"5953:5844",
0
],
"strength": 0.95,
"vae": [
"5953:5741",
0
]
},
"_meta": {
"title": "Usual KFs as guides @ 0.95"
}
},
"5953:5874": {
"class_type": "LTXVAddGeneratedKeyframes",
"inputs": {
"frame_indices": "",
"interval_frames": 24,
"keyframes": [
"5953:5872",
0
],
"latent": [
"5953:5873",
2
],
"negative": [
"5953:5873",
1
],
"positive": [
"5953:5873",
0
],
"vae": [
"5953:5741",
0
]
},
"_meta": {
"title": "Add additional keyframes"
}
},
"5953:5875": {
"class_type": "ManualSigmas",
"inputs": {
"sigmas": "0.975, 0.909375, 0.725, 0.421875, 0.0"
},
"_meta": {
"title": "ManualSigmas"
}
},
"5953:5876": {
"class_type": "KSamplerSelect",
"inputs": {
"sampler_name": "euler"
},
"_meta": {
"title": "Sampler"
}
},
"5953:5877": {
"class_type": "CFGGuider",
"inputs": {
"cfg": 1,
"model": [
"5953:5903",
0
],
"negative": [
"5953:5887",
1
],
"positive": [
"5953:5887",
0
]
},
"_meta": {
"title": "CFG Guider"
}
},
"5953:5878": {
"class_type": "RandomNoise",
"inputs": {
"noise_seed": 43
},
"_meta": {
"title": "RandomNoise"
}
},
"5953:5879": {
"class_type": "SamplerCustomAdvanced",
"inputs": {
"guider": [
"5953:5877",
0
],
"latent_image": [
"5953:5881",
0
],
"noise": [
"5953:5878",
0
],
"sampler": [
"5953:5876",
0
],
"sigmas": [
"5953:5875",
0
]
},
"_meta": {
"title": "SamplerCustomAdvanced"
}
},
"5953:5880": {
"class_type": "LTXVFreezeLatent",
"inputs": {
"latent": [
"5953:5836",
1
]
},
"_meta": {
"title": "Freeze audio"
}
},
"5953:5881": {
"class_type": "LTXVConcatAVLatent",
"inputs": {
"audio_latent": [
"5953:5880",
0
],
"video_latent": [
"5953:5874",
2
]
},
"_meta": {
"title": "Audio for cross-attn"
}
},
"5953:5882": {
"class_type": "LTXVSeparateAVLatent",
"inputs": {
"av_latent": [
"5953:5879",
0
]
},
"_meta": {
"title": "Drop temporal audio"
}
},
"5953:5883": {
"class_type": "LTXVSeparateGeneratedKeyframes",
"inputs": {
"keyframes_to_batch": False,
"latent": [
"5953:5882",
0
],
"negative": [
"5953:5874",
1
],
"positive": [
"5953:5874",
0
]
},
"_meta": {
"title": "Peel leftover keyframes"
}
},
"5953:5884": {
"class_type": "LTXVCropGuides",
"inputs": {
"latent": [
"5953:5883",
2
],
"negative": [
"5953:5883",
1
],
"positive": [
"5953:5883",
0
]
},
"_meta": {
"title": "Crop usual-KF guides"
}
},
"5953:5885": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"5953:5917",
0
],
"on_true": [
"5953:5886",
0
],
"switch": [
"5953:5901",
0
]
},
"_meta": {
"title": "decode fps - If/Else Switch"
}
},
"5953:5886": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "a*2",
"values.a": [
"5953:5917",
0
]
},
"_meta": {
"title": "temporal fps = 2 × fps"
}
},
"5953:5887": {
"class_type": "LTXVConditioning",
"inputs": {
"frame_rate": [
"5953:5886",
0
],
"negative": [
"5953:5874",
1
],
"positive": [
"5953:5874",
0
]
},
"_meta": {
"title": "RoPE fps after temporal x2"
}
},
"5953:5888": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"5953:5844",
2
],
"on_true": [
"5953:5884",
2
],
"switch": [
"5953:5901",
0
]
},
"_meta": {
"title": "temporal video - If/Else Switch"
}
},
"5953:5894": {
"class_type": "LTXVAudioVAEDecode",
"inputs": {
"audio_vae": [
"5953:5740",
0
],
"samples": [
"5953:5836",
1
]
},
"_meta": {
"title": "LTXV Audio VAE Decode"
}
},
"5953:5895": {
"class_type": "CreateVideo",
"inputs": {
"audio": [
"5953:5894",
0
],
"bit_depth": "auto",
"chroma_subsampling": "none",
"codec": "none",
"color_space": "sRGB",
"fps": [
"5953:5885",
0
],
"images": [
"5953:5908",
0
]
},
"_meta": {
"title": "Create Video"
}
},
"5953:5897": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"5953:5888",
0
],
"vae": [
"5953:5741",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"5953:5901": {
"class_type": "PrimitiveBoolean",
"inputs": {
"value": True
},
"_meta": {
"title": "Boolean (Run 3rd stage - Temporal Upscale)"
}
},
"5953:5903": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "ltx-2.5-22b-ic-lora-pixel-spatial-upscaler-x2-1.0.safetensors",
"model": [
"5953:5742",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
},
"5953:5904": {
"class_type": "ResizeImageMaskNode",
"inputs": {
"input": [
"2004",
0
],
"resize_type": "scale dimensions",
"resize_type.crop": "center",
"resize_type.height": [
"5954",
1
],
"resize_type.width": [
"5954",
0
],
"scale_method": "lanczos"
},
"_meta": {
"title": "Resize Image/Mask"
}
},
"5953:5906": {
"class_type": "VAEDecodeTiled",
"inputs": {
"overlap": 64,
"samples": [
"5953:5888",
0
],
"temporal_overlap": 8,
"temporal_size": 64,
"tile_size": 512,
"vae": [
"5953:5741",
0
]
},
"_meta": {
"title": "VAE Decode (Tiled)"
}
},
"5953:5908": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"5953:5897",
0
],
"on_true": [
"5953:5906",
0
],
"switch": [
"5953:5915",
0
]
},
"_meta": {
"title": "If/Else Switch"
}
},
"5953:5909": {
"class_type": "PrimitiveBoolean",
"inputs": {
"value": False
},
"_meta": {
"title": "Boolean (Enable Prompt Enhancer)"
}
},
"5953:5910": {
"class_type": "PreviewAny",
"inputs": {
"source": [
"5953:5773",
0
]
},
"_meta": {
"title": "Preview as Text (Final Prompt)"
}
},
"5953:5915": {
"class_type": "PrimitiveBoolean",
"inputs": {
"value": True
},
"_meta": {
"title": "Boolean (Enable Tiled Decode)"
}
},
"5953:5917": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 24
},
"_meta": {
"title": "Float (fps)"
}
},
"5953:5918": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 5
},
"_meta": {
"title": "Float (Duration)"
}
},
"5953:5943": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"5953:5904",
0
]
},
"_meta": {
"title": "Get Image Size"
}
},
"5953:5945": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "floor(a/32)*32/2",
"values.a": [
"5953:5943",
0
]
},
"_meta": {
"title": "Math Expression (Width)"
}
},
"5953:5948": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "floor(a/32)*32/2",
"values.a": [
"5953:5943",
1
]
},
"_meta": {
"title": "Math Expression (Height)"
}
},
"5953:5952": {
"class_type": "SeedNode",
"inputs": {
"seed": 9901
},
"_meta": {
"title": "Seed"
}
}
})
workflow.set_input("2004", "image", client.assets.from_url("https://comfy.org/catalog-media/8f21cc0f-8ab5-44ab-a0ed-e5486fc21af6/dac960bc-5322-4091-8143-5f5c0931fcd2"))
# 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("4852"):
output.to_file(output.name)试试一个示例
关于此工作流
LTX-2.5 DFR (Diffusion Fidelity Rendering) animates one still through four passes: a half-resolution sampling pass, a spatial x2 upscale, a temporal x2 upscale and a final detail pass, with generated keyframes carried between them. Video and audio are rendered together and the clip carries sound.
Graph: LoadImage -> ResizeImageMaskNode -> LTXVPreprocess -> the DFR chain on ltx-2.5-22b-distilled-transformer-comfy-int8-convrot with the pixel-spatial upscaler LoRA, three SamplerCustomAdvanced passes (euler, manual sigmas, cfg 1), the prompt optionally expanded by TextGenerateLTX2Prompt on gemma4, then CreateVideo at 48 fps -> SaveVideo. Duration is a seconds PrimitiveFloat and size comes from a ResolutionSelector at 16:9 / 0.87 MP.
Open weights on Cloud; no partner API involved.