# Alibaba Wan 2.7 Video Extend API

> Alibaba Wan 2.7 Video Extend continues an input clip from a text instruction, optionally ending on a chosen last frame, for a total length of up to 15 seconds.

Source: https://www.sandbase.ai/models/alibaba/wan/2.7/video-extend
API reference: https://www.sandbase.ai/models/alibaba/wan/2.7/video-extend/docs

## Facts

- Provider: Alibaba
- Type: Video model
- Model ID: `alibaba/wan/2.7/video-extend`
- Price: From $0.50 per run
- Capabilities: video to video
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "alibaba/wan/2.7/video-extend",
  "video": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260129/hfugmr/wan-r2v-role1.mp4",
  "prompt": "A girl takes a selfie in the mirror, then picks up her backpack and walks out of the room.",
  "duration": 5,
  "resolution": "720p"
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call Alibaba Wan 2.7 Video Extend through SandBase?

Create a SandBase API key, then send requests with the model ID "alibaba/wan/2.7/video-extend" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate Alibaba account?

No. One SandBase API key and balance gives you access to Alibaba Wan 2.7 Video Extend and the other models in the catalog; you do not need to sign up with Alibaba separately.

## README

### Wan 2.7 Video Extend

Continue an existing clip. Wan 2.7 picks up from the last frame of `video` and generates new footage that follows your prompt; add `end_image` to say where the continuation should land.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Up to 5,000 characters. |
| `video` | video URL, required | — | Clip to continue. |
| `end_image` | image URL | — | Optional frame the new footage should end on. |
| `duration` | 2–15 | 5 | Length of the new footage in seconds. |
| `resolution` | `720p` / `1080p` | `720p` | Sets the per-second rate. |
| `seed` | integer 0–2147483647 | random | Fix it to compare prompt changes. |

#### Billing

You pay for output seconds: $0.10 at 720p and $0.15 at 1080p, the same as Alibaba's list price. Only the new footage is billed.

| New footage | 720p | 1080p |
|---|---|---|
| 2s | $0.20 | $0.30 |
| 5s (default) | $0.50 | $0.75 |
| 10s | $1.00 | $1.50 |
| 15s | $1.50 | $2.25 |

Failed runs are not charged.

#### Prompting

- Describe what happens next, not what is already in the clip.
- Match the source's camera style unless you want a deliberate change.
- Use `end_image` when the shot must finish on a specific composition.

#### Limits

- The returned video contains the continuation; join it to the source in your editor if you need one file.

#### Also on SandBase

Other Wan 2.7 endpoints: `alibaba/wan/2.7/text-to-video`, `alibaba/wan/2.7/image-to-video`, `alibaba/wan/2.7/reference-to-video`, `alibaba/wan/2.7/video-edit`, `alibaba/wan/3.0/video` (newer, up to 30s).
