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

> Silent video generation with text-to-video and image-to-video

Generate AI videos using Wan 2.2 with text-to-video and image-to-video capabilities. Produces silent video only at 480p or 1080p resolution.

## Model

```
alibaba/wan-2.2-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`)     |
| `negative_prompt` | string  | No       | What to avoid in the video                     |
| `resolution`      | string  | No       | `480p` or `1080p` (default: `480p`)            |
| `duration`        | integer | No       | Fixed at `5` seconds                           |
| `prompt_extend`   | boolean | No       | Intelligent prompt rewriting (default: `true`) |
| `watermark`       | boolean | No       | Add watermark (default: `false`)               |
| `seed`            | integer | No       | Seed for reproducibility                       |

<Note>Wan 2.2 produces silent video only. `audio`, `audio_url`, `video_urls`, and `multi_prompt` are not supported.</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.2-video",
    "input": {
      "prompt": "A street musician plays guitar in a vintage subway station",
      "mode": "t2v",
      "resolution": "1080p"
    }
  }'
```

## 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.2-video",
    "input": {
      "prompt": "Gentle waves lapping against the shore",
      "mode": "i2v",
      "start_image_url": "https://example.com/beach.jpg",
      "resolution": "480p"
    }
  }'
```

## Response

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