The LTX-2 Depth to Video workflow in ComfyUI is designed to transform depth maps into high-quality videos, incorporating synchronized audio-video generation. This workflow leverages the LTX-2 model, renowned for its precise depth control and spatial awareness, to create visually compelling video content. The workflow begins with nodes like 'LoadImage' and 'LoadVideo' to import the necessary media files. The 'GetVideoComponents' node is crucial as it extracts essential components from the video, which are then processed through nodes like 'ImageScaleBy' and 'ResizeImageMaskNode' to ensure the correct dimensions and aspect ratios. The 'SaveVideo' node finalizes the process by compiling the processed frames into a video file. This workflow is particularly useful for creators looking to integrate depth-based visual effects into their video projects, offering efficient performance and high-quality output.
API
Use this workflow from code
Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.
GET https://comfy.org/workflows/download/011974792e13.jsonFetching workflow JSON…
Run it from Python or TypeScript with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
# Install (beta)
pip install comfy-sdk # Python
npm i @comfyorg/sdk # TypeScript
# Run "LTX-2 Depth to Video" (Python)
from comfy_sdk import Comfy
client = Comfy(api_key="comfyui-...")
# This workflow, exported in API format (see note below)
wf = client.workflows.from_file("video_ltx2_depth_to_video_api.json")
asset = client.assets.from_file("input.png")
wf.set_input("160", "image", asset) # LoadImage
job = client.run(wf)
for output in job.get_outputs("175"): # SaveVideo
output.to_file(output.name)The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API). API access requires a Comfy Cloud plan with an API key. SDK docs · Get an API key
FAQ
















