Video / Muse

Muse Video Video Generation

Overview

Muse Video Video Generationendpoint, supported2 localized example text, localized example textimageUrls:localized example textConditionDescription
Text-to-VideoIf omitted imageUrlsVideo
Reference image-to-Videolocalized example textimageUrls (1~9 images )Reference image+ PromptVideo

video:Duration 10 seconds, Resolution 720p, audio, localized example text.

astask:create endpoint returntaskId, query endpointPolling.

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


Authentication

Authorization: Bearer {YOUR_AUTH_TOKEN}

Quick Start

Create Text-to-Video task

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v2/open/aigc/muse-video" \
 -H "Authorization: Bearer your_auth_token_here" \
 -H "Content-Type: application/json" \
 -d '{
 "prompt": "when,,, no",
 "aspectRatio": "16:9"
 }'

create Reference image-to-Videotask

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v2/open/aigc/muse-video" \
 -H "Authorization: Bearer your_auth_token_here" \
 -H "Content-Type: application/json" \
 -d '{
 "prompt": "in the,",
 "imageUrls": ["https://example.com/reference.jpg"]
 }'

Query Task Status

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

Create Task

POST /api/v2/open/aigc/muse-video

Content-Type: application/json

Request Parameters

ParameterTypeRequiredDescription
promptstringYesPrompt, supported in, as (Reference image when Required)
imageUrlsstring[]NoReference image (URL or base64 data URI),up to 9 images, with Reference image exceeds 11MB; Reference image-to-Video
aspectRatiostringNoAspect ratio, Optional 1:1 / 16:9 / 9:16 / 4:3 / 3:4 / 3:2 / 2:3.If omittedorauto when:Text-to-Videodefault16:9, Reference image-to-VideoReference image image
durationintNovideoDuration(seconds), supported10, If omittedlocalized example text10
resolutionstringNoResolution, supported720p, If omittedlocalized example text720p
taskNicknamestringNoTask label, in tasklist in
callbackUrlstringNoCallback notification URL after the task is complete
Note:
- duration localized example text10,resolution localized example text720p, will return ParameterError, will.
- aspectRatio 7 ( andauto), return ParameterError.
- videodefaultaudio, no no.
- supported Reference video, Reference audio, last frame,, supportedseed, negative_prompt etc. Parameter.
- imageUrls 11MB with Reference image, single image; exceeds 9 images return ParameterError.

Request Example

Text-to-Video (portrait):

{
 "prompt": ",,",
 "aspectRatio": "9:16"
}

Reference image-to-Video (multiple imagesReference image):

{
 "prompt": "number images image in the character number images image Scenario,",
 "imageUrls": [
 "https://example.com/character.jpg",
 "https://example.com/scene.jpg"
 ],
 "taskNickname": "characterlocalized example text"
}

Response Example

{
 "code": 0,
 "msg": "success",
 "data": {
 "taskId": "task_20261104103000_abc12345",
 "status": "processing",
 "createdAt": "2026-11-04 10:30:00"
 }
}

Billing, 10 seconds 720p audiovideo, Text-to-Video and Reference image-to-Video, Reference imagelocalized example text.

taskcreate when,onlyin Success when; Failure.

localized example text「localized example text」as.


Query Task Status

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

Response Parameters

ParameterTypeDescription
codeintStatus Code, 0 indicates success
msgstringMessage
data.taskIdstringTask ID
data.statusstringprocessing / success / failed
data.resultstring[]Generated video URL list (Successreturned when applicable)
data.errorMsgstringError Message (Failurereturned when applicable)
data.createdAtstringCreated Time
data.updatedAtstringUpdated Time

Response Example

Success

{
 "code": 0,
 "msg": "success",
 "data": {
 "taskId": "task_20261104103000_abc12345",
 "status": "success",
 "result": [
 "https://fc-gw-sh.oss-accelerate.aliyuncs.com/videos/2026/11/04/output_001.mp4"
 ],
 "createdAt": "2026-11-04 10:30:00",
 "updatedAt": "2026-11-04 10:33:20"
 }
}

Failure

{
 "code": 0,
 "msg": "success",
 "data": {
 "taskId": "task_20261104103000_abc12345",
 "status": "failed",
 "errorMsg": "Failure:",
 "createdAt": "2026-11-04 10:30:00",
 "updatedAt": "2026-11-04 10:31:10"
 }
}

Batch Query Task Status

POST /api/v2/open/aigc/batch

{
 "taskIds": ["task_20261104103000_abc12345", "task_20261104103200_def67890"]
}

Callback Notification

task complete (Success or Failure) when, if Create Task when providecallbackUrl, was provided when creating the task, the system sends a POST request to that URL.

Headers

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

Body (taskindata fieldin, and「Query Task Status」endpointlocalized example textdata ):```json
{
"event": "task.completed",
"timestamp": "2026-11-04T10:33:20+08:00",
"signature": "a1b2c3d4e5f6...",
"data": {
"taskId": "task_20261104103000_abc12345",
"status": "success",
"result": ["https://fc-gw-sh.oss-accelerate.aliyuncs.com/videos/output_001.mp4"],
"createdAt": "2026-11-04 10:30:00",
"updatedAt": "2026-11-04 10:33:20"
}
}


---

## Error Codes

| code | Description |
|------|------|
| 0 | Success |
| 10002 | Parametermissing or malformed (prompt as, Reference image exceeds 9 images,`aspectRatio` in 7,`duration` 10,`resolution` 720p)|
| 10005 | API Key invalid or missing |
| 30003 | Task not found |
| 40001 | Insufficient balance, no complete,|
| 40004 |, can after|
| 60001 | Modelcan use, after|
| 90003 | Internal server error |

---

## Best Practices

### Polling Strategy

- first 1 minutes:query every 10 seconds
- 1 minutes after: 15 seconds query`callbackUrl`, taskcomplete after, no Polling.

### Prompt recommended

- subject,, and,「,」
- when, in prompt「no」
- Reference image-to-Videowhen, prompt**and**, Reference image
- multiple imagesReference image when,「number images image」「number images image」refer to each image
Updated 2026-11-04