OpenAI GPT Image 1
api node/image/OpenAI
OpenAIGPTImage1Generates images synchronously via OpenAI's GPT Image 1 endpoint.
Example
JSON Example
{
"class_type": "OpenAIGPTImage1",
"inputs": {
"prompt": ""
}
}This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.
Inputs
| Name | Type | Status | Constraints | Default |
|---|---|---|---|---|
prompt? | STRING | required | - | "" |
seed? | INT | optional | min: 0, max: 2147483647, step: 1 | 0 |
quality? | COMBO | optional | - | "low" |
background? | COMBO | optional | - | "auto" |
size? | COMBO | optional | - | "auto" |
n? | INT | optional | min: 1, max: 8, step: 1 | 1 |
image? | IMAGE | optional | - | - |
mask? | MASK | optional | - | - |
model | COMBO | optional | - | - |
Outputs
| Index | Name | Type | Is List | Connection Reference |
|---|---|---|---|---|
0 | IMAGE | IMAGE | No | ["{node_id}", 0] |
How to connect to these outputs
To connect another node's input to an output from this node, use the connection reference format:
["node_id", output_index]Where node_id is the ID of this OpenAIGPTImage1 node in your workflow, and output_index is the index from the table above.
Example
If this node has ID "5" in your workflow:
IMAGE (IMAGE):["5", 0]
Was this page helpful?