> ## 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 3.0 Video Generation

Wan 3.0 (`wan3.0-video`) combines reference-based generation, editing, recreation, and motion transfer in one model. It supports four reference modalities, can interpret files, web pages, and complex images, and generates up to 30 seconds of realistic audio and video with consistent characters.

Wan3.0-Video-Prime (`wan3.0-video-prime`) offers the same four-modality reference support and 30-second maximum as the standard model with significantly faster end-to-end generation.

### Model parameters

* Model IDs: `wan3.0-video` / `wan3.0-video-prime`
* Current pricing: [Wan3.0-Video](https://geekai.co/models/wan3.0-video) / [Wan3.0-Video-Prime](https://geekai.co/models/wan3.0-video-prime)
* 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://geekai.co/user/api_keys)

> [!NOTE]
>
> The following video API parameters are not supported:
>
> * `size`
> * `quality`
> * `fps`
>
> See the [official Wan 3.0 and Prime API documentation](https://bailian.console.aliyun.com/cn-beijing?tab=doc\&spm=5176.29619931.J__Z58Z6CX7MY__Ll8p1ZOR.1.74cd59fcEkLe98#/doc/?type=model\&url=3050323).

`aspect_ratio` accepts the following values:

* `1:1`
* `16:9`
* `9:16`
* `4:3`
* `3:4`
* `adaptive` (default; adaptive aspect ratio)

`resolution` accepts the following values:

* `480P`
* `720P`
* `1080P` (default)

`duration` accepts `2-30` seconds (default: `5` seconds). When using a reference video, the combined input and output duration must not exceed `30` seconds.

### Pricing

Wan 3.0 video pricing depends on resolution and duration:

| Model | Resolution | Price (CNY per second) |
| - | - | - |
| `wan3.0-video` | 480P | 0.3 |
| `wan3.0-video` | 720P | 0.6 |
| `wan3.0-video` | 1080P | 1.2 |
| `wan3.0-video-prime` | 480P | 0.45 |
| `wan3.0-video-prime` | 720P | 0.9 |
| `wan3.0-video-prime` | 1080P | 1.8 |

Prime generates faster and costs more.

Reference videos count toward billing: billable time is input duration plus output duration.

For [discounted GeekAI channels](https://docs.geekai.co/en/docs/model_price.md), multiply the listed rate by the channel multiplier. For example, the high-availability Pro channel has a multiplier of `0.8`, so a standard 5-second 720p video costs `0.6x5x0.8=2.4` CNY.

### 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":"wan3.0-video",
    "prompt": "A kitten runs across a moonlit rooftop as city neon flickers in the distance. Cinematic image quality and smooth camera motion.",
    "resolution": "480P",
    "async": true
}'
```

> [!NOTE]
>
> Video generation takes time. Use asynchronous requests (`async=true`), then poll the task status for the result.

### Query the result

The asynchronous response is a JSON object containing the generation task ID:

```json theme={null}
{
    "model": "wan3.0-video",
    "task_id": "c542fe62-79b7-4fc0-9de2-0208a1663f54",
    "task_status": "pending"
}
```

Use the task ID (`task_id`) to query the generation status:

```bash theme={null}
curl --location --request GET 'https://geekai.co/api/v1/videos/c542fe62-79b7-4fc0-9de2-0208a1663f54' \
--header 'Authorization: Bearer $GEEKAI_API_KEY'
```

While generation is in progress, the response looks like this:

```json theme={null}
{
    "model": "wan3.0-video",
    "task_id": "c542fe62-79b7-4fc0-9de2-0208a1663f54",
    "task_status": "running"
}
```

When `task_status` is `succeed`, generation is complete:

```json theme={null}
{
    "model": "wan3.0-video",
    "task_id": "c542fe62-79b7-4fc0-9de2-0208a1663f54",
    "task_status": "succeed",
    "video_result": [
        {
            "id": "3a11bf1b-2fe5-4ff1-aee3-1317d6935905",
            "url": "https://dashscope-a717.oss-accelerate.aliyuncs.com/1d/62/20260827/e4b11e52/eece824d-22c1-4051-ac1c-fcf8de65e75a.mp4?Expires=1787901397&OSSAccessKeyId=LTAI5tPxpiCM2hjmWrFXrym1&Signature=k5JpXcXdv3fAsNHr6f9C7wZ5Bkk%3D"
        }
    ],
    "created": 1787843570,
    "completed": 1787843804
}
```

The result is in `video_result[0].url`. The URL expires after 24 hours by default, so download the video promptly.

Use the same response format and polling workflow for the image-to-video and other examples below.

### Image to video

**From the 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":"wan3.0-video",
    "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. The soundtrack consists entirely of rap, with no other dialogue or noise.",
    "image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png",
    "resolution": "480P",
    "async": true
}'
```

**From the 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":"wan3.0-video",
    "prompt": "A young girl’s smile gradually becomes a laugh. The camera slowly pushes in as the background light changes from cool to warm.",
    "image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png",
    "image_tail": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260408/sjuytr/wan-r2v-object-girl.jpg",
    "resolution": "480P",
    "async": true
}'
```

### Reference to video

Wan 3.0 accepts reference images, videos, and audio:

```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":"wan3.0-video",
    "prompt": "The person in video 1 holds the instrument from image 3 and plays a gentle country ballad on the chair from image 4, saying, ‘What lovely sunshine today.’ The person in image 1 walks by holding the object from image 2, sets it on the table beside the musician, and says, ‘That sounds beautiful. Could you sing it again?’",
    "images": [
        "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260408/sjuytr/wan-r2v-object-girl.jpg",
        "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260129/rtjeqf/wan-r2v-object3.png",
        "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"
    ],
    "video": [
        "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260129/qigswt/wan-r2v-role2.mp4"
    ],
    "resolution": "480P",
    "async": true
}'
```

Wan 3.0 accepts up to 10 reference images, five reference videos (15 seconds total), and five reference audio clips (15 seconds total).

**Reference files**

In addition to images, video, and audio, Wan 3.0 accepts reference files in `extra_body.file` and web page links in `extra_body.link`. This example uses a reference file:

```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":"wan3.0-video",
    "prompt": "Make a premium smart-glasses ad. Keep it minimalist, futuristic and fashionable: restrained lighting, black, silver-gray and ice blue, soft white accents and UI graphics. Reveal the glasses slowly against black, highlights tracing the temples and cool rim lighting defining the frame. Glide in extreme close-up over the lenses, nose pads, hinges, temples and finishes to show fine metal and composite textures and the slim flowing lines. Rotate the product slowly in midair as minimal motion graphics display key specs. Quickly draw in the camera as all parts realign and assemble. Cut to a confident young model with sculpted features in understated urban fashion, turning, raising a hand, walking and smiling in a minimalist space and city light. Show the fit from the front, side and rear three-quarter angle to highlight the light profile and everyday versatility. End on the product suspended against a solid color, pushing in on the logo and slogan. Use minimalist ambient electronic music with precise beats, a clean, decisive rhythm and a restrained, memorable international tech aesthetic.",
    "extra_body": {
        "file": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260806/ebapmr/glass.pptx"
    },
    "resolution": "480P",
    "async": true
}'
```

### Video editing

Pass the video to edit and describe the change in `prompt`:

```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":"wan3.0-video",
    "prompt": "Transform the entire scene into clay animation",
    "video": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260402/ldnfdf/wan2.7-videoedit-style-change.mp4",
    "resolution": "720P",
    "async": true
}'
```

**Video extension**

```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":"wan3.0-video",
    "prompt": "Extend the video forward. The baker lifts the brushed bread, sets the brush aside and carries the bread to the oven diagonally behind them as the camera follows.",
    "video": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260402/ldnfdf/wan2.7-videoedit-style-change.mp4",
    "resolution": "720P",
    "async": true
}'
```


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