← 返回
未分类 Key

Face Transform

Analyze and transform faces via AceDataCloud API. Use when detecting face keypoints, beautifying portraits, aging/de-aging faces, swapping genders, replacing...
germey
未分类 clawhub v1.0.0 100000 Key: 需要
★ 0
Stars
📥 365
下载
💾 1
安装

概述

Face Transform

Analyze and transform faces through AceDataCloud's Face API suite.

Authentication

export ACEDATACLOUD_API_TOKEN="your-token-here"

Quick Start

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"}'

Available APIs

EndpointPurposeDescription
--------------------------------
POST /face/analyzeFace DetectionDetect face keypoints (90+ points per face)
POST /face/beautifyBeautificationApply beauty/decoration effects
POST /face/change-ageAge TransformMake a face look older or younger
POST /face/change-genderGender SwapTransform facial gender characteristics
POST /face/swapFace SwapReplace one person's face with another
POST /face/cartoonCartoon StyleConvert portrait to animated/cartoon style
POST /face/detect-liveLiveness CheckDetect if a face image is from a live person

Workflows

1. Face Analysis

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.

2. Face Beautification

POST /face/beautify
{
  "image_url": "https://example.com/portrait.jpg"
}

3. Age Transformation

POST /face/change-age
{
  "image_url": "https://example.com/portrait.jpg"
}

4. Gender Swap

POST /face/change-gender
{
  "image_url": "https://example.com/portrait.jpg"
}

5. Face Swap

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"
}

6. Cartoon Style

POST /face/cartoon
{
  "image_url": "https://example.com/portrait.jpg"
}

7. Liveness Detection

POST /face/detect-live
{
  "image_url": "https://example.com/face-photo.jpg"
}

Common Parameters

ParameterRequiredDescription
----------------------------------
image_urlYesSource face image URL
target_image_urlFor swapTarget image for face replacement

Gotchas

  • All face APIs are synchronous — no task polling needed, results return immediately
  • Face analyze returns 90+ keypoints per detected face, supporting multiple faces in one image
  • Face swap requires two images: source (the face to use) and target (the body to put it on)
  • All APIs are currently in Alpha stage — interfaces may evolve
  • Images should contain clearly visible, front-facing faces for best results
  • Liveness detection helps distinguish live photos from printed/screen photos

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 04:35 安全 安全

安全检测

暂无安全检测报告