seedinteger
Random seed (0-2147483647) for reproducible results. Omit for a random seed; the same seed may still produce slightly different results.
Minimo: 0
Massimo: 2147483647
alibaba/wan/3.0/pro/video-editWan 3.0 Pro 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.
Prova il modello
PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 10
Cosa vuoi fare dopo?
Seleziona un esempio per caricare i suoi input e il risultato nel playground.
{
"prompt": "Convert the entire scene to clay style",
"video": "https://static.sandbase.ai/examples/639da75d-189b-4e52-98a1-7372d6dc7f33/input/e38eabae-0645-44a5-8d86-ba468b603f44.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 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, … |
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.36 at 1080p, $0.40 at 2K, $0.46 at 4K. References are not metered.
| Source clip | Billed | 1080p | 2K | 4K |
|---|---|---|---|---|
| 2s | 4s | $0.72 | $0.80 | $0.92 |
| 5s | 10s | $1.80 | $2.00 | $2.30 |
| 10s | 20s | $3.60 | $4.00 | $4.60 |
| 15s | 30s | $5.40 | $6.00 | $6.90 |
The quote shown before submission assumes a 5-second source ($1.80 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 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-extend.
Inizia a costruire
Invia questo modello tramite la 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-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"Crea una SandBase API key e impostala nell'ambiente del server. Tutte le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la key sul server. Non esporla nel codice del browser né committarla in un repository.
Esegui POST su /v1/run con questo ID modello e i relativi input. L'esempio di richiesta sopra include invio e polling.
Usa il run ID restituito per fare polling finché lo stato non è completed, failed o timeout. Leggi l'output solo dopo completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Passa un URL di file accessibile pubblicamente nel campo image, video o audio del modello. I formati supportati e i limiti sono mostrati accanto a ciascun input del Playground.
Usa il controllo upload o replace sui campi immagine supportati nel Playground. I campi URL video accettano un video di driving ospitato; non implicano il supporto al caricamento video.
seedintegerRandom seed (0-2147483647) for reproducible results. Omit for a random seed; the same seed may still produce slightly different results.
Minimo: 0
Massimo: 2147483647
videostringobbligatorioURL 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.
promptstringobbligatorioText 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.
Predefinito: "1080p"
Valori possibili: "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.
Predefinito: true
generate_audiobooleanGenerate a synchronized audio track. Pricing is the same either way.
Predefinito: true
{
"model": "alibaba/wan/3.0/pro/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
}Un run completato espone il risultato in output. Quanto segue è l'esempio salvato del modello, non una nuova generazione.
[
{
"url": "https://static.sandbase.ai/examples/639da75d-189b-4e52-98a1-7372d6dc7f33/output/e7877684-9fe6-464b-8bd4-5ad1dfb7026d.mp4"
}
]