flux-kontext-apps/change-haircut 🔢❓🖼️ → 🖼️

⭐ Official ▶️ 116.7K runs 📅 May 2025 ⚙️ Cog 0.16.8
hair-editing hairstyle-try-on image-editing image-to-image

About

Quickly change someone's hair style and hair color, powered by FLUX.1 Kontext [pro]

Example Output

Output

Example output

Performance Metrics

6.20s Prediction Time
6.21s Total Time
1 Images
All Input Parameters
{
  "gender": "none",
  "haircut": "Random",
  "hair_color": "Random",
  "input_image": "https://replicate.delivery/pbxt/N5o15ynZVT5jiV825Y4DdB1sBV0xR3kdGq6Wf44dY98brb7o/replicate-prediction-f2d25rg6gnrma0cq257vdw2n4c.png",
  "aspect_ratio": "match_input_image"
}
Input Parameters
seed Type: integer
Random seed. Set for reproducible generation
gender Default: none
The gender of the person
haircut Default: No change
The haircut to give them
hair_color Default: No change
The color of the person's hair
input_image (required) Type: string
Image of the person's haircut you want to edit. Must be jpeg, png, gif, or webp.
aspect_ratio Default: match_input_image
Aspect ratio of the generated image. Use 'match_input_image' to match the aspect ratio of the input image.
output_format Default: png
Output format for the generated image
safety_tolerance Type: integerDefault: 2Range: 0 - 2
Safety tolerance, 0 is most strict and 2 is most permissive. 2 is currently the maximum allowed.
Output Schema

Output

Type: stringFormat: uri

Example Execution Logs
Random haircut: Cornrows
Random hair color: Ash Blonde
Prompt: Give them a Cornrows haircut with Ash Blonde colored hair
Using seed: 1379071166
Generating...
Generated image in 4.8sec
Downloading 1330877 bytes
Downloaded 1.27MB in 1.28sec
Version Details
Version ID
efc7677e8b21e2b34f398472aa07d34ab8bc5fbdafce5a374e02dd028bc45294
Version Created
October 13, 2025
Run on Replicate →