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 return
taskId,statusasprocessing. - localized example text「Pollingquery endpoint」or「Callback Notification」, can.
- taskSuccessafter
result[0]as after video.
create task**POST** /api/v2/open/aigc/super-resolution
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| videoUrl | string | Yes | video URL, can |
| quality | string | Yes | Resolution:720p / 1080p / 2k / 4k |
| duration | int | No | videoDuration (seconds),.recommended, If omitted1 minutes |
| taskNickname | string | No | Task label, in /tasklist in |
| callbackUrl | string | No | Callback notification URL after the task is complete |
qualityDescription: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.durationDescription: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
| Parameter | Type | Description |
|---|---|---|
| code | int | Status Code, 0 indicates success |
| msg | string | Message |
| data.taskId | string | Task ID, used to query task status |
| data.status | string | Task Status, fixed to processing |
| data.createdAt | string | Created 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
| Parameter | Type | Description |
|---|---|---|
| data.taskId | string | Task ID |
| data.status | string | Task Status:processing / success / failed |
| data.result | array | Successreturned when applicableafter video,result[0] as |
| data.errorMsg | string | Failure, onlyfailed returned when applicable |
| data.createdAt | string | Created Time |
| data.updatedAt | string | after 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 Taskwhen
duration:taskSuccessafter, taskFailurelocalized example text. durationIf omittedwhen 1 minutes and, videoDuration and.
Error Codes
| code | Description |
|---|---|
| 0 | Success |
| 10002 | Parametermissing or malformed (localized example textvideoUrl as,quality ) |
| 10005 | API Key invalid or missing |
| 10006 | Insufficient balance |
| 30003 | Task not found |
| 90003 | Internal server error |
Best Practices
- video can:
videoUrlas no, can, task will FailureFailure (Failure, ). - localized example text
duration:Duration, recommended in first videoseconds. - localized example text:localized example text
720p, height1080p; /2k/4k, when and. - Pollinglocalized example text:
- First 30 seconds:query every 3 seconds
- 30 seconds ~ 2 minutes:query every 5 seconds
- After 2 minutes:query every 10 seconds
- localized example text:localized example text
callbackUrlcan Polling, when Polling as.