Add watermark
add_watermarkAdd a visible text or image watermark to an image or PDF supplied as a public URL. Formats: JPG/PNG/WebP images up to 10 MB; PDF up to 30 MB. watermark_type=text requires text (<= 500 chars); watermark_type=image requires watermark_image_url (PNG/JPG/WebP, <= 5 MB, transparency supported). Position: top-left/top-center/top-right/center/bottom-left/bottom-center/bottom-right/tile. opacity 0.05-1, optional scale/font_size/color/rotation. For PDF, pass pages (e.g. "1-3,5") to limit pages. Synchronous. Cost: 2 credits per call; mcp-credit-gateway charges before forwarding the request. Requires Authorization: Bearer sk_live_... on the MCP endpoint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Watermark text, required when watermark_type=text (<= 500 chars). | |
| color | No | Text colour as #RRGGBB. Defaults to upstream choice (usually white). | |
| pages | No | PDF only. 1-based page selection such as "1", "1-3" or "1-3,5,8-10". | |
| scale | No | Image watermark width as a fraction of the source width, 0.02–0.95. | |
| opacity | No | Watermark opacity, 0.05–1 (default 0.35). | |
| position | No | Anchor for the watermark, or `tile` to repeat it across the page/image. | bottom-right |
| rotation | No | Clockwise rotation in degrees, -180 to 180 (e.g. 45 for a diagonal stamp). | |
| font_size | No | Text watermark font size in pixels (images) or points (PDF), 8–256. | |
| source_url | Yes | Public http(s) URL of the source image (JPG/PNG/WebP, <= 10 MB) or PDF (<= 30 MB). | |
| source_type | No | Optional. Defaults to PDF when source_url ends in .pdf, otherwise image. | |
| watermark_type | Yes | `text` stamps words; `image` overlays a logo/PNG watermark. | |
| idempotency_key | No | Optional caller correlation key, echoed in the result. Billing is handled by mcp-credit-gateway. | |
| watermark_image_url | No | Public PNG/JPG/WebP watermark image URL, required when watermark_type=image (<= 5 MB; transparency supported). |