AI Watermark Remover Agent Skill
AI Watermark Remover Agent Skill
Add watermark removal capabilities to your AI agents with this AI Pass skill. This skill enables agents to detect and remove watermarks, logos, and text overlays from images intelligently.
Skill Overview
The AI Watermark Remover skill allows agents to:
- Automatically detect watermark regions in images
- Intelligently reconstruct missing image areas
- Preserve original image quality and resolution
- Handle various watermark types (text, logos, patterns)
Installation
Add this skill to your agent configuration:
{
"skills": [
{
"name": "watermark-remover",
"version": "1.0.0",
"enabled": true
}
]
}
Skill Content
// AI Watermark Remover Skill
// Get your API key from: https://aipass.one/developer/api-keys
const WATERMARK_REMOVER_SKILL = {
name: "watermark-remover",
description: "Remove watermarks, logos, and text overlays from images using AI",
version: "1.0.0",
apiEndpoint: "https://aipass.one/api/v1/models/gpt-5-mini/completions",
async execute(imageData, options = {}) {
const apiKey = "$AIPASS_API_KEY"; // Replace with your API key from developer dashboard
const response = await fetch(this.apiEndpoint, {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": `Bearer ${apiKey}`
},
body: JSON.stringify({
model: "gpt-5-mini",
temperature: 1,
max_tokens: 16000,
messages: [
{
role: "system",
content: "You are an image processing assistant specialized in watermark removal. Detect and remove watermarks, logos, text overlays, or any protective markings from images while preserving the original content, quality, and context."
},
{
role: "user",
content: `Remove the watermark from this image: ${imageData}`
}
]
})
});
const result = await response.json();
return result;
},
examples: [
{
input: "base64_image_data",
output: {
processedImage: "base64_image_without_watermark",
watermarkDetected: true,
confidence: 0.98
}
}
]
};
// Export for use in agents
if (typeof module !== "undefined" && module.exports) {
module.exports = WATERMARK_REMOVER_SKILL;
}
Usage in Your Agent
// Import the skill
const watermarkRemover = require('./watermark-remover-skill');
// Use the skill in your agent
async function processUserImage(imageData) {
try {
const result = await watermarkRemover.execute(imageData);
return {
success: true,
processedImage: result.choices[0].message.content
};
} catch (error) {
return {
success: false,
error: error.message
};
}
}
Getting Your API Key
- Go to the AI Pass Developer Dashboard
- Navigate to API Keys
- Click "Generate New Key"
- Copy your API key
- Replace
$AIPASS_API_KEYin the skill code with your actual key
Security Note: Never hardcode your API key in client-side code. Use environment variables or secure server-side storage.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| imageData | string | Yes | Base64-encoded image data |
| options | object | No | Additional processing options |
Response Format
{
"id": "completion-123",
"object": "text.completion",
"created": 1234567890,
"model": "gpt-5-mini",
"choices": [
{
"message": {
"role": "assistant",
"content": "base64_encoded_processed_image"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 1234,
"completion_tokens": 567,
"total_tokens": 1801
}
}
Best Practices
- Pre-validate images - Check image format and size before processing
- Handle errors gracefully - Provide fallback options if removal fails
- Credit management - Check user credits before processing
- Batch processing - For multiple images, process sequentially to avoid rate limits
Example Agent Integration
class WatermarkRemovalAgent {
constructor(apiKey) {
this.skill = WATERMARK_REMOVER_SKILL;
this.skill.apiEndpoint = this.skill.apiEndpoint;
}
async removeWatermark(imageData) {
const result = await this.skill.execute(imageData);
return result;
}
async batchProcess(imageDataArray) {
const results = [];
for (const imageData of imageDataArray) {
const result = await this.removeWatermark(imageData);
results.push(result);
}
return results;
}
}
Pricing
Usage is based on API credits. Check the AI Pass pricing page for current rates.
Support
For issues or questions, visit the AI Pass documentation or contact support.
Enhance your agents with intelligent watermark removal capabilities! 🖼️✨