All models
Alibaba
Video
Available
Wan 2.7 Video Edit
Use this endpoint to create a new video editing generation task.
Video Editing
From 400 credits (≈ ₹400.00) per request.
Parameters
| Parameter | Type | Description |
|---|---|---|
prompt |
string | Optional text prompt describing the expected elements and visual features in the generated video. Supports Chinese and English. Maximum length: 5000 characters. max length 5000 |
negative_prompt |
string | Optional negative prompt describing content that should not appear in the video. Supports Chinese and English. Maximum length: 500 characters. max length 500 |
video_urlRequired |
string | URL of the source video to edit. Required. Only one video is supported. - Formats: `mp4`, `mov` - Duration: `2` to `10` seconds - Resolution: width and height range `[240,4096]` pixels - Aspect ratio: `1:8` to `8:1` - File size: up to `100MB` - Supports public `http/https` URLs or temporary `oss` URLs format: uri |
reference_image |
string | Optional reference image URL for character, clothing, or style guidance. - Formats: `JPEG`, `JPG`, `PNG` (no alpha channel), `WEBP` - Resolution: width and height range `[240,8000]` pixels - Aspect ratio: `1:8` to `8:1` - Supports public `http/https` URLs or temporary `oss` URLs format: uri |
resolution |
string | Output video resolution tier. `1080p` costs more than `720p`. Default value: `1080p`. - `720p`: 720p - `1080p`: 1080p one of: "720p", "1080p" · default "1080p" |
aspect_ratio |
string | Output video aspect ratio. - If omitted: the output uses an aspect ratio close to the input video - If provided: the output uses the specified aspect ratio - Available values: `16:9`, `9:16`, `1:1`, `4:3`, `3:4` one of: "16:9", "9:16", "1:1", "4:3", "3:4" |
duration |
integer | Output video duration in seconds. - Default `0` means using the full input video duration without truncation - If a value is provided, the output is clipped from second `0` to the specified length - Valid values are `0` or any integer in `[2,10]` min 0 · max 10 · default 0 |
audio_setting |
string | Video audio setting. - `auto`: default, the model decides whether to regenerate audio based on the `prompt` - `origin`: force keeping the original input video audio one of: "auto", "origin" · default "auto" |
prompt_extend |
boolean | Whether to enable prompt rewriting. When enabled, the model expands the input prompt. This usually works better for short prompts but increases processing time. default true |
watermark |
boolean | Whether to add a watermark. The watermark is placed in the lower-right corner of the video with the fixed text "AI generated". default false |
seed |
integer | Random seed. Range: `0-2147483647`. If omitted, the system generates one automatically. min 0 · max 2147483647 |
nsfw_checker |
boolean | Defaults to false. When false, no additional content filtering is applied and results are returned directly by the model. |
What you get back
Files arrive in output.files[] as private links that expire, with their type and size.
Use it from your code
# 1. Create the task
curl https://nexus.promptscenes.in/api/v1/tasks \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "wan-2.7-video-edit",
"input": {
"video_url": "https://example.com/input.png",
"resolution": "1080p",
"aspect_ratio": "16:9",
"duration": 0,
"audio_setting": "auto",
"prompt_extend": true,
"watermark": false
},
"callback_url": "https://your-app.com/webhooks/nexus"
}'
# 2. Poll for the result
curl https://nexus.promptscenes.in/api/v1/tasks/TASK_ID \
-H "Authorization: Bearer $NEXUS_API_KEY"
import os, time, uuid, requests
API = "https://nexus.promptscenes.in/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['NEXUS_API_KEY']}"}
task = requests.post(
f"{API}/tasks",
headers={**HEADERS, "Idempotency-Key": str(uuid.uuid4())},
json={
"model": "wan-2.7-video-edit",
"input": {
"video_url": "https://example.com/input.png",
"resolution": "1080p",
"aspect_ratio": "16:9",
"duration": 0,
"audio_setting": "auto",
"prompt_extend": True,
"watermark": False,
},
"callback_url": "https://your-app.com/webhooks/nexus",
},
).json()
while task["status"] not in ("succeeded", "failed", "cancelled"):
time.sleep(3)
task = requests.get(f"{API}/tasks/{task['id']}", headers=HEADERS).json()
print(task["status"], task.get("output"))
const API = "https://nexus.promptscenes.in/api/v1";
const headers = {
Authorization: `Bearer ${process.env.NEXUS_API_KEY}`,
"Content-Type": "application/json",
};
let task = await fetch(`${API}/tasks`, {
method: "POST",
headers: { ...headers, "Idempotency-Key": crypto.randomUUID() },
body: JSON.stringify({
"model": "wan-2.7-video-edit",
"input": {
"video_url": "https://example.com/input.png",
"resolution": "1080p",
"aspect_ratio": "16:9",
"duration": 0,
"audio_setting": "auto",
"prompt_extend": true,
"watermark": false
},
"callback_url": "https://your-app.com/webhooks/nexus"
}),
}).then((r) => r.json());
while (!["succeeded", "failed", "cancelled"].includes(task.status)) {
await new Promise((r) => setTimeout(r, 3000));
task = await fetch(`${API}/tasks/${task.id}`, { headers }).then((r) => r.json());
}
console.log(task.status, task.output);
Request
{
"model": "wan-2.7-video-edit",
"input": {
"video_url": "https://example.com/input.png",
"resolution": "1080p",
"aspect_ratio": "16:9",
"duration": 0,
"audio_setting": "auto",
"prompt_extend": true,
"watermark": false
}
}
Response
{
"id": "6f1c…",
"object": "task",
"model": "wan-2.7-video-edit",
"status": "succeeded",
"output": {
"files": [
{
"url": "https://…signed…",
"mime": "…",
"size": 0
}
]
},
"estimated_cost": "…",
"charged": "…"
}