> ## 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.6

> Advanced video generation with audio, multi-shot, and reference-to-video support

Generate AI videos using Wan 2.6 with support for text-to-video, image-to-video, reference-to-video (character consistency), and multi-shot narratives. Includes automatic audio generation.

## Model

```
alibaba/wan-2.6-video
```

## Modes

Set `mode` explicitly to select generation type:

* `t2v` (default) — text-to-video
* `i2v` — image-to-video (requires `start_image_url`)
* `r2v` — reference-to-video (requires `video_urls`)

## Parameters

| Parameter         | Type    | Required | Description                                                                                              |
| ----------------- | ------- | -------- | -------------------------------------------------------------------------------------------------------- |
| `prompt`          | string  | Yes      | Text description of the video. For R2V, use `character1`, `character2`, etc. matching `video_urls` order |
| `mode`            | string  | No       | `t2v`, `i2v`, or `r2v` (default: `t2v`)                                                                  |
| `start_image_url` | string  | No       | First-frame image URL for I2V mode (JPEG, PNG, BMP, WEBP)                                                |
| `video_urls`      | array   | No       | Reference image/video URLs for R2V mode. Up to 5 (max 3 videos). Each = one character                    |
| `audio_url`       | string  | No       | Custom audio URL for audio-video sync (wav/mp3, max 15MB, 3-30s)                                         |
| `multi_prompt`    | array   | No       | Multi-shot segments `[{prompt, duration}]`. Auto-sets shot type and calculates total duration            |
| `negative_prompt` | string  | No       | What to avoid in the video (max 500 chars). Ignored for R2V                                              |
| `resolution`      | string  | No       | `720p` or `1080p` (default: `720p`)                                                                      |
| `duration`        | integer | No       | Video length in seconds, 2-15s (R2V: 2-10s). Overridden by `multi_prompt` if set (default: `5`)          |
| `prompt_extend`   | boolean | No       | Intelligent prompt rewriting (default: `true`)                                                           |
| `watermark`       | boolean | No       | Add watermark (default: `false`)                                                                         |
| `audio`           | boolean | No       | Auto-generate audio. Set `false` for silent video (default: `true`)                                      |
| `seed`            | integer | No       | Seed for reproducibility. Not supported for R2V                                                          |

## Example - Text-to-Video

```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.6-video",
    "input": {
      "prompt": "A cinematic shot of a red fox walking through a misty forest at dawn",
      "mode": "t2v",
      "resolution": "720p",
      "duration": 5
    }
  }'
```

## Example - Image-to-Video

```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.6-video",
    "input": {
      "prompt": "The camera slowly pans up from below the sea turtle",
      "mode": "i2v",
      "start_image_url": "https://example.com/turtle.jpg",
      "resolution": "720p",
      "duration": 10
    }
  }'
```

## Example - Reference-to-Video (Single Character)

```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.6-video",
    "input": {
      "prompt": "character1 gives an enthusiastic product introduction to camera",
      "mode": "r2v",
      "video_urls": ["https://example.com/presenter.mp4"],
      "duration": 5
    }
  }'
```

## Example - Reference-to-Video (Multi-Character)

```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.6-video",
    "input": {
      "prompt": "character1 says to character2: I will rely on you tomorrow! character2 replies: You can count on me!",
      "mode": "r2v",
      "video_urls": ["https://example.com/person-a.mp4", "https://example.com/person-b.mp4"],
      "duration": 10
    }
  }'
```

## Example - Multi-Shot

```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.6-video",
    "input": {
      "prompt": "Cinematic detective story",
      "multi_prompt": [
        {"prompt": "Wide shot of rainy New York streets, neon lights", "duration": 5},
        {"prompt": "Close-up of detective walking into an old building", "duration": 5}
      ],
      "resolution": "1080p"
    }
  }'
```

## Example - Image-to-Video with Custom Audio

```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.6-video",
    "input": {
      "prompt": "A graffiti character raps energetically under a bridge",
      "mode": "i2v",
      "start_image_url": "https://example.com/graffiti.png",
      "audio_url": "https://example.com/rap.mp3",
      "duration": 10
    }
  }'
```

## Example - Silent Video

```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.6-video",
    "input": {
      "prompt": "A cat running on the grass",
      "audio": false,
      "duration": 5
    }
  }'
```

## Response

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