Skip to content
Browse all functions

Add Watermark to Video

audiovideo/addwatermark2video

addwatermark2video (Add Watermark to Video) is a 1001fx API function in the group Audio & video: POST https://api.1001fx.com/audiovideo/addwatermark2video, 3 credits per minute (minimum 3). It works as a ready-made module in Make and n8n or as a plain HTTP call.

Adds an image as watermark to a video at a given position. The result is a URL to the MP4, available for 48 hours.

Try it in the 1001fx app

Run addwatermark2video in your browser with your API key – fill the form, click Run and get the answer or the file.

addwatermark2video in the 1001fx app: the form with example values
Add Watermark to Video in the 1001fx app

Endpoint

POSThttps://api.1001fx.com/audiovideo/addwatermark2video
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
multipart/form-data

Parameters

  • videoUrlstringrequired

    The URL of the media file. You can use 1001fx uploadasset for temporary asset upload.

    Example:
    https://api.1001fx.com/testdata/video.mp4
  • filefilerequired

    Image to be used as watermark.

  • positionenumoptional

    Position of the watermark. Defaults to SE.

    Values:
    SE
    NE
    NC
    NW
    SC
    SW
    C
    CE
    CW
    Default:
    SE
    Example:
    SE
  • marginnumberoptional

    Margin in pixel. Defaults to 20.

    Default:
    20
    Example:
    20
  • watermarkSizenumberoptional

    Size of the watermark relative to the video dimension. Defaults to 0.2.

    Default:
    0.2
    Min:
    1e-8
    Max:
    1
    Example:
    0.2

Examples

Add watermark to video

Adds a watermark to a video

Input

Expects a json body
{
  "videoUrl": "http://localhost:8080/testdata/video.mp4",
  "position": "SE",
  "margin": 20,
  "watermarkSize": 0.2,
  "files": [
    {
      "name": "image.png",
      "type": "imge/png",
      "path": "testdata/image.png"
    }
  ]
}

Output · HTTP 200

Result is a url to a file containing the audio.
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/audiovideo/addwatermark2video' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -F 'file=@image.png' \
  -F 'videoUrl=http://localhost:8080/testdata/video.mp4' \
  -F 'position=SE' \
  -F 'margin=20' \
  -F 'watermarkSize=0.2'

Try addwatermark2video now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.011.04.2023created
Ask 1001fx