Create image edit
POST
https://api.openai.com/v1/images/edits
Request
Header Params
Authorization
string
optional
Example:
Bearer {{YOUR_API_KEY}}
Body Params multipart/form-data
image
file
required
Example:
cmMtdXBsb2FkLTE2ODc4MzMzNDc3NTEtMjA=/31225951_59371037e9_small.png
mask
file
optional
image
should be edited. Must be a valid PNG file, less than 4MB, and have the same dimensions as image
.Example:
[]
prompt
string
required
Example:
A cute baby sea otter wearing a beret.
n
string
optional
Example:
2
size
string
optional
256x256
, 512x512
, or 1024x1024
.Example:
1024x1024
response_format
string
optional
url
or b64_json
.Example:
url
user
string
optional
Request samples
Responses
Modified at 2024-12-13 10:20:37