{
  "1": {
    "class_type": "UnetLoaderGGUF",
    "inputs": {
      "unet_name": "ltx-2.5-22b-distilled-Q4_K_M.gguf"
    }
  },
  "2": {
    "class_type": "CLIPLoader",
    "inputs": {
      "clip_name": "gemma4-12b-with-proj-ltx-2.5-bf16.safetensors",
      "type": "ltxv",
      "device": "default"
    }
  },
  "3": {
    "class_type": "VAELoader",
    "inputs": {
      "vae_name": "ltx-2.5-video-vae-conv-bf16.safetensors"
    }
  },
  "4": {
    "class_type": "LTXICLoRALoaderModelOnly",
    "inputs": {
      "model": [
        "1",
        0
      ],
      "lora_name": "ltx-2.3-22b-ic-lora-in-outpainting-0.9.safetensors",
      "strength_model": 1.0
    }
  },
  "5": {
    "class_type": "CLIPTextEncode",
    "inputs": {
      "clip": [
        "2",
        0
      ],
      "text": "A magnificent ancient stone castle with tall slender towers, ornate turrets and warm amber windows rises from the rocky coastal cliff. The castle is solid stone and remains consistent through the shot. Keep the original coastline, sunset, ocean waves and camera movement. Photorealistic cinematic fantasy visual effects."
    }
  },
  "6": {
    "class_type": "CLIPTextEncode",
    "inputs": {
      "clip": [
        "2",
        0
      ],
      "text": ""
    }
  },
  "7": {
    "class_type": "LTXVConditioning",
    "inputs": {
      "positive": [
        "5",
        0
      ],
      "negative": [
        "6",
        0
      ],
      "frame_rate": 24.0
    }
  },
  "8": {
    "class_type": "AftertakeLoadClip",
    "inputs": {
      "filename": "5699b7f7-a921-4311-8296-7e99a16ab544.mp4",
      "width": 768,
      "height": 448,
      "frames": 97,
      "fps": 24.0,
      "trim_start": 0.0
    },
    "is_changed": [
      "5029ea3c92f7fd79fe154116804bb12c76b7b88669d40980443813ac62f2b88b"
    ]
  },
  "9": {
    "class_type": "AftertakeCueMask",
    "inputs": {
      "width": 768,
      "height": 448,
      "frames": 97,
      "fps": 24.0,
      "cue_json": "{\"start\":0.35,\"end\":3.85,\"fade\":0.35,\"feather\":0.035,\"tracking\":\"flow\",\"anchor\":1.5,\"strokes\":[{\"points\":[{\"x\":0.79,\"y\":0.25},{\"x\":0.79,\"y\":0.55},{\"x\":0.79,\"y\":0.8}],\"radius\":0.35,\"mode\":\"paint\"}]}",
      "images": [
        "8",
        0
      ]
    }
  },
  "10": {
    "class_type": "LTXVInpaintPreprocess",
    "inputs": {
      "images": [
        "24",
        0
      ],
      "mask": [
        "23",
        0
      ]
    }
  },
  "11": {
    "class_type": "EmptyLTXVLatentVideo",
    "inputs": {
      "width": 512,
      "height": 288,
      "length": 97,
      "batch_size": 1
    }
  },
  "12": {
    "class_type": "LTXAddVideoICLoRAGuideAdvanced",
    "inputs": {
      "positive": [
        "7",
        0
      ],
      "negative": [
        "7",
        1
      ],
      "vae": [
        "3",
        0
      ],
      "latent": [
        "46",
        0
      ],
      "image": [
        "10",
        0
      ],
      "frame_idx": 0,
      "strength": 1.0,
      "latent_downscale_factor": [
        "4",
        1
      ],
      "crop": "disabled",
      "use_tiled_encode": false,
      "tile_size": 256,
      "tile_overlap": 64,
      "attention_strength": 1.0
    }
  },
  "13": {
    "class_type": "RandomNoise",
    "inputs": {
      "noise_seed": 2960
    }
  },
  "14": {
    "class_type": "KSamplerSelect",
    "inputs": {
      "sampler_name": "euler_ancestral"
    }
  },
  "15": {
    "class_type": "ManualSigmas",
    "inputs": {
      "sigmas": "1., 0.99375, 0.9875, 0.98125, 0.975, 0.909375, 0.725, 0.421875, 0.0"
    }
  },
  "16": {
    "class_type": "BasicGuider",
    "inputs": {
      "model": [
        "4",
        0
      ],
      "conditioning": [
        "12",
        0
      ]
    }
  },
  "17": {
    "class_type": "SamplerCustomAdvanced",
    "inputs": {
      "noise": [
        "13",
        0
      ],
      "guider": [
        "16",
        0
      ],
      "sampler": [
        "14",
        0
      ],
      "sigmas": [
        "15",
        0
      ],
      "latent_image": [
        "12",
        2
      ]
    }
  },
  "18": {
    "class_type": "LTXVCropGuides",
    "inputs": {
      "positive": [
        "12",
        0
      ],
      "negative": [
        "12",
        1
      ],
      "latent": [
        "17",
        0
      ]
    }
  },
  "19": {
    "class_type": "VAEDecode",
    "inputs": {
      "samples": [
        "18",
        2
      ],
      "vae": [
        "3",
        0
      ]
    }
  },
  "20": {
    "class_type": "AftertakeComposite",
    "inputs": {
      "original": [
        "8",
        0
      ],
      "generated": [
        "34",
        0
      ],
      "mask": [
        "9",
        0
      ],
      "match_color": true,
      "spatial_mask": [
        "9",
        2
      ]
    }
  },
  "21": {
    "class_type": "AftertakeSaveVideo",
    "inputs": {
      "images": [
        "20",
        0
      ],
      "fps": 24.0,
      "filename_prefix": "aftertake/composite",
      "recipe_json": "{\"format\":\"aftertake/1\",\"name\":\"Coastal kingdom / matched source color and framing\",\"clip\":{\"id\":\"5699b7f7-a921-4311-8296-7e99a16ab544\",\"name\":\"Lighthouse - Dean Diemert - Pexels.mp4\",\"sha256\":\"5029ea3c92f7fd79fe154116804bb12c76b7b88669d40980443813ac62f2b88b\",\"width\":768,\"height\":432,\"duration\":4.208333333333333,\"url\":\"/media/5699b7f7-a921-4311-8296-7e99a16ab544.mp4\",\"hasAudio\":false},\"prompt\":\"A magnificent ancient stone castle with tall slender towers, ornate turrets and warm amber windows rises from the rocky coastal cliff. The castle is solid stone and remains consistent through the shot. Keep the original coastline, sunset, ocean waves and camera movement. Photorealistic cinematic fantasy visual effects.\",\"cue\":{\"start\":0.35,\"end\":3.85,\"fade\":0.35,\"feather\":0.035,\"tracking\":\"flow\",\"anchor\":1.5,\"strokes\":[{\"points\":[{\"x\":0.79,\"y\":0.25},{\"x\":0.79,\"y\":0.55},{\"x\":0.79,\"y\":0.8}],\"radius\":0.35,\"mode\":\"paint\"}]},\"seed\":2960,\"quality\":\"final\",\"trimStart\":0,\"pipeline\":\"inpaint\",\"directionStrength\":1,\"matchSourceColor\":true,\"editReference\":{\"id\":\"b1262e85-c2ba-4334-bc61-8faa573b106d\",\"name\":\"Edited frame · Replace the small white lighthouse and adjacent buildings on the cliff\",\"sha256\":\"43d829b7bcc252e0c4df8d4080065428534794c159ca7e680d2dc4f315a113fa\",\"width\":768,\"height\":432,\"duration\":1,\"url\":\"/media/b1262e85-c2ba-4334-bc61-8faa573b106d.png\",\"kind\":\"image\",\"hasAudio\":false}}",
      "source_audio": [
        "8",
        1
      ],
      "audio_start": 0.0,
      "display_width": 768,
      "display_height": 432
    }
  },
  "22": {
    "class_type": "AftertakeSaveVideo",
    "inputs": {
      "images": [
        "34",
        0
      ],
      "fps": 24.0,
      "filename_prefix": "aftertake/generation",
      "recipe_json": "{\"format\":\"aftertake/1\",\"name\":\"Coastal kingdom / matched source color and framing\",\"clip\":{\"id\":\"5699b7f7-a921-4311-8296-7e99a16ab544\",\"name\":\"Lighthouse - Dean Diemert - Pexels.mp4\",\"sha256\":\"5029ea3c92f7fd79fe154116804bb12c76b7b88669d40980443813ac62f2b88b\",\"width\":768,\"height\":432,\"duration\":4.208333333333333,\"url\":\"/media/5699b7f7-a921-4311-8296-7e99a16ab544.mp4\",\"hasAudio\":false},\"prompt\":\"A magnificent ancient stone castle with tall slender towers, ornate turrets and warm amber windows rises from the rocky coastal cliff. The castle is solid stone and remains consistent through the shot. Keep the original coastline, sunset, ocean waves and camera movement. Photorealistic cinematic fantasy visual effects.\",\"cue\":{\"start\":0.35,\"end\":3.85,\"fade\":0.35,\"feather\":0.035,\"tracking\":\"flow\",\"anchor\":1.5,\"strokes\":[{\"points\":[{\"x\":0.79,\"y\":0.25},{\"x\":0.79,\"y\":0.55},{\"x\":0.79,\"y\":0.8}],\"radius\":0.35,\"mode\":\"paint\"}]},\"seed\":2960,\"quality\":\"final\",\"trimStart\":0,\"pipeline\":\"inpaint\",\"directionStrength\":1,\"matchSourceColor\":true,\"editReference\":{\"id\":\"b1262e85-c2ba-4334-bc61-8faa573b106d\",\"name\":\"Edited frame · Replace the small white lighthouse and adjacent buildings on the cliff\",\"sha256\":\"43d829b7bcc252e0c4df8d4080065428534794c159ca7e680d2dc4f315a113fa\",\"width\":768,\"height\":432,\"duration\":1,\"url\":\"/media/b1262e85-c2ba-4334-bc61-8faa573b106d.png\",\"kind\":\"image\",\"hasAudio\":false}}"
    }
  },
  "23": {
    "class_type": "ThresholdMask",
    "inputs": {
      "mask": [
        "27",
        0
      ],
      "value": 0.01
    }
  },
  "24": {
    "class_type": "ImageScale",
    "inputs": {
      "image": [
        "8",
        0
      ],
      "upscale_method": "lanczos",
      "width": 512,
      "height": 288,
      "crop": "disabled"
    }
  },
  "25": {
    "class_type": "MaskToImage",
    "inputs": {
      "mask": [
        "9",
        2
      ]
    }
  },
  "26": {
    "class_type": "ImageScale",
    "inputs": {
      "image": [
        "25",
        0
      ],
      "upscale_method": "bilinear",
      "width": 512,
      "height": 288,
      "crop": "disabled"
    }
  },
  "27": {
    "class_type": "ImageToMask",
    "inputs": {
      "image": [
        "26",
        0
      ],
      "channel": "red"
    }
  },
  "28": {
    "class_type": "LTXVLaplacianPyramidBlend",
    "inputs": {
      "image_a": [
        "19",
        0
      ],
      "image_b": [
        "10",
        0
      ],
      "mask": [
        "27",
        0
      ],
      "trim_to_shortest": false,
      "mask_low_res_dilation": 5
    }
  },
  "29": {
    "class_type": "ImageScale",
    "inputs": {
      "image": [
        "28",
        0
      ],
      "upscale_method": "lanczos",
      "width": 768,
      "height": 448,
      "crop": "disabled"
    }
  },
  "30": {
    "class_type": "VAEEncode",
    "inputs": {
      "pixels": [
        "29",
        0
      ],
      "vae": [
        "3",
        0
      ]
    }
  },
  "31": {
    "class_type": "BasicGuider",
    "inputs": {
      "model": [
        "4",
        0
      ],
      "conditioning": [
        "18",
        0
      ]
    }
  },
  "32": {
    "class_type": "ManualSigmas",
    "inputs": {
      "sigmas": "0.7250, 0.4219, 0.0"
    }
  },
  "33": {
    "class_type": "SamplerCustomAdvanced",
    "inputs": {
      "noise": [
        "39",
        0
      ],
      "guider": [
        "31",
        0
      ],
      "sampler": [
        "38",
        0
      ],
      "sigmas": [
        "32",
        0
      ],
      "latent_image": [
        "48",
        0
      ]
    }
  },
  "34": {
    "class_type": "VAEDecode",
    "inputs": {
      "samples": [
        "33",
        0
      ],
      "vae": [
        "3",
        0
      ]
    }
  },
  "35": {
    "class_type": "LTXVLaplacianPyramidBlend",
    "inputs": {
      "image_a": [
        "34",
        0
      ],
      "image_b": [
        "36",
        0
      ],
      "mask": [
        "9",
        2
      ],
      "trim_to_shortest": false,
      "mask_low_res_dilation": 6
    }
  },
  "36": {
    "class_type": "LTXVInpaintPreprocess",
    "inputs": {
      "images": [
        "8",
        0
      ],
      "mask": [
        "37",
        0
      ]
    }
  },
  "37": {
    "class_type": "ThresholdMask",
    "inputs": {
      "mask": [
        "9",
        2
      ],
      "value": 0.01
    }
  },
  "38": {
    "class_type": "KSamplerSelect",
    "inputs": {
      "sampler_name": "euler"
    }
  },
  "39": {
    "class_type": "RandomNoise",
    "inputs": {
      "noise_seed": 2961
    }
  },
  "40": {
    "class_type": "AftertakeSaveVideo",
    "inputs": {
      "images": [
        "19",
        0
      ],
      "fps": 24.0,
      "filename_prefix": "aftertake/coarse",
      "recipe_json": "{\"format\":\"aftertake/1\",\"name\":\"Coastal kingdom / matched source color and framing\",\"clip\":{\"id\":\"5699b7f7-a921-4311-8296-7e99a16ab544\",\"name\":\"Lighthouse - Dean Diemert - Pexels.mp4\",\"sha256\":\"5029ea3c92f7fd79fe154116804bb12c76b7b88669d40980443813ac62f2b88b\",\"width\":768,\"height\":432,\"duration\":4.208333333333333,\"url\":\"/media/5699b7f7-a921-4311-8296-7e99a16ab544.mp4\",\"hasAudio\":false},\"prompt\":\"A magnificent ancient stone castle with tall slender towers, ornate turrets and warm amber windows rises from the rocky coastal cliff. The castle is solid stone and remains consistent through the shot. Keep the original coastline, sunset, ocean waves and camera movement. Photorealistic cinematic fantasy visual effects.\",\"cue\":{\"start\":0.35,\"end\":3.85,\"fade\":0.35,\"feather\":0.035,\"tracking\":\"flow\",\"anchor\":1.5,\"strokes\":[{\"points\":[{\"x\":0.79,\"y\":0.25},{\"x\":0.79,\"y\":0.55},{\"x\":0.79,\"y\":0.8}],\"radius\":0.35,\"mode\":\"paint\"}]},\"seed\":2960,\"quality\":\"final\",\"trimStart\":0,\"pipeline\":\"inpaint\",\"directionStrength\":1,\"matchSourceColor\":true,\"editReference\":{\"id\":\"b1262e85-c2ba-4334-bc61-8faa573b106d\",\"name\":\"Edited frame · Replace the small white lighthouse and adjacent buildings on the cliff\",\"sha256\":\"43d829b7bcc252e0c4df8d4080065428534794c159ca7e680d2dc4f315a113fa\",\"width\":768,\"height\":432,\"duration\":1,\"url\":\"/media/b1262e85-c2ba-4334-bc61-8faa573b106d.png\",\"kind\":\"image\",\"hasAudio\":false}}"
    }
  },
  "45": {
    "class_type": "AftertakeLoadClip",
    "inputs": {
      "filename": "b1262e85-c2ba-4334-bc61-8faa573b106d.png",
      "width": 512,
      "height": 288,
      "frames": 1,
      "fps": 24.0,
      "trim_start": 0.0
    },
    "is_changed": [
      "43d829b7bcc252e0c4df8d4080065428534794c159ca7e680d2dc4f315a113fa"
    ]
  },
  "46": {
    "class_type": "LTXVImgToVideoInplace",
    "inputs": {
      "vae": [
        "3",
        0
      ],
      "image": [
        "45",
        0
      ],
      "latent": [
        "11",
        0
      ],
      "strength": 1.0,
      "bypass": false
    }
  },
  "47": {
    "class_type": "AftertakeLoadClip",
    "inputs": {
      "filename": "b1262e85-c2ba-4334-bc61-8faa573b106d.png",
      "width": 768,
      "height": 448,
      "frames": 1,
      "fps": 24.0,
      "trim_start": 0.0
    },
    "is_changed": [
      "43d829b7bcc252e0c4df8d4080065428534794c159ca7e680d2dc4f315a113fa"
    ]
  },
  "48": {
    "class_type": "LTXVImgToVideoInplace",
    "inputs": {
      "vae": [
        "3",
        0
      ],
      "image": [
        "47",
        0
      ],
      "latent": [
        "30",
        0
      ],
      "strength": 1.0,
      "bypass": false
    }
  }
}
