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 text | algoType | Scenario |
|---|---|---|---|
| localized example text | standard | , when, UGC, video,, video etc. | |
| localized example text | pro | Model 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 return
taskId,statusasprocessing. - when videoDuration and,Usually 1 minutesvideo10~ 50 minutes, Polling or Use Callback.
- taskSuccessafter
result[0]as after video (MP4 / H.264).
create task**POST** /api/v2/open/aigc/damo-sr
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| videoUrl | string | Yes | video URL, can (HTTP 200) |
| algoType | string | Yes | :standard () /pro () |
| targetResolution | int / string | Yes | Resolutionshort side:720 / 1080 / 1440 / 2160 / 4320 |
| duration | int | Yes | videoDuration (seconds),, must greater than 0 |
| fps | number | No | video frame rate,, 0~ 120; If omittedlocalized example text≤30fps localized example text |
| taskNickname | string | No | Task label, in /tasklist in |
| callbackUrl | string | No | Callback notification URL after the task is complete |
targetResolutionDescription:short side etc., videoAspect ratio.1280×720 landscapevideo1080output 1920×1080, 720×1280 portraitvideo1080output 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/fpsDescription: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
| 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_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
| 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,validity period 3 localized example text |
| 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_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 Taskwhen
duration/fps; taskSuccessafter output video Duration and frame rate (), taskFailurelocalized example text.
Error Codes
| code | Description |
|---|---|
| 0 | Success |
| 10002 | Parametermissing or malformed (localized example textvideoUrl as,algoType / targetResolution,duration not ) |
| 10005 | API Key invalid or missing |
| 30003 | Task not found |
| 40001 | Insufficient balance |
| 40004 | , after |
| 90003 | can use or Internal server error |
Best Practices
- video can:
videoUrlas no, can, task will FailureFailure (Failure, ). - localized example text
duration/fps:first videoseconds and frame rate, and. - and:localized example text
1080; repair, AI video;2160/4320when and. - Pollinglocalized example text:when minutes, recommended10 ~ 30 secondsquery, height Polling.
- localized example text:localized example text
callbackUrlcan Polling, when Polling as. - and when store:
result[0]validity period 3, after no, after and when or store with.