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
Copy file name to clipboardExpand all lines: src/openai/resources/images.py
+24-6Lines changed: 24 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -168,7 +168,10 @@ def edit(
168
168
If `transparent`, the output format needs to support transparency, so it should
169
169
be set to either `png` (default value) or `webp`.
170
170
171
-
input_fidelity: Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1`. Unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.
171
+
input_fidelity: Control how much effort the model will exert to match the style and features,
172
+
especially facial features, of input images. This parameter is only supported
173
+
for `gpt-image-1`. Unsupported for `gpt-image-1-mini`. Supports `high` and
174
+
`low`. Defaults to `low`.
172
175
173
176
mask: An additional image whose fully transparent areas (e.g. where alpha is zero)
174
177
indicate where `image` should be edited. If there are multiple images provided,
@@ -282,7 +285,10 @@ def edit(
282
285
If `transparent`, the output format needs to support transparency, so it should
283
286
be set to either `png` (default value) or `webp`.
284
287
285
-
input_fidelity: Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1`. Unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.
288
+
input_fidelity: Control how much effort the model will exert to match the style and features,
289
+
especially facial features, of input images. This parameter is only supported
290
+
for `gpt-image-1`. Unsupported for `gpt-image-1-mini`. Supports `high` and
291
+
`low`. Defaults to `low`.
286
292
287
293
mask: An additional image whose fully transparent areas (e.g. where alpha is zero)
288
294
indicate where `image` should be edited. If there are multiple images provided,
@@ -392,7 +398,10 @@ def edit(
392
398
If `transparent`, the output format needs to support transparency, so it should
393
399
be set to either `png` (default value) or `webp`.
394
400
395
-
input_fidelity: Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1`. Unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.
401
+
input_fidelity: Control how much effort the model will exert to match the style and features,
402
+
especially facial features, of input images. This parameter is only supported
403
+
for `gpt-image-1`. Unsupported for `gpt-image-1-mini`. Supports `high` and
404
+
`low`. Defaults to `low`.
396
405
397
406
mask: An additional image whose fully transparent areas (e.g. where alpha is zero)
398
407
indicate where `image` should be edited. If there are multiple images provided,
@@ -1046,7 +1055,10 @@ async def edit(
1046
1055
If `transparent`, the output format needs to support transparency, so it should
1047
1056
be set to either `png` (default value) or `webp`.
1048
1057
1049
-
input_fidelity: Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1`. Unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.
1058
+
input_fidelity: Control how much effort the model will exert to match the style and features,
1059
+
especially facial features, of input images. This parameter is only supported
1060
+
for `gpt-image-1`. Unsupported for `gpt-image-1-mini`. Supports `high` and
1061
+
`low`. Defaults to `low`.
1050
1062
1051
1063
mask: An additional image whose fully transparent areas (e.g. where alpha is zero)
1052
1064
indicate where `image` should be edited. If there are multiple images provided,
@@ -1160,7 +1172,10 @@ async def edit(
1160
1172
If `transparent`, the output format needs to support transparency, so it should
1161
1173
be set to either `png` (default value) or `webp`.
1162
1174
1163
-
input_fidelity: Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1`. Unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.
1175
+
input_fidelity: Control how much effort the model will exert to match the style and features,
1176
+
especially facial features, of input images. This parameter is only supported
1177
+
for `gpt-image-1`. Unsupported for `gpt-image-1-mini`. Supports `high` and
1178
+
`low`. Defaults to `low`.
1164
1179
1165
1180
mask: An additional image whose fully transparent areas (e.g. where alpha is zero)
1166
1181
indicate where `image` should be edited. If there are multiple images provided,
@@ -1270,7 +1285,10 @@ async def edit(
1270
1285
If `transparent`, the output format needs to support transparency, so it should
1271
1286
be set to either `png` (default value) or `webp`.
1272
1287
1273
-
input_fidelity: Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1`. Unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.
1288
+
input_fidelity: Control how much effort the model will exert to match the style and features,
1289
+
especially facial features, of input images. This parameter is only supported
1290
+
for `gpt-image-1`. Unsupported for `gpt-image-1-mini`. Supports `high` and
1291
+
`low`. Defaults to `low`.
1274
1292
1275
1293
mask: An additional image whose fully transparent areas (e.g. where alpha is zero)
1276
1294
indicate where `image` should be edited. If there are multiple images provided,
0 commit comments