---
title: Wan2.7 | Runware Docs
url: https://runware.ai/docs/models/alibaba-wan2-7
description: Multimodal video generation with reference consistency, video editing, and native audio
---
# Wan2.7

Wan2.7 is Alibaba's next-generation multimodal video model supporting text-to-video, image-to-video, reference-to-video, and video editing. It features multi-shot storytelling, subject-consistent multi-character generation, first-and-last-frame interpolation, video continuation, style transfer, instruction-based editing, and audio-conditioned generation with auto-dubbing. Output at 720p or 1080p, 30 FPS in multiple aspect ratios.

- **ID**: `alibaba:wan@2.7`
- **Status**: live
- **Creator**: Alibaba
- **Release Date**: April 3, 2026
- **Capabilities**: Text to Video, Image to Video, Video to Video

## Pricing

Both input (if any) and output video seconds will be charged at $0.10 per second for 720p and $0.15 per second for 1080p

- **720p . 2 seconds**: `$0.2`
- **1080p . 2 seconds**: `$0.3`

## Compatibility & Validation

Provide exactly one of: `inputs.frameImages` or `width/height`.

---

`inputs.frameImages` and `inputs.referenceImages` cannot be used together.

---

`inputs.frameImages` and `inputs.referenceVideos` cannot be used together.

---

When `inputs.frameImages` is not provided, `positivePrompt` is required.

---

When `inputs.referenceImages` or `inputs.referenceVideos` is provided, `duration` must be at most `10`.

---

When `settings.shotType` is provided, `inputs.referenceImages` or `inputs.referenceVideos` is required.

---

The following dimension combinations are supported:

| Configuration | Dimensions |
| --- | --- |
| `720p (16:9)` | `1280x720` |
| `720p (9:16)` | `720x1280` |
| `720p (1:1)` | `960x960` |
| `720p (~4:3)` | `1088x832` |
| `720p (~3:4)` | `832x1088` |
| `1080p (16:9)` | `1920x1080` |
| `1080p (9:16)` | `1080x1920` |
| `1080p (1:1)` | `1440x1440` |
| `1080p (~4:3)` | `1632x1248` |
| `1080p (~3:4)` | `1248x1632` |

## Request Parameters

**API Options**

Platform-level options for task execution and delivery.

### [taskType](https://runware.ai/docs/models/alibaba-wan2-7#request-tasktype)

- **Type**: `string`
- **Required**: true
- **Value**: `videoInference`

Identifier for the type of task being performed

### [taskUUID](https://runware.ai/docs/models/alibaba-wan2-7#request-taskuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.

### [outputType](https://runware.ai/docs/models/alibaba-wan2-7#request-outputtype)

- **Type**: `string`
- **Default**: `URL`

Video output type.

**Allowed values**: `URL`

### [outputFormat](https://runware.ai/docs/models/alibaba-wan2-7#request-outputformat)

- **Type**: `string`
- **Default**: `MP4`

Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.

- \`MP4\`: Widely supported video container (H.264), recommended for general use.
- \`WEBM\`: Optimized for web delivery.
- \`MOV\`: QuickTime format, common in professional workflows (Apple ecosystem).

**Allowed values**: `MP4` `WEBM` `MOV`

### [outputQuality](https://runware.ai/docs/models/alibaba-wan2-7#request-outputquality)

- **Type**: `integer`
- **Min**: `20`
- **Max**: `99`
- **Default**: `95`

Compression quality of the output. Higher values preserve quality but increase file size.

### [webhookURL](https://runware.ai/docs/models/alibaba-wan2-7#request-webhookurl)

- **Type**: `string`
- **Format**: `URI`

Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.

**Learn more** (1 resource):

- [Webhooks](https://runware.ai/docs/platform/webhooks) (platform)

### [deliveryMethod](https://runware.ai/docs/models/alibaba-wan2-7#request-deliverymethod)

- **Type**: `string`
- **Default**: `async`

Determines how the API delivers task results.

**Allowed values**:

- `async` Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse. Required for long-running tasks like video generation.

**Learn more** (1 resource):

- [Task Polling](https://runware.ai/docs/platform/task-polling) (platform)

### [uploadEndpoint](https://runware.ai/docs/models/alibaba-wan2-7#request-uploadendpoint)

- **Type**: `string`
- **Format**: `URI`

Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.

**Common use cases:**

- **Cloud storage**: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.
- **CDN integration**: Upload to content delivery networks for immediate distribution.

```text
// S3 presigned URL for secure upload
https://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600

// Google Cloud Storage presigned URL
https://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789

// Custom storage endpoint
https://storage.example.com/uploads/generated-image.jpg
```

The content data will be sent as the request body to the specified URL when generation is complete.

### [safety](https://runware.ai/docs/models/alibaba-wan2-7#request-safety)

- **Path**: `safety.checkContent`
- **Type**: `object (2 properties)`

Content safety checking configuration for video generation.

#### [checkContent](https://runware.ai/docs/models/alibaba-wan2-7#request-safety-checkcontent)

- **Path**: `safety.checkContent`
- **Type**: `boolean`
- **Default**: `false`

Enable or disable content safety checking. When enabled, defaults to `fast` mode.

#### [mode](https://runware.ai/docs/models/alibaba-wan2-7#request-safety-mode)

- **Path**: `safety.mode`
- **Type**: `string`
- **Default**: `none`

Safety checking mode for video generation.

**Allowed values**:

- `none` Disables checking.
- `fast` Checks key frames.
- `full` Checks all frames.

### [ttl](https://runware.ai/docs/models/alibaba-wan2-7#request-ttl)

- **Type**: `integer`
- **Min**: `60`

Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.

### [includeCost](https://runware.ai/docs/models/alibaba-wan2-7#request-includecost)

- **Type**: `boolean`
- **Default**: `false`

Include task cost in the response.

### [numberResults](https://runware.ai/docs/models/alibaba-wan2-7#request-numberresults)

- **Type**: `integer`
- **Min**: `1`
- **Max**: `20`
- **Default**: `1`

Number of results to generate. Each result uses a different seed, producing variations of the same parameters.

**Inputs**

Input resources for the task (images, audio, etc). These must be nested inside the \`inputs\` object.

### [referenceImages](https://runware.ai/docs/models/alibaba-wan2-7#request-inputs-referenceimages)

- **Path**: `inputs.referenceImages`
- **Type**: `array of strings`

List of reference images (UUID, URL, Data URI, or Base64).

### [frameImages](https://runware.ai/docs/models/alibaba-wan2-7#request-inputs-frameimages)

- **Path**: `inputs.frameImages`
- **Type**: `array of objects (2 properties)`

An array of objects that define key frames to guide video generation. Each object specifies an input image and optionally its position within the video timeline.

The `frameImages` parameter allows you to constrain specific frames within the video sequence, ensuring that particular visual content appears at designated points. This is different from `referenceImages`, which provide overall visual guidance without constraining specific timeline positions.

When the `frame` parameter is omitted from objects, automatic distribution rules apply:

- **1 image**: Used as the first frame.
- **2 images**: First and last frames.

**Examples**:

**Single frame (automatic positioning):** When only one image is provided, it automatically becomes the first frame of the video.

```json
"frameImages": [
  {
    "image": "aac49721-1964-481a-ae78-8a4e29b91402"
  }
]
```

**First and last frames:** With two images, they automatically become the first and last frames of the video sequence.

```json
"frameImages": [
  {
    "image": "aac49721-1964-481a-ae78-8a4e29b91402",
    "frame": "first"
  },
  {
    "image": "3ad204c3-a9de-4963-8a1a-c3911e3afafe",
    "frame": "last"
  }
]
```

#### [image](https://runware.ai/docs/models/alibaba-wan2-7#request-inputs-frameimages-image)

- **Path**: `inputs.frameImages.image`
- **Type**: `string`
- **Required**: true

Image input (UUID, URL, Data URI, or Base64).

#### [frame](https://runware.ai/docs/models/alibaba-wan2-7#request-inputs-frameimages-frame)

- **Path**: `inputs.frameImages.frame`
- **Type**: `object`

Target frame position for the image. Supports first and last frame.

**Allowed values**:

- `first` First frame of the video.
- `last` Last frame of the video.
- `0` Frame index 0 (first frame).
- `-1` Frame index -1 (last frame).

### [referenceVideos](https://runware.ai/docs/models/alibaba-wan2-7#request-inputs-referencevideos)

- **Path**: `inputs.referenceVideos`
- **Type**: `array of strings`

List of reference videos (UUID, URL).

### [audio](https://runware.ai/docs/models/alibaba-wan2-7#request-inputs-audio)

- **Path**: `inputs.audio`
- **Type**: `string`

Audio input (UUID or URL).

**Generation Parameters**

Core parameters for controlling the generated content.

### [model](https://runware.ai/docs/models/alibaba-wan2-7#request-model)

- **Type**: `string`
- **Required**: true
- **Value**: `alibaba:wan@2.7`

Identifier of the model to use for generation.

**Learn more** (3 resources):

- [Text To Image: Model Selection The Foundation Of Generation](https://runware.ai/docs/guides/text-to-image#model-selection-the-foundation-of-generation) (guide)
- [Image Inpainting: Model Specialized Inpainting Models](https://runware.ai/docs/guides/image-inpainting#model-specialized-inpainting-models) (guide)
- [Image Outpainting: Other Critical Parameters](https://runware.ai/docs/guides/image-outpainting#other-critical-parameters) (guide)

### [positivePrompt](https://runware.ai/docs/models/alibaba-wan2-7#request-positiveprompt)

- **Type**: `string`
- **Required**: true
- **Max**: `5000`

Text prompt describing elements to include in the generated output.

**Learn more** (2 resources):

- [Text To Image: Prompts Guiding The Generation](https://runware.ai/docs/guides/text-to-image#prompts-guiding-the-generation) (guide)
- [Image Outpainting: Other Critical Parameters](https://runware.ai/docs/guides/image-outpainting#other-critical-parameters) (guide)

### [negativePrompt](https://runware.ai/docs/models/alibaba-wan2-7#request-negativeprompt)

- **Type**: `string`
- **Max**: `500`

Prompt to guide what to exclude from generation. Ignored when guidance is disabled (CFGScale ≤ 1).

**Learn more** (1 resource):

- [Text To Image: Prompts Guiding The Generation](https://runware.ai/docs/guides/text-to-image#prompts-guiding-the-generation) (guide)

### [width](https://runware.ai/docs/models/alibaba-wan2-7#request-width)

- **Type**: `integer`
- **Required**: true
- **Paired with**: height

Width of the generated media in pixels.

**Learn more** (2 resources):

- [Image To Image: Dimensions Changing Aspect Ratio](https://runware.ai/docs/guides/image-to-image#dimensions-changing-aspect-ratio) (guide)
- [Image Outpainting: Dimensions Critical For Outpainting](https://runware.ai/docs/guides/image-outpainting#dimensions-critical-for-outpainting) (guide)

### [height](https://runware.ai/docs/models/alibaba-wan2-7#request-height)

- **Type**: `integer`
- **Required**: true
- **Paired with**: width

Height of the generated media in pixels.

**Learn more** (2 resources):

- [Image To Image: Dimensions Changing Aspect Ratio](https://runware.ai/docs/guides/image-to-image#dimensions-changing-aspect-ratio) (guide)
- [Image Outpainting: Dimensions Critical For Outpainting](https://runware.ai/docs/guides/image-outpainting#dimensions-critical-for-outpainting) (guide)

### [resolution](https://runware.ai/docs/models/alibaba-wan2-7#request-resolution)

- **Type**: `string`
- **Default**: `1080p`

Resolution preset for the output. When used with input media, automatically matches the aspect ratio from the input.

**Allowed values**: `720p` `1080p`

### [duration](https://runware.ai/docs/models/alibaba-wan2-7#request-duration)

- **Type**: `integer`
- **Min**: `2`
- **Max**: `15`
- **Default**: `5`

Duration of the generation in seconds. Total frames = duration × fps.

### [seed](https://runware.ai/docs/models/alibaba-wan2-7#request-seed)

- **Type**: `integer`
- **Min**: `0`
- **Max**: `2147483647`

Random seed for reproducible generation. When not provided, a random seed is generated in the unsigned 32-bit range.

**Settings**

Technical parameters to fine-tune the inference process. These must be nested inside the \`settings\` object.

### [audio](https://runware.ai/docs/models/alibaba-wan2-7#request-settings-audio)

- **Path**: `settings.audio`
- **Type**: `boolean`
- **Default**: `true`

Generate native audio aligned with visual content.

### [promptEnhancer](https://runware.ai/docs/models/alibaba-wan2-7#request-settings-promptenhancer)

- **Path**: `settings.promptEnhancer`
- **Type**: `boolean`
- **Default**: `true`

Enable LLM-based prompt rewriting to expand and clarify inputs. Affects reproducibility.

### [shotType](https://runware.ai/docs/models/alibaba-wan2-7#request-settings-shottype)

- **Path**: `settings.shotType`
- **Type**: `string`
- **Default**: `single`

Shot composition style.

**Allowed values**:

- `single` Continuous shot without transitions.
- `multi` Multiple shots with transitions.

## Response Parameters

### [taskType](https://runware.ai/docs/models/alibaba-wan2-7#response-tasktype)

- **Type**: `string`
- **Required**: true
- **Value**: `videoInference`

Type of the task.

### [taskUUID](https://runware.ai/docs/models/alibaba-wan2-7#response-taskuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID of the task.

### [videoUUID](https://runware.ai/docs/models/alibaba-wan2-7#response-videouuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID of the output video.

### [videoURL](https://runware.ai/docs/models/alibaba-wan2-7#response-videourl)

- **Type**: `string`
- **Format**: `URI`

URL of the output video.

### [videoBase64Data](https://runware.ai/docs/models/alibaba-wan2-7#response-videobase64data)

- **Type**: `string`

Base64-encoded video data.

### [videoDataURI](https://runware.ai/docs/models/alibaba-wan2-7#response-videodatauri)

- **Type**: `string`
- **Format**: `URI`

Data URI of the output video.

### [seed](https://runware.ai/docs/models/alibaba-wan2-7#response-seed)

- **Type**: `integer`

The seed used for generation. If none was provided, shows the randomly generated seed.

### [NSFWContent](https://runware.ai/docs/models/alibaba-wan2-7#response-nsfwcontent)

- **Type**: `boolean`

Flag indicating if NSFW content was detected.

### [cost](https://runware.ai/docs/models/alibaba-wan2-7#response-cost)

- **Type**: `float`

Task cost in USD. Present when `includeCost` is set to `true` in the request.