Edit image

Edit or expand an image given the original image and a prompt word. Compatible with /v1/images/edits.

Compatible with OpenAI Image Edits API. The request was uploaded as multipart/form-data, with base_url set to https://api.covanexus.com/v1.

POST /v1/images/edits https://api.covanexus.com
Authorization
Body

Authorization

Authorization BearerAuth

Authorization Bearer <token>

Use Bearer Token authentication. Format: Authorization: Bearer $COVA_NEXUS_API_KEY

in: header

Request Body

multipart/form-data

image* file
Image to be edited. It needs to be a .png file, less than 4MB and square
prompt* string
Expects a text description of the image, up to 1000 characters
mask? file
Mask.png, the transparent area indicates the part that needs to be edited. The size must be consistent with image
model? string
Models for image editing
n? integer
Number of generated images, must be between 1 and 10
size? string
Generated image size: 256x256, 512x512 or 1024x1024
response_format? string
Return format
Value in "url" | "b64_json"
user? string
User ID

Response Body

status codeType
200application/json
curl -X POST "https://api.covanexus.com/v1/images/edits" \
  -H "Authorization: Bearer $COVA_NEXUS_API_KEY" \
  -F image="@sunlit_lounge.png" \
  -F mask="@mask.png" \
  -F prompt="A sunlit indoor lounge area with a pool" \
  -F n=1 \
  -F size="1024x1024"
200
{
  "created": 0,
  "data": [
    {
      "b64_json": "string",
      "url": "string"
    }
  ]
}

BearerAuth