Beeble SwitchX: Video Edit is a targeted video editing workflow that lets you change only what you describe, while keeping everything else intact. You load a source video and (optionally) a reference image, then enter a prompt describing the new environment and lighting. The BeebleSwitchXVideoEdit node applies the Beeble SwitchX video-edit model to generate an edited clip where masked regions follow your prompt and reference, while unmasked regions preserve the original pixels and motion. The workflow also produces an alpha matte so you can composite the edited regions over the untouched source in any NLE.

Technically, the graph decodes your clip with LoadVideo, extracts dimensions and frame count via GetVideoComponents, and uses the "Get frame counts (need < 240)" group to help you stay under the model’s recommended frame limit. If your clip is too long, Video Slice trims it to a workable range. LoadImage brings in an optional look reference, and GetImageSize ensures the pipeline accounts for dimension matching. BeebleSwitchXVideoEdit then processes frames with temporal consistency, outputting both the edited video and a per-frame alpha matte. Use PreviewAny to inspect intermediate results, and SaveVideo to render the final edit. The result is a practical, non-destructive way to relight scenes, replace environments, or stylize specific objects without breaking the original motion.

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/44d156cf2723.json
Fetching 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 this workflow (Python)
from comfy_sdk import Comfy

client = Comfy(api_key="comfyui-...")
wf = client.workflows.from_file("workflow_api.json")
job = client.run(wf)
for output in job.get_outputs("<output-node-id>"):
    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

Frequently Asked Questions

View all workflows
Character
Cinematic
Image to Video
Lip Sync
Multiple Angles
Portrait
Style Reference
Style Transfer
Text to Video
Video Generation
Video
Showing 30 of 30 templates