AILabTools
  1. Portrait effects
AILabTools
  • 简介
  • AI IMAGE
    • Image Enhancement
      • Image Dehaze
      • Image Upscaler
      • Stretched Image Restoration
      • Image sharpness enhancement
      • Image contrast enhancement
      • Image color enhancement
    • Image Effects
      • AI Cartoon Generator
      • AI Photo Colorize
      • Photo to Painting
      • Style transfer
      • Color Migration
      • HD color migration
      • Image Micro Motion
    • Image Editing
      • AI Image cropping
      • Intelligent Composition
      • Photo retouch
      • Image Invisible Picture Watermark
      • Image Invisible Text Watermark
      • Image Erasure
    • Image scoring
      • Image composition aesthetics score
      • Image exposure score
    • Querying asynchronous task results
      GET
  • AI BACKGROUND REMOVAL
    • Portrait
      • Human background removal
      • Head Extraction
      • Hairstyle Extraction
    • General
      • Universal Background Removal
      • Food Background Removal
      • Product background removal
      • Costume background removal
  • AI PORTRAIT
    • Portrait effects
      • Cartoon yourself
        POST
      • Merge Portraits
        POST
      • Smart Beauty
        POST
      • AI Skin Beauty
        POST
      • AI Face Slimming
        POST
      • Face Beauty
        POST
      • AI Makeup
        POST
      • Face Filters
        POST
      • Facial aesthetics
        POST
      • Change facial expressions
        POST
      • Hairstyle changer
        POST
      • Hairstyle changer Pro
        POST
      • Bring photos to life
        POST
      • Photo to 3d slow-motion
        POST
      • Face Blur
        POST
      • Age & Gender swap
        POST
      • AI Face Enhancer
        POST
      • Lips Color Changer
        POST
    • Portrait Analysis
      • Face Key Points
      • Detect Skin Disease
      • Skin analyze
      • Skin analyze Advanced
      • Skin analyze Pro
      • Face Analyzer
  • AI COMMON
    • Querying asynchronous task results
    • Querying credits
  1. Portrait effects

Hairstyle changer

开发环境
开发环境
POST
/api/portrait/effects/hairstyle-editor
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/portrait/effects/hairstyle-editor' \
--header 'ailabapi-api-key;' \
--form 'image_target=@""' \
--form 'hair_type=""'
响应示例响应示例
{
  "error_code":     0,
  "error_code_str": "",
  "error_msg":      "",
  "request_id":     "",
  "log_id":         "",
  "data":           {
    "image": ""
  }
}

请求参数

Header 参数
ailabapi-api-key
string 
必需
Application API KEY.
Body 参数multipart/form-data
image_target
file 
必需
hair_type
string 
必需
Hairstyle type.
  • 101: Bangs (default)
  • 201: Long hair
  • 301: Bangs with long hair
  • 401: Medium hair increase
  • 402: Light hair increase
  • 403: Heavy hair increase
  • 502: Light curling
  • 503: Heavy curling
  • 603: Short hair (requires input size < 2048x2048; if the input is larger than 2048x2048, the output image will be resized to a maximum of 2048 on the longest side.)
  • 801: Blonde
  • 901: Straight hair
  • 1001: Oil-free hair (slight effect, recommended for images with noticeable issues)
  • 1101: Hairline fill (slight effect, recommended for images with noticeable issues of a high hairline)
  • 1201: Smooth hair (slight effect, recommended for images with a large hairstyle area)
  • 1301: Fill hair gap (slight effect, fills the scalp part in the hair area, recommended for images with noticeable issues)
  • 返回响应

    ⚪0Hairstyle changer
    application/json
    Body
    error_code
    integer 
    必需
    error_code_str
    string 
    必需
    error_msg
    string 
    必需
    request_id
    string 
    必需
    log_id
    string 
    必需
    data
    object 
    必需
    image
    string 
    必需
    上一页
    Change facial expressions
    下一页
    Hairstyle changer Pro
    Built with