Edit Image with Form Data
POST
/v1/images/editsEdit an image with a multipart form-data request.
Request Body
multipart/form-dataimage:optionalfileInput image used for editing or generation.
prompt:optionalstringText instruction describing the requested output.
model:optionalstringModel identifier used for this request.
Example
mix/gpt-image-2-pron:optionalstringNumber of results to generate.
Example
1size:optionalstringRequested output image dimensions.
Allowed
1024x10241536x10241024x15362048x20482048x11523840x21602160x3840autoresponse_format:optionalstringFormat used to return generated media.
Allowed
b64_jsonurlExample
urlResponse
200A successful request returns a JSON response. The complete example is shown in the code panel.
Compatibility References
Use these external references to review additional parameters supported by compatible provider formats.