Wan 2.1 VACE 1.3B

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 reference pictures into a video, at up to 5 seconds and 480p. It can learn a style from your clips.

Video Editingvideo-to-videovideo-editingwanapache-2.0Fine-tunable
Wan 2.1 VACE 1.3B: Video Editing model on Kainguru

About Wan 2.1 VACE 1.3B

Capabilities

  • Follow a clip — a depth, pose, edge or sketch clip, a rough render or the clip itself steers the structure and motion of the result
  • Redo an area — a mask marks what to inpaint, outpaint or swap; the rest of the clip stays
  • Extend a clip — mask the frames after a point and the model continues the scene
  • Reference pictures — up to 3 pictures of a subject, object or place appear in the video
  • Landscape, portrait or square — 832 x 480, 480 x 832 or 640 x 624, the one closest to your clip
  • Fine-tuning — teach it a style, subject or kind of motion from 4 to 200 captioned clips

Good to know

  • You pay for generated frames, whatever playback rate you choose.
  • Video: MP4, MOV, WebM or MKV, at most 200 MB. The model reads it at 16 frames per second, up to the frames you ask for (at most 81), and crops it to fill the size it picks.
  • Without a mask the clip steers the result everywhere. With a mask, white is regenerated from the prompt and its pixels in the clip are ignored; a mask picture applies to every frame and a mask clip is read like the video.
  • Reference pictures: PNG, JPEG or WebP; each is placed on a white canvas of the video's size.
  • The video-strength input scales how much the clip, mask and pictures steer the result: 0 ignores them, 1 is the model's own strength, up to 2.
  • Prompts work best in English or Chinese; other languages are untested.
  • A video takes minutes to make; fewer frames, fewer steps or guidance 1 make it faster.
  • Without a negative prompt, Wan's default one is used: it steers away from oversaturated colour, still frames, blur, captions and malformed hands and faces.
  • Training clips: MP4, MOV, WebM or MKV with H.264, H.265, VP8, VP9, AV1 or MPEG-4 video, at most 200 MB, 3840 pixels a side, 4K in all and 240 frames per second each.
  • Training uses the first 49 frames of each clip at 16 frames per second (about 3 seconds), cropped to fill 832 x 480, 480 x 832 or 640 x 624, whichever is closest to the clip's shape; a clip must give at least 5 frames. Each clip is used for one of three tasks, by its place in the manifest: text to video, continuing from the first half of the clip, or refilling a rectangle of it.
  • In the training ZIP, manifest.jsonl has one {"file": ..., "caption": ...} line per clip, paths relative to it and captions of at most 2000 characters; the manifest is at most 4 MB and the ZIP holds at most 1000 entries.
  • Training stops after 9 hours and keeps what it has learned. A trigger word, if you set one, is put before every caption.

Wan 2.1 VACE 1.3B inputs and output

NameTypeRequiredDefaultDetails
videofileYes—The clip to work from: MP4, MOV, WebM or MKV, at most 200 MB. Alone, it steers the result (depth, pose, edges, a sketch or a rough render work well); with a mask, the white area is redone.
1–2048 characters · video/mp4, quicktime, webm, x-matroska
prompttextYes—What the video should show: the scene, what moves and how, and how the camera moves.
1–2000 characters
resolutiontextNo—Width x height in pixels, one of the sizes the model was trained at. Left empty, the size closest to the shape of the video.
Allowed: 832x480, 480x832, 640x624 · Max 9 characters
num_inference_stepsintegerNo50Denoising steps; fewer are faster and rougher.
1–50
seedintegerNo—The same seed and inputs give the same video. Leave empty for a random seed.
0–2147483647
framesintegerNo81Most frames to use: 5, 9, 13 and so on (a multiple of 4 plus 1). A shorter video gives fewer. The result lasts frames / fps seconds; more frames take longer and cost more.
5–81
reference_imagesfile listNo—Optional: up to 3 pictures of a subject, object or place to put into the video (PNG, JPEG or WebP).
Max 3 characters · image/png, jpeg, webp
fpsintegerNo16Playback rate of the MP4; the default is the model's own. It changes how long the video plays, not what it costs.
4–30
maskfileNo—Optional: a black-and-white picture (for every frame) or clip. White marks what to generate from the prompt, black what to keep from the video.
1–2048 characters · image/png, jpeg, webp; video/mp4, quicktime, webm, x-matroska
guidance_scalenumberNo5.0How closely the video follows the prompt; 1 turns guidance off and halves the time.
1–10
conditioning_scalenumberNo1.0How strongly the video, mask and pictures steer the result; 0 ignores them, 1 is the model's own strength.
0–2
negative_prompttextNo—What the video should avoid; empty uses the model's default. Ignored at guidance 1.
Max 2000 characters

Output. Returns MP4 video: The generated video: an H.264 MP4 of frames / fps seconds, without sound.

Run Wan 2.1 VACE 1.3B 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=WAN_2_1_VACE_1_3B" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "example",
    "video": "https://example.com/input.png",
    "conditioning_scale": 1.0,
    "fps": 16,
    "frames": 81,
    "guidance_scale": 5.0,
    "num_inference_steps": 50
  },
  "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(
        "WAN_2_1_VACE_1_3B",
        {
          "prompt": "example",
          "video": "https://example.com/input.png",
          "conditioning_scale": 1.0,
          "fps": 16,
          "frames": 81,
          "guidance_scale": 5.0,
          "num_inference_steps": 50
        },
        output_format="json",
    )
    result = client.executions.await_completion(submitted.id)
    print(result.execution.output)

Fine-tune Wan 2.1 VACE 1.3B

You can fine-tune Wan 2.1 VACE 1.3B on your own data and run the tuned model through the same API. Dataset: One ZIP (at most 4 GB, no password) with 4 to 200 video clips and a manifest.jsonl with one {"file": ..., "caption": ...} line per clip. More rules: Good to know, in the README.

The steps are in the docs.

Wan 2.1 VACE 1.3B pricing

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

Licence and source

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
SVOR: Video Editing model on Kainguru
Video Editing

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…

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