1. Create Task
  • Get Started
  • API Reference
    • Create Task
      • Image To Video
        POST
      • Instruct Edit
        POST
      • Try-On (Apparel)
        POST
      • Try-On (Accessories)
        POST
      • Lifestyle Scene
        POST
      • Swap Fashion Model
        POST
      • Background Replacer
        POST
      • Segment Image By Prompt
        POST
      • Segment Image By Type
        POST
      • Background Remover
        POST
    • Get Upload URL
      GET
    • Upload File
      PUT
    • List Preset Materials
      GET
    • Retrieve Generation Task Status
      GET
    • Download Generated Result
      GET
    • Retrieve API Credit Usage
      GET
  • Help
    • Download File Samples
    • Error Codes
    • FAQ
  1. Create Task

Background Remover

POST
https://api.sellerpic.ai/v1/api/generate/removeBackground
Before creating a task, please ensure all required resources have been uploaded.
1.
Request Upload File URL
2.
Upload File
Upload file limit:
Supported formats: JPG/JPEG/PNG/WEBP (no animations)
Max file size: 10MB
Max image resolution: 4096px
product_image.pngProduct Image
Credit Cost
This task costs 1 credit.
Concurrency Limits: 10
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.sellerpic.ai/v1/api/generate/removeBackground?productImageKey&type'
Response Response Example
{
    "code": 0,
    "data": {
        "id": "string"
    },
    "msg": "string",
    "success": true,
    "traceId": "string"
}

Request

Query Params
productImageKey
string 
required
Product Image storage key
type
string 
optional
Remove background type (Must be one of COMMON, PORTRAIT, PRODUCT, CLOTHING, HAIR, AVATAR), default is COMMON

Responses

🟢200Success
application/json
Body
code
integer <int32>
required
Result code, where 0 indicates success and non-0 indicates an error.
Please refer to Error Codes
data
object (IdData«string») 
optional
id
string 
required
Task Id
msg
string 
optional
Description of the result, providing additional context or information about the operation outcome.
success
boolean 
required
traceId
string 
required
Trace ID for tracking the request across distributed systems.
Modified at 2025-07-10 10:27:26
Previous
Segment Image By Type
Next
Get Upload URL
Built with