About this endpoint
What it does
Applies a watermark to a video fetched from a remote URL, then streams the processed video back as a binary response. The request body includes the source video_url and optional watermark and layout settings.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| video_url | String | Yes | Remote video URL to process. Must be a URI. |
| box | String | No | Watermark box setting. Default: 0. |
| size | String | No | Output video size, such as 1280x720. |
| gif_loop | Boolean | No | Whether to loop GIF output. Default: false. |
| watermark_text | String | No | Text to use as the watermark. |
| watermark_image | String | No | Remote watermark image URL. Must be a URI. Legacy alias watermark_image_url is also accepted. |
| watermark_image_url | String | No | Remote watermark image URL. Must be a URI. |
| watermark_opacity | String | No | Watermark opacity. Default: 0.5. |
| watermark_position | ENUM | No | Watermark placement. Allowed values: top_right, top_left, bottom_right, bottom_left, center, bottom_center, top_center, center_left, center_right. Default: bottom_right. |
| watermark_font_size | String | No | Watermark text font size. Default: 24. |
| watermark_font_color | String | No | Watermark text color. |
| watermark_image_size | String | No | Watermark image size, such as 120x40. |
| watermark_text_padding | String | No | Padding around watermark text. Default: 10. |
| watermark_text_background_color | String | No | Background color for the watermark text. |
Response
Returns a binary file response containing the processed video stream. The output schema is a string with binary format, so the successful response body is the video content itself.