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/prime/video-editWan 3.0 Pro Prime Video Edit by Alibaba restyles or modifies an input video from a text instruction, optionally guided by reference images and audio, keeping the original length, upscaled to 1080p, 2K, or 4K.
モデルを試す
PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 10
次に何をしますか?
例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
{
"prompt": "Convert the entire scene to clay style",
"video": "https://static.sandbase.ai/examples/d59d6b3a-2443-4664-a7de-fe0356c77787/input/bbec16fa-0d90-4168-8baa-0d202a1b9713.mp4"
}Change an existing clip with a sentence: restyle it, swap a subject or prop, or rework the setting. Optional reference images and audio guide the change. The result keeps the length and framing of the source. Pro runs the same Wan 3.0 Prime 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.
Pro Prime is the faster Wan 3.0 Pro tier: the same inputs and output quality as Wan 3.0 Pro, with significantly shorter end-to-end generation time and a higher per-second rate. Use Wan 3.0 Pro for batch or background jobs where turnaround does not matter.
| 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, … |
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. |
There is no duration field; the output is as long as the source.
Like the Wan 3.0 Pro rate, billing counts the source clip and the edited output, which are the same length, so each source second bills twice: $0.52 at 1080p, $0.56 at 2K, $0.62 at 4K. References are not metered.
| Source clip | Billed | 1080p | 2K | 4K |
|---|---|---|---|---|
| 2s | 4s | $1.04 | $1.12 | $1.24 |
| 5s | 10s | $2.60 | $2.80 | $3.10 |
| 10s | 20s | $5.20 | $5.60 | $6.20 |
| 15s | 30s | $7.80 | $8.40 | $9.30 |
The quote shown before submission assumes a 5-second source ($2.60 at 1080p); the final charge uses the measured length. 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 Prime endpoints: alibaba/wan/3.0/pro/prime/video (all modes in one schema), alibaba/wan/3.0/pro/prime/text-to-video, alibaba/wan/3.0/pro/prime/image-to-video, alibaba/wan/3.0/pro/prime/reference-to-video, alibaba/wan/3.0/pro/prime/video-extend. Standard tier: 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/prime/video-edit",
"video": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260402/ldnfdf/wan2.7-videoedit-style-change.mp4",
"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 editing. Refer to the input video as Video 1 and to reference images or audio as Image 1, Audio 1, and so on.
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/prime/video-edit",
"video": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260402/ldnfdf/wan2.7-videoedit-style-change.mp4",
"resolution": "1080p",
"prompt_extend": true,
"generate_audio": true
}完了したrunの結果は出力に表示されます。以下はモデルに保存されたサンプルであり、新規生成ではありません。
[
{
"url": "https://static.sandbase.ai/examples/d59d6b3a-2443-4664-a7de-fe0356c77787/output/f58a59cb-a233-4da5-b843-32a4b86ac560.mp4"
}
]