Skip to main content
POST
/
api
/
portrait
/
effects
/
smart-skin-advanced
AI Skin Enhancement Advanced
curl --request POST \
  --url https://www.ailabapi.com/api/portrait/effects/smart-skin-advanced \
  --header 'Content-Type: multipart/form-data' \
  --header 'ailabapi-api-key: <api-key>' \
  --form image='@example-file' \
  --form smart_skin=0 \
  --form acne_removal=0 \
  --form spot_correction=0 \
  --form skin_brightening=0 \
  --form skin_smoothing=0 \
  --form pore_control=0 \
  --form wrinkle_reduction=0 \
  --form under_eye_correction=0 \
  --form scar_reduction=0
{
  "request_id": "",
  "log_id": "",
  "error_detail": {
    "code": "",
    "code_message": "",
    "message": ""
  },
  "task_id": ""
}

Documentation Index

Fetch the complete documentation index at: https://ailabtools.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Query Task

This is an asynchronous task API. The submission request returns only task_id.Use task_id to call Querying Async Task Results and retrieve the final result. Async task results remain available for 24 hours. Query every 5 seconds.
FieldTypeDescription
dataobjectFinal result data.
+result_urlsarrayResult image URLs.
++result_urls[]stringResult image URL.
{
  "data": {
    "result_urls": [""]
  }
}
result_urls are temporary and remain valid for 24 hours. If you need long-term storage, download the files to your own storage within that period.

Submit Task

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
image
file
required
  • Image format: JPEG JPG PNG WEBP
  • Image size: No more than 10 MB.
  • Image resolution: Less than 4096x4096px.
smart_skin
enum<string>
default:0

Smart all-in-one skin beautification.

  • 0: No.
  • 1: Yes.
Available options:
0,
1
acne_removal
enum<string>
default:0

Acne and blemish removal.

  • 0: No.
  • 1: Yes.
Available options:
0,
1
spot_correction
enum<string>
default:0

Spot and pigmentation correction.

  • 0: No.
  • 1: Yes.
Available options:
0,
1
skin_brightening
enum<string>
default:0

Skin brightening and tone enhancement.

  • 0: No.
  • 1: Yes.
Available options:
0,
1
skin_smoothing
enum<string>
default:0

Skin smoothing and refinement.

  • 0: No.
  • 1: Yes.
Available options:
0,
1
pore_control
enum<string>
default:0

Pore and oil control.

  • 0: No.
  • 1: Yes.
Available options:
0,
1
wrinkle_reduction
enum<string>
default:0

Wrinkle and fine-line reduction.

  • 0: No.
  • 1: Yes.
Available options:
0,
1
under_eye_correction
enum<string>
default:0

Under-eye correction.

  • 0: No.
  • 1: Yes.
Available options:
0,
1
scar_reduction
enum<string>
default:0

Scar and skin damage reduction.

  • 0: No.
  • 1: Yes.
Available options:
0,
1

Response

200 - application/json

Success

request_id
string
required

Request ID for debugging.

log_id
string
required

Log ID for debugging.

error_detail
object
required
task_id
string
required

Task ID for querying Querying Async Task Results.