Skip to content

AI Hair Color Virtual Try-On

Overview

Explore a wide range of hair colors with our hair color changer! Try the hair color you've always dreamed of and experiment with new shades you’ve never tried before. Easily adjust the intensity of your chosen color with sliders for a customized look.

  • Upload Your Image

Upload the photo you want to change hair color for.

  • Choose Preset Colors or Customize by Pattern and Palettes

Choose from predefined color presets or fine tune by adjusting the ombre coverage and blend for unlimited possibilities!

Warning: If both a preset and pattern + palettes are specified, the preset will take priority.

Warning: Your source image needs to contain the hair section for dyeing, so double-check before applying. Make sure your source image includes the hair area you want to dye — it's your responsibility to get it right.

File Specs & Errors

  • Supported Formats & Dimensions
AI FeatureSupported DimensionsSupported File SizeSupported Formats
AI Hair Colorlong side < 1920, face width >= 100< 10MBjpg/jpeg/png
  • Error Codes
Error CodeDescription
error_below_min_image_sizethe size of the source image is smaller than minimum (expect: width >= 320px, height >= 320px)
error_exceed_max_image_sizethe size of the source image is larger than maximum (expect: width < 1920px, height < 1080px)
  • 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

Unit Consumption

AI FeatureUnit Consumed
AI Hair Color Virtual Try-On V1.01 unit for Full Mode
1 unit for Ombre Mode

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