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. 0 returns task_id asynchronously and lets you fetch the result later through the query endpoint; 1 waits for the result and returns it immediately. Results are retained for up to 1 hour after submission.

Return Parameters

status number

HTTP response status code. 200 means success, and non-200 means failure. See Status Code Definitions.

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. 200 means success, and non-200 means failure. See Status Code Definitions.

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. 1 means succeeded, greater than 1 means processing, and less than 0 means failed. -7 means invalid image file. See Status Code Definitions.

Query image watermark removal result

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. 200 means success, and non-200 means failure. See Status Code Definitions.

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. 1 means succeeded, greater than 1 means processing, and less than 0 means failed. -7 means invalid image file. See Status Code Definitions.

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