Video quality enhancement

An AI video enhancer and upscaler API. Improve sharpness and detail and upscale videos to 2K, 4K, or 8K with Fast, Quality, and Master models.

Basics

8 specifications · Category: video tools

1. Overview

Supported specifications

ModelOutput resolutionTool ID
Fast2KSKM0001
Fast4KSKM0011
Quality2KSKM0008
Quality4KSKM0009
Quality8KSKM0010
Master2KSKM0012
Master4KSKM0013
Master8KSKM0014

Choose the tool ID for the specification you need. Availability and quota depend on your account's catalog.

Before you call

Prepare your video. See "Limits" below for file requirements. Check the config API or SDK task catalog to confirm that your account can use the tool ID you choose. Listing the catalog does not consume quota.

2. Try it

The examples use Fast 2K (SKM0001). To use another specification, replace the tool ID. vmake_run and the SDK load that specification's task, task_type, params, and profile from the config.

This tool works with its default parameters.

HTTP API
Python
CLI

First paste the setup commands from HTTP API quick start into Bash. They define vmake_run, which gets the config, consumes quota, submits the task, and polls until it finishes. Set media_url to a publicly readable video you are authorized to use. To use a local file, upload it to OSS first and use the resulting URL.

This command consumes quota.

media_url='Replace with your video HTTPS URL'
vmake_run SKM0001 '{}' "$media_url"

The function prints data from the final response. When data.status is 10, read the output from data.result. When it is 2 or 20, read data.msg and see Errors and troubleshooting. To see each request on its own, follow the steps from Get config to Poll task status.

3. Reference

3.1 Task settings

These are the config values for each specification. Always use the current values from the config API. For HTTP submission, serialize params as a JSON string and, when present, copy the complete profile object to init_images[0].profile. The SDK handles this mapping automatically.

Fast 2K · SKM0001
{
  "task": "/v1/hdvideoallinone_async",
  "task_type": "speedup",
  "params": {},
  "profile": {
    "media_profiles": {
      "sr_mode": 2,
      "use_hdv5": 0
    }
  }
}
Fast 4K · SKM0011
{
  "task": "/v1/hdvideoallinone_async",
  "task_type": "speedup",
  "params": {},
  "profile": {
    "media_profiles": {
      "sr_mode": 3,
      "use_hdv5": 0
    }
  }
}
Quality 2K · SKM0008
{
  "task": "/v1/aigcvsrv2_async",
  "task_type": "speedup",
  "params": {},
  "profile": {
    "media_profiles": {
      "sr_mode": 2
    }
  }
}
Quality 4K · SKM0009
{
  "task": "/v1/aigcvsrv2_async",
  "task_type": "speedup",
  "params": {},
  "profile": {
    "media_profiles": {
      "sr_mode": 3
    }
  }
}
Quality 8K · SKM0010
{
  "task": "aigc_quality_super_definition_8k_flow",
  "task_type": "workflow",
  "params": {}
}
Master 2K · SKM0012
{
  "task": "/v1/interfilmvsr_async",
  "task_type": "speedup",
  "params": {},
  "profile": {
    "media_profiles": {
      "sr_mode": 2
    }
  }
}
Master 4K · SKM0013
{
  "task": "/v1/interfilmvsr_async",
  "task_type": "speedup",
  "params": {},
  "profile": {
    "media_profiles": {
      "sr_mode": 3
    }
  }
}
Master 8K · SKM0014
{
  "task": "aigc_interfilm_super_definition_8k_flow",
  "task_type": "workflow",
  "params": {}
}

3.2 Limits

ItemValue
Max duration600 s
Max file size300 MB
Max width4096px
Max height4096px

3.3 Processing time

  • Processing time depends on the size and complexity of the media. Actual calls are authoritative.
  • Follow status_query.durations from the token policy for polling intervals. vmake_run and the SDK poll automatically.

3.4 Pricing

  • Quota is deducted before each submission. vmake_run and the SDK do this automatically. Unit prices and free quota follow your plan and the selected tool ID.
  • If a task fails, the quota deducted for that task is returned to your account.
  • Querying an existing task does not deduct quota again. Submitting again deducts quota again.