Smart Erasing Pro (asynchronous)

Updated at:

1. Overview

Smart Erasing Pro is designed specifically for e-commerce images. It automatically detects and removes elements like text, specific names, transparent text blocks, and unwanted overlays. You can specify which objects to remove to efficiently process images in batches and simplify your editing workflow.

2. Use cases

  • Efficient e-commerce image processing

Remove irrelevant visual elements to create a clearer product display and improve the shopping experience.

  • Synchronize product information across multiple platforms

When listing products on different e-commerce platforms, you can quickly remove specific text and unwanted overlays to meet each platform's image requirements.

3. Features

  1. The service distinguishes between the image subject and the image background. You can specify whether to remove objects from the subject or the background. The service offers two integration methods: API and editor.

    1. Image subject: The core product area within the image.

    2. Image background: The part of the image outside the image subject.

  2. You can remove four types of objects: text, specific names, transparent text blocks, and unwanted overlays. Review the examples below to choose the right removal settings.

4. Before and after

Original image

Processed image

image.jpeg

image.png

image.jpeg

image.png

5. Developer guide

5.1 Request parameters

Parameter

Type

Required

Description and Example

ImageUrl

String

Yes

The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format.

· Resolution: 256×256 pixels or larger. The long edge cannot exceed 1920 pixels, and the short edge cannot exceed 1080 pixels. File size: ≤ 5 MB.

Example: "https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg"

Async

Boolean

No

Pass true to perform an asynchronous call.

5.2 Request example

{
  "ImageUrl": "https://gw.alicdn.com/imgextra/i3/O1CN01iHeLh71pOM6Hb1Wh4_!!6000000005350-0-tps-800-800.jpg",
  "Async": true
}

5.3 Response parameters

Response parameters

Parameter

Type

Description

Code

String

The status code. Example: "success".

Success

Boolean

Indicates if the request succeeded. Returns true on success or false on failure.

Message

String

The error message. Example: "The parameter contains sensitive information. Try another input."

RequestId

String

A unique identifier for the API call.

Data

Object

The returned result object.

Data.ImageUrl

String

The URL of the processed image.

Data.UsageMap

Object

Usage information.

Data.UsageMap.ProcessedImageCount

Number

The number of processed images.

Response example

{
  "Data": {
    "ImageUrl": "https://aib-image.oss-ap-southeast-1.aliyuncs.com/ai_desc%2Fc2a0fb38-bdb4-4464-8409-6e18a82171d80.jpg",
    "UsageMap": {
      "ProcessedImageCount": 1
    }
  },
  "RequestId": "9894FF16-EC66-1CFC-97FD-4E15EECA0DF5",
  "Message": "Success",
  "Success": true
}

5.4 Error codes

For more information, see Error codes.

6. Integration

6.1 Prerequisites

Smart Erasing Pro supports both synchronous and asynchronous calls. This topic describes the asynchronous API. For synchronous calls, see Smart Erasing Pro.

This API uses the same result retrieval process, RocketMQ subscription rules, encryption protocol, and consumer code as other asynchronous services.

For details on the integration process, message format, and encryption, see Asynchronous API call instructions.

7. Billing

CNY 0.12 per image

8. Limitations

  • Call mode: Supports asynchronous calls. The default queries per second (QPS) is 5.

  • Input image: JPG, JPEG, PNG, BMP, or WEBP.

    • Asynchronous: The resolution must be 256×256 or higher. The long edge cannot exceed 1920 pixels, and the short edge cannot exceed 1080 pixels. The file size must be 5 MB or less.

  • Billing: This service is billed based on the ProcessedImageCount. For more information, see Material Optimization Billing.