Create image edit
Creates an edited or extended image given an original image and a prompt.
AuthorizationBearer <token>
In: header
imagefile
The image to edit. Must be a valid PNG file, less than 4MB, and square.
Format
binary
mask?file
An additional image whose fully transparent areas indicate where image should be edited.
Format
binary
promptstring
A text description of the desired image(s).
n?integer
The number of images to generate.
Range
1 <= value <= 10
size?string
The size of the generated images.
Value in
"256x256" | "512x512" | "1024x1024"
response_format?string
The format in which the generated images are returned.
Value in
"url" | "b64_json"
user?string
Response Body
curl -X POST "https://api.openroute.cn/v1/images/edits" \ -F image="string" \ -F prompt="A sunlit indoor lounge area with a pool containing a flamingo"
Last updated on