Skip to content

AI Nail Virtual Try-On

Overview

The AI Nail Virtual Try On API offers an innovative way to enhance the online experience for customers interested in nail art. It allows shoppers to visualize a variety of nail styles virtually, from artificial and acrylic nails to press-on options and gel designs. With unlimited color and texture options, users can effortlessly explore different looks on both natural and synthetic nails. The platform enables personalized try-ons, letting individuals switch between styles and see before-and-after comparisons easily. This seamless integration streamlines product discovery and increases customer confidence by providing accurate, interactive previews before purchasing.

Integration Guide

This guide walks you through:

Workflow for AI Nail Virtual Try On API:

Authentication Required: Authorization: Bearer YOUR_API_KEY

Workflow Steps:

  1. Image Upload Preparation:

    • The process begins with preparing a back of the hand image.
    • Call the File API /s2s/v2.0/file to obtain the upload URL and associated file_id.
    • Upload the back of the hand with nail image using the provided upload URL.
  2. Nail Design Setup Options:

    • Begin by selecting a suitable nail color. You can also choose a custom shape according to your taste.
  3. Initiate AI Task and Obtain Task ID:

    • Send the uploaded image(s) along with the chosen effect configuration via an HTTP POST request to /s2s/v2.0/task/nail-vto.
    • Await a unique task ID in the response, which identifies this interaction.
  4. Poll Task Status (Continuous Check):

    • Use the obtained task_id to periodically poll the task status using an HTTP GET request (e.g., GET /s2s/v2.0/task/nail-vto/${task_id}).
    • Continuously monitor for:
      • Task_status = "success" (process completed).
      • Task_status = "error" (resolve or retry if applicable).
    • Update the workflow accordingly once the status transitions to success.

This structured workflow ensures efficient integration with user inputs, automated monitoring of tasks, and seamless retrieval of results.


  • API Playground

Interactively explore and test the API using our official playground:


  • Authentication
  • Include your API key in the request header using Bearer Token:
    Authorization: Bearer YOUR_API_KEY

You can find your API Key at https://yce.makeupar.com/api-console/en/api-keys/.

  1. Upload an Image

    You may upload a file directly to the server or provide a valid image URL in the VTO task payload.

    • Upload Endpoint

      POST /s2s/v2.0/file

    Alternatively, skip this step if you already have a public image URL.


  1. Prepare an effect template

    • There are four distinct setup modes available for this purpose:

      1. Customizing the color and aligning it with your current nail look
      2. Utilizing a preset design and a specific shape to create your vision
      3. Adding pressed-on nails and linking them with your existing original nail image
      4. Providing image links for pressing-on nail products that match
    • Effect Template JSON Schemas

      {
          "version": "1.0",
          "effect_type": "nail_polish", // valid values: ['nail_polish', 'press_on_nails']
          "effects": [],
          "ref_file_ids": []
      }
      • Effect Format

        • Nail Polish - Color
        {
            "sub_type": "color",
            "finger": "index", // valid values: ['thumb', 'index', 'middle', 'ring', 'pinky']
            "color": "#ff0000",
            "texture": "cream", // valid values: ['matte', 'cream', 'metallic', 'jelly', 'sheer', 'pearl', 'textured', 'shimmer_coarse', 'shimmer_fine']
            "transparency": 0, // 0-100, for textures except metallic
            "reflection": 0, // 0-100
            "contrast": 0, // 0-100
            "roughness": 0, // 0-100
            "shimmer_opacity": 0, // 0-100, for texture pearl
            "shimmer_size": 0, // 0-100, for texture shimmer_coarse and shimmer_fine
            "textured_size": 0, // 0-100, for texture textured
        }
        • Nail Polish - Design
        {
            "sub_type": "design",
            "finger": "index", // valid values: ['thumb', 'index', 'middle', 'ring', 'pinky']
            "ref_file_url": "",  // Optional; Either ref_file_id or ref_file_url must be filled, but only one can be selected.
            "ref_file_index": 0, // This field is optional unless uploading is selected. Index corresponding to ref_file_ids under the root node
            "texture": "cream", // valid values: ['matte', 'cream', 'metallic', 'jelly', 'sheer', 'pearl', 'textured', 'shimmer_coarse', 'shimmer_fine']
            "transparency": 0, // 0-100, only for textures except metallic
            "reflection": 0, // 0-100
            "contrast": 0, // 0-100
            "roughness": 0, // 0-100
            "shimmer_opacity": 0, // 0-100, for texture pearl
            "shimmer_size": 0, // 0-100, for texture shimmer_coarse and shimmer_fine
            "textured_size": 0, // 0-100, for texture textured
        }
        
        • Press On Nails - Color
        • You can find the latest shape values at: https://plugins-media.makeupar.com/wcm-saas/shapes/nails.json
        {
            "sub_type": "color",
            "finger": "index", // valid values: ['thumb', 'index', 'middle', 'ring', 'pinky']
            "shape": "square_oval", // Please check the nails.json. valid values: ['square_oval','square_square','square_squoval','squoval_oval','squoval_square','squoval_squoval','oval_oval','oval_square','oval_squoval','almond_oval','almond_square','almond_squoval','stiletto_oval','stiletto_square','stiletto_squoval],
            "length": 1.0, // 0.8-2.15, for shapes except original
            "color": "#ff0000",
            "texture": "cream", // valid values for other shapes: ['matte', 'cream', 'metallic']
            "reflection": 0, // 0-100
            "contrast": 0, // 0-100
            "roughness": 0 // 0-100
        }
        • Press on Nails - Design
        {
            "sub_type": "design",
            "finger": "index", // valid values: ['thumb', 'index', 'middle', 'ring', 'pinky']
            "ref_file_url": "",  // Optional; Either ref_file_id or ref_file_url must be filled, but only one can be selected.
            "ref_file_index": 0, // This field is optional unless uploading is selected. Index corresponding to ref_file_ids under the root node
            "texture": "cream", // valid values: ['matte', 'cream', 'metallic']
            "reflection": 0, // 0-100
            "contrast": 0, // 0-100
            "roughness": 0, // 0-100
        }
        
    • Effect Template Design Logic

      1. Detect effect type (press_on_nails vs nail_polish).
      2. Iterate over each entry in effects:

      If sub_type === "color" → map fields directly, fill missing texture‑related keys with defaults. If sub_type === "design" →

      • If the user gave a ref_file_url, keep it and omit ref_file_index.
      • If the user supplied an index (ref_file_index), ensure ref_file_ids exists and the index is valid; then set "ref_file_id": ref_file_ids[index] (optional – some back‑ends expect the raw index, not id).
      1. Normalize numeric ranges – clamp any out‑of‑range values to 0‑100 or length limits.
      2. Add missing optional keys with defaults so the schema validator passes.
      3. Serialize the final object as JSON (compact or pretty for debugging).
    • Example Payload (ready to send)

      {
      "version": "1.0",
      "src_file_url": "https://plugins-media.makeupar.com/strapi/assets/nail_user_photo_01_27d4260646.jpg",
      "effect_type": "press_on_nails",
      "ref_file_ids": [
          "Ks3kh+1nPpVNm8iJb5374CWtBzkT4B44NPJwXbBKqVxfjK3xgCQ+hRt9MJXBFaud",
          "+Z7PSjuzigvsc3S/Yli1A4WN7c3J6NJHFqK2iUlqD2BfjK3xgCQ+hRt9MJXBFaud"
      ],
      "effects": [
          {
          "sub_type": "design",
          "finger": "thumb",
          "texture": "cream",
          "reflection": 100,
          "contrast": 50,
          "roughness": 0,
          "ref_file_index": 0
          },
          {
          "sub_type": "design",
          "finger": "index",
          "texture": "cream",
          "reflection": 100,
          "contrast": 50,
          "roughness": 0,
          "ref_file_index": 1
          },
          {
          "sub_type": "design",
          "finger": "middle",
          "texture": "cream",
          "reflection": 100,
          "contrast": 50,
          "roughness": 0,
          "ref_file_url": "https://plugins-media.makeupar.com/strapi/assets/press_on_nail_06_3_9ce2ddc47a.png"
          },
          {
          "sub_type": "design",
          "finger": "pinky",
          "texture": "cream",
          "reflection": 100,
          "contrast": 50,
          "roughness": 0,
          "ref_file_url": "https://plugins-media.makeupar.com/strapi/assets/press_on_nail_06_5_f6e46dd56f.png"
          },
          {
          "sub_type": "design",
          "finger": "ring",
          "texture": "cream",
          "reflection": 100,
          "contrast": 50,
          "roughness": 0,
          "ref_file_url": "https://plugins-media.makeupar.com/strapi/assets/press_on_nail_06_4_2103ca8cac.png"
          }
      ]
      }
  2. Create a Nail VTO Task and Poll for Results

    Once you have an image and a complete effect payload, create a task. The API processes the request asynchronously. You must poll the task status until it reaches success or error.

    • Create Task Endpoint

      POST /s2s/v2.0/task/nail-vto
    • Polling Endpoint

      GET /s2s/v2.0/task/nail-vto/{task_id}

File Specs & Errors

  • AI Nail Virtual Try-On Specification

Supported Nail View A single nail image in a clear front view without obstruction.

ItemSupported DimensionsSupported File SizeSupported Formats
Nail Design Image - Nail Polish* 271 px ≤ Width ≤ 542 px
* 522 px ≤ Height ≤ 1044 px
* At least 72ppi
The image will be applied from the center, and the virtual try-on effect will vary according to the length of user’s fingernails.
≤ 1MBpng
Nail Design Image - Press-On Nail* 271 px ≤ Width ≤ 542 px
* 522 px ≤ Height ≤ 1044 px
* 0.5 ≤ Image aspect ratio (H/W) ≤ 3.5
* At least 72ppi
The image’s content, shape, and length settings are all used to generate the virtual try-on effect.
Since the user’s fingernail width is detected to ensure proper image scaling, it is recommended to create separate images for each fingernail with the correct aspect ratio.
Please download a press-on nail design image sample, and refer to the image guidelines for further details. Download: Nail_Design_Image_Guidelines.pdf
≤ 1MB​png (with transparent background)

Press-on nail design image sample:


Supported Hand View

ItemSupported DimensionsSupported File SizeSupported Formats
User Photo* Long side ≤ 2048
* Short side ≥ 256
≤ 10MBjpg/jpeg/png
  • Support only one hand in the input image
  • The area of hand palm is better to be at least half of that of input image
  • The aspect ratio of the input image is better to be 1:1, 3:4, 4:3
  • The nails of fingers should not be occluded
  • It is better that there is no nail tip and nail polish on the nail


  • Error Codes
Error CodeDescription
error_nail_too_smallThe nail regions are too small.
error_no_nailNo nails were detected in the source image.
  • Environment & Dependency
Sample Code Language / ToolRecommended Runtime Versions
cURL- bash >= 3.2
- curl >= 7.58 (modern TLS/HTTP support)
- jq >= 1.6 (robust JSON parsing)
Node.js (JavaScript)Node >= 18 (for global fetch)
JavaScript- Chrome / Edge >= 80
- Firefox >= 74
- Safari >= 13.1
PHPPHP >= 7.4 (for modern TLS/compat), ext-curl (recommended) or allow_url_fopen=On + ext-openssl, ext-json
PythonPython >= 3.10 (for f-strings), requests >= 2.20.0
JavaJava 11+ (for HttpClient), Jackson Databind >= 2.12.0

JS Camera Kit

JavaScript Camera Kit SDK Documentation

version: v2.5

Overview

The JavaScript Camera Kit provides a complete in-browser camera solution designed for high-accuracy face-based imaging tasks. It handles camera permissions, real-time face detection, automatic quality validation (lighting, pose, angle, distance), and guided capture UI flows.

This module is optimized for AI-driven image analysis, such as:

  • AI Skin Analysis (SD/HD)
  • AI Face Tone Analysis
  • Hair-related Analysis
  • Virtual Try-On (Ring, Wrist, Necklace, etc.)

Key Features

  • Permission Handling: Automatic management of webcam access.
  • Quality Validation: Real-time monitoring of face position, lighting, and angle.
  • Multi-Step Flows: Support for complex capture requirements (e.g., multi-angle hair capture).
  • Flexible Output: Supports both base64 and blob image formats.

Installation

Include the SDK via CDN in your HTML <head> or before the closing <body> tag. Once loaded, the SDK installs a global YMK object.

<script src="https://plugins-media.makeupar.com/v2.5-camera-kit/sdk.js"></script>

Quick Start Example

The following example demonstrates how to initialize the kit, open the camera, and handle captured images.

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Camera Kit Sample</title>
    <style>
      #YMK-module { margin: 20px 0; }
      img { width: 150px; margin: 5px; border: 1px solid #ccc; }
    </style>
  </head>
  <body>

    <!-- Initialization Script -->
    <script>
      // Define async init entry point
      window.YMKAsyncInit = function() {
        YMK.addEventListener('loaded', function() {
          console.log('Module fully loaded and ready');
        });

        YMK.addEventListener('faceDetectionCaptured', function(capturedResult) {
          const container = document.getElementById('captured-results');
          container.innerHTML = '';

          // Handle multiple images if returned (e.g., multi-angle capture)
          for (const item of capturedResult.images) {
            const img = document.createElement('img');
            // Handle both base64 strings and Blob objects
            img.src = typeof item.image === 'string' 
              ? item.image 
              : URL.createObjectURL(item.image);
            container.appendChild(img);
          }
        });
      };

      function openCameraKit() {
        YMK.init({
          faceDetectionMode: 'makeup',
          imageFormat: 'base64',
          language: 'enu'
        });
        YMK.openCameraKit();
      }
    </script>

    <!-- Load SDK -->
    <script src="https://plugins-media.makeupar.com/v2.5-camera-kit/sdk.js"></script>

    <!-- UI Elements -->
    <button onclick="openCameraKit()">Open Camera Kit</button>

    <!-- Mandatory Mount Point -->
    <div id="YMK-module"></div>

    <h3>Captured Results:</h3>
    <div id="captured-results"></div>
  </body>
</html>

Prerequisites

To ensure successful integration, the following requirements must be met:

RequirementDescription
Browser SupportMust support getUserMedia API.
HTTPSRequired on most browsers for webcam access (except localhost).
Mount PointA <div id="YMK-module"></div> is mandatory for rendering the UI.
Async InitYou must define window.YMKAsyncInit before the SDK loads.

Integration Guide

Step 1: Initialize the Module

Call YMK.init() before calling YMK.openCameraKit().

YMK.init({
  faceDetectionMode: 'makeup', // Detection flow
  imageFormat: 'base64',       // Output format
  language: 'enu'              // UI Language
});

Step 2: Add Event Handlers

Register listeners for camera events and capture results.

YMK.addEventListener('faceQualityChanged', function(q) {
  console.log('Quality updated:', q);
});

Step 3: Open Camera Kit

This displays the UI, opens the webcam, and begins real-time monitoring.

YMK.openCameraKit();

Step 4: Receive Captured Results

Images arrive via the faceDetectionCaptured event.

YMK.addEventListener('faceDetectionCaptured', function(result) {
  console.log(result.images);
});

Step 5: Close Module

Clean up resources when done.

YMK.close();

API Reference

YMK.init(args)

Configures module appearance, detection mode, language, and capture format.

ArgumentTypeDescriptionDefault
faceDetectionModestringDetection flow to use (see Detection Modes below)."skincare"
widthnumberPixel width of module container (300–1920).360 (≥500px) or screen width
heightnumberPixel height of module container (300–1920).480 (≥500px) or min(screen.height, innerHeight)
languagestringUI Language code (chs, cht, deu, enu, esp, fra, jpn, kor, ptb, ita, mon )."enu"
imageFormatstringFormat returned via faceDetectionCaptured."base64"
disableCameraResolutionCheckbooleanAllow running even if webcam does not meet required resolution.false
hideFlipCameraButtonbooleanControls visibility of the flip front/back camera button if the device supports it.false
countingDurationnumberControls the countdown milliseconds when camera quality check meets criteria before auto-capture.800
qualityLevelstringControls the camera quality check setting, with options of relaxed, moderate, or strict.relaxed
qualityOverridesobjectConfigure detailed parameters for camera quality verification.See Camera Kit Quality Configuration
videoQualitystringConfigure the output quality to 720p, 1080p, or 1920p. 720p corresponds to 1280 × 720, 1080p to 1920 × 1080, and 1920p to 2560 × 1920. This setting is supported only for skincare and hdskincare720p

Methods

MethodDescription
YMK.openCameraKit()Opens the module and begins detection.
YMK.close()Closes module and camera.
YMK.addEventListener(event, callback)Registers event callbacks. Returns an EventListenerIdentifier.
YMK.removeEventListener(id)Removes listener by identifier.
YMK.isLoaded()Returns whether livestream or photo is drawn on canvas (boolean).
YMK.pause()Pauses the webcam stream.
YMK.resume(restartWebcam)Resumes webcam after pause.
YMK.getInfo()Returns current module info (e.g., { fps: 30 }).

Camera Kit Quality Configuration

Camera Kit provides configurable quality parameters to control face detection and skin analysis behavior. These parameters allow developers to fine-tune detection strictness while maintaining consistency across web and native SDK implementations.

To simplify configuration, Camera Kit includes three predefined presets:

  • RELAXED: Optimized for usability with minimal restrictions
  • MODERATE: Balanced between usability and accuracy
  • STRICT: Optimized for maximum detection accuracy

All custom configurations must meet or exceed the minimum requirements defined by the RELAXED preset.

Camera Kit Quality Configuration supports both skincare and hdskincare.


Preset Behavior

PresetDescription
RELAXEDLess strict validation for smoother user experience
MODERATEBalanced validation for most use cases
STRICTTight validation for high accuracy scenarios

When using qualityOverrides, you may specify only the parameters you want to change. Unspecified parameters fall back to the active preset defaults.


Configuration Object

{
  "face_ratio_lower_threshold": 0.55,
  "face_ratio_upper_threshold": 1,
  "face_left_boundary_lower_threshold": 0,
  "face_left_boundary_upper_threshold": 1,
  "face_right_boundary_lower_threshold": 0,
  "face_right_boundary_upper_threshold": 1,
  "face_top_boundary_lower_threshold": 0,
  "face_top_boundary_upper_threshold": 1,
  "face_bottom_boundary_lower_threshold": 0,
  "face_bottom_boundary_upper_threshold": 1,
  "pitch_lower_threshold": -20,
  "pitch_upper_threshold": 10,
  "yaw_lower_threshold": -15,
  "yaw_upper_threshold": 15,
  "roll_lower_threshold": -15,
  "roll_upper_threshold": 15,
  "lighting_lower_threshold": 0.55,
  "lighting_upper_threshold": 0.8,
  "lighting_uneven_threshold": 0.2
}

Parameters

Face Ratio Control

Controls the acceptable proportion of the detected face.

  • Measurement basis:
    • Landscape mode: vertical ratio
    • Portrait mode: horizontal ratio
ParameterDescriptionAllowed RangePreset Defaults
face_ratio_lower_thresholdMinimum face ratio0.55 to 1.0STRICT 0.75, MODERATE 0.65, RELAXED 0.55
face_ratio_upper_thresholdMaximum face ratio1.01.0 (all presets)

Face Boundary Control

Defines how close the face can be to the frame edges.

ParameterDescriptionAllowed RangeDefault
face_left_boundary_lower_thresholdLeft boundary minimum0.0 to 1.00.0
face_left_boundary_upper_thresholdLeft boundary maximum0.0 to 1.01.0
face_right_boundary_lower_thresholdRight boundary minimum0.0 to 1.00.0
face_right_boundary_upper_thresholdRight boundary maximum0.0 to 1.01.0
face_top_boundary_lower_thresholdTop boundary minimum0.0 to 1.00.0
face_top_boundary_upper_thresholdTop boundary maximum0.0 to 1.01.0
face_bottom_boundary_lower_thresholdBottom boundary minimum0.0 to 1.00.0
face_bottom_boundary_upper_thresholdBottom boundary maximum0.0 to 1.01.0

Head Pose Angle Control

Controls allowable head orientation.

ParameterDescriptionAllowed RangePreset Defaults
pitch_lower_thresholdMinimum pitch angle-20 to 10STRICT -10, MODERATE -15, RELAXED -20
pitch_upper_thresholdMaximum pitch angle-20 to 10STRICT 0, MODERATE 5, RELAXED 10
yaw_lower_thresholdMinimum yaw angle-15 to 15STRICT -5, MODERATE -10, RELAXED -15
yaw_upper_thresholdMaximum yaw angle-15 to 15STRICT 5, MODERATE 10, RELAXED 15
roll_lower_thresholdMinimum roll angle-15 to 15STRICT -5, MODERATE -10, RELAXED -15
roll_upper_thresholdMaximum roll angle-15 to 15STRICT 5, MODERATE 10, RELAXED 15

Lighting Control

Defines acceptable lighting quality and uniformity.

ParameterDescriptionAllowed RangePreset Defaults
lighting_lower_thresholdMinimum lighting level0.55 to 1.0STRICT 0.8, MODERATE 0.7, RELAXED 0.55
lighting_upper_thresholdMaximum lighting level0.8 to 1.0STRICT 0.9, MODERATE 0.85, RELAXED 0.8
lighting_uneven_thresholdMaximum luma difference between eyes0.0 to 0.2STRICT 0.1, MODERATE 0.15, RELAXED 0.2

Validation Rules

  • Custom values must not be less restrictive than RELAXED preset values.
  • Only specified fields in qualityOverrides are applied.
  • All unspecified parameters default to the selected preset.

Detection Modes

Configure the faceDetectionMode in YMK.init() to suit your specific use case.

ModeDescription
makeupStandard camera mode for virtual cosmetic try-on.
skincareStandard skin analysis mode, close-up face capture. Support AI Skin Analysis and AI Skin Simulation.
hdskincareHigh-definition capture for AI skin analysis using webcams with a minimum resolution of 2560 pixels on the longer side, subject to device support.
shadefinderSkin Tone Analysis front-face capture.
facereshapeAI Face Reshape capture and AI Face Lift.
hairlengthFull hair-length capture (from a distance).
hairfrizziness3-phase capture: front, right-turn, left-turn.
hairtypeSame 3-phase multi-angle capture flow.
hairdensityA 45‑degree downward head‑angle photograph.
ringHand capture for ring virtual try‑on.
wristWrist capture for watch or bracelet virtual try‑on.
necklaceSelfie capture for necklace try-on.
earringSelfie capture for earring virtual try-on.
teethwhitenFront‑facing selfie that detects whether teeth are visible; photo taken only when detected.
nailHand capture for nails virtual try‑on.
comprehensivePhoto to be used simultaneously for AI Makeup, AI Skin Analysis, and AI Facial Attributes & Ratio Analysis.

Events Reference

Lifecycle & Status Events

EventDescription
openedModule opened.
loadingLoading progress (0–100).
loadedCamera stream loaded onto canvas.
closedModule closed.
faceDetectionStartedUser enters the detection UI.

Camera Events

EventDescription
cameraOpenedWebcam opened successfully.
cameraClosedWebcam closed.
cameraFailedPermission denied or no webcam found. Error codes include "error_resolution_unsupported", "error_permission_denied", "error_access_failed".
unsupportedResolutionFired when the device resolution does not meet the minimum requirements for the selected mode.

Detection Events

faceQualityChanged

Fires continuously during detection as quality metrics update.

Example Payload:

{
  "hasFace": true,
  "position": "good",
  "frontal": "good",
  "lighting": "ok"
}

Field Definitions:

  • hasFace: (boolean) Whether a face is detected.
  • position: (string) Face distance/size quality ("good", "notgood", "toosmall", "outofboundary").
  • frontal: (string) Whether user is facing forward ("good", "notgood").
  • lighting: (string) Lighting strength ("good", "ok", "notgood").

faceDetectionCaptured

Fired after all required face quality validation checks have passed and the Camera Kit has successfully completed the capture workflow. Depending on the mode, this may contain one or multiple images.

Example Payload:

{
  "mode": "makeup",
  "images": [
    {
      "phase": 0,
      "image": "data:image/jpeg;base64,...",
      "width": 500,
      "height": 500
    }
  ]
}

Image Object Fields:

  • phase: (integer) Zero-based index representing the capture step.
  • image: (string | Blob) The captured image data.
  • width: (integer) Pixel width of the captured image.
  • height: (integer) Pixel height of the captured image.

Configuration Notes

Quality Requirements

To ensure successful capture:

  1. Distance: Ensure correct face distance (not too zoomed in/out).
  2. Angle: Ensure frontal face angle.
  3. Lighting: Provide sufficient lighting (avoid shadows or dark environments).

Multi-Phase Capture

Modes like hairtype or hairfrizziness require multiple steps:

  1. Front face
  2. Turn right
  3. Turn left

Ensure your event handling logic accounts for multiple images in the faceDetectionCaptured result array.

Advanced Configuration

  • Flip Button: Use hideFlipCameraButton: true to enforce a specific camera orientation if your UX requires it.
  • Capture Delay: Adjust countingDuration (default 800) to give users more time to review the capture before auto-submission occurs.
const minQuality = {
  hasFace: true,
  area: "good",
  frontal: "good",
  lighting: "ok"
};

Unit Consumption

AI FeatureUnit Consumed
AI Nail Virtual Try-On V1.01

Download OpenAPI description
Languages
Servers
https://yce-api-01.makeupar.com