GPT Image
Generate or Edit an image using GPT Image
The GPT Image node is designed to interact with the GPT Image API, enabling you to generate and edit images based on a prompt and reference images.
GPT ImageGenerate Image
Prompt*Text (multiline)
ModelSelect
SizeSelect
SizeSelect
QualitySelect
BackgroundSelect
ModerationSelect
Modes
This node reconfigures itself depending on the selected mode — each mode has its own fields.
| Mode | What it does | Output |
|---|---|---|
| Generate Image | Create a brand-new image from prompt | Image |
| Edit Image | Modify an existing image by prompt, or use images to generate a new one | Image |
Generate Image
Create a brand-new image from prompt
GPT ImageGenerate Image
Prompt*Text (multiline)
ModelSelect
SizeSelect
SizeSelect
QualitySelect
BackgroundSelect
ModerationSelect
Inputs
Each input can be typed in directly or connected to another node's output.
| Input | Type | Required | Description |
|---|---|---|---|
| Prompt | Text (multiline) | Required | Enter your text here |
Settings
| Setting | Type | Default | Description | Available when |
|---|---|---|---|---|
| Model | Select | gpt-image-2 | — | |
| Size | Select | auto | Model is “gpt-image-2” | |
| Size | Select | auto | Model is not “gpt-image-2” | |
| Quality | Select | auto | — | |
| Background | Select | auto | — | |
| Moderation | Select | low | Options: auto · low (default). | — |
Model options
| Option | Default |
|---|---|
| gpt-image-2 | ✓ |
| gpt-image-1.5 | |
| gpt-image-1 |
Size options
| Option | Default |
|---|---|
| auto | ✓ |
| 1024x1024 (square) | |
| 1536x1024 (landscape) | |
| 1024x1536 (portrait) | |
| 2048x2048 (2K square) | |
| 2048x1152 (2K landscape) | |
| 3840x2160 (4K landscape) | |
| 2160x3840 (4K portrait) |
Size options
| Option | Default |
|---|---|
| auto | ✓ |
| 1024x1024 (square) | |
| 1536x1024 (landscape) | |
| 1024x1536 (portrait) |
Quality options
| Option | Default |
|---|---|
| auto | ✓ |
| low | |
| medium | |
| high |
Background options
| Option | Default |
|---|---|
| auto | ✓ |
| opaque | |
| transparent |
Output: Image
Edit Image
Modify an existing image by prompt, or use images to generate a new one
GPT ImageEdit Image
Prompt*Text (multiline)
MaskFile upload
ImageFile upload
ModelSelect
SizeSelect
SizeSelect
QualitySelect
Inputs
Each input can be typed in directly or connected to another node's output.
| Input | Type | Required | Description |
|---|---|---|---|
| Prompt | Text (multiline) | Required | Enter your text here |
| Mask | File upload | Optional | You can provide a mask to indicate where the image should be edited. You can use the prompt to describe the full new image, not just the erased area. If you provide multiple input images, the mask will be applied to the first image. |
| Image | File upload | Optional |
Settings
| Setting | Type | Default | Description | Available when |
|---|---|---|---|---|
| Model | Select | gpt-image-2 | — | |
| Size | Select | auto | Model is “gpt-image-2” | |
| Size | Select | auto | Model is not “gpt-image-2” | |
| Quality | Select | auto | — |
Model options
| Option | Default |
|---|---|
| gpt-image-2 | ✓ |
| gpt-image-1.5 | |
| gpt-image-1 |
Size options
| Option | Default |
|---|---|
| auto | ✓ |
| 1024x1024 (square) | |
| 1536x1024 (landscape) | |
| 1024x1536 (portrait) | |
| 2048x2048 (2K square) | |
| 2048x1152 (2K landscape) | |
| 3840x2160 (4K landscape) | |
| 2160x3840 (4K portrait) |
Size options
| Option | Default |
|---|---|
| auto | ✓ |
| 1024x1024 (square) | |
| 1536x1024 (landscape) | |
| 1024x1536 (portrait) |
Quality options
| Option | Default |
|---|---|
| auto | ✓ |
| low | |
| medium | |
| high |
Output: Image