How we tested this
Before building Ahead we tested the YouCam API ourselves on AI-generated faces and wigs. This is what it actually did, including what failed and what we changed because of it.
Where the table mentions skin coming out lighter, that was YouCam's default skin smoothing. We measured it, turned it off, and verify it on every render with the skin tone check.
Your try-ons are deleted from YouCam at the end of your session.
Our planning assistant never sees your photos, your treatment date or any health details. It gets only your style choices and colours; your timeline is worked out on our side.
The planning assistant can spend at most 30 YouCam units per visit, and only after you tap to approve each try-on.
API truth table
- What we tested
- Hair-transfer with an on-model wig photo (hair_color=ref)
- What YouCam actually does
- Puts the wig on convincingly: colour, length, cut, texture; face, skin, background kept
- Evidence
- P1 16/16 scored 5/5; P6 reruns identical; P7 phone selfies 6/6
- Consequence / fix
- Core feature works on fair to deep skin, straight to coily hair, glasses, ponytail, braids
- What we tested
- Hair-transfer on a buzz cut and a fully bald head
- What YouCam actually does
- Works; no error_hair_too_short
- Evidence
- P5 F5 x W1; P8 F6 x W1, W4
- Consequence / fix
- Fine for people with hair loss
- What we tested
- Hair-transfer with a mannequin-head or flat-lay wig photo
- What YouCam actually does
- Rejected: error_no_face, 0 units
- Evidence
- P2 6/6
- Consequence / fix
- Stores must supply on-model photos
- What we tested
- Hair-transfer with a person wearing a head wrap
- What YouCam actually does
- Puts the wrap on the user, person kept
- Evidence
- P8 F1, F6 x W8
- Consequence / fix
- Head wraps can go through hair-transfer
- What we tested
- Hat and scarf APIs
- What YouCam actually does
- Replace the person: new full-body fashion scene, new outfit, street background
- Evidence
- P5 F5 x H1, H2
- Consequence / fix
- Not usable as a try-on on the user
- What we tested
- Built-in hairstyle templates
- What YouCam actually does
- Turned F1 and F3 grey although keep_users_color is true; F2 kept black
- Evidence
- P0, P4
- Consequence / fix
- Do not rely on templates for colour
- What we tested
- Makeup VTO (brows)
- What YouCam actually does
- Draws a soft brow; with YouCam's default skin smoothing (row 20) the whole face measures about +5 L* lighter on every skin tone (forehead +4.6 to +5.0, cheeks +4.1 to +5.0)
- Evidence
- P8, P9 (F1, F2, F3, F6)
- Consequence / fix
- Paste back only the brows (feathered landmark mask, global shift removed): 0.0 L* change outside the brows on all four
- What we tested
- Brow colour
- What YouCam actually does
- A fixed brown came out lighter than F2's own dark brows (-1.3 L* brighter in the brow area)
- Evidence
- P9
- Consequence / fix
- Pick brow colour per person (skin-tone-analysis returns eyebrow_color)
- What we tested
- Skin-tone analysis (20 units)
- What YouCam actually does
- Returns hair_color + hair_color_name and eyebrow_color; read F1's light brown/grey hair as darker brown; flagged face area 'toosmall' at 768x1024
- Evidence
- P9 F1
- Consequence / fix
- Hair colour reading exists but is approximate; crop tighter
- What we tested
- Hair length detection
- What YouCam actually does
- Right on normal hair (F1, F2, F4, F5, F7, F3 on retry); reports a bald head as 'above the ears'
- Evidence
- P10
- Consequence / fix
- There is no 'no hair' answer: detect baldness yourself or ask
- What we tested
- Hair length errors
- What YouCam actually does
- F3 failed once (unknown_internal_error, 0 units), retry gave 'long hair'
- Evidence
- P10
- Consequence / fix
- Transient; one retry is reasonable in a product
- What we tested
- Hair type detection (3 photos)
- What YouCam actually does
- G1 (straight, label type 1): error_face_angle_invalid, 0 units
- Evidence
- P10
- Consequence / fix
- Needs exact side angles; untested beyond this one call
- What we tested
- Thinning hair (F7)
- What YouCam actually does
- Length read 'above chest' (= medium, correct); nothing in the length result says thinning
- Evidence
- P10 F7
- Consequence / fix
- Thinning needs the density detector (head-lowered 45 degree photo), not run
- What we tested
- Brow colour and intensity (makeup-vto eyebrows, shape mode)
- What YouCam actually does
- Barely change the render: #674D40 at 80 vs at 60 differ in 435 px; #4E362A at 70 vs #674D40 at 80 differ in about 2,700 px. The brow stays soft whatever we set
- Evidence
- Hero test, P1B (browA, browB)
- Consequence / fix
- Use the user's own brow colour about 10 L* darker at intensity 70; don't promise a bold brow
- What we tested
- Hair-transfer on top of a brow result (full look)
- What YouCam actually does
- Brows survive (brow area L* 63.8 bald, 59.6 with brows, 57.2 after hair-transfer)
- Evidence
- Hero test, P1B brows B + W01
- Consequence / fix
- Order: brows (composited) first, then hair-transfer
- What we tested
- Hair-transfer skin drift on the full look
- What YouCam actually does
- Cheeks and nose 2.1 to 2.8 L* darker than the bald original, chin +0.8
- Evidence
- Hero test, P1B brows B + W01
- Consequence / fix
- Integrity check threshold set to ΔE2000 2; correct and tell the user
- What we tested
- Task delete (
POST /s2s/v2.0/task/delete, body{task_id}; listed in docs.perfectcorp.com/_bundle/reference/task_management.json) - What YouCam actually does
- Deletes a finished task and its input and output files; 200
{status:200}, then polling the task gives 400 InvalidTaskId; 0 units - Evidence
- Live smoke test 22 Oct (hair-transfer task on P1B x W01)
- Consequence / fix
- Delete every session's tasks at the end; say so plainly in the UI and on the honesty page
- What we tested
- Live mode end to end (local, cap 2)
- What YouCam actually does
- One hair-transfer charged exactly 2 units (balance 242 to 240); same request again = cache hit, no charge; a different request at the cap = labelled recording
- Evidence
- Live smoke test 22 Oct
- Consequence / fix
- Daily cap and cache behave as designed
- What we tested
- Hair-transfer on a bald photo
- What YouCam actually does
- Draws its own brows on many renders (P1B with W01/W02/W05 shows clear brows; P4B W10 is darker than the brows photo)
- Evidence
- Lab wave 2 measurements on rec__ fixtures
- Consequence / fix
- applyBrows only ever darkens; never lighten brows hair-transfer drew
- What we tested
- Makeup-vto default skin smoothing
- What YouCam actually does
- Without a
skin_smootheffect YouCam smooths skin at 50 by default (makeup-vto docs). Sending{"category":"skin_smooth","skinSmoothStrength":0,"skinSmoothColorIntensity":0}removed the lightening: forehead -0.3, cheeks +0.1, nose -0.2 L* (was +4 to +5); the chin point on the jaw edge read +6.5 (unreliable spot) - Evidence
- P1B lashes test 22 Oct (1 unit)
- Consequence / fix
- Always send skin_smooth 0 with makeup-vto, and still composite only the feature region
- What we tested
- Eyelashes (makeup-vto
eyelashes, pattern Natural1, #2B1D16 at 80) - What YouCam actually does
- Natural upper and lower lashes on a bald, lash-sparse face; 1 unit, 11 s
- Evidence
- P1B lashes test 22 Oct
- Consequence / fix
- Lashes are supported; composite with the lash mask
- What we tested
- Hair-transfer request options (v2.1 docs and OpenAPI bundle, checked 23 Oct)
- What YouCam actually does
- No skin smoothing, beautify or retouch setting exists: the request takes only the source and reference (or a template) and
hair_color - Evidence
- docs.perfectcorp.com/_bundle/reference/ai_hairstyle.yaml
- Consequence / fix
- Nothing to turn off; the integrity check measures every render (row 16)
- What we tested
- Try-on through YouCam's beauty MCP server (
tools/callAI-Hair-Style-Virtual-Try-On,polling:false, public image URLs) - What YouCam actually does
- Returns a
task_idat once; the REST API polls that same task (GET /s2s/v2.1/task/hair-transfer/{id}) to success in 6 s and deletes it (POST /s2s/v2.0/task/delete); 2 units, same as REST. The delete took a few seconds to apply: an immediate poll still answered, thenInvalidTaskId - Evidence
- MCP test 23 Oct (P1B x W03, 2 units)
- Consequence / fix
- MCP and REST interoperate; any MCP task can be polled, metered and deleted with our REST client
Wig kill test summary
All test images are AI-generated (Gemini).
- Calls: 54 (p0, p1, p10, p2, p4, p5, p6, p7, p8, p9); success 46
- Units spent: 106.0 of the 150 cap; balance now 285.0
- Latency: p50 8.8 s, p90 20.6 s
- Errors by code: {'unknown_internal_error': 1, 'error_face_angle_invalid': 1, 'error_no_face': 6}
- Params on every P1 call: src_file_id, ref_file_id, hair_color="ref" (docs: take the colour from the reference)
Verdict
- P1 passes (>= 4 on all three): 16 of 16 (need >= 10; early stop if fewer than 4 look like the wig)
- Passes per face: {'F1': 4, 'F2': 4, 'F3': 4, 'F4': 4} (need >= 2 each)
- Reference type stores use: on-model (P1) works; mannequin/flat (P2): all rejected, error_no_face, 0 units
PASS so far (P1 criteria met)
Per phase
- p0: F1__template_female_sleek_middle_part success (2.0u, 8.8s)
- p1: F1__W1 success (2.0u, 8.9s), F1__W2 success (2.0u, 9.1s), F1__W3 success (2.0u, 9.6s), F1__W4 success (2.0u, 9.4s), F2__W1 success (2.0u, 8.8s), F2__W2 success (2.0u, 8.8s), F2__W3 success (2.0u, 9.2s), F2__W4 success (2.0u, 8.8s), F3__W1 success (2.0u, 8.8s), F3__W2 success (2.0u, 8.7s), F3__W3 success (2.0u, 8.8s), F3__W4 success (2.0u, 8.9s), F4__W1 success (2.0u, 8.8s), F4__W2 success (2.0u, 8.8s), F4__W3 success (2.0u, 8.8s), F4__W4 success (2.0u, 8.9s)
- p10: F1__hairlength success (2.0u, 20.5s), F2__hairlength success (2.0u, 8.8s), F3__hairlength error unknown_internal_error (0.0u, 20.5s), F3__hairlength__retry success (2.0u, 8.8s), F4__hairlength success (2.0u, 8.7s), F5__hairlength success (2.0u, 8.8s), F6__hairlength success (2.0u, 8.8s), F7__hairlength success (2.0u, 16.6s), G1__hairtype error error_face_angle_invalid (0.0u, 5.8s)
- p2: F1__W5 error error_no_face (0.0u, 4.9s), F1__W6 error error_no_face (0.0u, 4.9s), F1__W7 error error_no_face (0.0u, 5.0s), F2__W5 error error_no_face (0.0u, 12.7s), F2__W6 error error_no_face (0.0u, 4.9s), F2__W7 error error_no_face (0.0u, 4.9s)
- p4: F2__template_female_sleek_middle_part success (2.0u, 8.7s), F3__template_female_sleek_middle_part success (2.0u, 8.7s)
- p5: F5__H1 success (2.0u, 12.8s), F5__H2 success (2.0u, 20.7s), F5__W1 success (2.0u, 8.8s)
- p6: F2__W2__rerun success (2.0u, 16.6s), F4__W3__rerun success (2.0u, 20.4s)
- p7: S1__W1 success (2.0u, 28.3s), S1__W4 success (2.0u, 24.5s), S2__W1 success (2.0u, 32.2s), S2__W4 success (2.0u, 28.4s), S3__W1 success (2.0u, 20.6s), S3__W4 success (2.0u, 12.7s)
- p8: F1__W8 success (2.0u, 8.8s), F6__W1 success (2.0u, 8.9s), F6__W4 success (2.0u, 12.7s), F6__W8 success (2.0u, 8.8s), F6__makeup_brows success (1.0u, 8.9s)
- p9: F1__makeup_brows success (1.0u, 9.1s), F1__skintone success (20.0u, 8.8s), F2__makeup_brows success (1.0u, 10.0s), F3__makeup_brows success (1.0u, 8.9s)
- p3: skipped (no R files)
Flags (from looking at the results)
- P2: hair-transfer rejects wig photos with no face in them (mannequin head, flat lay): error_no_face, 0 units. Only on-model wig photos work as references.
- P5: F5 (buzz cut) x W1 did NOT give error_hair_too_short. It succeeded (2 units) and looks convincing, which matters for hair-loss users.
- P5: scarf and hat APIs do not keep the person. They generate a new full-body fashion scene (new outfit, street background, different-looking person). Not usable as an on-me try-on for headwear.
- P4 / P0: the built-in template turned F1 and F3 grey although keep_users_color is true; F2 kept black. Template colour is unreliable; custom references with hair_color=ref were faithful.
- P6: both reruns look the same as the first run (stable).
- P7: all 6 phone-style selfies worked: glasses kept, ponytail and braids replaced cleanly, home/kitchen/park backgrounds kept. No error codes.
- Background, face and clothing unchanged in every hair-transfer result we looked at; no visible skin tone shift (judged by eye).
- P8 bald (F6): wigs W1 and W4 both work on a fully bald head (no error, convincing hairline).
- P8 head wrap via hair-transfer: W8 (person wearing a wrap) used as the reference puts the wrap on F1 and F6, face, skin and background kept. Hair-transfer can do head wraps when the reference is worn by a person. W8 source is only 778x768 (under 1024).
- P10 hair length (labels saved first in labels.json; 2 units each, 12 spent): F1 medium -> 'above chest' (= the docs' Medium-Length) MATCH; F2 short -> 'short hair' MATCH; F3 long -> error unknown_internal_error, 0 units, not retried; F4 short -> 'short hair' MATCH; F5 above ear -> 'above the ears' MATCH; F6 bald -> 'above the ears' WRONG (there is no 'no hair' answer, it reports hair on a bald head); F7 medium -> 'above chest' MATCH. 5 of 7 match, 1 error, 1 wrong.
- P10 hair type on F2: NOT RUN (the side views sent were a different woman). Run instead on G1 (that fair woman, label type 1 straight; front + right + left, all 768x1024): error_face_angle_invalid, 0 units, not retried. Possible cause: our right/left assignment (docs order frontFace, rightFace, leftFace) or the side turn not meeting the angle rule.
- P10 F3 length retry: success, 'long hair' = label long. The first F3 error was transient.
- P9 brow fairness (same brow call on F1, F2, F3 + F6): makeup-vto's default skin smoothing (row 20) lightens every face by about the same amount, forehead +4.6 to +5.0 L*, cheeks +4.1 to +5.0 L*, F6 scalp +4.8. It does NOT depend on skin tone, but it is visible on all of them.
- P9 brow fix (0 units): brows pasted back with a feathered landmark mask (MediaPipe brow outline, grown 35%), after removing the global shift measured on a skin ring around the brows. Forehead, cheeks and scalp: 0.0 L* change on all four faces. Brows stay visible (brow area 2.6 to 4.8 L* darker than the original on F1, F3, F6). F2's own brows are darker than the brow colour sent, so her brow area came out 1.3 L* lighter: pick the brow colour from her own brows or hair, not a fixed brown.
- P9 skin-tone-analysis (20 units, F1): returns a hair colour. results.color = eye_color, eye_color_name, lip_color, eyebrow_color, skin_color, hair_color (#42280E), hair_color_name (Brown); face_quality = has_face, area (toosmall at 768x1024), frontal, lighting, faceangle. F1's hair is light brown with grey; it read a darker brown.
- P8 brows (makeup-vto, 1 unit): eyebrows shape Arrow1 (Soft Arch, Balanced), definition 30, #3a2a22 at 60% matte. A soft natural brow is drawn, but YouCam's default skin smoothing (row 20) made the whole face lighter: measured +4.5 to +5.4 L* on forehead, cheek and scalp. That is a visible skin-lightening on deep skin. Fix to test: paste only the brow region back onto the original (as LookShift does for lips).