Wan 2.6 Flash API リファレンス
1枚の画像から、手早くマルチショットのクリップを
PopNow の API キー 1 つで、Wan 2.6 Flash を自分のコードから呼び出せます。送るモデル ID、受け付ける入力フィールド、1 回あたりのクレジット、ターミナルに貼ってそのまま動くリクエストをこのページにまとめました。
パラメーターの説明はモデルの入力 schema から取っているため、英語のみです。
概要
- 開発元
- Alibaba
- 出力
- 動画
- 最安
- 3.38 クレジット 出力 1 秒あたり ($0.0338)
- 目安の所要時間
- 約 81 秒
1 クレジット = 0.01 米ドル。タスクの受付時に上限額を確保し、完了時に実際の使用量で精算します(整数クレジットに切り上げ、差額は返却)。失敗したタスクには課金されません。実行前に正確な金額を知りたいときは POST /api/v1/jobs/quote を呼んでください。
画像から動画
alibaba/wan-2.6-flash/image-to-video
料金
| オプション | クレジット (出力 1 秒あたり) | 米ドル |
|---|---|---|
generate_audio = false, resolution = 720p | 3.38 | $0.0338 |
generate_audio = false, resolution = 1080p | 5.06 | $0.0506 |
generate_audio = true, resolution = 720p | 6.75 | $0.0675 |
generate_audio = true, resolution = 1080p | 10.13 | $0.1013 |
パラメーター
| フィールド | 型 | 既定値 | 指定できる値 | 説明 |
|---|---|---|---|---|
image_url必須 | string | — | — | Opening frame. The clip starts from this image. |
prompt任意 | string | — | 1,500 文字まで | Describe what happens after the opening frame: the action, the camera, and the mood. |
negative_prompt任意 | string | — | 500 文字まで | List what must not appear in the shot. |
audio_url任意 | string | — | — | Optional voice or music track the clip follows for mouth shapes and pacing; the clip itself stays silent. |
generate_audio任意 | boolean | false | — | Generate a native soundtrack (voices, effects, ambience) with the picture. Audio costs twice as much per second. |
resolution任意 | string | 720p | 720p, 1080p | Output resolution. |
duration_seconds任意 | integer | 5 | 5, 10, 15 | Requested output length in seconds. |
shot_type任意 | string | single | single, multi | Single continuous shot, or a multi-shot edit. |
enable_prompt_expansion任意 | boolean | false | — | Allow the service to expand the submitted creative brief before generation. |
seed任意 | integer | — | 0〜2147483647 | Random seed. Keep it fixed only for controlled comparisons, not as a frame-identical guarantee. |
リクエスト例
このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。
例の image_url には PopNow のサンプル素材を使っています。自分の公開 HTTPS リンク、アップロードしたファイル、保存済みアセットに置き換えてください。
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "alibaba/wan-2.6-flash/image-to-video",
"input": {
"prompt": "He lands softly on the rooftop, laughs and turns toward the camera while the balloons sway in the evening breeze; slow push-in",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"duration_seconds": 5,
"resolution": "720p",
"generate_audio": false
}
}'レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"参照から動画
alibaba/wan-2.6-flash/reference-to-video
料金
| オプション | クレジット (出力 1 秒あたり) | 米ドル |
|---|---|---|
generate_audio = false, resolution = 720p | 3.38 | $0.0338 |
generate_audio = false, resolution = 1080p | 5.06 | $0.0506 |
generate_audio = true, resolution = 720p | 6.75 | $0.0675 |
generate_audio = true, resolution = 1080p | 10.13 | $0.1013 |
パラメーター
| フィールド | 型 | 既定値 | 指定できる値 | 説明 |
|---|---|---|---|---|
prompt必須 | string | — | 1,500 文字まで | Describe the new scene: name each reference as character1, character2 and so on (videos first, then images), then setting, action, camera and light. |
negative_prompt任意 | string | — | 500 文字まで | List what must not appear in the shot. |
reference_video_urls任意 | array<string> | — | 3 件まで | Reference videos of the subjects to cast, up to 3 clips adding up to 5 seconds. Still images in reference_image_urls are numbered after them. |
reference_image_urls任意 | array<string> | — | 5 件まで | Up to 5 still images of subjects to cast, alongside or instead of the reference videos; numbered after the videos. Videos and images together take at most 5 entries. |
aspect_ratio任意 | string | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4 | Output aspect ratio. |
generate_audio任意 | boolean | false | — | Generate a native soundtrack (voices, effects, ambience) with the picture. Audio costs twice as much per second. |
resolution任意 | string | 720p | 720p, 1080p | Output resolution. |
duration_seconds任意 | integer | 5 | 2〜10 | Requested output length in seconds. |
shot_type任意 | string | single | single, multi | Single continuous shot, or a multi-shot edit. |
enable_prompt_expansion任意 | boolean | false | — | Allow the service to expand the submitted creative brief before generation. |
seed任意 | integer | — | 0〜2147483647 | Random seed. Keep it fixed only for controlled comparisons, not as a frame-identical guarantee. |
リクエスト例
このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。
例の reference_video_urls には PopNow のサンプル素材を使っています。自分の公開 HTTPS リンク、アップロードしたファイル、保存済みアセットに置き換えてください。
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "alibaba/wan-2.6-flash/reference-to-video",
"input": {
"prompt": "The man from the reference image jogs across a sunlit rooftop at golden hour and smiles at the camera; smooth tracking shot",
"reference_video_urls": [
"https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4"
],
"duration_seconds": 5,
"resolution": "720p",
"generate_audio": false
}
}'レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
