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

# Wan 2.1

Wan 2.1 generates detailed, coherent video from text, a first frame, or first and last frames.
wanx2.1-t2v-turbo prioritizes speed. wanx2.1-t2v-plus prioritizes quality for complex, large movements, realistic physics, varied art styles, and cinematic imagery. wanx2.1-i2v-plus
reproduces complex motion with cinematic quality and supports selected effects. wanx2.1-i2v-turbo is the lower-cost production release.

### Model parameters

* Model IDs: `wanx2.1-t2v-plus` / `wanx2.1-t2v-turbo` / `wanx2.1-i2v-plus` / `wanx2.1-i2v-turbo` / `wanx2.1-kf2v-plus`
* Pricing: see the [model catalog](https://geekai.co/models?platform=dashscope\&type=video) for current rates.
* Endpoint: `https://geekai.co/api/v1/videos/generations`
* Parameters: [Video API reference](https://docs.geekai.co/en/api/video/generations.md)
* Authentication: [Get an API key](https://docs.geekai.co/en/docs/quick_start.md)

> [!NOTE]
>
> The following video API parameters are not supported:
>
> * `with_audio`
> * `aspect_ratio`
> * `quality`
> * `fps`
>
> See the [official Wan 2.1 API documentation](https://help.aliyun.com/zh/model-studio/use-video-generation).

Specify output dimensions in `size` as width x height.

480P sizes:

| Aspect ratio | Resolution |
| - | - |
| 1:1 | 624x624 |
| 9:16 | 480x832 |
| 16:9 | 832x480 |

720P sizes:

| Aspect ratio | Resolution |
| - | - |
| 1:1 | 960x960 |
| 4:3 | 1088x832 |
| 3:4 | 832x1088 |
| 16:9 | 1280x720 |
| 9:16 | 720x1280 |

1080P sizes:

| Aspect ratio | Resolution |
| - | - |
| 1:1 | 1440x1440 |
| 4:3 | 1632x1248 |
| 3:4 | 1248x1632 |
| 16:9 | 1920x1080 |
| 9:16 | 1080x1920 |

### Text to video

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model":"wanx2.1-t2v-plus",
    "prompt":"A kitten runs in the moonlight",
    "negative_prompt": "flowers"
}'
```

The JSON response includes the generated video's URL:

```json theme={null}
{
    "model": "wanx2.1-t2v-plus",
    "task_id": "d2e29377-e3a5-42ad-a8bc-f46ed241b01a",
    "task_status": "succeed",
    "video_result": [
        {
            "id": "094442e7-2be3-4cdd-b503-ecd4fde6912f",
            "url": "https://static.geekai.co/video/2026/02/05/e994125fccf62188d1d23d5ad69ad31b.mp4"
        }
    ]
}
```

The image-to-video examples below use the same response format.

### Image to video

**First and last frames**

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model":"wanx2.1-kf2v-plus",
    "prompt": "Realistic style. A black kitten gazes curiously at the sky. Rise gradually from eye level to an overhead view of its inquisitive eyes.",
    "image":"https://wanx.alicdn.com/material/20250318/first_frame.png",
    "image_tail":"https://wanx.alicdn.com/material/20250318/last_frame.png",
    "resolution": "720P",
    "watermark": false
}'
```

> [!NOTE]
>
> For `wanx2.1-kf2v-plus`, `resolution` accepts `720P`. To use Base64 images, pass the data in `image` and `image_tail`.

Generate video with an effect template:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model":"wanx2.1-kf2v-plus",
    "prompt": "Generate a video using the effect",
    "image":"https://ty-yuanfang.oss-cn-hangzhou.aliyuncs.com/lizhengjia.lzj/tmp/11.png",
    "resolution": "720P",
    "watermark": false,
    "extra_body": {
        "template": "hanfu-1"
    }
}'
```

**First frame**

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model":"wanx2.1-i2v-plus",
    "prompt": "A cat runs across the grass",
    "image":"https://cdn.translate.alibaba.com/r/wanx-demo-1.png",
    "resolution": "720P",
    "watermark": true
}'
```

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model":"wanx2.1-i2v-turbo",
    "prompt": "A cat runs across the grass",
    "image":"https://cdn.translate.alibaba.com/r/wanx-demo-1.png",
    "resolution": "480P",
    "duration": 4,
    "watermark": false
}'
```

> [!NOTE]
>
> For `wanx2.1-i2v-turbo`, `resolution` accepts 480P or 720P. For `wanx2.1-i2v-plus`, `resolution` accepts 720P.
> `wanx2.1-i2v-turbo` supports `duration` values of 3, 4, or 5. To use Base64 image data, pass it in `image`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.