POST
/
api
/
ai
/
images
/
modify
/
v3
curl --request POST \
  --url https://api.worqhat.com/api/ai/images/modify/v3 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form similarity=40 \
  --form 'modification=Change this into a night scenery' \
  --form output_type=url \
  --form control_function=none
{
  "image": "https://storage.googleapis.com/.../modified-image.png",
  "processing_time": 15938.768708,
  "processing_id": "1e01b632-2d8f-4f71-8a27-36e219d67be5"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
existing_image
file
required

The existing image to be modified.

similarity
number
required

The percentage similarity to maintain with the original image.

modification
string
required

The textual description of how the image should be modified.

output_type
enum<string>
required

The output type of the image to be generated.

Available options:
url,
Base64
control_function
enum<string>

The control function for image modification.

Available options:
none,
structure_transfer,
style_transfer

Response

200
application/json
Image modified successfully.
image
string
required

The generated image.

processing_time
number
required

The time taken to process the request.

processing_id
string
required

A universally unique identifier for the request.