Skip to content

3.25 → 3.29

The 3.25 → 3.29 transition is additive — no payload field that existed in 3.25.0 changes shape or disappears. New components and a new status code arrive; one schema maximum is corrected.

  • New components you may want to opt into: skin_type (with skin_type_visualization). hyperpigmentation_adjusted is also new — an alternative hyperpigmentation score for special cases; hyperpigmentation remains the standard choice.
  • One new status code: 99 (custom-context, undefined failure). Status code 1121 is obsolete, and acne now returns 3000 when certain image-quality warnings are present.
  • The schema maximum for visualization intensities was corrected from 500 to 2500 to match actual acne_visualization output. If your UI clamps at 500, raise it.
  • Treat local_warnings[] codes as advisory, not contractual: render whatever findings come back, hide the cards that don’t.

If you generate clients from the OpenAPI document, point your generator at the new spec:

  • Live URL: https://api.revieve.com/openapi/skin-analysis.yaml
  • Or pin to a commit in this repo.

99 is a generic error code that can be raised wherever a failure has no more specific code. Currently only makeup eye-colour analysis emits it, in that finding’s local_warnings[] — hide that result; the other findings are still usable. Handle it by where it appears, like any other error: in status[] it means the whole analysis failed. See Status codes.

Add to your components query string only what your UI surfaces:

?components=wrinkles,redness,acne,hyperpigmentation
?components=wrinkles,redness,acne,hyperpigmentation,skin_type

Each new component adds work for the model. Don’t request what you don’t render.

acne_visualization intensities are on a [0, 2500] scale. The schema previously declared a maximum of 500 for visualization intensities; 3.29.1 corrects it to 2500 to match actual output. If your renderer clamps at 500, raise it to 2500.

5. Code defensively against local_warnings[]

Section titled “5. Code defensively against local_warnings[]”

The local_warnings[] array is advisory, not a stable contract. Render whatever findings come back; hide the cards whose local_warnings[] indicates an unusable result for that metric. Don’t hard-fail the whole UI on any specific code.

  • The endpoint path and authentication model.
  • The image requirements (JPEG, ≥ 600×600).
  • The shape of face_area, top-level status, and inverse_color_balance_rb.
  • The value normalisation (0..1) on numeric findings.
  • The deprecation of value_raw.

You can’t pin the API to an older version — each environment runs a single version. Because the change is additive, a client written against 3.25.0 keeps working on 3.29.1 unchanged; the new components only appear if you request them.