Edit Image with JSON
POST
/v1/images/editsEdit an image using a JSON request body.
Request Body
application/jsonprompt:requiredstringText instruction describing the requested output.
Example
图片改为吉卜力风格model:requiredstringModel identifier used for this request.
Example
gpt-image-2-adn:optionalstringNumber of results to generate.
size:optionalstringRequested output image dimensions.
Allowed
1024x10241536x10241024x15362048x20482048x11523840x21602160x3840autoExample
autotype:optionalstringResponse representation requested from the endpoint.
Allowed
urlExample
urlreference_images:requiredarrayReference images supplied to the model.
Example
["https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTadhETeWmB0HglBew1luqsPidqb-KtfA17dab-V9r1b3KOThS7JZlNwKw&s=10"]Response
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.