wan3.0-video-prime API 价格
所有价格均以 USD 计。对比 APISea 费率与相同计费单位的官方标价。
| 选项 | APISea | 官方 | 节省 |
|---|---|---|---|
| 默认默认 | $0.2263 | $0.25 | −9% |
| 1080P | $0.2263 | $0.25 | −9% |
| 480P | $0.05657 | $0.0625 | −9% |
| 720P | $0.1131 | $0.125 | −10% |
价格单位为 每秒。
wan3.0-video-prime 是什么?
wan3.0-video-prime 是阿里巴巴 Wan 系列的视频生成模型,可通过 APISea 用于文生视频、首帧生成、首尾帧生成和多模态参考工作流。它支持将图像、视频、音频、文档和公开网页作为参考素材。开发者可以选择 480P、720P 或 1080P 输出,设置 2–30 秒的固定时长,也可以让模型自行决定时长,还可以控制宽高比、音频、提示词改写、seed 和水印设置。使用参考视频的工作流还受到输入与输出总时长的额外限制。
使用您的 APISea key,通过 APISea 视频生成 endpoint 调用该模型。按量计费,仅对成功的请求收费:480P 为每秒 $0.05657,720P 为每秒 $0.1131,Default 或 1080P 为每秒 $0.2263。默认配置的价格比服务提供商的标价低约 9%。省略分辨率时将使用 1080P;是否包含音轨不会影响价格。
wan3.0-video-prime 的亮点
多种生成模式
可根据文本提示词、首帧、首尾帧或多模态参考生成视频。文档和公开网页也可作为参考输入。
分辨率与时长控制
可选择 480P、720P 或 1080P,并设置 2–30 秒的固定输出时长。将时长设为 -1,模型便会在适用限制内自行决定时长。
灵活的宽高比
可使用自适应尺寸,也可选择 21:9、16:9、4:3、1:1、3:4 或 9:16。对于基于帧和参考媒体的任务,建议使用自适应尺寸。
可选音轨
输出默认包含音频,关闭音频不会改变价格。水印可单独控制,默认关闭。
分 4 步调用 wan3.0-video-prime API
- 01
获取 API 密钥
登录 APISea,充值 $50 起,并在控制台创建一个 sk-sea 密钥。
- 02
设置 base URL
在 SDK 或 HTTP 客户端中将 https://api.apisea.ai/v1 设置为 base URL。
- 03
发送请求
调用 POST /v1/videos/generations,并传入 "model": "wan3.0-video-prime" 及以下参数。
- 04
处理响应
响应中包含 task_id。轮询 GET /v1/tasks/{task_id},直到状态变为 completed,然后下载结果 URL。
curl --request POST \
--url https://api.apisea.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "wan3.0-video-prime",
"prompt": "A kitten runs across a moonlit rooftop, neon lights of the city flicker in the distance, cinematic quality, smooth camera move.",
"resolution": "720P",
"size": "21:9",
"duration": 5,
"prompt_extend": false,
"seed": -1
}'参数
| 参数 | 类型 | 必填 | 默认 | 说明 |
|---|---|---|---|---|
model | string | 必填 | — | Video generation model name. Allowed values: |
nsfw_check | boolean | 可选 | false | Whether to run content moderation before submitting the video task. |
prompt | string | 可选 | — | Text description. **Required unless** media fields are provided (at least one of prompt or media). |
prompt_extend | boolean | 可选 | true | Enable intelligent prompt rewriting. `true` or omission enables it (upstream default); `false` disables it. Rewriting can improve short prompts but may increase latency. |
resolution | string | 可选 | 1080P | Output resolution (case-insensitive) |
size | string | 可选 | adaptive | Aspect ratio. `aspect_ratio` is also accepted. |
duration | integer | 可选 | 5 | Duration in seconds: |
audio | boolean | 可选 | true | Whether the output includes an audio track. Default `true`. **Price is the same with or without audio.** |
seed | integer | 可选 | — | Integer random seed: `-1` or `[0, 2147483647]`. `-1` is equivalent to omission and selects a random seed. Out-of-range values such as `-2` or `2147483648` return HTTP 400 at submission. |
watermark | boolean | 可选 | false | Whether to add a watermark. Default `false` |
generation_type | string | 可选 | — | How bare `image_urls` are classified: |
image_urls | string[] | 可选 | — | Image URL array. Role assignment follows mutual exclusion rules. |
image_with_roles | object[] | 可选 | — | Images with explicit roles. Each item: |
video_urls | string[] | 可选 | — | Reference videos, up to **5** clips; each 1–15s, **total ≤ 15s** |
audio_urls | string[] | 可选 | — | Reference audio, up to **5** clips; each 1–15s, **total ≤ 15s** |
audio_url | string | 可选 | — | Single reference audio (single-value form of `audio_urls`) |
file_url | string | 可选 | — | Reference document URL, at most **1**. **Cannot be combined with `link_url`.** |
link_url | string | 可选 | — | Public web page URL, at most **1**. Login-free pages only. **Cannot be combined with `file_url`.** |
wan3.0-video-prime 的应用场景
文生视频创作工具
构建一个将文字场景描述转换为视频片段的界面,并支持选择分辨率、时长和宽高比。
帧引导视频工作流
允许用户提供开场图像,或同时提供开场和结尾图像,通过明确指定帧的角色来引导视频生成。
多模态创作工作区
在视频创作工作流中,将参考图像、视频片段和音频与提示词结合使用。
文档转视频工作流
构建使用参考文档或无需登录即可访问的公开网页生成视频的工具,并可选用提示词描述预期结果。
获得更好结果的技巧
- 01
明确设置分辨率
省略分辨率时,将使用 1080P,价格为每秒 $0.2263。如果任务适合较低分辨率的输出,可选择 480P(每秒 $0.05657)或 720P(每秒 $0.1131)。
- 02
合理规划参考视频时长
参考视频总时长与输出时长之和不得超过 30 秒。选择固定输出时长时,请将参考片段时长计算在内。
- 03
按需启用提示词改写
提示词改写默认开启,可改善较短的提示词,但可能增加延迟。使用文档或网页作为参考时,必须保持开启或省略该设置。
- 04
明确指定帧的角色
使用 image_with_roles 标记 first_frame、last_frame 或 reference_image 输入。对于媒体引导任务,请先使用自适应尺寸;如果同时提供 size 和 aspect_ratio,两者的值必须匹配。
限制与须知
参考视频和音频各最多支持 5 个片段,每个片段时长为 1–15 秒,且每种媒体的总时长不得超过 15 秒。
每个请求最多包含一份参考文档或一个公开网页,且两者不能同时使用。
超过 20,000 个字符的提示词会被自动截断,而不是直接拒绝。
wan3.0-video-prime API 常见问题
wan3.0-video-prime 在 APISea 上的价格是多少?
APISea 的价格为:480P 每秒 $0.05657,720P 每秒 $0.1131,Default 或 1080P 每秒 $0.2263。默认配置的价格比服务提供商的标价低约 9%,且仅对成功的请求收费。
如何调用 wan3.0-video-prime?
使用您的 APISea key,通过 Bearer Token 身份验证向 https://api.apisea.ai/v1/videos/generations 发送 POST 请求。将 model 字段设为 wan3.0-video-prime,并提供提示词或受支持的参考输入。
支持哪些输出设置?
您可以选择 480P、720P 或 1080P,设置 2–30 秒的固定时长或由模型决定时长,并选择自适应宽高比或受支持的显式宽高比。音频、seed、水印和提示词改写也都可以配置。
参考视频有哪些限制?
最多可提供 5 个参考视频片段,每段时长为 1–15 秒,总时长不超过 15 秒。输入视频总时长与输出时长之和不得超过 30 秒,即使由模型选择输出时长,也必须遵守此限制。
生成的视频可以用于商业用途吗?
商业用途须遵守提供商的条款。在将生成的视频用于商业产品或营销活动之前,请先查看适用条款。
wan3.0-video-prime 与 wan3.0-video 有什么区别?
文档指出,wan3.0-video-prime 和 wan3.0-video 接受完全相同的请求参数。文档未说明两者在质量、速度或能力方面有何差异。