supported Text-to-Video, first-frame image-to-Video and Reference-to-Video.Create Taskafter returntaskId, can Polling query, can in create when provide Callback URL.
endpointBase URL:https://mm-internal-cn.leonecloud.com
| Method | Path | Description |
|---|---|---|
| POST | /api/v2/open/aigc/wan-2.2-spicy | Create Task |
| GET | /api/v2/open/aigc/{taskId} | query task |
| POST | /api/v2/open/aigc/batch | Query Task |
Request:Authorization: Bearer <YOUR_API_KEY>; POST useContent-Type: application/json.
Create Task
curl -X POST "https://mm-internal-cn.leonecloud.com/api/v2/open/aigc/wan-2.2-spicy" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"prompt":"localized example text","resolution":"480p","duration":5,"ratio":"16:9"}'| field | Type | Description |
|---|---|---|
prompt | string | Required.video. |
imageUrls | string[] | first-frame image-to-Videowhen images image URL. |
r2vMedia | object[] | Reference-to-Videowhen, up to 5.localized example texttype andurl; type can asreference_image, reference_video orfirst_frame.andimageUrls; If omitted as Text-to-Video. |
resolution | string | as480p. |
duration | integer | 5–8 seconds, default 5 seconds. |
ratio | string | 16:9 (default), 9:16 or1:1.first-frame image-to-Videofirst frame. |
negativePrompt | string | Optional.localized example text. |
promptOptimization | boolean | Optional.Prompt, enabled by default. |
callbackUrl | string | Optional.taskafter URL. |
taskNickname | string | Optional.tasklocalized example text. |
Reference-to-VideoRequest Example:
{
"prompt": "Reference video, Reference image in the",
"resolution": "480p",
"duration": 5,
"r2vMedia": [
{"type": "reference_image", "url": "https://example.com/sailboat.jpg"},
{"type": "reference_video", "url": "https://example.com/camera-motion.mp4"}
]
}Query Task
curl "https://mm-internal-cn.leonecloud.com/api/v2/open/aigc/<TASK_ID>" \
-H "Authorization: Bearer <YOUR_API_KEY>"return{code, msg, data} localized example text.task bookingSuccesswhendata.taskId Task ID; query whendata.status, Successafterdata.result video.query Request Body as{"taskIds":["<TASK_ID>"]}.