Create an edited or extended image from a source image and prompt.
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
or
Body Params multipart/form-data
Request Code Samples
curl --location '/v1/images/edits/' \
--header 'Authorization: Bearer <token>' \
--form 'image=@"cmMtdXBsb2FkLTE2ODc4MzMzNDc3NTEtMjA=/31225951_59371037e9_small.png"' \
--form 'prompt="A cute baby sea otter wearing a beret."' \
--form 'n="1"' \
--form 'size="1024x1024"' \
--form 'response_format="url"' \
--form 'user=""' \
--form 'model="dall-e-2"'
Responses
application/json
Modified at 2026-05-23 05:25:06