POST
/
api
/
ai
/
images
/
modify
/
v3
/
recolor-image
curl --request POST \
  --url https://api.worqhat.com/api/ai/images/modify/v3/recolor-image \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form search_object=cat \
  --form 'modification=Change this into a white-colored husky' \
  --form output_type=url
{
  "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 containing the object to be recolored.

search_object
string
required

The object in the image that you want to recolor.

modification
string
required

The new color or style for the identified object.

output_type
enum<string>
required

The format of the generated image.

Available options:
url,
Base64

Response

200
application/json
Image modified successfully.
image
string
required

The generated image URL or Base64 string.

processing_time
number
required

The time taken to process the request.

processing_id
string
required

A unique identifier for the request.