Img Open English
  1. image tool
Img Open English
  • AI image generation
    • sd text2image
      POST
    • sd Image to Image
      POST
    • sd controlnet
      POST
    • QueryModelList
      POST
    • QueryLoralList
      POST
    • QueryVaeList
      POST
    • queryEmbeddingList
      POST
  • task query
    • queryTaskInfoV1.0
      POST
    • queryTaskInfoV2.0
      POST
    • queryImageToolTaskInfo
      POST
  • train model
    • Submit training task
    • Training result query
  • image tool
    • Flux text2image
      POST
    • Single Face Swap V1.0
      POST
    • Single Face Swap V2.0
      POST
    • instantID
      POST
    • Face restoration
      POST
    • Super Resolution
      POST
    • image description
      POST
    • Multiple Face Swap
      POST
    • Face Detection
      POST
    • Prompt expansion
      POST
    • Hairstyle changer
      POST
    • Object Removal
      POST
    • Style recognition
      POST
    • Outpainting
      POST
    • CNT preview
      POST
    • background remove
      POST
    • image enlarge
      POST
    • image watermark
      POST
  1. image tool

Hairstyle changer

POST
/AIGCImgOpenServ/saas/tool/hair/change

Request

Header Params
X-Request-req-accessKeyId
string 
required
身份鉴权ID
X-Request-req-accessKeySecret
string 
required
身份鉴权密码
Body Params application/json
businessTaskId
string 
required
facePath
string 
required
Hair style change target image uploaded by user
shapePath
string 
required
Reference hairstyle images
colorPath
string 
required
Reference hairstyle color
callbackUrl
string 
optional
callback address
Example
{
  "businessTaskId": "business_task_id_35377fd103e9",
  "facePath": "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/bbbb/wanqian2.jpg",
  "shapePath": "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/bbbb/lijin_01.jpg",
  "colorPath": "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/bbbb/wanqian2.jpg"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.zhiqite.com/AIGCImgOpenServ/saas/tool/hair/change' \
--header 'X-Request-req-accessKeyId;' \
--header 'X-Request-req-accessKeySecret;' \
--header 'Content-Type: application/json' \
--data-raw '{
  "businessTaskId": "business_task_id_35377fd103e9",
  "facePath": "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/bbbb/wanqian2.jpg",
  "shapePath": "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/bbbb/lijin_01.jpg",
  "colorPath": "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/bbbb/wanqian2.jpg"
}'

Responses

🟢200OK
application/json
Body
code
string 
required
msg
string 
required
data
object 
required
businessTaskId
string 
required
outputImageUrl
string 
required
Output image url
status
integer 
required
Task status
taskId
string 
required
Example
{
    "code": "200",
    "data": {
        "businessTaskId": "business_task_id_35377fd103e9",
        "outputImageUrl": "https://aigcoss.zhiqiteai.cn/tool/hairstyle/2024-06-11/ce265bc7-dcc4-4807-91f6-48428a681d12.png",
        "status": 2,
        "taskId": "pre1718095929488816897049",
        "toolTask": "hairChange"
    },
    "msg": "success"
}
Modified at 2024-08-09 01:13:36
Previous
Prompt expansion
Next
Object Removal
Built with