ComfyUI Node
GPT Image 1 (Direct API)
Generates images via OpenAI's vision model (specify correct ID in _MODEL_ID). Requires a user-provided API key for direct OpenAI API calls only.
GPT Image 1 (Direct API)
- image
- mask
- IMAGE
◄prompt►
◄api_key►
◄seed0►
◄qualitylow►
◄backgroundopaque►
◄moderationlow►
◄sizeauto►
◄n1►
Categoryapi/OpenAI
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | Text prompt for the gpt-image-1 model | |
| api_key | STRING | Optional. Leave blank to use OPENAI_API_KEY. | |
| seedopt | INT | 00–2147483647 | Seed for generation (check model support) |
| qualityopt | COMBO | low | Image quality, affects cost and generation time. |
| backgroundopt | COMBO | opaque | Return image with or without background |
| moderationopt | COMBO | low | Content moderation level. 'low' (default) for less restrictive filtering, 'auto' for standard filtering. |
| sizeopt | COMBO | auto | Image size |
| nopt | INT | 11–8 | How many images to generate |
| imageopt | IMAGE | Optional reference image for editing (requires 'mask' too) | |
| maskopt | MASK | Optional mask for inpainting (requires 'image' too, white=edit area) |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |