# Alibaba Wan 2.6 Flash Reference to Video API

> Alibaba Wan 2.6 Flash reference-to-video model that places characters from reference images or videos into a new scene, with optional generated audio and multi-shot control.

Source: https://www.sandbase.ai/models/alibaba/wan/2.6/flash/reference-to-video
API reference: https://www.sandbase.ai/models/alibaba/wan/2.6/flash/reference-to-video/docs

## Facts

- Provider: Alibaba
- Type: Video model
- Model ID: `alibaba/wan/2.6/flash/reference-to-video`
- Price: From $0.50 per run
- Capabilities: reference 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.6/flash/reference-to-video",
  "images": [
    "https://static.sandbase.ai/examples/alibaba/wan/2.6/reference-to-video/flash/input_images_0.png"
  ],
  "prompt": "Dance battle between Character1 and Character2.",
  "videos": [
    "https://static.sandbase.ai/examples/alibaba/wan/2.6/reference-to-video/flash/input_videos_1.mp4"
  ],
  "duration": 5,
  "resolution": "720p",
  "multi_shots": true,
  "aspect_ratio": "16:9",
  "generate_audio": true
}'
```

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.6 Flash Reference to Video through SandBase?

Create a SandBase API key, then send requests with the model ID "alibaba/wan/2.6/flash/reference-to-video" 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.6 Flash Reference to Video and the other models in the catalog; you do not need to sign up with Alibaba separately.

## README

### Wan 2.6 Flash Reference to Video

The fast, lower-cost Wan 2.6 reference tier. Cast characters from reference images or videos into a new scene for quick iterations; audio generation and multi-shot cuts are on by default.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Text instruction. |
| `images` | image URL[] | — | Reference images, Image 1, Image 2, … |
| `videos` | video URL[] | — | Reference clips, Video 1, Video 2, … |
| `resolution` | `720p` / `1080p` | `720p` | Sets the per-second rate. |
| `duration` | 5 / 10 | 5 | Output length in seconds. |
| `multi_shots` | boolean | true | Let the model cut between several shots. |
| `aspect_ratio` | `16:9` / `9:16` / `1:1` / `4:3` / `3:4` | `16:9` | Output frame shape. |
| `seed` | integer | random | Fix it to compare prompt changes. |
| `generate_audio` | boolean | true | Generate a synchronized audio track; turning it off halves the rate. |

#### Billing

With audio you pay $0.10 per output second at 720p and $0.15 at 1080p; silent output costs half. When you send reference `videos`, 5 seconds of input are added to the billed length.

| Output | 720p | 1080p |
|---|---|---|
| 5s with audio | $0.50 | $0.75 |
| 5s silent | $0.25 | $0.375 |
| 5s with audio + reference video | $1.00 | $1.50 |
| 10s with audio | $1.00 | $1.50 |

Failed runs are not charged.

#### Prompting

- Refer to references by number and give each a role.
- Keep the action simple for fast drafts, then rerun the winner on the non-Flash tier.

#### Limits

- Durations are 5 or 10 seconds.

#### Also on SandBase

Other Wan 2.6 endpoints: `alibaba/wan/2.6/text-to-video`, `alibaba/wan/2.6/image-to-video`, `alibaba/wan/2.6/reference-to-video`, `alibaba/wan/2.6/flash/image-to-video`, `alibaba/wan/2.6/text-to-image`, `alibaba/wan/2.6/image-to-image`, `alibaba/wan/2.7/text-to-video` (newer).
