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
A unique identifier representing your end-user, which will help OpenAI to monitor and detect abuse.
2023
+
A unique identifier representing your end-user, which will help OpenAI to monitor and detect abuse. [Learn more](/docs/usage-policies/end-user-ids).
1804
2024
required:
1805
2025
- model
1806
2026
@@ -1974,6 +2194,94 @@ components:
1974
2194
- choices
1975
2195
- usage
1976
2196
2197
+
CreateImageRequest:
2198
+
type: object
2199
+
properties:
2200
+
prompt:
2201
+
description: A text description of the desired image(s). The maximum length is 1000 characters.
2202
+
type: string
2203
+
example: "A cute baby sea otter"
2204
+
n: &images_n
2205
+
type: integer
2206
+
minimum: 1
2207
+
maximum: 10
2208
+
default: 1
2209
+
example: 1
2210
+
nullable: true
2211
+
description: The number of images to generate. Must be between 1 and 10.
2212
+
size: &images_size
2213
+
type: string
2214
+
enum: ["256x256", "512x512", "1024x1024"]
2215
+
default: "1024x1024"
2216
+
example: "1024x1024"
2217
+
nullable: true
2218
+
description: The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`.
2219
+
response_format: &images_response_format
2220
+
type: string
2221
+
enum: ["url", "b64_json"]
2222
+
default: "url"
2223
+
example: "url"
2224
+
nullable: true
2225
+
description: The format in which the generated images are returned. Must be one of `url` or `b64_json`.
2226
+
user: *end_user_param_configuration
2227
+
required:
2228
+
- prompt
2229
+
2230
+
ImagesResponse:
2231
+
properties:
2232
+
created:
2233
+
type: integer
2234
+
data:
2235
+
type: array
2236
+
items:
2237
+
type: object
2238
+
properties:
2239
+
url:
2240
+
type: string
2241
+
b64_json:
2242
+
type: string
2243
+
required:
2244
+
- created
2245
+
- data
2246
+
2247
+
CreateImageEditRequest:
2248
+
type: object
2249
+
properties:
2250
+
image:
2251
+
description: The image to edit. Must be a valid PNG file, less than 4MB, and square.
2252
+
type: string
2253
+
format: binary
2254
+
mask:
2255
+
description: An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where `image` should be edited. Must be a valid PNG file, less than 4MB, and have the same dimensions as `image`.
2256
+
type: string
2257
+
format: binary
2258
+
prompt:
2259
+
description: A text description of the desired image(s). The maximum length is 1000 characters.
2260
+
type: string
2261
+
example: "A cute baby sea otter wearing a beret"
2262
+
n: *images_n
2263
+
size: *images_size
2264
+
response_format: *images_response_format
2265
+
user: *end_user_param_configuration
2266
+
required:
2267
+
- prompt
2268
+
- image
2269
+
- mask
2270
+
2271
+
CreateImageVariationRequest:
2272
+
type: object
2273
+
properties:
2274
+
image:
2275
+
description: The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.
2276
+
type: string
2277
+
format: binary
2278
+
n: *images_n
2279
+
size: *images_size
2280
+
response_format: *images_response_format
2281
+
user: *end_user_param_configuration
2282
+
required:
2283
+
- image
2284
+
1977
2285
CreateModerationRequest:
1978
2286
type: object
1979
2287
properties:
@@ -2831,6 +3139,10 @@ x-oaiMeta:
2831
3139
title: Edits
2832
3140
description: |
2833
3141
Given a prompt and an instruction, the model will return an edited version of the prompt.
3142
+
- id: images
3143
+
title: Images
3144
+
description: |
3145
+
Given a prompt and/or an input image, the model will generate a new image.
0 commit comments