DeOldify Video

DEOLDIFY_VIDEO

Colourises black-and-white video with DeOldify's video model: plausible colour for every frame, laid over the original picture so no detail is lost, with colours kept steady from frame to frame.

Video Editingvideo-colourisationcolorizationfilm-restorationvideo-editingmitFine-tunable
DeOldify Video: Video Editing model on Kainguru

About DeOldify Video

Capabilities

  • Plausible colour — skin, sky, foliage and fabrics get the colours the model judges most likely
  • Steady between frames — the video model was trained to keep colour from flickering
  • All the detail kept — only the colour is new: the result has the video's own sharpness, size and frame rate
  • Fine-tunable — teach it the colours of your own material with pairs of black-and-white and colour clips

Good to know

  • Videos are MP4, MOV, WebM or MKV, at most 256 MB, 300 frames and 2,073,600 pixels a frame (1920 x 1080); the result has no sound. A colour video works too: its colours are replaced.
  • The result is an SDR video at a constant frame rate: a variable-frame-rate video is re-timed evenly at its average rate, and HDR (HLG or PQ) colours are not tone-mapped, so they look flatter than in an HDR player.
  • The colour is worked out at render factor x 16 pixels (21 by default, 336 x 336) and laid over the full-size frame: a higher render factor gives richer colour, a lower one steadier colour.
  • The colours are the model's best guess, not the original's: skin can take a reddish cast and small objects can stay grey. Fine-tuning on pairs of your own black-and-white and colour footage teaches it your material's colours.
  • Fine-tuning takes one ZIP (at most 4 GB, 128 MB a clip, no password) with 2 to 100 pairs and a manifest.jsonl holding one {"input": "bw/a.mp4", "target": "colour/a.mp4"} line per pair, paths relative to the manifest. Both clips have the same size (at most 1920 x 1080) and number of frames; a colour clip can be its own input.
  • Training works on random frames of the first 48 frames of each clip, squeezed to 256 x 256 as the model does when it colours, and stops after the steps you ask for or after 9 hours, keeping what it has learned.

Attribution

DeOldify by Jason Antic, released under the MIT License; its network layers come from fastai, under the Apache License 2.0.

DeOldify Video inputs and output

NameTypeRequiredDefaultDetails
videofileYes—The video to colourise: MP4, MOV, WebM or MKV, at most 256 MB, 300 frames and 2,073,600 pixels a frame. Its colours, if any, are replaced. The result has no sound.
1–2048 characters · video/mp4, quicktime, webm, x-matroska
render_factorintegerNo21The colouring works at this times 16 pixels: higher gives richer colour, lower gives steadier colour between frames. 21 is the usual choice for video.
7–40

Output. Returns MP4 video: The colourised video as an H.264 MP4 without sound, the input's size and frame rate.

Run DeOldify Video 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=DEOLDIFY_VIDEO" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "video": "https://example.com/input.png",
    "render_factor": 21
  },
  "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(
        "DEOLDIFY_VIDEO",
        {
          "video": "https://example.com/input.png",
          "render_factor": 21
        },
        output_format="json",
    )
    result = client.executions.await_completion(submitted.id)
    print(result.execution.output)

Fine-tune DeOldify Video

You can fine-tune DeOldify Video on your own data and run the tuned model through the same API. Dataset: One ZIP (at most 4 GB, 128 MB a clip, no password) with 2 to 100 pairs of a clip and its colour version, the same size and length, and manifest.jsonl with one {"input", "target"} line per pair. More: Good to know, in the README.

The steps are in the docs.

DeOldify Video pricing

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

Licence and source

RIFE 4.26: Video Editing model on Kainguru
Video Editing

RIFE 4.26

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
Background Matting v2: Video Editing model on Kainguru
Video Editing

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-tunable
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
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
MuseTalk 1.5: Video Editing model on Kainguru
Video Editing

MuseTalk 1.5

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