Shot Edit: LTX VFX
Edit one detail of a finished shot with LTX VFX through the partner API. Pick a frame, repaint it in any image editor or image model, then send that frame…
워크플로 다운로드Cloud에서 사용해 보기 API 문서
정보
Edit one detail of a finished shot with LTX VFX through the partner API. Pick a frame, repaint it in any image editor or image model, then send that frame…
제공할 항목
- 워크플로 읽는 중
ComfyUI에서 실행됩니다. 이 워크플로는 이 페이지에서 실행할 수 없습니다. 다운로드하여 ComfyUI에서 여세요.
워크플로 다운로드아직 이 워크플로의 샘플 출력이 없습니다.
워크플로 내부
노드 그래프의 읽기 전용 미리보기입니다. 노드를 편집하려면 Comfy Cloud에서 열거나 다운로드하세요.
Loading the graph
Open full-size workflow preview- Comfy Cloud
- 예
- 출력
- 혼합 출력
- 작성자
- 작성자 정보를 사용할 수 없음
사용자 지정 노드 필요
- 워크플로 읽는 중
코드에서 이 워크플로 사용하기
가능한 경우 워크플로 그래프와 입력을 기반으로 생성되며, 그렇지 않은 경우 저장된 예시가 표시됩니다. 비용이 발생할 수 있으므로 코드를 실행하기 전에 자격 증명과 엔드포인트를 검토하세요.
1 API 키 가져오기 ↗
What you need
- Runs on
- Comfy Cloud
- 키
- COMFY_API_KEY
유료 Cloud 요금제와 크레딧이 필요합니다.
API JSON 다운로드API 문서 ↗
# 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({
"1": {
"class_type": "LoadVideo",
"inputs": {
"file": "masked_woman_desert_golden_hour.mp4"
},
"_meta": {
"title": "Load Video"
}
},
"3": {
"class_type": "LtxApiVideoShotEdit",
"inputs": {
"stills.frame_1": [
"109:108",
1
],
"stills.image_1": [
"106",
0
],
"video": [
"1",
0
]
},
"_meta": {
"title": "LtxApiVideoShotEdit"
}
},
"4": {
"class_type": "SaveVideo",
"inputs": {
"codec": "auto",
"filename_prefix": "video/LTX_VFX_shot_edit",
"format": "mp4",
"format.codec": "h264",
"format.codec.encoding": "auto",
"video": [
"3",
0
]
},
"_meta": {
"title": "Save Video"
}
},
"103": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"109:102",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"106": {
"class_type": "SaveImageAdvanced",
"inputs": {
"filename_prefix": "video/LTX_VFX_shot_edit_frame",
"format": "png",
"format.bit_depth": "8-bit",
"format.channels": "auto",
"format.input_color_space": "sRGB",
"images": [
"125",
0
]
},
"_meta": {
"title": "Save Image (Advanced)"
}
},
"125": {
"class_type": "GeminiImage2Node",
"inputs": {
"aspect_ratio": "auto",
"images": [
"103",
0
],
"model": "gemini-3-pro-image-preview",
"prompt": "Remove the silver spiked mask completely and reveal the bare face underneath:\nnatural skin with visible nose, lips, cheeks and jaw, the same eyes, same expression,\nno makeup change, no marks on the skin.\n\nKeep the hair, the sheer veil, the beaded collar, the pose, framing and lighting unchanged.\n\nReplace only the background: a dim stone corridor lit by warm candle sconces, deep\nshadow with soft warm falloff. Keep the woman, her bare face, hair, veil, beads,\npose, framing and the warm light on her skin unchanged.",
"resolution": "1K",
"response_modalities": "IMAGE+TEXT",
"seed": 42,
"system_prompt": "You are an expert image-generation engine. You must ALWAYS produce an image.\nInterpret all user input—regardless of format, intent, or abstraction—as literal visual directives for image composition.\nIf a prompt is conversational or lacks specific visual details, you must creatively invent a concrete visual scenario that depicts the concept.\nPrioritize generating the visual representation above any text, formatting, or conversational requests."
},
"_meta": {
"title": "Nano Banana Pro (Google Gemini Image)"
}
},
"109:100": {
"class_type": "GetVideoComponents",
"inputs": {
"video": [
"1",
0
]
},
"_meta": {
"title": "Get Video Components"
}
},
"109:102": {
"class_type": "ImageFromBatch",
"inputs": {
"batch_index": [
"109:108",
1
],
"image": [
"109:100",
0
],
"length": 1
},
"_meta": {
"title": "Get Image from Batch"
}
},
"109:107": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 0.1
},
"_meta": {
"title": "Float"
}
},
"109:108": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "a * b",
"values.a": [
"109:100",
2
],
"values.b": [
"109:107",
0
]
},
"_meta": {
"title": "Math Expression"
}
}
})
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)