You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Request-ImageEdit -Model 'gpt-image-1' -Prompt 'A bird on the desert' -Image 'C:\sand_with_fether.png' -OutFile 'C:\bird_on_desert.png' -Size 1024x1024
61
+
Request-ImageEdit -Model 'gpt-image-1.5' -Prompt 'A bird on the desert' -Image 'C:\sand_with_fether.png' -OutFile 'C:\bird_on_desert.png' -Size 1024x1024
62
62
```
63
63
64
64
| Original | Generated |
@@ -68,7 +68,7 @@ Request-ImageEdit -Model 'gpt-image-1' -Prompt 'A bird on the desert' -Image 'C:
68
68
69
69
### Example 2: Create variation image from source and mask.
70
70
```PowerShell
71
-
Request-ImageEdit -Model 'gpt-image-1' -Image C:\sand_with_feather.png -Mask C:\fether_mask.png -Prompt "A bird on the desert" -OutFile C:\edit2.png
71
+
Request-ImageEdit -Model 'gpt-image-1.5' -Image C:\sand_with_feather.png -Mask C:\fether_mask.png -Prompt "A bird on the desert" -OutFile C:\edit2.png
The image(s) to edit. Must be a supported image file or an array of images. For gpt-image-1, each image should be a png, webp, or jpg file less than 25MB. For dall-e-2, you can only provide one image, and it should be a square png file less than 4MB.
84
+
The image(s) to edit. Must be a supported image file or an array of images. For the GPT image models, each image should be a `png`, `webp`, or `jpg` file less than 50MB. You can provide up to 16 images. For dall-e-2, you can only provide one image, and it should be a square png file less than 4MB.
85
85
86
86
```yaml
87
87
Type: String[]
@@ -92,7 +92,7 @@ Position: Named
92
92
93
93
### -Prompt
94
94
(Required)
95
-
A text description of the desired image(s). The maximum length is 1000 characters for dall-e-2, and 32000 characters for gpt-image-1.
95
+
A text description of the desired image(s). The maximum length is 32000 characters for the GPT image models, 1000 characters for `dall-e-2` and 4000 characters for `dall-e-3`.
96
96
97
97
```yaml
98
98
Type: String
@@ -110,7 +110,7 @@ Position: Named
110
110
```
111
111
112
112
### -Model
113
-
The model to use for image generation. Only dall-e-2 and gpt-image-1 are supported. Defaults to dall-e-2 unless a parameter specific to gpt-image-1 is used.
113
+
The model to use for image generation. Only `dall-e-2` and the GPT image models are supported. Defaults to `dall-e-2` unless a parameter specific to the GPT image models is used.
114
114
115
115
```yaml
116
116
Type: String
@@ -130,7 +130,11 @@ Default value: 1
130
130
```
131
131
132
132
### -Quality
133
-
The quality of the image that will be generated. high, medium and low are only supported for gpt-image-1. dall-e-2 only supports standard quality. Defaults to auto.
133
+
The quality of the image that will be generated.
134
+
- `auto`(default value) will automatically select the best quality for the given model.
135
+
- `high`, `medium` and `low` are supported for the GPT image models.
136
+
- `hd`and `standard` are supported for `dall-e-3`.
137
+
- `standard`is the only option for `dall-e-2`.
134
138
135
139
```yaml
136
140
Type: String
@@ -140,7 +144,7 @@ Default value: auto
140
144
```
141
145
142
146
### -Size
143
-
The size of the generated images. Must be one of `1024x1024`, `1536x1024` (landscape), `1024x1536` (portrait), or `auto` (default value) for gpt-image-1, and one of `256x256`, `512x512`, or `1024x1024` for dall-e-2.
147
+
The size of the generated images. Must be one of `1024x1024`, `1536x1024` (landscape), `1024x1536` (portrait), or `auto` (default value) for the GPT image models, and one of `256x256`, `512x512`, or `1024x1024` for dall-e-2, and one of `1024x1024`, `1792x1024`, or `1024x1792` for `dall-e-3`.
144
148
145
149
```yaml
146
150
Type: String
@@ -150,7 +154,7 @@ Default value: auto
150
154
```
151
155
152
156
### -ResponseFormat
153
-
The format in which the generated images are returned. Must be one of `url`, `base64` or `byte`. gpt-image-1 only supports `base64`.
157
+
The format in which the generated images are returned. Must be one of `url`, `base64` or `byte`. This parameter is only supported for `dall-e-2`, as the GPT image models always return images in `base64` format.
A text description of the desired image(s). The maximum length is 32000 characters for gpt-image-1, 1000 characters for dall-e-2 and 4000 characters for dall-e-3.
88
+
A text description of the desired image(s). The maximum length is 32000 characters for the GPT image models, 1000 characters for `dall-e-2` and 4000 characters for `dall-e-3`.
The model to use for image generation. One of dall-e-2, dall-e-3, or gpt-image-1. Defaults to dall-e-2 unless a parameter specific to gpt-image-1 is used.
98
+
The model to use for image generation. One of `dall-e-2`, `dall-e-3`, or a GPT image model. Defaults to `dall-e-2` unless a parameter specific to the GPT image models is used.
99
99
100
100
```yaml
101
101
Type: String
@@ -116,7 +116,7 @@ Default value: 1
116
116
```
117
117
118
118
### -Size
119
-
The size of the generated images. Must be one of `1024x1024`, `1536x1024` (landscape), `1024x1536` (portrait), or `auto` (default value) for gpt-image-1, one of `256x256`, `512x512`, or `1024x1024` for dall-e-2, and one of `1024x1024`, `1792x1024`, or `1024x1792` for dall-e-3.
119
+
The size of the generated images. Must be one of `1024x1024`, `1536x1024` (landscape), `1024x1536` (portrait), or `auto` (default value) for the GPT image models, one of `256x256`, `512x512`, or `1024x1024` for `dall-e-2`, and one of `1024x1024`, `1792x1024`, or `1024x1792` for `dall-e-3`.
120
120
121
121
```yaml
122
122
Type: String
@@ -126,7 +126,11 @@ Default value: auto
126
126
```
127
127
128
128
### -Quality
129
-
The quality of the image that will be generated. `auto` (default value) will automatically select the best quality for the given model. high, medium and low are supported for gpt-image-1, hd and standard are supported for dall-e-3, standard is the only option for dall-e-2.
129
+
The quality of the image that will be generated.
130
+
- `auto`(default value) will automatically select the best quality for the given model.
131
+
- `high`, `medium` and `low` are supported for the GPT image models.
132
+
- `hd`and `standard` are supported for `dall-e-3`.
133
+
- `standard`is the only option for `dall-e-2`.
130
134
131
135
```yaml
132
136
Type: String
@@ -146,7 +150,7 @@ Default value: vivid
146
150
```
147
151
148
152
### -Background
149
-
Allows to set transparency for the background of the generated image(s). This parameter is only supported for gpt-image-1. Must be one of transparent, opaque or auto (default value).
153
+
Allows to set transparency for the background of the generated image(s). This parameter is only supported for the GPT image models. Must be one of `transparent`, `opaque` or `auto` (default value). When `auto` is used, the model will automatically determine the best background for the image.
150
154
151
155
```yaml
152
156
Type: String
@@ -155,7 +159,7 @@ Position: Named
155
159
```
156
160
157
161
### -Moderation
158
-
Control the content-moderation level for images generated by gpt-image-1. Must be either low for less restrictive filtering or auto (default value).
162
+
Control the content-moderation level for images generated by the GPT image models. Must be either `low` for less restrictive filtering or `auto` (default value).
159
163
160
164
```yaml
161
165
Type: String
@@ -164,7 +168,7 @@ Position: Named
164
168
```
165
169
166
170
### -OutputCompression
167
-
The compression level (0-100%) for the generated images. This parameter is only supported for gpt-image-1 with the webp or jpeg output formats, and defaults to 100.
171
+
The compression level (0-100%) for the generated images. This parameter is only supported for the GPT image models with the `webp` or `jpeg` output formats, and defaults to 100.
168
172
169
173
```yaml
170
174
Type: UInt16
@@ -174,7 +178,7 @@ Position: Named
174
178
```
175
179
176
180
### -OutputFormat
177
-
The format in which the generated images are returned. This parameter is only supported for gpt-image-1. Must be one of png, jpeg, or webp.
181
+
The format in which the generated images are returned. This parameter is only supported for the GPT image models. Must be one of `png`, `jpeg`, or `webp`.
178
182
179
183
```yaml
180
184
Type: String
@@ -184,7 +188,7 @@ Position: Named
184
188
```
185
189
186
190
### -ResponseFormat
187
-
The format in which the generated images are returned. Must be one of `url`, `base64` or `byte`. gpt-image-1 only supports `base64`.
191
+
The format in which the generated images are returned. Must be one of `url`, `base64` or `byte`. This parameter is only supported for `dall-e-2`, as the GPT image models always return images in `base64` format.
0 commit comments