LTX-2: Image to Video
LTX-2 Pro로 정적 이미지를 동적인 비디오로 변환하세요. 자연스러운 모션, 동기화된 오디오, 50fps에서 최대 4K 해상도 지원으로 시네마틱 비디오 시퀀스를 생성합니다.
워크플로 내부
소스 템플릿의 읽기 전용 미리보기입니다. Cloud에서 열어 노드를 살펴보고 변경할 수 있습니다.
코드에서 이 모델 호출하기
아래 요청은 Playground와 동일하게 준비된 그래프와 설정을 사용합니다. 제출할 때마다 유료 실행이 시작될 수 있으므로 결과를 알 수 없는 제출을 자동으로 재시도하지 마세요.
What you need
- Runs on
- Comfy Cloud
- 키
- COMFY_API_KEY
- 내 파일
- 코드가 해당 URL에서 업로드
유료 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({
"75": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/LTX_2.0_i2v",
"format": "auto",
"format.codec": "auto",
"video": [
"92:97",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"98": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"102": {
"class_type": "ResizeImageMaskNode",
"inputs": {
"input": [
"98",
0
],
"resize_type": "scale dimensions",
"resize_type.crop": "center",
"resize_type.height": 720,
"resize_type.width": 1280,
"scale_method": "lanczos"
},
"_meta": {
"title": "Resize Image/Mask"
}
},
"92:1": {
"class_type": "CheckpointLoaderSimple",
"inputs": {
"ckpt_name": "ltx-2-19b-dev-fp8.safetensors"
},
"_meta": {
"title": "Load Checkpoint"
}
},
"92:105": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"102",
0
]
},
"_meta": {
"title": "Get Image Size"
}
},
"92:106": {
"class_type": "ResizeImagesByLongerEdge",
"inputs": {
"images": [
"102",
0
],
"longer_edge": 1536
},
"_meta": {
"title": "Resize Images by Longer Edge (DEPRECATED)"
}
},
"92:107": {
"class_type": "LTXVImgToVideoInplace",
"inputs": {
"bypass": False,
"image": [
"92:99",
0
],
"latent": [
"92:43",
0
],
"strength": 1,
"vae": [
"92:1",
2
]
},
"_meta": {
"title": "LTXVImgToVideoInplace"
}
},
"92:108": {
"class_type": "LTXVImgToVideoInplace",
"inputs": {
"bypass": False,
"image": [
"92:99",
0
],
"latent": [
"92:84",
0
],
"strength": 1,
"vae": [
"92:1",
2
]
},
"_meta": {
"title": "LTXVImgToVideoInplace"
}
},
"92:11": {
"class_type": "RandomNoise",
"inputs": {
"noise_seed": 10
},
"_meta": {
"title": "RandomNoise"
}
},
"92:22": {
"class_type": "LTXVConditioning",
"inputs": {
"frame_rate": 25,
"negative": [
"92:4",
0
],
"positive": [
"92:3",
0
]
},
"_meta": {
"title": "LTXVConditioning"
}
},
"92:3": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"92:60",
0
],
"text": "Morning in the sunlit piazza. The street violinist draws a long, sweeping bow stroke and launches into a fast, joyful folk melody, fingers dancing along the fingerboard, body swaying with the rhythm, eyes closed in a broad smile. Fine rosin dust sparkles in the low sunlight with each stroke. Behind him a flock of pigeons bursts up from the warm tiles and wheels across the clear sky over the arched colonnade. The camera starts low and wide, then slowly circles around him from left to right at waist height, keeping the violin and both hands in view, ending on a closer three-quarter view of his face. Sound: bright solo violin playing a lively tune, the flutter of pigeon wings, distant seagulls and soft footsteps echoing across the stone square."
},
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"92:4": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"92:60",
0
],
"text": "blurry, low quality, still frame, frames, watermark, overlay, titles, has blurbox, has subtitles"
},
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"92:41": {
"class_type": "SamplerCustomAdvanced",
"inputs": {
"guider": [
"92:47",
0
],
"latent_image": [
"92:56",
0
],
"noise": [
"92:11",
0
],
"sampler": [
"92:8",
0
],
"sigmas": [
"92:9",
0
]
},
"_meta": {
"title": "SamplerCustomAdvanced"
}
},
"92:43": {
"class_type": "EmptyLTXVLatentVideo",
"inputs": {
"batch_size": 1,
"height": [
"92:91",
1
],
"length": [
"92:62",
0
],
"width": [
"92:91",
0
]
},
"_meta": {
"title": "Empty LTXV Latent Video"
}
},
"92:47": {
"class_type": "CFGGuider",
"inputs": {
"cfg": 4,
"model": [
"92:1",
0
],
"negative": [
"92:22",
1
],
"positive": [
"92:22",
0
]
},
"_meta": {
"title": "CFG Guider"
}
},
"92:48": {
"class_type": "LTXVAudioVAELoader",
"inputs": {
"ckpt_name": "ltx-2-19b-dev-fp8.safetensors"
},
"_meta": {
"title": "Load LTXV Audio VAE"
}
},
"92:51": {
"class_type": "LTXVEmptyLatentAudio",
"inputs": {
"audio_vae": [
"92:48",
0
],
"batch_size": 1,
"frame_rate": 25,
"frames_number": [
"92:62",
0
]
},
"_meta": {
"title": "Empty LTXV Latent Audio"
}
},
"92:56": {
"class_type": "LTXVConcatAVLatent",
"inputs": {
"audio_latent": [
"92:51",
0
],
"video_latent": [
"92:107",
0
]
},
"_meta": {
"title": "Concat AV Latent"
}
},
"92:60": {
"class_type": "LTXAVTextEncoderLoader",
"inputs": {
"ckpt_name": "ltx-2-19b-dev-fp8.safetensors",
"device": "default",
"text_encoder": "gemma_3_12B_it_fp4_mixed.safetensors"
},
"_meta": {
"title": "Load LTXV Audio Text Encoder"
}
},
"92:62": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 121
},
"_meta": {
"title": "Length"
}
},
"92:66": {
"class_type": "KSamplerSelect",
"inputs": {
"sampler_name": "gradient_estimation"
},
"_meta": {
"title": "KSamplerSelect"
}
},
"92:67": {
"class_type": "RandomNoise",
"inputs": {
"noise_seed": 0
},
"_meta": {
"title": "RandomNoise"
}
},
"92:68": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "ltx-2-19b-distilled-lora-384.safetensors",
"model": [
"92:1",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
},
"92:70": {
"class_type": "SamplerCustomAdvanced",
"inputs": {
"guider": [
"92:82",
0
],
"latent_image": [
"92:83",
0
],
"noise": [
"92:67",
0
],
"sampler": [
"92:66",
0
],
"sigmas": [
"92:73",
0
]
},
"_meta": {
"title": "SamplerCustomAdvanced"
}
},
"92:73": {
"class_type": "ManualSigmas",
"inputs": {
"sigmas": "0.909375, 0.725, 0.421875, 0.0"
},
"_meta": {
"title": "ManualSigmas"
}
},
"92:76": {
"class_type": "LatentUpscaleModelLoader",
"inputs": {
"model_name": "ltx-2-spatial-upscaler-x2-1.0.safetensors"
},
"_meta": {
"title": "Load Latent Upscale Model"
}
},
"92:8": {
"class_type": "KSamplerSelect",
"inputs": {
"sampler_name": "euler"
},
"_meta": {
"title": "KSamplerSelect"
}
},
"92:80": {
"class_type": "LTXVSeparateAVLatent",
"inputs": {
"av_latent": [
"92:41",
0
]
},
"_meta": {
"title": "Separate AV Latent"
}
},
"92:81": {
"class_type": "LTXVCropGuides",
"inputs": {
"latent": [
"92:80",
0
],
"negative": [
"92:22",
1
],
"positive": [
"92:22",
0
]
},
"_meta": {
"title": "LTXVCropGuides"
}
},
"92:82": {
"class_type": "CFGGuider",
"inputs": {
"cfg": 1,
"model": [
"92:68",
0
],
"negative": [
"92:81",
1
],
"positive": [
"92:81",
0
]
},
"_meta": {
"title": "CFG Guider"
}
},
"92:83": {
"class_type": "LTXVConcatAVLatent",
"inputs": {
"audio_latent": [
"92:80",
1
],
"video_latent": [
"92:108",
0
]
},
"_meta": {
"title": "Concat AV Latent"
}
},
"92:84": {
"class_type": "LTXVLatentUpsampler",
"inputs": {
"samples": [
"92:81",
2
],
"upscale_model": [
"92:76",
0
],
"vae": [
"92:1",
2
]
},
"_meta": {
"title": "spatial"
}
},
"92:89": {
"class_type": "EmptyImage",
"inputs": {
"batch_size": 1,
"color": 0,
"height": [
"92:105",
1
],
"width": [
"92:105",
0
]
},
"_meta": {
"title": "Empty Image"
}
},
"92:9": {
"class_type": "LTXVScheduler",
"inputs": {
"base_shift": 0.95,
"latent": [
"92:56",
0
],
"max_shift": 2.05,
"steps": 20,
"stretch": True,
"terminal": 0.1
},
"_meta": {
"title": "LTXVScheduler"
}
},
"92:90": {
"class_type": "ImageScaleBy",
"inputs": {
"image": [
"92:89",
0
],
"scale_by": 0.5,
"upscale_method": "lanczos"
},
"_meta": {
"title": "Upscale Image By"
}
},
"92:91": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"92:90",
0
]
},
"_meta": {
"title": "Get Image Size"
}
},
"92:94": {
"class_type": "LTXVSeparateAVLatent",
"inputs": {
"av_latent": [
"92:70",
1
]
},
"_meta": {
"title": "Separate AV Latent"
}
},
"92:95": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"92:94",
0
],
"vae": [
"92:1",
2
]
},
"_meta": {
"title": "VAE Decode"
}
},
"92:96": {
"class_type": "LTXVAudioVAEDecode",
"inputs": {
"audio_vae": [
"92:48",
0
],
"samples": [
"92:94",
1
]
},
"_meta": {
"title": "LTXV Audio VAE Decode"
}
},
"92:97": {
"class_type": "CreateVideo",
"inputs": {
"audio": [
"92:96",
0
],
"bit_depth": "auto",
"codec": "none",
"color_space": "sRGB",
"fps": 25,
"images": [
"92:95",
0
]
},
"_meta": {
"title": "Create Video"
}
},
"92:99": {
"class_type": "LTXVPreprocess",
"inputs": {
"image": [
"92:106",
0
],
"img_compression": 33
},
"_meta": {
"title": "LTXV Preprocess"
}
}
})
workflow.set_input("98", "image", client.assets.from_url("https://comfy.org/catalog-media/6710d2a9-cf4b-46d3-ada6-d54cebaebec1/dbc88c9d-a8c8-46d0-9ffb-2d84ad53b810"))
# 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("75"):
output.to_file(output.name)예시 사용해 보기
이 워크플로 정보
LTX-2: Image to Video 워크플로는 정적 이미지를 동적인 비디오로 변환하면서 오디오와 비디오 생성을 함께 통합하도록 설계되었습니다. 이 워크플로는 표현력 있는 립싱크와 자연스러운 모션을 생성하는 것으로 알려진 Lightricks의 LTX-2 모델을 사용해, 생성된 비디오가 현실감 있고 몰입감 있게 보이도록 합니다. 출력에는 SaveVideo, 정적 이미지 가져오기에는 LoadImage, 비디오 요구 사항에 맞게 이미지 크기를 조정하는 데는 ResizeImageMaskNode 등 여러 노드를 활용합니다. b7c2d337-c38d-4c04-922b-2d638449d13e 노드는 오디오와 비디오를 처리 및 동기화하는 데 핵심이며, 전체 멀티미디어 경험을 강화합니다. 이 워크플로를 사용하면 이미지에서 고품질 비디오를 효율적으로 만들 수 있어, 프로젝트에 동적인 요소를 추가하려는 콘텐츠 크리에이터에게 유용합니다.
질문과 답변
최적의 비디오 호환성을 위해 이미지 크기는 64로 나누어떨어지도록 설정하세요.
b7c2d337-c38d-4c04-922b-2d638449d13e 노드가 오디오 동기화를 처리하므로, 워크플로에서 올바르게 설정되어 있는지 확인하세요.
네. 하드웨어가 지원한다면 1920x1088 해상도를 사용할 수 있지만, 모든 파라미터가 나눗셈 요구 사항을 충족하는지 확인하세요.
워크플로가 오류를 내지 않고 가장 가까운 유효 파라미터로 자동 조정하여 원활히 동작합니다.