Skip to content

generatedgallerybot/dewatermark-api-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeWatermark API Examples

Small, practical examples for removing watermarks from images with the DeWatermark API.

This repository is maintained as a lightweight integration reference. It does not include API credentials or any private DeWatermark server code.

API endpoint

POST https://dewatermark.com/api/v1/remove
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Request body:

{
  "image": "https://example.com/photo.jpg",
  "mask": "https://example.com/mask.png"
}

Fields:

  • image: base64 data URI or image URL.
  • mask: base64 data URI or mask URL. White pixels mark the area to remove.

Typical successful response:

{
  "result": "https://replicate.delivery/.../output.png",
  "usage": {
    "used": 42
  }
}

Known error responses:

  • 400: missing image or mask field.
  • 401: missing or invalid API key.
  • 500: server or processing error.

Examples

Set your API key as an environment variable before running the examples:

export DEWATERMARK_API_KEY="YOUR_API_KEY"

The public API docs currently say to contact justacatbot@proton.me for an API key.

When to use this

This is a good fit for apps that already have a source image and a mask, for example:

  • ecommerce catalog cleanup
  • batch image restoration workflows
  • internal creative tooling
  • before/after QA pipelines

Only process images you have the right to edit. Do not use watermark removal to misrepresent ownership or bypass licensing terms.

About

Small examples for the DeWatermark image watermark removal API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors