Image Watermark Removal API

Try on PicWish

AI automatically detects and removes watermark areas from images, returning a clean and natural result image. It works for product photos, posters, and design assets, with async and sync request modes.

The result image URL is valid for 1 hour. Please download and store it promptly.

Authentication

Every API request must include your API Key in the X-API-KEY request header. Send it with each request exactly as shown in the examples and parameter descriptions.

X-API-KEY: YOUR_API_KEY

Create an image watermark removal task

POST /api/tasks/visual/external/watermark-remove

Body Parameters

url string optional

Source image URL. If this parameter is present, the other image source parameter must be empty.

one required
file file optional

Source image file as binary data. If this parameter is present, the other image source parameter must be empty.

For image upload requirements, see Guidelines and Limits #5.

sync integer optional

Whether to return the result immediately. Default is 0. Results are retained for up to 1 hour after submission.

  • 0: Return a task_id asynchronously and fetch the result later through the query endpoint;
  • 1: Wait for and return the result immediately.

Return Parameters

status number

HTTP response status code. See Status Code Definitions.

  • 200: Request succeeded;
  • Non-200: Request failed.
message string

Response message. If the task fails, refer to this field or contact support.

data.task_id string

Image watermark removal task ID used for polling.

status number

HTTP response status code. See Status Code Definitions.

  • 200: Request succeeded;
  • Non-200: Request failed.
message string

Response message. If the task fails, refer to this field or contact support.

data.task_id string

Image watermark removal task ID. If the task fails, contact support with this task_id.

data.created_at string

Timestamp of task creation.

data.processed_at string

Timestamp when the task started to be processed.

data.completed_at string

Timestamp of task completion.

data.file string

Result image URL. The URL is valid for 1 hour.

data.progress number

Task processing progress.

data.state number

Task status. See Status Code Definitions.

  • 1: Succeeded;
  • > 1: Processing;
  • < 0: Failed;
  • -7: Invalid image file.

Query image watermark removal result

For asynchronous requests, poll the result once every 1 second. The maximum polling duration for this API is 100 seconds; if the total polling time exceeds this without a result, treat it as a timeout failure.

GET /api/tasks/visual/external/watermark-remove/{task_id}

Path Parameters

task_id string required

Task ID returned after creating an async image watermark removal task. Use it to query the processing result.

Return Parameters

status number

HTTP response status code. See Status Code Definitions.

  • 200: Request succeeded;
  • Non-200: Request failed.
message string

Response message. If the task fails, refer to this field or contact support.

data.task_id string

Image watermark removal task ID. If the task fails, contact support with this task_id.

data.created_at string

Timestamp of task creation.

data.processed_at string

Timestamp when the task started to be processed.

data.completed_at string

Timestamp of task completion.

data.file string

Result image URL. The URL is valid for 1 hour.

data.progress number

Task processing progress.

data.state number

Task status. See Status Code Definitions.

  • 1: Succeeded;
  • > 1: Processing;
  • < 0: Failed;
  • -7: Invalid image file.

Guidelines and Limits

  1. The result image URL is valid for 1 hour. Please download and store it promptly.

  2. HTTP status 200 means the HTTP request succeeded; for result queries, status 200 with data.state = 1 means watermark removal succeeded. See Status Code Definitions.

  3. When passing URLs as parameters, follow URL encoding standards to prevent parameter parsing issues.

  4. You must not use this service for any activity that violates laws, regulations, or the legitimate rights of others.

  5. Uploaded images must meet the following format, resolution, and file size limits.

    FormatResolutionSize
    jpg, png, bmpResolution between 20 and 10000 pixelsUp to 50MB