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

# Alibaba Wan 2.7 API

> Quickstart for Alibaba Wan 2.7 — text, image, reference, and edit video generation at 720P / 1080P.

## Overview

**Wan 2.7** is Alibaba's current video-generation family on RouterBase.
Four tasks are exposed: text-to-video, image-to-video,
reference-to-video, and video edit. All four price linearly on
output `duration` (in seconds) at $0.10/s @ 720P or $0.15/s @ 1080P.

|                     |                                                                       |
| ------------------- | --------------------------------------------------------------------- |
| **Provider**        | Alibaba                                                               |
| **Family**          | `wan-2-7-novita`                                                      |
| **Modality**        | Video                                                                 |
| **Supported tasks** | `text-to-video`, `image-to-video`, `reference-to-video`, `video-edit` |
| **Resolutions**     | 720P, 1080P                                                           |

## Endpoint

```http theme={null}
POST https://routerbase.com/v1/videos/generations
```

This is an **async** endpoint. The POST returns immediately with
`{id, status: "pending"}`; poll `GET /v1/videos/generations/{id}`
until `status` is `success` (with `data: [{url}]`) or `failed`.

## Supported Tasks

* [`text-to-video`](/alibaba-wan-2-7-api/text-to-video) —
  `alibaba/wan-2-7-t2v`
* [`image-to-video`](/alibaba-wan-2-7-api/image-to-video) —
  `alibaba/wan-2-7-i2v`
* [`reference-to-video`](/alibaba-wan-2-7-api/reference-to-video) —
  `alibaba/wan-2-7-r2v`
* [`video-edit`](/alibaba-wan-2-7-api/video-edit) —
  `alibaba/wan-2-7-video-edit`

## Pricing

Per-second pricing. Wan 2.7 ships at upstream list — no RouterBase
markdown.

| Resolution | Rate       | 5s clip | 10s clip |
| ---------- | ---------- | ------- | -------- |
| 720P       | \$0.10 / s | \$0.50  | \$1.00   |
| 1080P      | \$0.15 / s | \$0.75  | \$1.50   |

`text-to-video` and `reference-to-video` select the tier via the `size`
preset (\~2M-px presets like `1920*1080` bill at 1080P; \~0.9M-px presets
like `1280*720` at 720P). `image-to-video` and `video-edit` use the
`resolution` field directly.

## Authentication

All requests require a Bearer token — create one at
[routerbase.com/api-key](https://routerbase.com/api-key).

```bash theme={null}
curl https://routerbase.com/v1/videos/generations \
  -H "Authorization: Bearer $ROUTERBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "alibaba/wan-2-7-t2v", "prompt": "…"}'
```
