Image watermark removal

A watermark remover API for images. Removes watermarks, logos, text, and other overlays from images.

Basics

Tool ID SKM0006 ยท Category: image tools

1. Overview

Use cases

  • Batch-process e-commerce assets: remove logos, corner badges, and promotional watermarks.
  • Clean your own user-generated content before remixing it.
  • Normalize images from different sources to an overlay-free state before archiving them.

Before you call

Compliance

Only remove watermarks from media you own or are authorized to use. Processing other people's work without permission may infringe their rights.

Prepare your image. See "Limits" below for file requirements. Check the config API or SDK task catalog to confirm that your account can use SKM0006. Listing the catalog does not consume quota.

2. Try it

HTTP API
Python
CLI

First paste the setup commands from HTTP API quick start into Bash. They define vmake_run, which gets the config, consumes quota, submits the task, and polls until it finishes. Set media_url to a publicly readable image you are authorized to use. To use a local file, upload it to OSS first and use the resulting URL.

This command consumes quota.

media_url='Replace with your image HTTPS URL'
vmake_run SKM0006 '{"parameter":{"rsp_media_type":"url"}}' "$media_url"

The function prints data from the final response. When data.status is 10, read the output from data.result. When it is 2 or 20, read data.msg and see Errors and troubleshooting. To see each request on its own, follow the steps from Get config to Poll task status.

3. Parameters

With Python, pass the fields to override as a dict in params of SkillClient.run_task. With the CLI, pass the same structure as JSON to --params. With vmake_run, pass it as the second argument. For hand-built HTTP requests, merge these fields into the defaults from Get config, serialize the merged object as a JSON string, and use it as params in the submission request.

3.1 Result format (parameter.rsp_media_type)

Controls how the tool returns the image.

ValueDescriptionUse case
pngReturns PNG bytes directlyLocal testing, single low-resolution images
jpgReturns JPEG bytes directlyWhen size matters
urlReturns a downloadable OSS URLProduction, especially batch processing of large images
{ "parameter": { "rsp_media_type": "url" } }

3.2 Removal target (parameter.target)

Sets the type of overlay to remove. The default is watermark, which covers most cases.

FieldTypeDefaultDescription
parameter.targetstring"watermark"Removal target, as supported by the server
parameter.automaticbooleantrueWhether to detect overlay positions automatically
parameter.rgb_maskbooleantrueWhether to return an RGB mask for further processing

4. Reference

4.1 Task settings

These are the config values for SKM0006. Always use the current values from the config API. For HTTP submission, serialize params as a JSON string and, when present, copy the complete profile object to init_images[0].profile. The SDK handles this mapping automatically.

{
  "task": "/v1/eraser_watermark_v2_async",
  "task_type": "mtlab",
  "params": {
    "parameter": {
      "automatic": true,
      "requester": "design_studio",
      "rgb_mask": true,
      "target": "watermark"
    }
  }
}

4.2 Limits

ItemValue
Max file size300 MB
Max width4096px
Max height4096px
Input formatsJPG / PNG / WebP

4.3 Processing time

  • Typically takes a few seconds to a little over ten seconds, depending on image size and watermark complexity.
  • Follow status_query.durations from the token policy for polling intervals. vmake_run and the SDK poll automatically.

4.4 Pricing

  • Quota is deducted before each submission. vmake_run and the SDK do this automatically. Unit prices and free quota follow your plan and the selected tool ID.
  • If a task fails, the quota deducted for that task is returned to your account.
  • Querying an existing task does not deduct quota again. Submitting again deducts quota again.