Small, practical examples for removing watermarks from images with the DeWatermark API.
- Use DeWatermark in the browser when you want a quick manual workflow.
- Visit DeWatermark.com for the hosted image watermark remover.
- Try the free dewatermark tool first if you only need occasional cleanup.
- Developers can use the same AI dewatermark workflow through a simple REST API.
This repository is maintained as a lightweight integration reference. It does not include API credentials or any private DeWatermark server code.
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: missingimageormaskfield.401: missing or invalid API key.500: server or processing error.
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.
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.