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

Wan 2.2 supports text-to-video and generation from the first frame or both first and last frames. wan2.2-t2v-plus generates video to the requested specifications from text, without sound by default.
wan2.2-i2v-flash emphasizes speed, visual detail, and stable motion. The professional wan2.2-i2v-plus offers more precise instruction following, controllable camera movements, consistent elements, improved stability and success rates, and richer content.

### Model parameters

* Model IDs: `wan2.2-t2v-plus` / `wan2.2-i2v-plus` / `wan2.2-i2v-flash`
* 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.2 API documentation](https://help.aliyun.com/zh/model-studio/use-video-generation).

Specify dimensions in `size` as width x height. Supported sizes match Wan 2.1.

### 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":"wan2.2-t2v-plus",
    "prompt":"A kitten runs in the moonlight",
    "negative_prompt": "flowers",
    "size": "832x480"
}'
```

The JSON response includes the generated video's URL:

```json theme={null}
{
    "model": "wan2.2-t2v-plus",
    "task_id": "0041c0cc-cdb8-4788-a470-c06d4978839c",
    "task_status": "succeed",
    "video_result": [
        {
            "id": "6d13a8d7-a528-4ad9-a81a-0be8c3aafc48",
            "url": "https://static.geekai.co/video/2026/02/05/66ae7c0d2cab719e37e79a65c5e9be52.mp4"
        }
    ]
}
```

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

### Image to video

**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":"wan2.2-i2v-plus",
    "prompt":"A kitten runs in the moonlight",
    "image":  "https://cdn.translate.alibaba.com/r/wanx-demo-1.png",
    "resolution": "480P"
}'
```

> [!NOTE]
>
> For `wan2.2-i2v-plus`, `resolution` accepts 480P or 1080P. For `wan2.2-i2v-flash`, `resolution` accepts 480P, 720P, or 1080P. Use the same request as for `wan2.2-i2v-plus`.
> You can also pass Base64 image data in `image`.

**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":"wan2.2-kf2v-flash",
    "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"
}'
```

> [!NOTE]
>
> For `wan2.2-kf2v-flash`, `resolution` accepts 480P, 720P, or 1080P. Base64 image data is also supported.


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