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

> Video generation with audio sync and flexible resolution

Generate AI videos using Wan 2.5 with text-to-video and image-to-video capabilities. Supports 480p to 1080p resolution, 5-10 second videos, and automatic audio generation.

## Model

```
alibaba/wan-2.5-video
```

## Parameters

| Parameter         | Type    | Required | Description                                                         |
| ----------------- | ------- | -------- | ------------------------------------------------------------------- |
| `prompt`          | string  | Yes      | Text description of the video                                       |
| `mode`            | string  | No       | `t2v` or `i2v` (default: `t2v`)                                     |
| `start_image_url` | string  | No       | First-frame image URL (required for `i2v`)                          |
| `audio_url`       | string  | No       | Custom audio URL for audio-video sync                               |
| `negative_prompt` | string  | No       | What to avoid in the video                                          |
| `resolution`      | string  | No       | `480p`, `720p`, or `1080p` (default: `720p`)                        |
| `duration`        | integer | No       | `5` or `10` seconds (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                                            |

<Note>`video_urls` and `multi_prompt` are not supported on Wan 2.5. For reference-to-video or multi-shot, use [Wan 2.6](/models/video/alibaba/wan-2.6-video).</Note>

## 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.5-video",
    "input": {
      "prompt": "Sunset over ocean waves",
      "mode": "t2v",
      "resolution": "1080p",
      "duration": 10
    }
  }'
```

## 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.5-video",
    "input": {
      "prompt": "Person walking through a forest",
      "mode": "i2v",
      "start_image_url": "https://example.com/person.jpg",
      "resolution": "720p",
      "duration": 10
    }
  }'
```

## Response

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