Skip to main content
Black Forest Labs빠름높음

Change Haircut

FLUX.1 Kontext [pro] 기반으로 사진 한 장에서 헤어스타일과 머리 색을 바꿉니다. 90개 이상의 헤어스타일과 30가지 머리 색 중 선택하거나 'Random'으로 랜덤 변신 — 얼굴은 그대로 유지됩니다.

93 크레딧
이미지당 (고정)
밥컷·브레이드·업두·페이드·웨이브 등 90개 이상의 헤어스타일 프리셋
자연스러운 색부터 로즈골드·블루·실버까지 30가지 머리 색
얼굴은 그대로, 머리만 바꾸는 정체성 보존 편집
즉흥적인 스타일 탐색을 위한 'Random' 옵션
haircut과 hair_color 독립 제어 (둘 중 하나만 또는 동시 변경)

지금 바로 실행해보세요

콘솔의 Playground에서 별도 코드 없이 이 모델을 즉시 테스트할 수 있어요

로그인 후 사용해보기

AI 어시스턴트에서 사용하기

이 모델의 사용법을 Claude, ChatGPT 등에 복사

빠른 시작

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "flux-kontext-apps/change-haircut",
  "input": {
    "input_image": "https://example.com/portrait.png",
    "gender": "none",
    "haircut": "Random",
    "hair_color": "Random",
    "aspect_ratio": "match_input_image"
  }
}'

파라미터

파라미터타입필수기본값설명
seedintegerNo-랜덤 시드. 설정 시 재현 가능한 생성
genderstringNonone인물의 성별 (선택적 힌트)
nonemalefemale
haircutstringNoNo change적용할 헤어스타일 — Bob, Pixie Cut, Layered, French Braid, Undercut, Slicked Back, Hollywood Waves, Box Braids, Chignon 등 90개 이상의 프리셋. 'Random'은 무작위 선택
No changeRandomStraightWavyCurlyBobPixie CutLayeredMessy BunHigh PonytailLow PonytailBraided PonytailFrench BraidDutch BraidFishtail BraidSpace BunsTop KnotUndercutMohawkCrew CutFaux HawkSlicked BackSide-PartedCenter-PartedBlunt BangsSide-Swept BangsShagLobAngled BobA-Line BobAsymmetrical BobGraduated BobInverted BobLayered ShagChoppy LayersRazor CutPermOmbréStraightenedSoft WavesGlamorous WavesHollywood WavesFinger WavesTousledFeatheredPageboyPigtailsPin CurlsRollersetTwist OutBantu KnotsDreadlocksCornrowsBox BraidsCrochet BraidsDouble Dutch BraidsFrench Fishtail BraidWaterfall BraidRope BraidHeart BraidHalo BraidCrown BraidBraided CrownBubble BraidBubble PonytailBallerina BraidsMilkmaid BraidsBohemian BraidsFlat TwistCrown TwistTwisted BunTwisted Half-UpdoTwist and Pin UpdoChignonSimple ChignonMessy ChignonFrench TwistFrench Twist UpdoFrench RollUpdoMessy UpdoKnotted UpdoBallerina BunBanana Clip UpdoBeehiveBouffantHair BowHalf-Up Top KnotHalf-Up, Half-DownMessy Bun with a HeadbandMessy Bun with a ScarfMessy Fishtail BraidSideswept PixieMohawk FadeZig-Zag PartVictory Rolls
hair_colorstringNoNo change적용할 머리 색. 'Random'은 무작위 선택
No changeRandomBlondeBrunetteBlackDark BrownMedium BrownLight BrownAuburnCopperRedStrawberry BlondePlatinum BlondeSilverWhiteBluePurplePinkGreenBlue-BlackGolden BlondeHoney BlondeCaramelChestnutMahoganyBurgundyJet BlackAsh BrownAsh BlondeTitaniumRose Gold
input_imagestringYes-헤어스타일을 바꿀 인물 이미지 (jpeg, png, gif, webp)
aspect_ratiostringNomatch_input_image생성 이미지의 화면 비율. 'match_input_image'는 입력 이미지 비율 유지
match_input_image1:116:99:164:33:43:22:34:55:421:99:212:11:2
output_formatstringNopng생성 이미지의 출력 포맷
jpgpng
safety_toleranceintegerNo2안전 허용 수준. 0이 가장 엄격하고 2가 가장 관대하며, 현재 최대 허용치는 2입니다.

파일 입력 방법

이 모델의 input_image 파라미터에 파일을 전달하는 방법은 3가지입니다.

추천

간편 업로드 (Multipart)

POST /v1/predictions/upload에 파일을 직접 첨부합니다. 별도 업로드 과정이 필요 없습니다.

curl -X POST "https://api.core.today/v1/predictions/upload" \
  -H "X-API-Key: cdt_your_api_key" \
  -F "model=flux-kontext-apps/change-haircut" \
  -F 'input={"prompt":"your prompt here"}' \
  -F "file:input_image=@your_file.png"

이미지 URL 전달

공개 접근 가능한 URL을 직접 전달합니다. Storage API로 업로드한 파일의 file_url도 사용 가능합니다.

{
  "model": "flux-kontext-apps/change-haircut",
  "input": {
    "prompt": "your prompt here",
    "input_image": "https://example.com/image.jpg"
  }
}
File Upload 문서에서 Presigned URL 방식 등 더 자세한 업로드 방법을 확인하세요.

공통 파라미터

POST /v1/predictions 요청 시 사용되는 공통 파라미터입니다.

파라미터타입필수기본값설명
modelstringYes-모델 식별자
inputobjectYes-위 테이블의 모델별 파라미터를 포함하는 객체
output_folderstringNo-결과물 저장 폴더 경로 (최대 256자, '..' 사용 불가)
webhook_urlstringNo-완료 시 호출할 Webhook URL
is_publicbooleanNofalsetrue 시 결과물을 영구 공개 URL로도 제공

예제

랜덤 변신

헤어스타일과 머리 색 모두 모델이 무작위로 선택

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "flux-kontext-apps/change-haircut",
  "input": {
    "input_image": "https://example.com/portrait.png",
    "gender": "none",
    "haircut": "Random",
    "hair_color": "Random",
    "aspect_ratio": "match_input_image"
  }
}'

머리 색만 변경

헤어스타일은 그대로 두고 로즈골드 색만 체험

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "flux-kontext-apps/change-haircut",
  "input": {
    "input_image": "https://example.com/portrait.png",
    "haircut": "No change",
    "hair_color": "Rose Gold"
  }
}'

팁 & 모범 사례

1haircut 또는 hair_color를 'No change'로 두면 둘 중 하나만 바꿀 수 있습니다
2머리카락과 헤어라인이 잘 보이는 사진일수록 자연스러운 결과가 나옵니다
3시드를 고정하면 같은 사진에서 여러 헤어스타일을 동일 조건으로 비교할 수 있습니다
4긴 머리에서 Crew Cut 같은 과감한 변화도 가능하지만, 머리가 잘리지 않은 사진이 가장 좋습니다
5실존 인물 사진은 반드시 본인 동의 하에만 사용하세요

사용 사례

미용실 가기 전 가상 헤어스타일 체험
헤어숍 상담·룩북 도구
염색 제품 마케팅용 머리 색 시뮬레이션
크리에이티브 프로젝트의 캐릭터·페르소나 베리에이션
재미있는 소셜 미디어 변신 콘텐츠

모델 정보

제공자Black Forest Labs
버전-
카테고리이미지 생성
가격93 크레딧

API Endpoint

POST /v1/predictions
콘솔에서 테스트문서로 돌아가기