> ## Documentation Index
> Fetch the complete documentation index at: https://docs.unifically.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Wan 2.7 Video Edit

> Edit or style-transfer existing videos with optional reference images

Edit or style-transfer an existing video using Wan 2.7 Video Edit. Supports reference images for content transfer. This is a separate model from `alibaba/wan-2.7-video`.

## Model

```
alibaba/wan-2.7-video-edit
```

## Parameters

| Parameter              | Type      | Required | Default   | Description                                                                                            |
| ---------------------- | --------- | -------- | --------- | ------------------------------------------------------------------------------------------------------ |
| `prompt`               | string    | No       | `""`      | Text prompt describing the desired edit (max 5000 chars)                                               |
| `negative_prompt`      | string    | No       | `""`      | What to avoid (max 500 chars)                                                                          |
| `video_url`            | string    | Yes      | —         | Video to edit (MP4/MOV, 2-10s, max 100MB)                                                              |
| `reference_image_urls` | string\[] | No       | `null`    | Up to 4 reference images for style/content transfer. Formats: JPEG, JPG, PNG, BMP, WEBP. Max 20MB each |
| `resolution`           | string    | No       | `"1080P"` | `"720P"` or `"1080P"`                                                                                  |
| `duration`             | integer   | No       | `null`    | Output duration in seconds (2-10). Omit to keep input duration                                         |
| `ratio`                | string    | No       | `null`    | Force output aspect ratio: `"16:9"`, `"9:16"`, `"1:1"`, `"4:3"`, `"3:4"`. Omit to match input video    |
| `audio_setting`        | string    | No       | `"auto"`  | `"auto"` (model decides based on prompt) or `"origin"` (keep original audio unchanged)                 |
| `prompt_extend`        | boolean   | No       | `true`    | LLM-based prompt rewriting. Improves short prompts but adds latency                                    |
| `watermark`            | boolean   | No       | `false`   | Add "AI Generated" watermark in lower-right corner                                                     |
| `seed`                 | integer   | No       | `null`    | Random seed (0-2147483647)                                                                             |

## Example - Style Transfer

```bash theme={null}
curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "alibaba/wan-2.7-video-edit",
    "input": {
      "prompt": "Convert the entire scene to a claymation style",
      "video_url": "https://example.com/scene.mp4",
      "resolution": "720P"
    }
  }'
```

## Example - With Reference Image

```bash theme={null}
curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "alibaba/wan-2.7-video-edit",
    "input": {
      "prompt": "Replace the clothes of the girl with the clothes from the image",
      "video_url": "https://example.com/girl.mp4",
      "reference_image_urls": ["https://example.com/outfit.png"]
    }
  }'
```

## Input Limits

| Asset           | Formats                   | Resolution                   | Duration | File Size |
| --------------- | ------------------------- | ---------------------------- | -------- | --------- |
| Input video     | MP4, MOV                  | 240-4096px, ratio 1:8 to 8:1 | 2-10s    | 100MB     |
| Reference image | JPEG, JPG, PNG, BMP, WEBP | 240-8000px, ratio 1:8 to 8:1 | —        | 20MB      |

## Response

```json theme={null}
{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "processing"
  }
}
```
