Skip to main content
POST
/
api
/
image
/
effects
/
image-hd-color-migration
HD color migration
curl --request POST \
  --url https://www.ailabapi.com/api/image/effects/image-hd-color-migration \
  --header 'Content-Type: multipart/form-data' \
  --header 'ailabapi-api-key: <api-key>' \
  --form task_type=async \
  --form image='@example-file' \
  --form 'mode=<string>' \
  --form 'degree=<string>' \
  --form 'color_count=<string>' \
  --form 'color_template=<string>' \
  --form ref='@example-file'
{
"request_id": "",
"log_id": "",
"error_code": 0,
"error_code_str": "",
"error_msg": "",
"error_detail": {
"status_code": 200,
"code": "",
"code_message": "",
"message": ""
},
"task_type": "",
"task_id": ""
}

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
task_type
string

Task Type.

Example:

"async"

image
file
mode
string

Color extension mode.

  • AUTO: Automatic color extension.
  • TEMPLATE: Color palette extension.
  • REF_PIC: Reference picture extension color.
  • degree
    string

    Top color degree.

    color_count
    string

    Expand the number of color families.

    color_template
    string

    Color palette topology, Top master color list, color value definition ARGB. e.g. 0A0B0C, array size [1, 7].

    ref
    file

    Reference image.

    Response

    200 - application/json

    Success

    The response is of type object.