SVOR

SVOR

Removes objects from a video. Send a clip and a mask video of what to remove, and it fills the area in, shadows and reflections included, even from a rough mask. Learns your footage from your own clips.

Video Editingvideo-inpaintingobject-removalvideo-editingwanapache-2.0Fine-tunable
SVOR: Video Editing model on Kainguru

About SVOR

Capabilities

  • Remove what you mask — send a mask video (white = remove) and the area is filled in across the whole clip
  • Shadows and reflections too — trained to clear what an object casts, and to cope with rough or patchy masks
  • Up to 5 seconds — 81 frames at up to 832 x 480 pixels, the clip's own frame rate, and its sound kept
  • Repeatable — the same seed and inputs give the same video
  • Fine-tuning — teach it your footage from clips with masks, and from clean clips when you have them

Good to know

  • Clips are MP4, MOV, WebM or MKV, up to 200 MB, at most 81 frames (5 at least) and 3840 pixels a side. The mask video is up to 100 MB and has the clip's frame count; its size may differ (it is scaled).
  • The clip is worked at its own shape and at most 832 x 480 pixels (never above its own size, both sides a multiple of 16, the shorter side at least 64), and the result comes back at that size, with the clip's frame rate and sound.
  • You need a mask video: a video-segmentation model such as SAM_2_1_VIDEO makes one from a click or a box. Anything above grey 127 counts as white; the margin (0 to 16 pixels, 6 by default) grows the mask to take an object's outline and a rough mask's edges.
  • A clip takes minutes. Fewer steps (1 to 30, 20 by default) or guidance 1 make it faster; each step is two passes of the model. You pay for the frames of the clip.
  • The removal prompt is fixed; the model clears what is masked and fills it from the rest of the clip. Use it on videos you own or have the right to edit.
  • Fine-tuning takes one ZIP (at most 4 GB, no password) with 2 to 100 clips and manifest.jsonl, one {"video": ..., "mask": ..., "target": ...} line per clip, paths relative to it. "mask" is a mask video with the clip's frame count and size; "target" is optional: the same clip with the object really gone, which the model learns to produce. Without it, the model learns to rebuild the masked part of the clip itself.
  • Training uses the first 49 frames (at most) of each clip, at the working size, with your masks as they are (the margin applies only when you run the model), and trains a LoRA on the attention layers of the transformer on top of the removal weights; it stops after 1500 steps or 9 hours, whichever comes first, and keeps what it has learned.

Attribution

SVOR by Jiagao Hu, Yuxuan Chen, Fuhao Li, Zepeng Wang, Fei Wang, Daiguo Zhou and Jian Luan (Xiaomi), released under the Apache License 2.0 (From Ideal to Real: Stable Video Object Removal under Imperfect Conditions). Built on Wan 2.1 VACE 1.3B by Alibaba, Apache License 2.0.

SVOR inputs and output

NameTypeRequiredDefaultDetails
maskfileYes—What to remove, as a video with the clip's frame count (white = remove; at most 100 MB). It may be rough: the margin grows it.
1–2048 characters · video/mp4, quicktime, webm, x-matroska
videofileYes—The clip: MP4, MOV, WebM or MKV, at most 200 MB and 81 frames (5 at least). Worked at up to 832 x 480 pixels, never above its own size.
1–2048 characters · video/mp4, quicktime, webm, x-matroska
guidance_scalenumberNo6.0How firmly the fill follows the removal prompt; 1 turns guidance off and halves the time.
1–10
num_inference_stepsintegerNo20Denoising steps; fewer are faster and rougher. Each step is two passes of the model.
1–30
seedintegerNo—The same seed and inputs give the same video. Leave empty for a random seed.
0–2147483647
marginintegerNo6Pixels (at the working size) the mask grows, to take the object's outline and a rough mask's edges.
0–16

Output. Returns MP4 video: The clip with the marked part removed: H.264 MP4 at its working size (up to 832 x 480), its frame rate and, when MP4 carries it, its sound.

Run SVOR with the API

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
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=SVOR" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "mask": "https://example.com/input.png",
    "video": "https://example.com/input.png",
    "guidance_scale": 6.0,
    "margin": 6,
    "num_inference_steps": 20
  },
  "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"
Python
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(
        "SVOR",
        {
          "mask": "https://example.com/input.png",
          "video": "https://example.com/input.png",
          "guidance_scale": 6.0,
          "margin": 6,
          "num_inference_steps": 20
        },
        output_format="json",
    )
    result = client.executions.await_completion(submitted.id)
    print(result.execution.output)

Fine-tune SVOR

You can fine-tune SVOR 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 100 clips, a mask video each, and manifest.jsonl: a {"video", "mask", "target"?} line per clip. More in Good to know, in the README.

The steps are in the docs.

SVOR pricing

Price per frame: 0.8152 credits ($0.008152). The price is shown again before every run; all prices are on the pricing page.

Licence and source

Wan 2.1 VACE 1.3B: Video Editing model on Kainguru
Video Editing

Wan 2.1 VACE 1.3B

Video-editing model (Wan 2.1 VACE, 1.3B): follows a control clip, redoes a masked area or the end of a clip, or puts…

Fine-tunable
ReCamMaster: Video Editing model on Kainguru
Video Editing

ReCamMaster

Video-editing model (ReCamMaster on Wan 2.1, 1.3B) that re-renders a clip along a new camera path: pan, tilt, zoom…

Fine-tunable
Wan 2.2 Fun 5B Control: Video Editing model on Kainguru
Video Editing

Wan 2.2 Fun 5B Control

Video-editing model (Wan 2.2 Fun Control, 5B): re-renders a control video of edge, depth or pose maps, or a rough…

Fine-tunable
FILM: Video Editing model on Kainguru
Video Editing

FILM

Makes slow motion and higher frame rates by painting the frames between two frames, even when things move far between…

Fine-tunable
DeOldify Video: Video Editing model on Kainguru
Video Editing

DeOldify Video

Colourises black-and-white video with DeOldify's video model: plausible colour for every frame, laid over the original…

Fine-tunable
MODNet Video Matting: Video Editing model on Kainguru
Video Editing

MODNet Video Matting

Cuts people out of video with a soft alpha matte that keeps hair and fine edges, with no green screen and no…

Fine-tunable