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

Wan 2.6 supports text-to-video, first-frame generation, reference-based generation, multi-shot storytelling, automatic dubbing, and custom audio files. The reference model can use a character's appearance from an image or video and voice from a video to generate a performance directed by your prompt.

### Model parameters

* Model IDs: `wan2.6-t2v` / `wan2.6-i2v` / `wan2.6-i2v-flash` / `wan2.6-r2v` / `wan2.6-r2v-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:
>
> * `aspect_ratio`
> * `image_tail`
> * `quality`
> * `fps`
>
> See the [official Wan 2.6 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.6-t2v",
    "prompt": "A kitten runs in the moonlight",
    "negative_prompt": "flowers",
    "size": "1280x720"
}'
```

`wan2.6-t2v` also accepts an audio file in `audio_url`:

```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.6-t2v",
    "prompt": "An epic, adorable scene: a tiny cartoon kitten general in finely detailed golden armor and a slightly oversized helmet sits bravely on a little warhorse on a cliff. He recites: ‘Long clouds over Qinghai darken snowy peaks; a lone fortress looks toward Jade Gate Pass. A hundred battles in yellow sands wear through our golden armor; until Loulan falls, we shall not return.’ Below, an endless army of mice charges with makeshift weapons. Dark clouds gather over distant snowy peaks. Stage it like an ancient Chinese war epic, at once funny, cute and commanding.",
    "audio_url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250923/hbiayh/%E4%BB%8E%E5%86%9B%E8%A1%8C.mp3",
    "size": "1280x720"
}'
```

The JSON response includes the generated video's URL:

```json theme={null}
{
    "model": "wan2.6-t2v",
    "task_id": "025f3574-5b1f-4c39-93b8-02498d2c7674",
    "task_status": "succeed",
    "video_result": [
        {
            "id": "5897099e-2a2b-4409-a35d-f7a5f4539dc3",
            "url": "https://static.geekai.co/video/2026/04/10/5e13e21fb9500ef1350bc2676b650dee.mp4"
        }
    ]
}
```

The image-to-video and other 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.6-i2v",
    "prompt": "Urban fantasy art: a spray-painted teenage graffiti character springs to life from a concrete wall beneath a city railway bridge at night. He strikes an energetic rapper’s pose while rapping in English at breakneck speed. A lone streetlamp gives the scene cinematic lighting, vivid detail and energy. Only his rap is audible, with no other dialogue or noise.",
    "image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png",
    "resolution": "720P"
}'
```

To supply audio, pass the file URL:

```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.6-i2v",
    "prompt": "Urban fantasy art: a spray-painted teenage graffiti character springs to life from a concrete wall beneath a city railway bridge at night. He strikes an energetic rapper’s pose while rapping in English at breakneck speed. A lone streetlamp gives the scene cinematic lighting, vivid detail and energy. Only his rap is audible, with no other dialogue or noise.",
    "image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png",
    "audio_url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/ozwpvi/rap.mp3",
    "resolution": "720P",
    "duration": 10
}'
```

> [!NOTE]
>
> Call `wan2.6-i2v-flash` the same way. For wan2.6-i2v-flash and wan2.6-i2v, `resolution` accepts 720P or 1080P (uppercase P). The image parameter also accepts Base64-encoded data.

### Reference 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.6-r2v-flash",
    "prompt": "Character2 sits by the window holding character3 and plays a gentle American country ballad beside character4. Character1 says to Character2, ‘That sounds good.’",
    "size": "1280x720",
    "duration": 10,
    "extra_body": {
        "reference_urls": [
            "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260129/hfugmr/wan-r2v-role1.mp4",
            "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260129/qigswt/wan-r2v-role2.mp4",
            "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260129/qpzxps/wan-r2v-object4.png",
            "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260129/wfjikw/wan-r2v-backgroud5.png"
        ]
    }
}'
```

> [!NOTE]
>
> To call `wan2.6-r2v`, use the same request and replace the model name.

### Asynchronous tasks

Video generation can take a while. We recommend GeekAI's asynchronous workflow.

The [video API](https://docs.geekai.co/en/api/video/generations.md) uses `async` to control asynchronous generation. The default, `false`, waits for the finished video. Set it to `true` to receive a task ID you can poll.

Follow the [asynchronous task example](https://docs.geekai.co/en/docs/video/kling/kling-video-v3-omni.md#asynchronous-tasks) to retrieve the result.


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