Video / DAMO SR

DAMO localized example text## Overview

DAMO with video, SD (480p), HD (720p) etc. Resolutionvideo as 720P~ 8K height video, in Resolution when, and when, return after video.

provide:localized example textalgoTypeScenario
localized example textstandard, when, UGC, video,, video etc.
localized example textproModel and repair, repair, AI video,

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+ algoType + targetResolution + duration) │ └── taskId → PollingTask Status / etc.→ return after video``

  • taskaslocalized example text:create endpoint returntaskId, status asprocessing.
  • when videoDuration and,Usually 1 minutesvideo10~ 50 minutes, Polling or Use Callback.
  • taskSuccessafterresult[0] as after video (MP4 / H.264).

create task**POST** /api/v2/open/aigc/damo-sr

Request Parameters

ParameterTypeRequiredDescription
videoUrlstringYesvideo URL, can (HTTP 200)
algoTypestringYes:standard () /pro ()
targetResolutionint / stringYesResolutionshort side:720 / 1080 / 1440 / 2160 / 4320
durationintYesvideoDuration (seconds),, must greater than 0
fpsnumberNovideo frame rate,, 0~ 120; If omittedlocalized example text≤30fps localized example text
taskNicknamestringNoTask label, in /tasklist in
callbackUrlstringNoCallback notification URL after the task is complete
targetResolution Description:short side etc., videoAspect ratio.1280×720 landscapevideo1080 output 1920×1080, 720×1280 portraitvideo1080 output 1080×1920.when:>
| localized example text| localized example text| localized example text|
|-------|-----|---------|
| 720 | 720P | 720p |
| 1080 | 1080P | 1080p |
| 1440 | 2K | 1440p, 2k |
| 2160 | 4K | 2160p, 4k |
| 4320 | 8K | 4320p, 8k |

in when endpoint return ParameterError.

duration / fps Description:create when.taskSuccessafteroutput video Duration and frame rate,, will, will and, recommended.

Request Example

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v2/open/aigc/damo-sr" \
 -H "Authorization: Bearer your_auth_token_here" \
 -H "Content-Type: application/json" \
 -d '{
 "videoUrl": "https://example.com/source_480p.mp4",
 "algoType": "standard",
 "targetResolution": 1080,
 "duration": 30,
 "fps": 25,
 "taskNickname": "localized example text",
 "callbackUrl": "https://your-domain.com/callback/damo-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_20261028213857_hsfipzcx",
 "status": "processing",
 "createdAt": "2026-10-28 21:38:57"
 }
}

Query Task Status

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

curl -X GET "https://mm-internal-cn.leonecloud.com/api/v2/open/aigc/task_20261028213857_hsfipzcx" \
 -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,validity period 3 localized example text
data.errorMsgstringFailure, onlyfailed returned when applicable
data.createdAtstringCreated Time
data.updatedAtstringafter Updated Time

Response Example

processing

{
 "code": 0,
 "msg": "success",
 "data": {
 "taskId": "task_20261028213857_hsfipzcx",
 "status": "processing",
 "createdAt": "2026-10-28 21:38:57",
 "updatedAt": "2026-10-28 21:38:58"
 }
}

Success

{
 "code": 0,
 "msg": "success",
 "data": {
 "taskId": "task_20261028213857_hsfipzcx",
 "status": "success",
 "result": [
 "https://fc-gw-sh.oss-accelerate.aliyuncs.com/downloads/20261028/task_20261028213857_hsfipzcx_0.mp4"
 ],
 "createdAt": "2026-10-28 21:38:57",
 "updatedAt": "2026-10-28 21:40:44"
 }
}

Failure

{
 "code": 0,
 "msg": "success",
 "data": {
 "taskId": "task_20261028214240_dvuhdq69",
 "status": "failed",
 "errorMsg": "videoFailure, videoUrl can",
 "createdAt": "2026-10-28 21:42:40",
 "updatedAt": "2026-10-28 21:43:05"
 }
}

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_20261028213857_hsfipzcx",
 "status": "success",
 "result": [
 "https://fc-gw-sh.oss-accelerate.aliyuncs.com/downloads/20261028/task_20261028213857_hsfipzcx_0.mp4"
 ],
 "errorMsg": "",
 "timestamp": "2026-10-28T21:40:44+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 resolutionlocalized example text× output frame rate× output Duration (minutes), Duration,1 minutes 1 minutes.
  • frame rate:≤30fps, 30 ~ 60fps, 60 ~ 120fps.frame rate height, Resolution height height, height, reference Pricing or.
  • Create Taskwhenduration / fps; taskSuccessafter output video Duration and frame rate (), taskFailurelocalized example text.

Error Codes

codeDescription
0Success
10002Parametermissing or malformed (localized example textvideoUrl as,algoType / targetResolution,duration not )
10005API Key invalid or missing
30003Task not found
40001Insufficient balance
40004, after
90003can use or Internal server error

Best Practices

  1. video can:videoUrl as no, can, task will FailureFailure (Failure, ).
  2. localized example textduration / fps:first videoseconds and frame rate, and.
  3. and:localized example text1080; repair, AI video;2160 / 4320 when and.
  4. Pollinglocalized example text:when minutes, recommended10 ~ 30 secondsquery, height Polling.
  5. localized example text:localized example textcallbackUrl can Polling, when Polling as.
  6. and when store:result[0] validity period 3, after no, after and when or store with.
Updated 2026-10-29