The Fast GAN Video Upscaler workflow is designed to efficiently upscale videos using a Generative Adversarial Network (GAN) model, specifically Real-ESRGAN. This workflow is ideal for enhancing video resolution, making it suitable for applications where higher quality is desired without the need for creating new details, as diffusion models might. The workflow utilizes several key nodes, including the UpscaleModelLoader and ImageUpscaleWithModel, to apply the upscaling model to each frame of the video. It begins by loading your video with the LoadVideo node, breaking it down into frames with GetVideoComponents, and then applying the upscaling process.
Technically, the workflow leverages the Real-ESRGAN model to upscale each frame by a factor determined by the model (e.g., 2x or 4x). This is achieved through the ImageUpscaleWithModel node, which processes each frame individually before the frames are reassembled into a video using the CreateVideo node. Finally, the SaveVideo node outputs the upscaled video. This process is notably faster than diffusion-based methods, making it a practical solution for quick enhancements. For optimal results, it is recommended to first upscale the video to the highest desired resolution and then resize it to the target resolution if needed.
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/b8c030205d86.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 "Fast GAN Video Upscaler" (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("utility-gan_upscaler_api.json")
job = client.run(wf)
for output in job.get_outputs("12"): # 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
















