体验场
输入
Text description. Required unless at least one media input is supplied. In reference mode you can address assets positionally with "图N / 视频N / 音频N" labels; indices run per media type.
Image URLs without explicit roles. In the frame family the first item is the start frame and an optional second is the end frame; in the reference family every item is a reference image (up to 10).
Reference videos, up to 5 clips of 1-15s each (total <= 15s). Input video duration plus the requested output duration must stay within 30 seconds.
Reference audio, up to 5 clips of 1-15s each (total <= 15s).
Reference document driving the generation (docx/xlsx/pptx/pdf/txt/md and similar, <=100MB, <=50 pages). Cannot be combined with linkUrl. A prompt is optional when this is supplied.
Public, login-free web page to turn into a video. Cannot be combined with fileUrl.
运行费用将从您的余额中扣除。
输出
输出将显示在此处。
快速开始
完整 API 参考 →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": "wan3.0-video",6 "input": {7 "size": "adaptive",8 "resolution": "480p",9 "duration": 5,10 "audio": true,11 "watermark": false12 }13 }'
参数
| 名称 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
prompt | string | 否 | — | Text description. Required unless at least one media input is supplied. In reference mode you can address assets positionally with "图N / 视频N / 音频N" labels; indices run per media type. |
imageUrls | string[] | 否 | — | Image URLs without explicit roles. In the frame family the first item is the start frame and an optional second is the end frame; in the reference family every item is a reference image (up to 10). |
imageWithRoles | string[] | 否 | — | Images with explicit roles. Use this when you need first/last frame or reference images stated outright rather than inferred from order. |
videoUrls | string[] | 否 | — | Reference videos, up to 5 clips of 1-15s each (total <= 15s). Input video duration plus the requested output duration must stay within 30 seconds. |
audioUrls | string[] | 否 | — | Reference audio, up to 5 clips of 1-15s each (total <= 15s). |
fileUrl | string | 否 | — | Reference document driving the generation (docx/xlsx/pptx/pdf/txt/md and similar, <=100MB, <=50 pages). Cannot be combined with linkUrl. A prompt is optional when this is supplied. |
linkUrl | string | 否 | — | Public, login-free web page to turn into a video. Cannot be combined with fileUrl. |
generationType | string | 否 | — | How bare imageUrls are classified: frame (first/last frame) or reference. Omit to let it be inferred — reference when the request already carries reference-family inputs, frame otherwise.以下之一:frame, reference |
size | string | 否 | adaptive | Aspect ratio. `adaptive` lets the model pick one from the inputs.以下之一:adaptive, 16:9, 4:3, 1:1, 3:4, 9:16 |
resolution | string | 否 | 480p | Output resolution. Each tier is billed at its own per-second rate, so 1080p costs four times 480p for the same duration.以下之一:480p, 720p, 1080p |
duration | number | 否 | 5 | Duration in seconds (2-30). Billing is per second at the resolution's rate. With reference videos, total input video duration plus this value must be at most 30 seconds. |
audio | boolean | 否 | true | Include an audio track in the output. |
watermark | boolean | 否 | false | Add a watermark to the output |
seed | number | 否 | — | Random seed for controlling randomness |
常见问题
Wan 3.0 Video 的费用是多少?
Wan 3.0 Video 通过 API Stock API 的起价为 $0.05 每秒输出。您按使用量从单个预付余额中支付——无需订阅——最终价格会根据分辨率或时长等参数浮动。
如何调用 Wan 3.0 Video API?
向 https://api.api-stock.com/api/v1/generation/create 发送 POST 请求,并附上您的 API 密钥和模型 ID "wan3.0-video"。请求会返回一个任务 ID,您可以轮询该 ID;或者在结果准备就绪时通过 webhook 回调通知。上方的快速开始部分提供了一个可直接运行的示例。
Wan 3.0 Video 接受哪些输入参数?
Wan 3.0 Video 接受 14 个输入参数。参数表中列出了它们的类型、默认值和允许值。
如果 Wan 3.0 Video 请求失败,会发生什么?
API Stock 会自动在备用提供商上重试请求。如果所有提供商都失败,费用会退还至您的余额。
我可以使用与其他模型相同的 API 密钥来调用 Wan 3.0 Video 吗?
可以。API Stock 上的每个模型——视频、图像、音乐和聊天——共享一个 API 密钥和一个预付余额,因此您无需新的凭据即可切换到 Wan 3.0 Video。