Edit Image
Creates an edited or extended image given an original image and a prompt.
Authorization
Bearer
In: header
Request Body
multipart/form-data
Image to edit. Must be a valid PNG file, less than 4MB, and square. If no mask is provided, the image must have transparency, which will be used as the mask.
binaryAdditional image, whose fully transparent areas (e.g., areas with zero alpha) indicate where the image should be edited. Must be a valid PNG file, less than 4MB, and have the same dimensions as the original image.
binaryText description of the desired image. The maximum length is 1000 characters.
Number of images to generate. Must be between 1 and 10.
The size of the generated image. Must be one of 256x256, 512x512, or 1024x1024.
The format of the returned generated image. Must be url or b64_json.
A unique identifier representing your end-user, which can help OpenAI monitor and detect abuse. Learn more.
Response Body
application/json
curl -X POST "https://lizh.ai/v1/images/edits/" \ -F image="cmMtdXBsb2FkLTE2ODc4MzMzNDc3NTEtMjA=/31225951_59371037e9_small.png" \ -F prompt="A cute baby sea otter wearing a beret."{}How is this guide?
Last updated on