RealBasicVSR

REALBASICVSR

Enlarges a real-world video 4 times, looking across frames so detail stays steady and flicker is lower than with frame-by-frame upscaling, and cleans up noise and compression.

Video Editingvideo-super-resolutionupscalingvideo-restorationreal-worldapache-2.0Fine-tunable
RealBasicVSR: Video Editing model on Kainguru

About RealBasicVSR

Capabilities

  • 4x larger — the result is 4 times the width and height of your video
  • Steady detail — each frame is built from its neighbours, so textures do not shimmer from frame to frame
  • Real-world footage — trained on video with blur, noise and compression, and cleans all three as it enlarges
  • Fine-tunable — train it on pairs of small and large clips of your own material

Good to know

  • Videos are MP4, MOV, WebM or MKV, at most 256 MB, 150 frames and 230,400 pixels a frame (640 x 360); the result has no sound and is exactly 4 times the input's size.
  • 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.
  • Frames are processed in overlapping groups of 16, so a group boundary is not a visible seam.
  • 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": "low/a.mp4", "target": "high/a.mp4"} line per pair, paths relative to the manifest. Each target is exactly 4 times its input's width and height (at most 1920 x 1080), with the same number of frames, at least 5; inputs are at least 64 pixels a side.
  • Training works on random 5-frame windows of 64 x 64 crops of the first 48 frames of each clip and stops after the steps you ask for or after 9 hours, keeping what it has learned.

Attribution

RealBasicVSR by Kelvin C.K. Chan, Shangchen Zhou, Xiangyu Xu and Chen Change Loy, released under the Apache License 2.0; its code is distributed by OpenMMLab's MMagic, also under the Apache License 2.0.

RealBasicVSR inputs and output

NameTypeRequiredDefaultDetails
videofileYes—The video to enlarge: MP4, MOV, WebM or MKV, at most 256 MB, 150 frames and 230,400 pixels a frame. The result has no sound.
1–2048 characters · video/mp4, quicktime, webm, x-matroska

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

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

Fine-tune RealBasicVSR

You can fine-tune RealBasicVSR 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 the same clip exactly 4 times larger, and manifest.jsonl with one {"input", "target"} line per pair. More: Good to know, in the README.

The steps are in the docs.

RealBasicVSR 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

Real-ESRGAN Video: Video Editing model on Kainguru
Video Editing

Real-ESRGAN Video

Enlarges a video 2 or 4 times, frame by frame, with Real-ESRGAN: sharper detail and less noise and blur, with a photo…

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

SAM 2.1 Video

Marks objects on one frame of a video with a click or a box, follows them through the whole clip and returns a mask…

Fine-tunable