ReCamMaster

RECAMMASTER

Video-editing model (ReCamMaster on Wan 2.1, 1.3B) that re-renders a clip along a new camera path: pan, tilt, zoom, translate or arc. Fixed at 81 frames of 832 x 480; it can learn from your own multi-camera clips.

Video Editingvideo-to-videovideo-editingcamera-controlwanapache-2.0Fine-tunable
ReCamMaster: Video Editing model on Kainguru

About ReCamMaster

Capabilities

  • Re-camera a clip — the same scene and motion, filmed from a camera that pans, tilts, zooms, translates or arcs
  • Ten camera paths — pan right or left, tilt up or down, zoom in or out, translate up or down, arc left or right
  • Fixed format — 81 frames of 832 x 480, an H.264 MP4 of 2.7 seconds at 30 frames per second
  • Repeatable — the same seed and inputs give the same video
  • Fine-tuning — adapt it to your own scenes from 4 to 100 pairs of clips of one scene seen from two cameras

Good to know

  • You pay for generated frames, whatever playback rate you choose.
  • The video must give 81 frames at 30 frames per second (about 2.7 seconds); the model reads its first 81 frames, cropped to fill 832 x 480. Describe the clip in the prompt, as for any Wan model; prompts work best in English or Chinese.
  • The camera starts where it is in the clip and moves along the path you pick; the model is the authors' port to Wan 2.1 and does not reach the quality of their paper's model.
  • A video takes minutes to make; 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 81 frames of both clips of a pair at 30 frames per second, cropped to fill 832 x 480; each clip must give all 81. The target is the same scene as the source filmed by a camera that moves along the path the row names, relative to the source's first frame.
  • In the training ZIP, manifest.jsonl has one {"source": ..., "target": ..., "camera": ..., "caption": ...} line per pair, paths relative to it, a camera name from the list above (pan_right, pan_left, tilt_up, tilt_down, zoom_in, zoom_out, translate_up, translate_down, arc_left, arc_right) 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.

ReCamMaster inputs and output

NameTypeRequiredDefaultDetails
prompttextYes—What the video should show: the scene, what moves and how, and how the camera moves.
1–2000 characters
videofileYes—The clip to re-render: MP4, MOV, WebM or MKV, at most 200 MB, at least 81 frames at 30 frames per second.
1–2048 characters · video/mp4, quicktime, webm, x-matroska
fpsintegerNo30Playback rate of the MP4; the default is the model's own. It changes how long the video plays, not what it costs.
4–30
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 · Max 9 characters
framesintegerNo81Always 81: the model is trained on clips of that length; the video must give that many frames at the model's rate.
81–81
cameratextNopan_rightHow the camera moves in the new video, relative to where it starts in the clip: pan, tilt, zoom, translate or arc, to either side.
Allowed: pan_right, pan_left, tilt_up, tilt_down, zoom_in, zoom_out, translate_up, translate_down, arc_left, arc_right · Max 16 characters
seedintegerNo—The same seed and inputs give the same video. Leave empty for a random seed.
0–2147483647
guidance_scalenumberNo5.0How closely the video follows the prompt; 1 turns guidance off and halves the time.
1–10
negative_prompttextNo—What the video should avoid; empty uses the model's default. Ignored at guidance 1.
Max 2000 characters
num_inference_stepsintegerNo50Denoising steps; fewer are faster and rougher.
1–50

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

Run ReCamMaster 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=RECAMMASTER" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "example",
    "video": "https://example.com/input.png",
    "camera": "pan_right",
    "fps": 30,
    "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(
        "RECAMMASTER",
        {
          "prompt": "example",
          "video": "https://example.com/input.png",
          "camera": "pan_right",
          "fps": 30,
          "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 ReCamMaster

You can fine-tune ReCamMaster 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 100 pairs of video clips and a manifest.jsonl with one {"source": ..., "target": ..., "camera": ..., "caption": ...} line per pair. More rules: Good to know, in the README.

The steps are in the docs.

ReCamMaster 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
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