Tutorial · Python · ~10 min
Erase Subtitles for TikTok & Reels
The same 30-second clip needs fresh captions in every market. Erase the old ones, keep the watermark, recaption once per language.
Why this matters
Short-form content is recaptioned constantly, and the original captions are usually burned into the export. Creators need them gone without losing the brand watermark.
The API supports keep-zones — erase subtitle bands while preserving logos, handles, and face overlays.
How it works
Upload the clip, enable keep_watermark, and the API returns a clean clip plus region metadata for your caption tool.
Submit a job with an input URL (S3, GCS or HTTPS), poll the job URL, and download the rendered output. No GPU, no queues, no ffmpeg builds to babysit.
Code
import requests, time
API = "https://api.mlslabs.io/v1/subtitle-eraser/jobs"
headers = {"X-API-Key": "YOUR_API_KEY"}
payload = {"input": "s3://bucket/clip.mp4", "regions": "auto", "keep_watermark": true}
resp = requests.post(API, json=payload, headers=headers)
job = resp.json()
while job["status"] not in ("succeeded", "failed"):
time.sleep(3)
job = requests.get(job["url"], headers=headers).json()
print("Output:", job["output_url"])Pro tips
- Preserve the top and bottom 12% as default keep-zones for platform UI.
- Export at the source resolution — platforms re-encode anyway.
- Pair erase with auto-captions in your editing tool for a one-pass localization.
Pricing note
Usage is metered per minute of media processed; the first tier is free each month. Volume discounts kick in automatically.
FAQ
Common questions
Will it remove platform UI like the Like counter?
Only if it is in the detected regions — add keep-zones for anything you want preserved.
Is 9:16 supported?
Yes, vertical clips are the default target for this workflow.
How fast is a 30-second clip?
Usually well under a minute.
Keep exploring
Related guides
Subtitle Eraser API
Remove hardcoded subtitles cleanly for localization and short-drama export.
Learn moreSubtitle Extractor API
Extract on-screen text and spoken dialogue with frame-accurate timestamps.
Learn moreH.264 Encoding API
Perceptual, cost-efficient encoding tuned for real viewing quality.
Learn more