AILabTools
  1. General
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
        POST
      • Food Background Removal
        POST
      • Product background removal
        POST
      • Costume background removal
        POST
  • AI PORTRAIT
    • Portrait effects
      • Cartoon yourself
      • Merge Portraits
      • Smart Beauty
      • AI Skin Beauty
      • AI Face Slimming
      • Face Beauty
      • AI Makeup
      • Face Filters
      • Facial aesthetics
      • Change facial expressions
      • Hairstyle changer
      • Hairstyle changer Pro
      • Bring photos to life
      • Photo to 3d slow-motion
      • Face Blur
      • Age & Gender swap
      • AI Face Enhancer
      • Lips Color Changer
    • Portrait Analysis
      • Face Key Points
      • Detect Skin Disease
      • Skin analyze
      • Skin analyze Advanced
      • Skin analyze Pro
      • Face Analyzer
  • AI COMMON
    • Querying asynchronous task results
      GET
    • Querying credits
      GET
  1. General

Costume background removal

开发环境
开发环境
POST
/api/cutout/general/apparel-background-removal
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/cutout/general/apparel-background-removal' \
--header 'ailabapi-api-key;' \
--form 'image=@""' \
--form 'cloth_class=""' \
--form 'return_form=""'
响应示例响应示例
{
  "error_code":     0,
  "error_code_str": "",
  "error_msg":      "",
  "request_id":     "",
  "log_id":         "",
  "data":           {
    "elements": [
      {
        "image_url": ""
      },
      {
        "class_url": {
          "tops":  "",
          "coat":  "",
          "skirt": "",
          "pants": "",
          "bag":   "",
          "shoes": "",
          "hat":   ""
        }
      }
    ]
  }
}

请求参数

Header 参数
ailabapi-api-key
string 
必需
Application API KEY.
Body 参数multipart/form-data
image
file 
必需
cloth_class
string 
必需
Clothing categories. Multiple values can be submitted at once, separated by commas (,).
  • tops: Tops.
  • coat: Coat.
  • skirt: Skirt.
  • pants: Pants.
  • bag: Bag.
  • shoes: Shoes.
  • hat: Hat.
  • return_form
    string 
    必需
    Specify the desired image format for the output.
  • whiteBK: Returns an image with a white background.
  • mask: Returns a single-channel mask.
  • If not specified, a four-channel PNG image will be returned.
  • 返回响应

    ⚪0Costume background removal
    application/json
    Body
    error_code
    integer 
    必需
    error_code_str
    string 
    必需
    error_msg
    string 
    必需
    request_id
    string 
    必需
    log_id
    string 
    必需
    data
    object 
    必需
    elements
    array [object {2}] 
    必需
    上一页
    Product background removal
    下一页
    Cartoon yourself
    Built with