Hair Color Try-On

Endless Hair Color Possibilities

Transform hair with virtually any color — from natural shades to bold creative tones — using customizable AI-powered hair color generation.

Hair color try-on
Portrait with the original dark hair The same portrait with copper hair The same portrait with burgundy hair The same portrait with honey blonde hair Honey
Shades
Copper#6E2E17 → #C8703F
Burgundy#3A0E1C → #7A1F3A
Honey#6B4A2C → #D3A86E
Honey applied
Hyper-Realistic Hair Color

Change the color. Keep the hair.

Generate realistic hair color transformations while preserving natural strands, texture, highlights, shadows and facial details.

One photo, recoloured
Original → RecolouredSame photo, one job
Portrait with the original natural dark hairThe same portrait recoloured to dark blonde, with strands and face unchanged
PreservedIn every result
StrandsTextureHighlightsShadowsFacial details
Preset & Custom Colors

Ready-to-use colors, or any color your way.

Offer a curated collection of preset hair colors for fast and consistent transformations, or go beyond presets with any hex colour.

Your photo
Preset colorsTap one to try it
Result
The same photo with copper hairCopper
Presets5 colors
BlackBrownCopperRedBlonde

Ready-to-use colors for fast and consistent transformations.

Custom · FullAny hex
Dark stopLight stopOpacity 0–1

The colour follows the hair’s own light and shadow.

Custom · OmbréTwo-tone
Dark stopLight stop

Darker tones take the dark stop, lighter tones the light stop.

Configure the colour

Each colour is two stops you control.

Pick a mode to see what it accepts. Your app sets the values; Morphia maps them across the hair’s own luminance.

Colour
Copper
Opacity
  • Dark stopPainted on the darker tones of the hair.
  • Light stopPainted on the lighter tones and highlights.
  • OpacityFrom 0 to 1 for each stop.
Request body · color_gradient
{  "color_gradient": {    "dark": { "color": "#6E2E17", "opacity": 0.9 },    "light": { "color": "#C8703F", "opacity": 0.9 }  }}
What You Can Build

Build hair color experiences with Morphia.

One API, five kinds of product. Pick a scenario to see what goes in and what comes out.

Scenario 01 · Hair color try-onTap a colour or option to try it

Let users preview colors on their own hair before choosing a shade.

9:41
Photo with the selected hair colour
Color Studio
Platinum
Hair colourPlatinum
Save this look
Hair Color Try-On APIreadyqueuedrunningsucceeded
POST/v1/hair/try-ons
{ "inputs": [{ "role": "source", "asset_id": "asset_6pa8ad0d" }], "color_gradient": { "dark": { "color": "#B9B2A6", "opacity": 0.9 }, "light": { "color": "#EEE8DC", "opacity": 0.95 } }}
202 Acceptedjob_4ryn2an9hmGET /v1/jobs/{id}succeededoutput.typehair.try_onoutput.imageimage/png

Each colour is a dark and a light stop. Morphia maps them across the hair’s own light and shadow, so strands, shine and roots stay natural.

InputA photo in your app
Morphia APIcolor_gradient · dark + light
OutputThe colour on their own hair
Your productShade picker, save the look

Connect your shade catalog to product pages, e-commerce experiences or marketplaces.

yourstore.com/hair/color-creme-permanent
Your brandHair colourCareTools
Shopper photo with the selected hair colourTry it on
Your brand · Permanent colour

Color Crème Permanent

★★★★★4.7 · 862 reviews
$14.00
Shade: 9.3 Honey
Add to bag
Hair Color Try-On APIreadyqueuedrunningsucceeded
POST/v1/hair/try-ons
{ "inputs": [{ "role": "source", "asset_id": "asset_6pa8ad0d" }], "color_gradient": { "dark": { "color": "#6B4A2C", "opacity": 0.85 }, "light": { "color": "#D3A86E", "opacity": 0.9 } }}# stops stored on SKU 9.3
202 Acceptedjob_4ryn2an9hmGET /v1/jobs/{id}succeededoutput.typehair.try_onoutput.imageimage/png

Store a dark and a light stop on each SKU once. Every shade on the product page becomes a try-on, one job per shade.

InputShopper photo on the PDP
Morphia APIcolor_gradient from the SKU
OutputThe shade on their hair
Your productShade picker, add to bag

Help clients visualize colors and transformations before their appointment.

studio.yoursalon.com/consult/client-118
Client photo with the stylist’s pickCopper
AKAyla K.Appointment · Thu 11:00
Stylist picks
Stylist note: soft balayage keeps her natural roots.Send before and after
Hair Color Try-On APIreadyqueuedrunningsucceeded
POST/v1/hair/try-ons
{ "inputs": [{ "role": "source", "asset_id": "asset_6pa8ad0d" }], "color_gradient": { "dark": { "color": "#6E2E17", "opacity": 0.9 }, "light": { "color": "#C8703F", "opacity": 0.85 } }}
202 Acceptedjob_4ryn2an9hmGET /v1/jobs/{id}succeededoutput.typehair.try_onoutput.imageimage/png

The stylist picks the options; each one is a gradient your salon app defines. Morphia renders them on the client’s photo before the visit.

InputClient photo
Morphia APIone gradient per option
OutputOptions on the client
Your productConsultation, booking

Combine recommendations with visual previews to help users explore the right color.

9:41
Photo with the suggested shade
Shade finder
Balayage
How much change?
Finding your shades…
3 shades for youBrighter
Shop this shade
Hair Color Try-On APIreadyqueuedrunningsucceeded
3 ×POST /v1/hair/try-ons
# your logic picks 3 shades;# one job per shade, same asset{ "inputs": [{ … "source" }], "color_gradient": { "dark": { "color": "#6B4A2C" }, "light": { "color": "#D3A86E" } }}
job · honeysucceededjob · dark blondesucceededjob · balayagesucceeded

Your recommendation logic picks the shades. Morphia renders each shade as its own job, so users compare on their own hair.

InputPhoto and answers
Morphia API3 jobs · one per shade
OutputThree shades on their hair
Your productRecommendations, shop

Bring realistic hair recoloring into beauty, editing and creative applications.

editor.yourapp.com/photo/hair
Photo with the custom gradientCanvas
Dark stop
#6E5A63
Light stop
#D7B5BE
Use my hair maskrole: hair_mask
Export
Hair Color Try-On APIreadyqueuedrunningsucceeded
POST/v1/hair/try-ons
{ "inputs": [ { "asset_id": "asset_6pa8ad0d", "role": "source" }, { "asset_id": "asset_9k2m1x7q", "role": "hair_mask" } ], "color_gradient": { "dark": { "color": "#6E5A63", "opacity": 0.85 }, "light": { "color": "#D7B5BE", "opacity": 0.9 } }}
202 Acceptedjob_4ryn2an9hmGET /v1/jobs/{id}succeededoutput.typehair.try_onoutput.imageimage/png

Any two hex stops, each with its own opacity. Already segment hair in your app? Send your own hair_mask and Morphia uses it instead of its own.

InputA photo, optional mask
Morphia APIcolor_gradient · hair_mask
OutputThe recoloured photo
Your productEditor, export
For Developers

Benefits for developers

1
Set upcurl + jq, API key from the Platform
export MORPHIAONE_API_KEY="pk_test_..." MORPHIAONE_BASE_URL="https://api.morphiaone.ai"
2
Upload and submitkey in X-API-Key
ASSET_ID=$(curl -s "$MORPHIAONE_BASE_URL/v1/assets" -H "X-API-Key: $MORPHIAONE_API_KEY" -H "Content-Type: image/jpeg" --data-binary @portrait.jpg | jq -r .id) curl -s -D h.txt "$MORPHIAONE_BASE_URL/v1/hair/try-ons" -H "X-API-Key: $MORPHIAONE_API_KEY" -H "Idempotency-Key: hair-001" -H "Content-Type: application/json" -d '{"inputs":[{"role":"source","asset_id":"'$ASSET_ID'"}],"color_gradient":{"dark":{"color":"#6E2E17","opacity":0.9},"light":{"color":"#C8703F","opacity":0.85}}}'
3
Get the imagepoll until succeeded
JOB=$(curl -s -H "X-API-Key: $MORPHIAONE_API_KEY" "$MORPHIAONE_BASE_URL$(grep -i ^location h.txt | cut -d' ' -f2 | tr -d '\r')") curl -s -H "X-API-Key: $MORPHIAONE_API_KEY" "$MORPHIAONE_BASE_URL$(echo "$JOB" | jq -r .output.image.href)" -o hair.png
View Documentation →

Flexible Inputs

Use custom colors and parameters to shape the experience around your product.

Consistent Outputs

Generate predictable results across different images and use cases.

Built for Product Experiences

Use the API across web, mobile, e-commerce or your own application.

Easy to Test

Experiment with inputs and parameters in Playground before integrating.

Explore the API

See what Hair Color API can do.

Upload an image, set a dark and a light colour stop and see the result before integrating it into your product.

The uploaded photoUploadedYour photo
Step 1Upload a photoHair visible, even light
dark · 0.9 light · 0.85
Step 2Set a gradientDark and light stop
The result in copper
Step 3Get the imageStrands and shine kept