Skip to main content
POST
OpenAI SDK — images.edit (sync, multipart)

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
model
string
required
Example:

"gpt-image-2"

image
file
required
prompt
string
mask
file
n
integer
size
string
quality
string

Response

OpenAI ImagesResponse (data[].b64_json)

created
integer
data
object[]