Image Watermark API

Add a text and / or logo watermark to JPEG or PNG photos: 9 positions or tiled diagonal text, opacity, size, margin; up to 20 images per call as a ZIP.

POSThttps://apibox.io.vn/v1/image-watermark
Images & Codes▶ Try it online

Upload an image as multipart file (or several files for a batch) with a watermark text, a logo (PNG with transparency or JPEG) or both. position is one of top-left, top, top-right, left, center, right, bottom-left, bottom, bottom-right or tile (the watermark repeated over the whole photo in staggered rows, rotated by rotation, default 30°). scale sets the watermark width as a share of the image width (default 0.3), opacity 0–1 or 0–100, margin a share of the shorter side, spacing the gap between tiles. Text uses Be Vietnam Pro (full Vietnamese) in color with a thin contrasting outline (stroke, outline=false to remove); with a logo and text the text is placed under the logo (layout=stack) or separately (text_position).

One image returns the image (same format, or format=png|jpeg, quality); several images return watermarked.zip. max_width resizes before watermarking. Limits: 25 megapixels per image, 100 MP and 20 images per request, and your plan's upload size. Images are processed in memory and not stored.

Parameters

NameInTypeRequiredDefault
filebodyfileyesImage (JPEG / PNG); several files for a batch (any field names except logo), or file_base64 / images_base64.
textbodystringnoWatermark text (max 200 characters).
logobodyfilenoLogo image (PNG with transparency or JPEG).
positionbodystringnobottom-rightCorner / edge / center, or tile.
opacitybodynumberno0.60–1 (or 0–100). Default 0.3 for tile.
scalebodynumberno0.3Watermark width / image width (0.01–1).
marginbodynumberno0.03Margin as a share of the shorter side.
rotationbodynumbernoText rotation in degrees (−90…90; default 30 for tile).
colorbodystringno#ffffffText colour (CSS).
formatbodystringnosame (default), jpeg or png.

Example

curl -X POST "https://apibox.io.vn/v1/image-watermark" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@./my-file" \
  -o output

Response

binary image/jpeg

Use cases

  • Stamp the shop name on product photos before posting
  • Protect real-estate photos with a tiled watermark
  • Add a logo to a batch of event photos
  • Mark sample or draft images as "MẪU" / "DRAFT"

FAQ

Which formats are supported?

JPEG and PNG in and out. The logo can be a transparent PNG.

How do I watermark many images?

Send several files in the multipart request (up to 20); the response is a ZIP with one watermarked image per file.

Does Vietnamese text work?

Yes: the text is drawn from the Be Vietnam Pro font outlines, with all diacritics.

Related APIs

Start with 1,000 free requests every month. Get free API key →