This guide will introduce you to the concept of outpainting in AI image generation and how to create an outpainting workflow in ComfyUI. We will cover:Documentation Index
Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
Use this file to discover all available pages before exploring further.
- Using outpainting workflow to extend an image
- Understanding and using outpainting-related nodes in ComfyUI
- Mastering the basic outpainting process
About Outpainting
In AI image generation, we often encounter situations where an existing image has good composition but the canvas area is too small, requiring us to extend the canvas to get a larger scene. This is where outpainting comes in. Basically, it requires similar content to Inpainting, but we use different nodes to build the mask. Outpainting applications include:- Scene Extension: Expand the scene range of the original image to show a more complete environment
- Composition Adjustment: Optimize the overall composition by extending the canvas
- Content Addition: Add more related scene elements to the original image
ComfyUI Outpainting Workflow Example Explanation
Preparation
1. Model Installation
Download the following model file and save it toComfyUI/models/checkpoints directory:
2. Input Image
Prepare an image you want to extend. In this example, we will use the following image:
3. Outpainting Workflow
Download the image below and drag it into ComfyUI to load the workflow:
Outpainting Workflow Usage Explanation

- Load the locally installed model file in the
Load Checkpointnode - Click the
Uploadbutton in theLoad Imagenode to upload your image - Click the
Queuebutton or use the shortcutCtrl + Enterto execute the image generation
Pad Image for outpainting node to control the direction and range of image extension. This is actually an Inpaint workflow, but we use different nodes to build the mask.
Pad Image for outpainting Node

Input Parameters
| Parameter Name | Function |
|---|---|
image | Input image |
left | Left padding amount |
top | Top padding amount |
right | Right padding amount |
bottom | Bottom padding amount |
feathering | Controls the smoothness of the transition between the original image and the added padding, higher values create smoother transitions |
Output Parameters
| Parameter Name | Function |
|---|---|
image | Output image represents the padded image |
mask | Output mask indicates the original image area and the added padding area |
Node Output Content
After processing by thePad Image for outpainting node, the output image and mask preview are as follows:

- The
Imageoutput is the extended image - The
Maskoutput is the mask marking the extension areas