Video / Super Resolution

videolocalized example text## Overview

videoendpoint with video, Resolution (720p / 1080p / 2k / 4k), return after video.

Scenario:Resolution asset, AIGC video, repair first Resolution.

Base URL: https://mm-internal-cn.leonecloud.com


Authentication

All endpoints require a token in the request header for authentication:

Authorization: Bearer {YOUR_AUTH_TOKEN}

localized example text`` create task(videoUrl+ quality) │ └── taskId → PollingTask Status / etc.→ return after video``

  • taskaslocalized example text:create endpoint returntaskId, status asprocessing.
  • localized example text「Pollingquery endpoint」or「Callback Notification」, can.
  • taskSuccessafterresult[0] as after video.

create task**POST** /api/v2/open/aigc/super-resolution

Request Parameters

ParameterTypeRequiredDescription
videoUrlstringYesvideo URL, can
qualitystringYesResolution:720p / 1080p / 2k / 4k
durationintNovideoDuration (seconds),.recommended, If omitted1 minutes
taskNicknamestringNoTask label, in /tasklist in
callbackUrlstringNoCallback notification URL after the task is complete
quality Description:size, when, will:>
| localized example text| localized example text|
|---------|---------|
| 720p | 720, hd |
| 1080p | 1080, fhd |
| 2k | 2560, 1440 |
| 4k | 2160 |

in when endpoint return ParameterError.

duration Description:output Durationminutes ( 1 minutes 1 minutes).in create when,taskcomplete after will videoDuration, will and.

Request Example

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v2/open/aigc/super-resolution" \
 -H "Authorization: Bearer your_auth_token_here" \
 -H "Content-Type: application/json" \
 -d '{
 "videoUrl": "https://example.com/source_480p.mp4",
 "quality": "1080p",
 "duration": 8,
 "taskNickname": "localized example text",
 "callbackUrl": "https://your-domain.com/callback/sr"
 }'

Response Parameters

ParameterTypeDescription
codeintStatus Code, 0 indicates success
msgstringMessage
data.taskIdstringTask ID, used to query task status
data.statusstringTask Status, fixed to processing
data.createdAtstringCreated Time

Response Example

{
 "code": 0,
 "msg": "success",
 "data": {
 "taskId": "task_20260903160000_abc12345",
 "status": "processing",
 "createdAt": "2026-09-03 16:00:00"
 }
}

Query Task Status

GET /api/v2/open/aigc/{taskId}

curl -X GET "https://mm-internal-cn.leonecloud.com/api/v2/open/aigc/task_20260903160000_abc12345" \
 -H "Authorization: Bearer your_auth_token_here"

Response Parameters

ParameterTypeDescription
data.taskIdstringTask ID
data.statusstringTask Status:processing / success / failed
data.resultarraySuccessreturned when applicableafter video,result[0] as
data.errorMsgstringFailure, onlyfailed returned when applicable
data.createdAtstringCreated Time
data.updatedAtstringafter Updated Time

Response Example

processing

{
 "code": 0,
 "msg": "success",
 "data": {
 "taskId": "task_20260903160000_abc12345",
 "status": "processing",
 "createdAt": "2026-09-03 16:00:00",
 "updatedAt": "2026-09-03 16:00:05"
 }
}

Success

{
 "code": 0,
 "msg": "success",
 "data": {
 "taskId": "task_20260903160000_abc12345",
 "status": "success",
 "result": [
 "https://fc-gw-sh.oss-accelerate.aliyuncs.com/videos/2026/09/03/output_1080p.mp4"
 ],
 "createdAt": "2026-09-03 16:00:00",
 "updatedAt": "2026-09-03 16:02:40"
 }
}

Failure

{
 "code": 0,
 "msg": "success",
 "data": {
 "taskId": "task_20260903160000_abc12345",
 "status": "failed",
 "errorMsg": "task execute Failure",
 "createdAt": "2026-09-03 16:00:00",
 "updatedAt": "2026-09-03 16:01:30"
 }
}

Callback Notification

Create Task when providecallbackUrl, taskcomplete (Success or Failure) when will URL POST.

Headers

Content-Type: application/json
X-Funcloud-Event: task.completed
X-Funcloud-Signature: {localized example text}

Body

{
 "event": "task.completed",
 "taskId": "task_20260903160000_abc12345",
 "status": "success",
 "result": [
 "https://fc-gw-sh.oss-accelerate.aliyuncs.com/videos/2026/09/03/output_1080p.mp4"
 ],
 "errorMsg": "",
 "timestamp": "2026-09-03T16:02:40+08:00",
 "signature": "a1b2c3d4e5f6..."
}
return 2xx Status Code, when exceeds 10 seconds, as Failure.as, recommended when Polling.

Billing

  • localized example textlocalized example text× output Duration (minutes), Duration,1 minutes 1 minutes.
  • height height (4k > 2k > 1080p > 720p), reference Pricing or.
  • Create Taskwhenduration:taskSuccessafter, taskFailurelocalized example text.
  • duration If omittedwhen 1 minutes and, videoDuration and.

Error Codes

codeDescription
0Success
10002Parametermissing or malformed (localized example textvideoUrl as,quality )
10005API Key invalid or missing
10006Insufficient balance
30003Task not found
90003Internal server error

Best Practices

  1. video can:videoUrl as no, can, task will FailureFailure (Failure, ).
  2. localized example textduration:Duration, recommended in first videoseconds.
  3. localized example text:localized example text720p, height1080p; /2k / 4k, when and.
  4. Pollinglocalized example text:
  5. First 30 seconds:query every 3 seconds
  6. 30 seconds ~ 2 minutes:query every 5 seconds
  7. After 2 minutes:query every 10 seconds
  8. localized example text:localized example textcallbackUrl can Polling, when Polling as.
Updated 2026-09-04