seedinteger
Random seed (0-2147483647) for reproducible results. Omit for a random seed; the same seed may still produce slightly different results.
最小: 0
最大: 2147483647
alibaba/wan/3.0/pro/video-extendWan 3.0 Pro Video Extend by Alibaba continues an input video forward from a text instruction, optionally guided by reference images and audio, with native audio, upscaled to 1080p, 2K, or 4K.
モデルを試す
PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 10
次に何をしますか?
例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
{
"duration": 5,
"prompt": "Extend Video 1 forward by 5s. Character A is a male with short dark brown hair wearing a black tailcoat, white shirt, black bow tie, and beige vest. Character B is a female with brown upswept hair wearing a beige puff-sleeve vintage long dress with black lace trim on the skirt, and dark teardrop earrings. Inside the ballroom, crystal chandelier light reflects off the marble floor. Guests chat in small groups, holding glasses and speaking in low voices. A graceful waltz string prelude slowly begins, and the guests' conversations gradually quiet. Character B walks slowly from one side of the ballroom, her skirt hem lightly brushing the marble floor, her gaze surveying the room. Character A emerges from the crowd, walks past the guests directly to Character B, gives a slight bow and extends his right hand, his gaze warm and attentive. Character B lowers her eyes with a gentle smile, lightly placing her right hand on Character A's palm. The two exchange a smile, and Character A leads Character B to the center of the dance floor. The surrounding guests naturally step back to make room, all eyes focused on the pair. Character A's left hand holds Character B's right hand raised, his right hand gently resting on her lower back. The two assume the waltz pose, stepping out on the downbeat of the strings, beginning to spin. The elegant atmosphere of a 19th-century court ball, warm golden tones.",
"video": "https://static.sandbase.ai/examples/1bafed32-8bcb-4102-b3fd-fc58ebad06b9/input/6c526f9d-eee8-419d-9dca-a3040428cd0a.mp4"
}Continue a clip past its last frame. The model carries over the subject, look, and camera language of the source and generates the next beat you describe. The response contains the new segment only, so you can cut it onto the original yourself. Pro runs the same Wan 3.0 model, then upscales the result with FlashVSR, so output comes back at 1080p, 2K, or 4K. For 480p or 720p use the non-Pro endpoints.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 5,000 characters. |
video | video URL, required | — | Source clip, Video 1 in the prompt. MP4/MOV, 1–15s, ≥16fps, 240–4096px per side, ≤100MB. |
images | image URL[] (≤10) | — | Referenced as Image 1, Image 2, … |
audios | audio URL[] (≤5) | — | WAV/MP3, 1–15s each, 15s total, ≤15MB. Referenced as Audio 1, … |
duration | 2–30 or auto | 5 | Length of the new segment. Source + duration ≤ 30s. |
resolution | 1080p / 2k / 4k | 1080p | Output tier after FlashVSR super-resolution; sets the per-second rate. |
generate_audio | boolean | true | Native dialogue, music, and effects. Same price on or off. |
seed | integer 0–2147483647 | random | Fix it to compare prompt changes. |
prompt_extend | boolean | true | LLM rewrites the prompt before generating. Set false to keep it verbatim. |
The aspect ratio always follows the source, so there is no aspect_ratio field.
Following the Wan 3.0 Pro rule, billed seconds are the source clip length (rounded up) plus the new segment: $0.18 at 1080p, $0.20 at 2K, $0.23 at 4K per second. References are not metered. If the source length cannot be read, 15s is assumed, which is also what the listed starting price uses.
| Source + new segment | Billed | 1080p | 2K | 4K |
|---|---|---|---|---|
| 5s + 5s | 10s | $1.80 | $2.00 | $2.30 |
| 10s + 5s | 15s | $2.70 | $3.00 | $3.45 |
| 15s + 5s (default) | 20s | $3.60 | $4.00 | $4.60 |
| 15s + 15s | 30s | $5.40 | $6.00 | $6.90 |
With duration: "auto" the run is pre-authorized at 30 seconds, then settled on the length that was actually generated. Failed runs are not charged. Output files are copied to SandBase storage and the returned URL stays valid for 7 days; download anything you need to keep.
Other Wan 3.0 Pro endpoints: alibaba/wan/3.0/pro/video (all modes in one schema), alibaba/wan/3.0/pro/text-to-video, alibaba/wan/3.0/pro/image-to-video, alibaba/wan/3.0/pro/reference-to-video, alibaba/wan/3.0/pro/video-edit.
開発を始める
このモデルをSandBase Unified Run API経由で送信します。
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "alibaba/wan/3.0/pro/video-extend",
"video": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260402/ldnfdf/wan2.7-videoedit-style-change.mp4",
"duration": 5,
"resolution": "1080p",
"prompt_extend": true,
"generate_audio": true
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"SandBaseのAPIキーを作成し、サーバー環境に設定してください。すべてのリクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開したり、リポジトリにコミットしたりしないでください。
このモデルIDと入力を使って /v1/run にPOSTしてください。上のリクエスト例には送信とポーリングが含まれています。
返されたrun IDを使って、ステータスがcompleted、failed、timeoutになるまでポーリングしてください。出力はcompleted後にのみ読み取ってください。
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"モデルのimage、video、またはaudioフィールドに、公開アクセス可能なファイルURLを指定してください。対応形式と制限は各Playground入力の横に表示されます。
Playgroundの対応する画像フィールドでアップロードまたは置換を使用してください。video URLフィールドはホストされたドライビング動画を受け付けますが、動画アップロード対応を意味するものではありません。
seedintegerRandom seed (0-2147483647) for reproducible results. Omit for a random seed; the same seed may still produce slightly different results.
最小: 0
最大: 2147483647
videostring必須URL of the input video (MP4 or MOV; 1-15 seconds, at least 16 fps, 240-4096px per side, under 100MB).
audiosarrayUp to 5 optional reference audio URLs (WAV or MP3; 1-15s each, 15s total, under 15MB each).
imagesarrayUp to 10 optional reference image URLs (JPEG, PNG, BMP, or WebP; up to 20MB each). Refer to them in the prompt as Image 1, Image 2, and so on.
promptstring必須Text instruction describing the extension. Refer to the input video as Video 1 and to reference images or audio as Image 1, Audio 1, and so on.
duration値Duration of the extension in seconds (2-30), or `auto` to let the model choose. The input video length plus this duration must not exceed 30 seconds. `auto` is pre-authorized at 30 seconds and billed on the actual output length.
デフォルト: 5
指定可能な値: "auto", 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
resolutionstringOutput resolution tier after FlashVSR super-resolution.
デフォルト: "1080p"
指定可能な値: "1080p", "2k", "4k"
prompt_extendbooleanLet the model rewrite your prompt with an LLM before generating. Helps short prompts but adds latency. Set false to use the prompt exactly as written.
デフォルト: true
generate_audiobooleanGenerate a synchronized audio track. Pricing is the same either way.
デフォルト: true
{
"model": "alibaba/wan/3.0/pro/video-extend",
"video": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260402/ldnfdf/wan2.7-videoedit-style-change.mp4",
"duration": 5,
"resolution": "1080p",
"prompt_extend": true,
"generate_audio": true
}完了したrunの結果は出力に表示されます。以下はモデルに保存されたサンプルであり、新規生成ではありません。
[
{
"url": "https://static.sandbase.ai/examples/1bafed32-8bcb-4102-b3fd-fc58ebad06b9/output/752f74c2-e707-42d4-b49d-cc91acb3139a.mp4"
}
]