FFmpeg Media · FFmpeg Media

WatermarkComing Soon

🚧 Coming soon — docs preview only, online run not yet available.
📌 What is thisOverlay an image watermark on the video.
💡 When to useUse to add a logo or copyright mark.

Endpoints

UsageMethodPath
Submit taskPOST/v1/ffmpeg/watermark
Query ResultGET/v1/ffmpeg/info?id={taskId}
Recommended polling intervalPoll every 3-5s (response includes progress 0-100) until status = succeeded / failed. Single-task timeout is 300s with auto-refund.

Request Parameters

ParamTypeRequiredDescription
inputUrlstringRequiredInput media URL, must be on the platform CDN allowlist (upload first to obtain it)
imageUrlstringRequiredWatermark image URL (allowlist domain)
positionstringPosition: tl / tr / bl / br / center, default br
opacitynumberOpacity [0,1], default 1.0
marginintegerMargin px [0,200], default 10
webhookUrlstringCompletion webhook URL (optional)

Request Example

curl -X POST https://api.cqtai.com/v1/ffmpeg/watermark \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{ "inputUrl": "https://cdn.novapi.ai/tmp/video.mp4", "imageUrl": "https://cdn.novapi.ai/tmp/logo.png", "position": "br", "opacity": 0.8, "margin": 20 }'
# -> { "code":200, "data":"<taskId>" }

Response Example

{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "<taskId>",
    "operation": "transcode",
    "status": "succeeded",
    "progress": 100,
    "resultUrl": "https://cdn.novapi.ai/ffmpeg/xxx.mp4",
    "costPoints": 3,
    "errorMsg": null
  }
}

Billing & Credits

Factor 1.3; 1 min 720P ~ 4 credits (x your user rate). Auto-refunded on failure.