# Wan 2.7 Video Edit API — pricing & specs

Wan 2.7 Video Edit is an Alibaba model that edits or restyles an existing video clip. On KeepRouter, Wan 2.7 Video Edit costs $0.0860 per second of video, billed pay-as-you-go with no monthly fee; the cost follows the clip's `duration`. Call it through a compatible KeepRouter endpoint supported by its active route, with the model id `wan2.7-videoedit`.

| Spec | Value |
|---|---|
| Maker | Alibaba |
| Modality | Video-to-video |
| Clip length | 2 to 15 seconds |
| Output price | $0.0860 per second of video |
| Capabilities | Video-to-video, Asynchronous task: poll for the finished clip |
| Endpoint | POST /v1/video/generations, then GET /v1/videos/{id} |
| Model id | `wan2.7-videoedit` |

## Call it via video generations endpoint

Submit the render to POST /v1/video/generations, then poll GET /v1/videos/{id} until status is completed and read url.

### cURL

```bash
# This model needs an input: media[0].type is "video", and the URL must be fetchable by the provider.
# 1. Submit the render and keep the task id
TASK=$(curl -s https://keeprouter.com/v1/video/generations \
  -H "Authorization: Bearer $KEEPROUTER_KEY" -H "Content-Type: application/json" \
  -d '{"model":"wan2.7-videoedit","prompt":"a paper plane gliding over a sunlit desk","duration":5,"media":[{"type":"video","url":"https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4"}]}' \
  | python3 -c 'import json,sys; print(json.load(sys.stdin)["id"])')
# 2. Poll until the clip is ready
curl -s https://keeprouter.com/v1/videos/$TASK -H "Authorization: Bearer $KEEPROUTER_KEY"
```

### Python

```python
import os, time, requests
headers = {"Authorization": "Bearer " + os.environ["KEEPROUTER_KEY"]}
task = requests.post("https://keeprouter.com/v1/video/generations", headers=headers, json={
    "model": "wan2.7-videoedit", "prompt": "a paper plane gliding over a sunlit desk", "duration": 5,
    "media": [{"type": "video", "url": "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4"}],
}).json()
while True:
    state = requests.get(f"https://keeprouter.com/v1/videos/{task['id']}", headers=headers).json()
    if state["status"] in ("completed", "failed", "canceled"):
        break
    time.sleep(5)
print(state["url"] or state["error"])
```

### JavaScript

```js
const headers = { Authorization: "Bearer " + process.env.KEEPROUTER_KEY, "Content-Type": "application/json" };
const task = await (await fetch("https://keeprouter.com/v1/video/generations", {
  method: "POST", headers,
  body: JSON.stringify({ model: "wan2.7-videoedit", prompt: "a paper plane gliding over a sunlit desk", duration: 5, media: [{ type: "video", url: "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4" }] }),
})).json();
let state;
do {
  await new Promise((r) => setTimeout(r, 5000));
  state = await (await fetch("https://keeprouter.com/v1/videos/" + task.id, { headers })).json();
} while (state.status !== "completed" && state.status !== "failed" && state.status !== "canceled");
console.log(state.url ?? state.error);
```

## Estimate API costs

At the current KeepRouter customer price, an example workload of 6 seconds of generated video per request costs approximately $0.5161 per request. At 100 requests per day, that is $1548.22 over 30 days. This is a usage estimate, excluding processing fees, taxes, retries and application infrastructure. Actual usage, cache hits and supported generation durations need their own checks.

[Adjust quantities in the API cost calculator](/tools/api-cost-calculator?model=wan2.7-videoedit).

## How to evaluate Wan 2.7 Video Edit

Wan 2.7 Video Edit is listed on KeepRouter as video-to-video under the exact id `wan2.7-videoedit`. Use POST /v1/video/generations, then GET /v1/videos/{id} for the listed route; a maker's upstream features do not automatically apply to this gateway endpoint. No context limit is asserted here because the exact upstream limit has not been verified for this catalog entry.

**First workload:** Render one short representative clip, then inspect motion, consistency and the billed duration. Published duration range: 2–15 seconds.

**Before production:** Video generation is asynchronous and billed by generated seconds. Poll the task result; keep failed or refused jobs separate in your cost accounting.

## Public model usage evidence

No public, exact-variant usage figure has been verified for this KeepRouter model id. Missing data is not zero usage; family-level or maker-wide traffic is not presented as this model's traffic.

## Published examples and cases

No exact-model customer case has been verified for this entry. The workload above is an evaluation recipe, not a claim of a public deployment.

## Source and verification boundary

[Official Alibaba website](https://qwen.ai/). KeepRouter's live catalog is authoritative for the customer price and enabled endpoint shown here; the maker remains authoritative for upstream model capabilities and limits.

## Pricing and implementation guides

- [Calculate your API workload cost](https://keeprouter.com/tools/api-cost-calculator)
- [KeepRouter API keys: move from free to paid models](https://keeprouter.com/blog/keeprouter-api-key-free-to-paid)

## Related models

- [Wan 2.7 Video Edit (1080p)](https://keeprouter.com/models/wan2.7-videoedit-1080p.md) by Alibaba — $0.1434 per second of video
- [Wan 2.7 Text-to-Video (1080p)](https://keeprouter.com/models/wan2.7-t2v-1080p.md) by Alibaba — $0.1500 per second of video
- [HappyHorse 1.0 Image-to-Video](https://keeprouter.com/models/happyhorse-1.0-i2v.md) by Alibaba — $0.1400 per second of video
- [Wan 2.7 Text-to-Video](https://keeprouter.com/models/wan2.7-t2v.md) by Alibaba — $0.1000 per second of video
- [HappyHorse 1.0 Image-to-Video (1080p)](https://keeprouter.com/models/happyhorse-1.0-i2v-1080p.md) by Alibaba — $0.2400 per second of video
- [Wan 2.7 Reference-to-Video (1080p)](https://keeprouter.com/models/wan2.7-r2v-1080p.md) by Alibaba — $0.1500 per second of video

## More

- [All models & pricing](https://keeprouter.com/models.md)
- [Quickstart](https://keeprouter.com/docs/quickstart.md)
- [Get an API key](https://keeprouter.com/login?returnTo=%2Fconsole%2Fkeys%3Fmodel%3Dwan2.7-videoedit)

_Catalog facts and prices last changed 2026-10-03._
_Page content reviewed 2026-09-28._
