プレイグラウンド
入力
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 出力1秒あたりから利用できます。料金は1つの前払い残高から利用した分だけ支払う従量制で、サブスクリプションはありません。最終的な価格は、解像度や長さなどのパラメータに応じて変わります。
Wan 3.0 Video APIはどのように呼び出せますか?
https://api.api-stock.com/api/v1/generation/create に、APIキーとモデルID「wan3.0-video」を指定してPOSTリクエストを送信します。リクエストの結果として、ポーリングするタスクIDが返されるか、結果の準備ができた時点でWebhookコールバックが送信されます。上記のクイックスタートにすぐ実行できる例があります。
Wan 3.0 Videoはどのような入力パラメータを受け付けますか?
Wan 3.0 Videoは14個の入力パラメータを受け付けます。種類、デフォルト値、指定可能な値は上記のパラメータ表に記載されています。
Wan 3.0 Videoのリクエストに失敗するとどうなりますか?
API Stockは予備プロバイダーでリクエストを自動的に再試行します。すべてのプロバイダーで失敗した場合、請求額は残高に返金されます。
Wan 3.0 Videoは他のモデルと同じAPIキーで利用できますか?
はい。API Stockのすべてのモデル(動画、画像、音楽、チャット)は1つのAPIキーと1つの前払い残高を共有しているため、新しい認証情報なしでWan 3.0 Videoに切り替えられます。