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

TypeCreditsDescription
remove-bg1Xoa nen hinh anh
remove-watermark1Xoa watermark

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_url

Response

{
  "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

CodeDescription
400Tham so yeu cau khong hop le
401Khoa API thieu hoac khong hop le
402Tin dung khong du
404Cong viec khong tim thay
500Loi may chu noi bo