The video super-resolution online service enhances the clarity and resolution of input videos using a video super-resolution model, delivering higher-resolution video output. Applicable to scenarios such as restoration of old films, material enhancement, 4K production, and video clarity enhancement.
Operator ID: las_video_super_resolution
target_width.Sub-items | Performance impact description |
|---|---|
Maximum RPM | 600 |
Maximum concurrency | 10 |
Processing time | Total processing time is directly related to video duration, video frame rate, and output video resolution. The higher the input resolution and the larger the target resolution, the longer the overall processing time usually is. Excluding task queue time, the formula for operator processing time is:
Processing time example: For a 720p, 20 fps, 10 s video, the processing time is warning
|
Sub-items | Detailed requirements |
|---|---|
Supported input data modalities |
|
Input format: Video |
|
Input path requirements | Provide input data to the operator via the
|
Sub-items | Detailed requirements |
|---|---|
Output data modalities |
|
Output path: TOS | Specify the storage path for the operator's output results via the
|
Billing standards
Sub-item | Billing standards description |
|---|---|
Billing item | Billing is calculated based on the duration of the output video. During billing, the video duration is adjusted using a conversion coefficient based on the output video frame rate. |
Billing type | Pay-as-you-go, unit: |
Unit price | The unit price depends on the resolution you select for the super-resolved video. |
Billing details
Billing formula: Total cost = unit price * billing usage = unit price * (video duration * duration conversion coefficient)
Sub-scenario | Unit price | Duration conversion coefficient (per thousand tokens) |
|---|---|---|
Output video resolution ≤ 720p | 2.2 CNY/minute | Different output video frame rates are converted to different coefficients:
|
720p < output video resolution ≤ 1080p | 6.6 CNY/minute | |
1080p < output video resolution ≤ 1440p | 11 CNY/minute | |
1440p < output video resolution | 24.2 CNY/minute |
Billing example
When the actual output video resolution is 720p, the video duration is 10 minutes, and the frame rate is 60 fps:
Cost = unit price * (video duration * coefficient) = 2.2 CNY/minute * (10 minutes * 2) = 44 CNYDetails | Caution and prerequisites |
|---|---|
Costs | Before calling an operator, you need to understand the model invocation costs associated with using the operator. For details, see Large model invocation billing. |
Authentication (API Key) | Before calling an operator, you need to generate an API Key for operator invocation. It is recommended to configure the API Key as an environment variable to ensure safer operator calls. For details, see Obtain and configure API Key. |
BaseURL | Before calling an operator, you need to determine the BaseURL for operator invocation based on the region where your current LAS service is deployed. This is used to configure the path parameter values for operator calls. |
The API for this operator is an asynchronous task interface. You need to submit tasks via the submit interface, then use the Poll interface to obtain task status and retrieve the operator processing results. Meanwhile, this operator supports asynchronous callback capability (Callback). You can set the callback parameter callback.url when initiating the operator task. LAS will send HTTP POST notifications to this URL. For guidance on using asynchronous callbacks, refer to Asynchronous callback API.
Call the Submit API to submit an asynchronous task. After a successful submission, the API returns a task ID. You can use this task ID to query subsequent processing status and results.
Parameter | Type | Required | Example value | Description |
|---|---|---|---|---|
operator_id | string | Yes | las_video_super_resolution | Operator ID. |
operator_version | string | Yes | v1 | Operator version. |
data | VideoSuperResolutionReqParams | Yes | Video super-resolution request parameters. | |
callback | Callback | No | Task status callback configuration. After configuring callback.url, a POST request will be sent to this address when the task status changes. If not configured, you can query task status and results via Poll. |
Parameter | Type | Example value | Description |
|---|---|---|---|
metadata | object | Request metadata. |
# Please set OUTPUT_TOS_PATH to a tos path that is writable by this account export OUTPUT_TOS_PATH="tos://path/to/sr_results" curl --location "https://operator.las.ap-southeast-1.volces.com/api/v1/submit" --header "Content-Type: application/json" --header "Authorization: Bearer $LAS_API_KEY" --data '{ "operator_id": "las_video_super_resolution", "operator_version": "v1", "data": { "video_url": "https://${LAS_TOS_BUCKET}.${TOS_ENDPOINT}/operator_cards_serving/public/${LAS_ENVIRONMENT}/las_video_super_resolution/v1/sample_input.mp4", "output_tos_path": "$OUTPUT_TOS_PATH", "target_width": 1920 } }'
{ "metadata": { "task_id": "task-20260413191000-abc123", "task_status": "PENDING", "business_code": "0", "error_msg": "" } }
HttpStatusCode | Error code | Error message | Description |
|---|---|---|---|
|
|
| The video link is invalid. |
|
|
| The video file is invalid or cannot be parsed. |
|
|
| Video download failed. |
|
|
| Video format not supported. |
|
|
| Video duration exceeds the maximum limit. |
|
|
| The video file is too large. |
|
|
| The parameter is invalid. |
|
|
| Video processing timeout. |
|
|
| Failed to upload the resulting video. |
|
|
| TOS access failed. |
|
|
| Authorization is missing. |
|
|
| The API is invalid. |
|
|
| Internal service error, such as super-resolution inference failure or result concatenation failure. |
Call the Poll API to query the execution status and results of the video super-resolution asynchronous task. You need to provide task_id. When the task status is COMPLETED, you can obtain result information (such as the TOS address of the output video) in the returned data.
Name | Type | Required | Example value | Description |
|---|---|---|---|---|
|
| Required |
| Operator ID. |
|
| Required |
| Operator version. |
|
| Required |
| Asynchronous task ID. |
Parameter | Type | Example value | Description |
|---|---|---|---|
metadata | object | Request metadata. | |
data | VideoSuperResolutionResponse | Task result data. |
curl --location "https://operator.las.ap-southeast-1.volces.com/api/v1/poll" --header "Content-Type: application/json" --header "Authorization: Bearer $LAS_API_KEY" --data '{ "operator_id": "las_video_super_resolution", "operator_version": "v1", "task_id": "task-20260413191000-abc123" }'
{ "metadata": { "task_id": "task-20260413191000-abc123", "task_status": "COMPLETED", "submit_time": "2026-07-21T16:04:06+08:00", "end_time": "2026-07-21T16:04:06+08:00", "business_code": "0", "error_msg": "" }, "data": { "output_video_tos_url": "tos://path/to/sr_results/sample_output_1920x1080.mp4" } }
HttpStatusCode | Error code | Error message | Description |
|---|---|---|---|
|
|
| The video link is invalid. |
|
|
| The video file is invalid or cannot be parsed. |
|
|
| Video download failed. |
|
|
| Video format not supported. |
|
|
| Video duration exceeds the maximum limit. |
|
|
| The video file is too large. |
|
|
| The parameter is invalid. |
|
|
| Video processing timeout. |
|
|
| Failed to upload the resulting video. |
|
|
| TOS access failed. |
|
|
| Authorization is missing. |
|
|
| The API is invalid. |
|
|
| Internal service error, such as super-resolution inference failure or result concatenation failure. |