CleanVid API Documentation

The CleanVid API instantly brings high-quality watermark removal, object removal, and video enhancement to your software, apps, saas and automated workflow. Powered by cutting-edge generative AI, it removes watermarks, text, logos, subtitles, and unwanted people or objects, then reconstructs the background at the pixel level—No blurry. Video output is supported at resolutions up to 2K.

Last updated 2026-11-08 SUYOO Tech
On this page
  1. 01Quick start
  2. 02Base URL
  3. 03Authentication
  4. 04Response envelope
  5. 05asset_uploadurl
  6. 06videowatermark_removal
  7. 07videoobject_removal
  8. 08video_enhance
  9. 09task_start
  10. 10task_result
  11. 11task_cancel
  12. 12Task states
  13. 13Credits and limits
  14. 14Error codes

Quick start

CleanVid API is a task-based RESTful API. It was designed with the goal of being extremely easy to use and integrate. With the CleanVid API, you can use the following three endpoints to create different tasks for your use case:

  • videowatermark_removal Seamlessly removes watermarks, text, logos, and burned-in subtitles added during post-production. It can remove both static and moving watermarks.
  • videoobject_removal Seamlessly removes unwanted people or objects from videos, as well as overlays such as mosaic effects and stickers, to restore the underlying video.
  • video_enhance Improves video clarity by intelligently adding visual detail and enhancing contrast, turning ordinary footage into high-definition video.

Every task goes through the same three steps.

  1. STEP 01 Upload your video to CleanVid Use the asset_uploadurl endpoint to obtain a presigned upload URL, then upload the video to CleanVid via an HTTP PUT request.
  2. STEP 02 Create a task, then start processing Create the task with one of the three endpoints above, then start processing with task_start.
  3. STEP 03 Download the processed video Query task_result for processing progress, then download the video once the task is finished.

Base URL and endpoints

Base URL https://api.cleanvid.pro
FunctionMethodPurpose
asset_uploadurlGETGet a presigned upload URL and its storage key.
videowatermark_removalPOSTCreate a watermark-removal task.
videoobject_removalPOSTCreate an object-removal task.
video_enhancePOSTCreate a video-enhancement task.
task_startPOSTStart a task and deduct credits.
task_resultGETRead progress of the task, and the download URL.
task_cancelPOSTCancel a queued task and refund credits.

All functions live at the root of the API host. Append the function name directly — there is no version prefix and no trailing slash. Task actions carry the task_id as a path segment.

ENDPOINTS
https://api.cleanvid.pro/asset_uploadurl
https://api.cleanvid.pro/videowatermark_removal
https://api.cleanvid.pro/task_start/{taskId}

Authentication

API keys are the only valid credentials for accessing the CleanVid API. Every request carries an API key in the Authorization header. If you don’t have one yet, create it in CleanVid Studio, and the API key looks like cvk_live_<key_id>.<secret>.

Keep your API keys secure. If you suspect that a key may have been compromised, disable it immediately and create a new API key to replace it.

HTTP · REQUEST HEADER
Authorization: Bearer cvk_live_<key_id>.<secret>

A missing, malformed, or disabled key is rejected before the request reaches a model, and the body is always the same:

JSON · 401
{ "code": 401, "msg": "Unauthorized", "data": {} }
Keep the key on your server

Anything in browser or app code is public the moment it ships. Call the API from your backend and give your own users your own session — never a CleanVid key.

Response envelope

Successful and failed calls return the same three keys, so one parser handles both.

JSON · SUCCESS
{
  "code": 0,
  "msg": "success",
  "data": {}
}
  • code — 0 means the call did what you asked. Any other value is a failure; data is then an empty object.
  • msg — a short description, useful in logs and error messages you surface to your own users.
  • data — the payload. Its shape depends on the endpoint and is documented per endpoint below.

Check the HTTP status first, then code === 0, then read data. The two layers agree in practice, but the body is what tells you why a call failed.

Get an upload URL

GET /asset_uploadurl

Returns a presigned URL for the file you are about to send, plus the storage key every later call will reference. Nothing is charged here — this endpoint only prepares the upload.

All videos submitted for processing must be uploaded to the designated location

We have strict confidentiality measures in place to protect your privacy. Your videos will not be manually previewed or inspected. Original video files will be automatically deleted within 24 hours of upload completion or once processing is complete, whichever comes first.

Query parameter

ParameterTypeRequiredDescription
ext string required Container extension. mp4 and mov only, with or without the leading dot.

Response data

FieldTypeDescription
upload_urlstringPresigned URL for the file upload. Valid for a single PUT.
object_pathstringStorage key of the uploaded object. Send it as video_path when you create a task.
headersobjectHeaders that must be sent with the upload, exactly as returned.

Uploading the file

The upload does not go through the API host: PUT the bytes straight to upload_url and replay every key in headers.

HTTP · UPLOAD
PUT {upload_url}
{...every key/value from "headers", verbatim...}
Content-Length: {file size}

<file bytes>

Create a watermark-removal task

POST /videowatermark_removal

Create a video watermark removal task. This task removes watermarks, text, logos, burned-in subtitles, and other elements added during post-production. It supports removing static watermarks and automatically detecting and removing moving watermarks.

Video watermark removal supports two methods
  • box_removalSend rect to mark the area of the frame where the watermark should be removed. Width × height of rect, must be less than 480,000 pixels. If the rect exceeds this limit, use fullvideo_removal mode.
  • fullvideo_removalThe watermark is removed across the whole frame; no rectangle is needed.

Body

FieldTypeRequiredDescription
task_namestringrequiredName of the task. Shown in the Studio task list.
video_pathstringrequiredThe object_path returned by asset_uploadurl.
methodstringrequiredbox_removal fullvideo_removal
rectobjectbox onlyRequired when method is box_removal. Send all four keys — {x, y, w, h}. x/y give the pixel coordinates of the box's top-left corner, w/h its width and height. The area, w × h, must be less than 480,000 pixels — roughly an 800 × 600 box.
JSON · REQUEST
{
  "task_name": "promo-cut-a",
  "video_path": "u/4821/9f2c4a.mp4",
  "method": "box_removal",
  "rect": { "x": 940, "y": 36, "w": 220, "h": 88 }
}

Response data

FieldTypeDescription
task_idstringIdentifier to use in task_start, task_result, and task_cancel.
statusstringPaused
creditsnumberCredits required for this task.

Create an object-removal task

POST /videoobject_removal

Create a video object removal task. This task can remove unwanted people or objects from videos and automatically detect and track their movement throughout the video. It can also remove overlays such as stickers and mosaic effects, seamlessly restoring the underlying footage.

Video object removal supports two methods
  • no_trackingRemoval is applied only to the fixed mask region.
  • auto_trackingThe object within the mask is automatically tracked and removed as it moves throughout the video.

Body

FieldTypeRequiredDescription
task_namestringoptionalDefaults to the file name.
video_pathstringrequiredThe object_path returned by asset_uploadurl.
method stringrequiredno_tracking auto_tracking
time_maskintegerrequiredNon-negative integer.
custom_maskstringrequiredBase64-encoded mask that marks the region to remove. The mask resolution must match the video resolution.
JSON · REQUEST
{
  "task_name": "banner-strip",
  "video_path": "u/4821/9f2c4a.mp4",
  "method": "auto_tracking",
  "time_mask": 0,
  "custom_mask": "iVBORw0KGgoAAAANSUhEUg..."
}

Response data

FieldTypeDescription
task_idstringIdentifier to use in task_start, task_result, and task_cancel.
statusstringPaused
creditsnumberCredits required for this task.

Create a video-enhancement task

POST /video_enhance

Create a video enhancement task. This task uses generative AI to add visual detail and improve image sharpness, turning low-quality videos into true 1080p or 2K high-definition video.

Video enhancement supports two methods
  • UPS_1080POutputs a 1080p HD video with a long edge of 1920 px and a proportionally scaled short edge.
  • UPS_2KOutputs a 2K high-resolution video with a long edge of 2560 px and a proportionally scaled short edge.

Body

FieldTypeRequiredDescription
task_namestringoptionalDefaults to the file name.
video_pathstringrequiredThe object_path returned by asset_uploadurl.
methodstringrequiredUPS_1080P UPS_2K
JSON · REQUEST
{
  "task_name": "reel-2k",
  "video_path": "u/4821/9f2c4a.mp4",
  "method": "UPS_2K"
}

Response data

FieldTypeDescription
task_idstringIdentifier to use in task_start, task_result, and task_cancel.
statusstringPaused
creditsnumberCredits required for this task.

Start a task

POST /task_start/{taskId}

Start a task. Only tasks with a status of Paused or Error can be started. Upon successful task startup, the required credits are deducted upfront. If the task ultimately fails, the deducted credits are refunded. If the account has insufficient credits, the request fails and returns business code 1100.

Concurrency

Each account gets 5 concurrent tasks per task type. Beyond that, new tasks land in Queued and start on their own as slots free up — no retry loop is needed.

Response data

FieldTypeDescription
task_idstringThe task you just started.
statusstringProcessing when a slot is free, Queued when you are at the concurrency limit.
creditsnumberCredits deducted by this call, as a negative number — for example -5.

Fetch task progress and the result

GET /task_result/{taskId}

Retrieve the processing progress and result download URL for the task identified by task_id. Polling at 20-second intervals is recommended. Once processing is complete, you can download the result from the URL specified by download_url.

Data expiration notice

Task results are retained for only 24 hours and will be automatically deleted after they expire. Please download them promptly.

Response data

FieldTypeDescription
task_idstringThe task you asked about.
statusstringCurrent status of the task.
progressnumber0–100. Task progress, reported while Processing.
download_urlstringURL served with a download disposition — use it to save the file.
output_urlstringPreview URL — use it to play the result in place.
JSON · FINISHED
{
  "code": 0,
  "msg": "success",
  "data": {
    "task_id": "tsk_7Qd2f8",
    "status": "Finished",
    "progress": 100,
    "download_url": "https://…/output.mp4?response-content-disposition=attachment",
    "output_url": "https://…/output.mp4"
  }
}

Cancel a task

POST /task_cancel/{taskId}

Cancel a queued task. A task can only be canceled while its status is Queued. Once it enters the Processing status, it can no longer be canceled. Once the task is successfully canceled, it transitions to the Paused status. You can restart it at any time using the task_start endpoint.

Response data

FieldTypeDescription
task_idstringThe cancelled task.
statusstringPaused
creditsnumberCredits returned, as a positive number.

Task states

A task moves through a small, fixed set of states. Only Finished produces a result URL, and only Paused and Error can be started.

StateMeaning
PausedCreated but not started. This is the initial state of every task.
QueuedWaiting because you are at the concurrency limit for this task type.
ProcessingA slot was free and the model is running.
FinishedDone. task_result returns the download and preview URLs.
ErrorProcessing failed. The task can be started again with a corrected rule.
  1. STATE 01PausedCall task_start
  2. STATE 02QueuedNo free slot
  3. STATE 03ProcessingModel running
  4. STATE 04FinishedURLs available

Credits and limits

Credits are deducted once, at task_start, in 30-second units with a minimum of one unit. The rate depends on the model and, where it applies, on the mode you chose.

TaskMETHODCredits per 30 s
videowatermark_removalbox_removal5credits
videowatermark_removalfullvideo_removal10credits
videoobject_removalno_tracking10credits
videoobject_removalauto_tracking20credits
video_enhanceUPS_1080P20credits
video_enhanceUPS_2K30credits

Running out of credits

If the balance does not cover the task, task_start returns code: 1100 with HTTP 200 and the task stays Paused. Nothing is deducted and nothing is queued, so the task can be started after a top-up.

Error codes

The body always carries code and msg. Most failures also set a matching HTTP status; business failures return HTTP 200 with a 1xxx code, so read code first.

HTTPcodeMeaning
2000Success.
2001200Operation not allowed.
400400Parameter validation failed. Check the field list for the endpoint.
401401Unauthorized. The API key is invalid or has been disabled.
4021100Insufficient credits. Please top up.
405405HTTP method not allowed.
500500Internal server error.