Alibaba Wan 2.7 Video Extend
Playground
Try it on WavespeedAI!Alibaba WAN 2.7 Video Extend extends existing videos with optional last frame control and audio support, supporting 720p/1080p output. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.
Features
Wan 2.7 Video Extend
Wan 2.7 Video Extend continues an existing video clip with new AI-generated footage, seamlessly picking up from where the original ends. Upload a source video, describe what should happen next, and optionally provide an audio track — the model generates a natural, motion-consistent extension at 720p or 1080p.
- Need to edit a video? Try Wan 2.7 Video Edit
- Need to generate from an image? Try Wan 2.7 Image-to-Video
Why Choose This?
-
Seamless video continuation Extends your existing clip with new AI-generated footage that matches the original motion, style, and scene context.
-
Prompt-guided extension Describe what should happen next — direct the action, atmosphere, and narrative of the extended segment.
-
Audio input support Upload an audio track to guide the rhythm and pacing of the extended video.
-
Negative prompt support Specify what to avoid in the extension for more precise output control.
-
Prompt expansion Enable enable_prompt_expansion to let the model automatically enrich and optimize your prompt before generation.
-
Resolution options Generate extensions at 720p or 1080p to match your delivery requirements.
Parameters
| Parameter | Required | Description |
|---|---|---|
| video | Yes | Source video to extend (URL or file upload). |
| prompt | Yes | Text description of the desired continuation. |
| audio | No | Audio URL to guide generation. |
| negative_prompt | No | Elements to exclude from the generated video. |
| resolution | No | Output resolution: 720p (default) or 1080p. |
| duration | No | Total duration of the final output video in seconds (2–15s). Default: 5. |
| enable_prompt_expansion | No | Enable automatic prompt optimization before generation. Default: off. |
| seed | No | Random seed for reproducible results. Use -1 for a random seed. |
How to Use
- Upload your video — provide the source clip to extend via URL or drag-and-drop.
- Write your prompt — describe what should happen next in the scene. Use the Prompt Enhancer for better results.
- Upload audio (optional) — provide an audio URL to synchronize the extension.
- Add negative prompt (optional) — specify elements you want to exclude from the extended footage.
- Select resolution — 720p for standard output, 1080p for higher-quality results.
- Set duration — choose the total length of the output video in seconds (2–15s).
- Enable prompt expansion (optional) — let the model automatically enrich your prompt.
- Set seed (optional) — fix the seed to reproduce a specific result in future runs.
- Submit — generate, preview, and download your extended video.
Pricing
| Duration | 720p | 1080p |
|---|---|---|
| 5s | $0.50 | $0.75 |
| 10s | $1.00 | $1.50 |
| 15s | $1.50 | $2.25 |
Billing Rules
- 720p: $0.10 per second
- 1080p: $0.15 per second (1.5× base rate)
- Duration range: 2–15 seconds
Best Use Cases
- Short Film & Narrative — Extend key scenes to develop story beats without reshooting.
- Social Media Content — Lengthen clips to hit optimal duration for Reels, TikTok, and Shorts.
- Marketing & Advertising — Extend product or campaign videos to fill longer ad slots.
- Creative Exploration — Explore alternate continuations of the same source clip with different prompts.
- Audio-Visual Projects — Synchronize extended footage to a music track or voiceover.
Pro Tips
- Be specific about what should happen next — camera movement, subject action, and environmental changes.
- Use negative_prompt to prevent the extension from repeating or contradicting the source footage.
- Enable prompt expansion for shorter or less detailed prompts to get richer output automatically.
- Use 720p to test your extension direction before committing to a 1080p final render.
- Fix the seed once you find a direction you like to iterate consistently.
Notes
- Both video and prompt are required fields; all other parameters are optional.
- Duration range: 2–15 seconds for the total output video length.
- Ensure video and audio URLs are publicly accessible if using links rather than direct uploads.
- Please ensure your content complies with Alibaba’s usage policies.
Related Models
- Wan 2.7 Video Edit — Prompt-driven video editing with multi-image reference support.
- Wan 2.7 Image-to-Video — Animate a reference image into a cinematic video clip.
- Wan 2.7 Text-to-Video — Generate video from text prompts without existing footage.
Authentication
For authentication details, please refer to the Authentication Guide.
API Endpoints
Submit Task & Query Result
# Submit the task
curl --location --request POST "https://api.wavespeed.ai/api/v3/alibaba/wan-2.7/video-extend" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{
"resolution": "720p",
"duration": 5,
"enable_prompt_expansion": false,
"seed": -1
}'
# Get the result
curl --location --request GET "https://api.wavespeed.ai/api/v3/predictions/${requestId}/result" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}"
Parameters
Task Submission Parameters
Request Parameters
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
| video | string | Yes | - | The video for generating the output. | |
| audio | string | No | - | - | Audio URL to guide generation (optional). |
| prompt | string | Yes | - | The positive prompt for the generation. | |
| negative_prompt | string | No | - | The negative prompt for the generation. | |
| resolution | string | No | 720p | 720p, 1080p | The resolution of the generated media. |
| duration | integer | No | 5 | 5 ~ 15 | Total duration of the final output video in seconds (5-15s). |
| enable_prompt_expansion | boolean | No | false | - | If set to true, the prompt optimizer will be enabled. |
| seed | integer | No | -1 | -1 ~ 2147483647 | The random seed to use for the generation. -1 means a random seed will be used. |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data.id | string | Unique identifier for the prediction, Task Id |
| data.model | string | Model ID used for the prediction |
| data.outputs | array | Array of URLs to the generated content (empty when status is not completed) |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.has_nsfw_contents | array | Array of boolean values indicating NSFW detection for each output |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |
Result Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Yes | - | Task ID |
Result Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data | object | The prediction data object containing all details |
| data.id | string | Unique identifier for the prediction, the ID of the prediction to get |
| data.model | string | Model ID used for the prediction |
| data.outputs | object | Array of URLs to the generated content (empty when status is not completed). |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |