Introduction
Video extend on Wan 2.5. Send the clip you want to continue and describe what happens next: the final frame of your clip becomes the opening frame of a new Wan 2.5 image-to-video shot, and the original and the new segment come back joined in a single MP4. An optional audio_url sets the sound of the new segment only. Only the new seconds are billed.
| Field | Value |
|---|---|
| Input | Video |
| Output | Video |
| Producer | Alibaba |
| Published endpoints | text-to-video, image-to-video, video-extend |
| Clip length | 5 or 10 seconds — default 5 |
| Resolution | 480p, 720p, 1080p — default 720p |
| Aspect ratios | 16:9, 9:16, 1:1, 4:3, 3:4 on text-to-video; image-to-video follows the frame |
| Audio | Generated with the picture; optional |
| Billing | Per second of video, rate set by resolution |
Key features & highlights
Give it the line, and the mouth follows
Every endpoint accepts audio_url. Send a recorded line or a music cue and the generated clip paces its movement and lip shapes to that file instead of inventing its own rhythm. It is the simplest way to make a talking shot land on the words you already approved.
Request parameters
| Parameter | Required | Description |
|---|---|---|
prompt | No | Optional. What happens next: the action that follows, the camera move and a line about sound. at most 1500 characters |
negative_prompt | No | What must not appear in the new segment: a second person, captions, a prop the last frame keeps bringing back. Up to 500 characters. at most 500 characters |
video_url | Yes | For Wan 2.5, provide an MP4, MOV or WebM source no longer than 60 seconds; its last frame starts the continuation, so trim to a sharp ending before upload. at least 1 characters |
resolution | No | Wan 2.5 generates the added segment at 480p / 720p / 1080p, default 720p; match the original for consistent sharpness. |
duration_seconds | No | Wan 2.5 accepts 5 / 10 seconds here, with 5 as the default; request one of these supported lengths rather than an intermediate value. |
audio_url | No | Audio for the new segment: a voice line or music cue it should follow, so speech and beats land where you expect. WAV or MP3, 3 to 30 seconds and up to 15 MB. at least 1 characters |
enable_prompt_expansion | No | Prompt expansion lets Wan 2.5 elaborate a short scene brief before rendering; leave it off when your action and camera directions are already complete. Default: |
seed | No | 0 to 2147483647. Fix it when comparing resolution or length from the same clip; for a random draw, leave the field out rather than sending 0. |
Pricing
For this Wan 2.5 continuation, only the newly generated seconds are billed at the chosen resolution rate; the uploaded source remains in the joined file without adding to the bill.
| Specification | Price |
|---|---|
| $0.045 / second |
| $0.09 / second |
| $0.135 / second |
Use cases
Short social clips with sound on
Pick 9:16 on text-to-video, keep the clip at five seconds and let the soundtrack come back inside the file. Nothing needs a separate audio pass before posting, which keeps a daily batch of drafts realistic.
Talking shots from an approved script
Start from a portrait on image-to-video and pass the recorded voice line as audio_url. The face comes from the frame and the timing from the file, so reviews focus on performance rather than sync.
Product moments from one packshot
Use the packshot as the opening frame and describe one camera move. Because the frame fixes label and silhouette, the prompt only has to carry light and motion, and a 1080p render is ready to crop.
Prompt guide & pro tips
Choose by what you already have
Only an idea → text-to-video, where
aspect_ratiosets the shape. A still you want moved → image-to-video, where the clip inherits the still's proportions. A clip you already have continues with video-extend. All share lengths, resolutions and audio controls.Settle the shot at five seconds and 720p
Write subject, one action, one camera move and a line about sound. Fix the seed while you iterate, then rerender the chosen take at 10 seconds or at 1080p.
Submit asynchronously
Give each Wan 2.5 creation an Idempotency-Key and retain its task id; if the connection times out, inspect that task before submitting another generation, then poll for completion or use the callback. Finished video is served from platform storage.
Continue a scene with its next sound cue
Wan 2.5 video-extend is for a shot whose picture and sound both need a next beat. Its final frame opens a new 5- or 10-second generation; audio_url, if supplied, guides only that new portion. Your source retains its original soundtrack, so a new voice line does not rewrite dialogue already in the clip.
Prepare the source and cue
Send a sharp-ending MP4, MOV or WebM of up to 60 seconds as video_url. Describe the next action, camera and sound rather than retelling the whole scene; the prompt is optional. Choose 480p, 720p or 1080p, with 720p as default, and match the source when a change in sharpness would expose the join. The model receives the last still, so direction and speed must be stated again.
Receive picture and audio together
The joined H.264 MP4 with AAC sound is returned before the separate new segment. It follows the source framing and frame rate, removes the repeated seam frame and may adjust edges. A noticeably different generated shape is centred and cropped to fill. Original audio plays first, followed by the new sound; silent sections are padded to keep the timeline aligned.
The uploaded source adds no billable seconds: the resolution rate applies to the new 5 or 10 seconds. A generation or joining failure refunds the task. Listen through the transition as well as watching it before extending the result again; each accepted continuation becomes the source for a fresh audiovisual decision.
Wan 2.5 may depict only consenting adults using authorised source material; respect privacy and applicable law, and do not use a real person’s identity deceptively.
For Wan 2.5, you must hold the rights to the source images, footage, weight files and any sound you use; permission to depict a person and commercial-use rights remain your responsibility.
API quick start
# Generate the idempotency key once; reuse it when retrying after a lost response.
export SPICY_IDEMPOTENCY_KEY="${SPICY_IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.spicyapi.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $SPICY_IDEMPOTENCY_KEY" \
-d '{
"model": "alibaba/wan-2.5/video-extend",
"input": {
"duration_seconds": 5,
"resolution": "720p",
"video_url": "https://example.com/reference.mp4"
}
}'
# Copy data.taskId from the response into TASK_ID, then poll the status.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.spicyapi.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $SPICY_API_KEY"
See the API reference for authentication, the complete schema, polling, and error handling.






















