Image quality enhancement

An AI image upscaler and enhancer API. Restores low-resolution and compressed images to 2K quality.

Basics

Tool ID SKM0004 ยท Category: image tools

1. Overview

Supported specifications

ModelOutput resolutionTool ID
Fast2KSKM0004

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

Use cases

  • Restore heavily compressed product photos so shoppers can see the details.
  • Sharpen older photos for full-page layouts.

Before you call

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

2. Try it

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 image 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 image HTTPS URL'
vmake_run SKM0004 '{}' "$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 SKM0004. 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.

{
  "task": "/v2/image_restoration_async",
  "task_type": "mtlab",
  "params": {}
}

3.2 Limits

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