Analyze and transform faces through AceDataCloud's Face API suite.
export ACEDATACLOUD_API_TOKEN="your-token-here"
curl -X POST https://api.acedata.cloud/face/analyze \
-H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"image_url": "https://example.com/portrait.jpg"}'
| Endpoint | Purpose | Description |
|---|---|---|
| ---------- | --------- | ------------- |
POST /face/analyze | Face Detection | Detect face keypoints (90+ points per face) |
POST /face/beautify | Beautification | Apply beauty/decoration effects |
POST /face/change-age | Age Transform | Make a face look older or younger |
POST /face/change-gender | Gender Swap | Transform facial gender characteristics |
POST /face/swap | Face Swap | Replace one person's face with another |
POST /face/cartoon | Cartoon Style | Convert portrait to animated/cartoon style |
POST /face/detect-live | Liveness Check | Detect if a face image is from a live person |
Detect faces and extract 90+ keypoints per face.
POST /face/analyze
{
"image_url": "https://example.com/photo.jpg"
}
Response includes detailed keypoints: nose, mouth, left_eye, right_eye, left_eyebrow, right_eyebrow, contour — each as arrays of {x, y} coordinates.
POST /face/beautify
{
"image_url": "https://example.com/portrait.jpg"
}
POST /face/change-age
{
"image_url": "https://example.com/portrait.jpg"
}
POST /face/change-gender
{
"image_url": "https://example.com/portrait.jpg"
}
Replace the face in the target image with the face from the source.
POST /face/swap
{
"image_url": "https://example.com/source-face.jpg",
"target_image_url": "https://example.com/target-person.jpg"
}
POST /face/cartoon
{
"image_url": "https://example.com/portrait.jpg"
}
POST /face/detect-live
{
"image_url": "https://example.com/face-photo.jpg"
}
| Parameter | Required | Description |
|---|---|---|
| ----------- | ---------- | ------------- |
image_url | Yes | Source face image URL |
target_image_url | For swap | Target image for face replacement |
共 1 个版本
暂无安全检测报告