# Alibaba Wan 2.7 Image to Video API

> Alibaba Wan 2.7 image-to-video model transforming still images into video with native audio generation.

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

## Facts

- Provider: Alibaba
- Type: Video model
- Model ID: `alibaba/wan/2.7/image-to-video`
- Price: From $0.50 per run
- Capabilities: image 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/image-to-video",
  "image": "https://static.sandbase.ai/samples/image-to-video/i2v-urban-source.png",
  "prompt": "The bus starts moving slowly down the street, rain begins to fall, pedestrians open umbrellas, camera follows the bus",
  "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 Image to Video through SandBase?

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

## README

### Wan 2.7 Image to Video

Animate your own picture. `image` becomes the first frame; add `end_image` and Wan 2.7 interpolates the motion between the two. Clips run 2–15 seconds, optionally driven by an audio track.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Up to 50,000 characters. |
| `image` | image URL, required | — | First frame. JPEG, PNG, or WebP URL. |
| `end_image` | image URL | — | Optional last frame. |
| `audio` | audio URL | — | Optional WAV/MP3 URL that drives speech or rhythm. |
| `duration` | 2–15 | 5 | Output length in seconds. |
| `aspect_ratio` | `16:9` / `9:16` / `1:1` / `4:3` / `3:4` | — | Omit to follow the input image. |
| `resolution` | `720p` / `1080p` | `720p` | Sets the per-second rate. |
| `seed` | integer | 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. Input images and audio are not metered.

| Output | 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 moves, not what is already visible: “the bus pulls away as rain starts and umbrellas open”.
- With two frames, keep framing and lighting compatible or describe the transition explicitly.
- Leave `aspect_ratio` unset to keep the image's own proportions.

#### Limits

- One start image and one optional end image per request; for multi-subject references use `alibaba/wan/2.7/reference-to-video`.

#### Also on SandBase

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