Skip to main content

Create Variants

POST 

/vto-partner/:project_key/variants

Step 5: Create variants - Requires products to be created first.

Create variants with digitizer configuration for virtual try-on.

Config Object​

  • module (required): "makeup" or "nailpolish"
  • type (required): Type ID (see tables below)
  • color (required): Hex color code (e.g., #E35169)
  • opacity (optional): Color opacity 0-1, overrides type default

Makeup Types (0-14)​

TypeCategoryDefault Opacity
0Foundation0.8
1Blush0.5
2Contour0.8
3Eyeshadow1.0
4Eyeliner1.0
5Eye Pencil1.0
6Highlighter1.0
7Mascara1.0
8Lipstick1.0
9Lip Pencil0.8
10Eyebrow1.0
11Funmask1.0
12Concealer1.0
13Bronzer0.8
14Lip & Cheek0.5

Nailpolish Types (0-2)​

TypeModeDefault Opacity
0Color (solid)0.8
1Textured0.8
2WithEffect0.8

Request​

Responses​

Variants processed