Edit image

Create an edited or extended image from a source image and a prompt. Only dall-e-2 is supported. Request and response format follow the OpenAI Images Create Edit API.

Body Params
file
required

The image to edit (PNG, <4MB, square). See OpenAI API reference for details.

string
required

Text description of the desired image(s). See OpenAI API reference for constraints.

file

Optional mask image (PNG, transparent areas = edit region). See OpenAI API reference.

string
enum
Defaults to dall-e-2

Model for image editing. Only dall-e-2 is supported.

Allowed:
integer
1 to 10
Defaults to 1

Number of images to generate.

string
enum
Defaults to 1024x1024

Size of the generated images.

Allowed:
string
enum
Defaults to url

Format of the returned images (url or base64).

Allowed:
string

Optional end-user identifier for abuse monitoring. See OpenAI API reference.

Responses

Language
Credentials
Bearer
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json