API Documentation
Integrate RmWatermark AI image processing into your applications.
Authentication
All API requests require a Bearer token in the Authorization header. Get your API key from the Dashboard.
curl -H "Authorization: Bearer sk_live_xxxx" -H "Content-Type: application/json" https://rmwatermark.net/api/v1/balance
Tools & Pricing
| Type | Credits | Description |
|---|---|---|
remove-bg | 1 | चित्र पृष्ठभूमि हटाएं |
remove-watermark | 1 | वॉटरमार्क हटाएं |
POST /api/v1/jobs
Create a new image processing job
Request Body
{
"type": "remove-watermark",
"image_url": "https://example.com/photo.jpg",
"options": {
"mode": "pro",
"prompt": "去除图片中的所有水印文字和 LOGO,其余内容保持不变"
}
}
// mode: "auto" 本地检测修复 1 积分 | "pro" 大模型编辑 3 积分(可自定义 prompt) | "manual" 需传 mask_urlResponse
{
"data": {
"id": "uuid",
"type": "remove-watermark",
"status": "processing",
"result_urls": null,
"credits_used": 0,
"processing_ms": null
}
}GET /api/v1/jobs/{id}
Get job status and results
Response
{
"data": {
"id": "uuid",
"type": "remove-bg",
"status": "completed",
"result_urls": ["https://..."],
"error_message": null,
"credits_used": 1,
"processing_ms": 1234,
"created_at": "2026-06-04T00:00:00Z"
}
}GET /api/v1/balance
Get your remaining credit balance
Response
{
"data": {
"balance": 497,
"total_earned": 1000,
"total_spent": 503
}
}Error Codes
| Code | Description |
|---|---|
400 | अमान्य अनुरोध मापदंड |
401 | API कुंजी गायब या अमान्य |
402 | अपर्याप्त क्रेडिट |
404 | कार्य नहीं मिला |
500 | आंतरिक सर्वर त्रुटि |