New: Nano Banana 2.1Try the model
API Stock
/VIDEO/Wan/wan2.7-video
视频
Alibaba

Wan 2.7 Video API

通过一种灵活的模型生成、编辑、参考或继续视频。

  • 文本转视频
  • 图像转视频

起价

$0.086

每秒输出

比 fal.ai 便宜 14%
15 个参数 · 2 个价格选项

Wan 2.7 Video 在线试用

输入

Text prompt. Required for text-to-video, reference-to-video and edit-video; optional for image-to-video.

Image-to-video frames. First URL is the starting frame, an optional second URL is the ending frame. Providing this selects the image-to-video workflow.

Reference images for the reference-to-video workflow. Requires a prompt.

Reference videos for the reference-to-video workflow. Requires a prompt.

Source video to edit. Providing this selects the edit-video workflow (requires a prompt).

Optional reference image guiding the edit-video workflow.

Source video to continue or extend. Selects the video-continuation workflow. Cannot be combined with imageUrls or audioUrl. Supported duration is 2-10 seconds.

Optional audio URL (text-to-video and image-to-video workflows).

登录后运行

运行费用将从您的余额中扣除。

输出

输出将显示在此处。

填写参数、确认费用并运行模型,结果将在此处显示。在浏览器中试用无需单独创建 API 密钥。

Wan 2.7 Video API 价格

选项每秒价格fal.ai您节省的金额
720p$0.086$0.1−14%
1080p$0.129$0.15−14%
1curl -X POST https://api.api-stock.com/api/v1/generation/create \
2 -H "Authorization: Bearer $API_STOCK_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "model": "wan2.7-video",
6 "input": {
7 "size": "16:9",
8 "resolution": "720p"
9 }
10 }'

参数

名称类型必填默认值描述
promptstring否—Text prompt. Required for text-to-video, reference-to-video and edit-video; optional for image-to-video.
imageUrlsstring[]否—Image-to-video frames. First URL is the starting frame, an optional second URL is the ending frame. Providing this selects the image-to-video workflow.
referenceImageUrlsstring[]否—Reference images for the reference-to-video workflow. Requires a prompt.
referenceVideoUrlsstring[]否—Reference videos for the reference-to-video workflow. Requires a prompt.
editVideoUrlstring否—Source video to edit. Providing this selects the edit-video workflow (requires a prompt).
referenceImageUrlstring否—Optional reference image guiding the edit-video workflow.
continueVideoUrlstring否—Source video to continue or extend. Selects the video-continuation workflow. Cannot be combined with imageUrls or audioUrl. Supported duration is 2-10 seconds.
audioUrlstring否—Optional audio URL (text-to-video and image-to-video workflows).
sizestring否16:9Aspect ratio (text-to-video, reference-to-video and edit-video). Ignored for image-to-video, where it is derived from the input frames.以下之一:16:9, 9:16, 1:1, 4:3, 3:4
resolutionstring否720pOutput resolution以下之一:720p, 1080p
durationnumber否—Video duration in seconds (2-15). Allowed values depend on the resolved workflow: text-to-video accepts 5/10/15, image-to-video 2-15, reference-to-video 2-10, edit-video 0 or 2-10 (0 lets PoYo detect the source video duration).
multiShotsboolean否—Enable multi-shot generation (image, reference and edit workflows).
audioSettingstring否—Audio setting for the edit-video workflow.
seednumber否—Random seed for controlling randomness
enableSafetyCheckerboolean否—Enable the model's safety checker

常见问题

Wan 2.7 Video 的费用是多少?

Wan 2.7 Video 通过 API Stock API 的起价为 $0.086 每秒输出。您按使用量从单个预付余额中支付——无需订阅——最终价格会根据分辨率或时长等参数浮动。

Wan 2.7 Video 是什么时候发布的?

Wan 2.7 Video 于 2026年4月7日 发布。它可以通过 API Stock API 使用,与其他所有模型共用同一个 API 密钥和预付余额。

如何获取 Wan 2.7 Video 的 API 密钥?

注册 API Stock 账号,使用可用的付款方式充值,然后在控制台创建 API 密钥即可,整个过程只需几分钟,无需签订合同。同一个密钥可调用目录中的所有模型,因此无需为 Wan 2.7 Video 单独申请密钥。

如何调用 Wan 2.7 Video API?

向 https://api.api-stock.com/api/v1/generation/create 发送 POST 请求,并附上您的 API 密钥和模型 ID "wan2.7-video"。请求会返回一个任务 ID,您可以轮询该 ID;或者在结果准备就绪时通过 webhook 回调通知。上方的快速开始部分提供了一个可直接运行的示例。

Wan 2.7 Video 接受哪些输入参数?

Wan 2.7 Video 接受 15 个输入参数。参数表中列出了它们的类型、默认值和允许值。

如果 Wan 2.7 Video 请求失败,会发生什么?

API Stock 会自动在备用提供商上重试请求。如果所有提供商都失败,费用会退还至您的余额。

我可以使用与其他模型相同的 API 密钥来调用 Wan 2.7 Video 吗?

可以。API Stock 上的每个模型——视频、图像、音乐和聊天——共享一个 API 密钥和一个预付余额,因此您无需新的凭据即可切换到 Wan 2.7 Video。