Skip to main content
POST
/
api
/
portrait
/
effects
/
face-beauty-pro
Face Beauty Pro
curl --request POST \
  --url https://www.ailabapi.com/api/portrait/effects/face-beauty-pro \
  --header 'Content-Type: multipart/form-data' \
  --header 'ailabapi-api-key: <api-key>' \
  --form task_type=sync \
  --form image='@example-file' \
  --form whitening=50 \
  --form smoothing=50 \
  --form thinface=50 \
  --form shrink_face=50 \
  --form enlarge_eye=50 \
  --form remove_eyebrow=50 \
  --form 'filter_type=<string>'
{
"request_id": "",
"log_id": "",
"error_code": 0,
"error_code_str": "",
"error_msg": "",
"error_detail": {
"status_code": 200,
"code": "",
"code_message": "",
"message": ""
},
"task_type": "sync",
"result": ""
}

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
task_type
string

Task Type.

  • sync: Synchronous tasks.
  • async: Asynchronous tasks.
  • Example:

    "sync"

    image
    file
    whitening
    integer

    Whitening Degree. 0 means no whitening effect, 100 represents the highest degree.

    Example:

    "50"

    smoothing
    integer

    Smoothing Degree. 0 means no smoothing effect, 100 represents the highest degree.

    Example:

    "50"

    thinface
    integer

    Face Slimming Degree. 0 means no face slimming effect, 100 represents the highest degree.

    Example:

    "50"

    shrink_face
    integer

    Small Face Degree. 0 means no small face effect, 100 represents the highest degree.

    Example:

    "50"

    enlarge_eye
    integer

    Big Eyes Degree. 0 means no big eyes effect, 100 represents the highest degree.

    Example:

    "50"

    remove_eyebrow
    integer

    Eyebrow Removal Degree. 0 means no eyebrow removal effect, 100 represents the highest degree.

    Example:

    "50"

    filter_type
    string

    Filter Effects.

  • 1: Black and White.
  • 2: Calm.
  • 3: Sunny Day.
  • 4: Journey.
  • 5: Beautify Skin.
  • 6: Hong Kong Style.
  • 7: Aesthetic.
  • 8: Lovely.
  • 9: New York.
  • 10: Sakura.
  • 11: Seventeen.
  • 12: Soft Light.
  • 13: Afternoon Tea.
  • 14: Brighten Skin.
  • 15: Chaplin.
  • 16: Floral.
  • 17: Memories.
  • 18: Ice Beauty.
  • 19: Paris.
  • 20: Time.
  • 21: LOMO.
  • 22: Old Times.
  • 23: Early Spring.
  • 24: Story.
  • 25: Abao Color.
  • 26: Fill Light.
  • 27: Warm.
  • 28: Gorgeous.
  • 29: Lavender.
  • 30: Chanel.
  • 31: Prague.
  • 32: Old Dreams.
  • 33: Peach Blossom.
  • 34: Pink.
  • 35: Misty Rain.
  • Response

    200 - application/json

    Success

    The response is of type object.