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)
| Type | Category | Default Opacity |
|---|---|---|
| 0 | Foundation | 0.8 |
| 1 | Blush | 0.5 |
| 2 | Contour | 0.8 |
| 3 | Eyeshadow | 1.0 |
| 4 | Eyeliner | 1.0 |
| 5 | Eye Pencil | 1.0 |
| 6 | Highlighter | 1.0 |
| 7 | Mascara | 1.0 |
| 8 | Lipstick | 1.0 |
| 9 | Lip Pencil | 0.8 |
| 10 | Eyebrow | 1.0 |
| 11 | Funmask | 1.0 |
| 12 | Concealer | 1.0 |
| 13 | Bronzer | 0.8 |
| 14 | Lip & Cheek | 0.5 |
Nailpolish Types (0-2)
| Type | Mode | Default Opacity |
|---|---|---|
| 0 | Color (solid) | 0.8 |
| 1 | Textured | 0.8 |
| 2 | WithEffect | 0.8 |
Request
Responses
- 200
- 400
- 401
- 403
- 429
Variants processed
Validation error
Missing or invalid API key
API key not authorized for this project
Rate limit exceeded