SnapeditAPI
Đăng nhậpBắt đầu miễn phí
Đăng nhập
API Reference

Makeup transfer

Apply makeup styles to all faces in the image. The style list and preview images are in this link.

Model:makeup-transfer
Credit:3
post/v1/images/transfer-makeup

Authorization — This endpoint requires an API key. Pass it in the api-key header on every request. Learn more

Thời gian xử lý trung bình

Cho mỗi yêu cầu.

Thời gian xử lý
≈ 2,8 giây

Yêu cầu đầu vào

Hình ảnh

Định dạng
JPEG, PNG, WEBP
Độ phân giải tối đa
3000 × 3000 px
Xem tất cả yêu cầu đầu vào

Parameters

NameTypeStatusDescription
input_image
fileRequiredImage file or URL to apply makeup to.
style
stringRequiredMakeup style to apply.

Responses

Makeup applied successfullySingleImageResponse

FieldTypeDescription
createdintegerUnix timestamp of when the response was created
dataobject[]
urlstringURL to download the result image
curl -X POST "https://api.snapedit.app/v1/images/transfer-makeup" \
  -H "api-key: YOUR_API_KEY" \
  -F "input_image=@./image.jpg" \
  -F "style=value"
Response
{
  "created": 1745827200,
  "data": [
    {
      "url": "https://outputs.snapedit.app/outputs/abc123.png"
    }
  ]
}

Examples (1 example)

Input

Input 1

Output

Output