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

background remove

Developing
POST
/AIGCImgOpenServ/saas/tool/background/remove

Request

Header Params
X-Request-req-accessKeyId
string 
optional
X-Request-req-accessKeySecret
string 
optional
Body Params application/json
businessTaskId
string 
required
imageUrl
string 
required
ext
string 
Picture saving format
optional
Value range {'png','jpg','jpeg','webp'}
modelName
string 
Model name
required
Value range:
InSPyReNet: more refined effects briaai: faster
color
array[integer]
RGB three-channel mode to set background color
optional
The default value None returns an RGBA image with a transparent channel. When a color is passed in, an RGB image with the specified color as the background is returned; the background color is set in RGB three-channel mode, such as [0,255,0] specifies that the background is pure green; the left side is taken The value range is for a single channel; this parameter is not used currently.
callbackUrl
string 
callback address
optional
Example
{
      "businessTaskId": "test111",
    "accessKeyId": "test111",
    "imageUrl": "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/zjy/three_test.webp",
    "ext": "png",
    "modelName": "InSPyReNet",
    "color": [255,255,255]
}

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/background/remove' \
--header 'X-Request-req-accessKeyId;' \
--header 'X-Request-req-accessKeySecret;' \
--header 'Content-Type: application/json' \
--data-raw '{
      "businessTaskId": "test111",
    "accessKeyId": "test111",
    "imageUrl": "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/zjy/three_test.webp",
    "ext": "png",
    "modelName": "InSPyReNet",
    "color": [255,255,255]
}'

Responses

🟢200成功
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": "string",
    "msg": "string",
    "data": {
        "businessTaskId": "string",
        "outputImageUrl": "string",
        "status": 0,
        "taskId": "string"
    }
}
Modified at 2024-08-09 01:33:01
Previous
CNT preview
Next
image enlarge
Built with