Edit image

Create an edited or extended image from a source image and a prompt. When model is omitted, defaults to openai/gpt-image-1. Also supports openai/dall-e-2. Request and response format follow the OpenAI Images Create Edit API.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Request format follows the OpenAI Images Create Edit API.

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, same dimensions as image). See OpenAI API reference.

string
Defaults to openai/gpt-image-1

Model for image editing. When omitted, defaults to openai/gpt-image-1. Also supports openai/dall-e-2. See OpenAI API reference for available models.

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
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json