
Background Matting v2
Cuts a person out of video precisely, hair included, when you also give a picture of the empty background from the…
Fine-tunableSTTN_SUBTITLE_REMOVERRemoves burned-in subtitles and captions from a video: finds the text on every frame and fills it in from the rest of the clip. Also fills any area you mark with a mask video.

STTN by Yanhong Zeng, Jianlong Fu and Hongyang Chao (Learning Joint Spatial-Temporal Transformations for Video Inpainting, ECCV 2020), released under the MIT License. Text detection: the PP-OCRv5 server detection model by PaddlePaddle, Apache License 2.0.
| Name | Type | Required | Default | Details |
|---|---|---|---|---|
video | file | Yes | — | The clip: MP4, MOV, WebM or MKV, at most 200 MB, 450 frames and 3840 pixels a side. The result has its size, frame rate and sound. 1–2048 characters · video/mp4, quicktime, webm, x-matroska |
mask | file | No | — | Optional: what to remove, as a video with the clip's frame count (white = remove; at most 100 MB). Without it, the text found in the region is removed. 1–2048 characters · video/mp4, quicktime, webm, x-matroska |
margin | integer | No | 6 | Pixels the removed area grows around the text found or the mask, to take its outline and shadow. 0–32 |
region | text | No | — | Optional, without a mask video: where to look for text, JSON [x0, y0, x1, y1] in pixels of the clip. The lower third of the clip when left out. Max 128 characters |
Output. Returns MP4 video: The clip without what was removed: H.264 MP4 at the clip's size (an odd width or height loses one pixel) and frame rate, with its sound when MP4 carries it. The result also gives the frames that changed.
Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=STTN_SUBTITLE_REMOVER" \
-H "X-API-Key: kg_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"input": {
"video": "https://example.com/input.png",
"margin": 6
},
"outputFormat": "json"
}'
# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
-H "X-API-Key: kg_your_api_key"from kainguru import KainguruClient
with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
submitted = client.executions.execute(
"STTN_SUBTITLE_REMOVER",
{
"video": "https://example.com/input.png",
"margin": 6
},
output_format="json",
)
result = client.executions.await_completion(submitted.id)
print(result.execution.output)You can fine-tune STTN Subtitle Remover on your own data and run the tuned model through the same API. Dataset: One ZIP (at most 4 GB, no password) with 2 to 200 clips of your footage without captions, each at most 300 frames, and manifest.jsonl: a {"video", "mask"?} line per clip. More in Good to know, in the README.
The steps are in the docs.
Price per frame: 0.3496 credits ($0.003496). The price is shown again before every run; all prices are on the pricing page.

Cuts a person out of video precisely, hair included, when you also give a picture of the empty background from the…
Fine-tunable
Colourises black-and-white video with DeOldify's video model: plausible colour for every frame, laid over the original…
Fine-tunable
Makes a face in a video say new words. Send a clip of one talking face and an audio file; the mouth and jaw move to…
Fine-tunable
Raises a video's frame rate 2, 3, 4 or 8 times by predicting the frames in between, fast enough for long clips (RIFE…
Fine-tunable
Removes objects from a video. Send a clip and a mask video of what to remove, and it fills the area in, shadows and…
Fine-tunable
Finds every face in a short video and covers it on each frame with a blur, pixelation or a solid box.