seedinteger
Random seed (0-2147483647) for reproducible results. Omit for a random seed.
alibaba/wan/2.7/text-to-videoAlibaba Wan 2.7 text-to-video model with cinematic visuals, native audio generation, and configurable duration and resolution.
Modell testen
Was möchten Sie als Nächstes tun?
Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.
{
"aspect_ratio": "9:16",
"duration": 2,
"prompt": "A red paper lantern swaying gently in a quiet bamboo forest at dusk",
"resolution": "720p"
}Menschliche Präferenz
Elo-Wertungen aus anonymen Direktvergleichen, verglichen mit anderen Bild- und Videomodellen.
Ranglisten aus Artificial Analysis Arena
Arena für Text-zu-Video (ohne Ton): Personen wählen aus zwei Clips, die aus demselben Prompt generiert wurden, das bessere aus, ohne die Modellnamen zu sehen; Audio wird nicht bewertet.
Write a scene and get back a 2–15 second clip with optional driving audio. Wan 2.7 improves motion smoothness and scene fidelity over 2.6 and keeps camera instructions more faithfully.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 50,000 characters. |
duration | 2–15 | 5 | Output length in seconds. |
audio | audio URL | — | Optional WAV/MP3 URL that drives speech or rhythm in the clip. |
aspect_ratio | 16:9 / 9:16 / 1:1 / 4:3 / 3:4 | 16:9 | Output frame shape. |
resolution | 720p / 1080p | 720p | Sets the per-second rate. |
seed | integer | random | Fix it to compare prompt changes. |
You pay for output seconds: $0.10 at 720p and $0.15 at 1080p, the same as Alibaba's list price.
| Output | 720p | 1080p |
|---|---|---|
| 2s | $0.20 | $0.30 |
| 5s (default) | $0.50 | $0.75 |
| 10s | $1.00 | $1.50 |
| 15s | $1.50 | $2.25 |
Failed runs are not charged.
A young woman sits by a rain-streaked café window, slowly turns toward the camera and smiles; slow push-in, warm interior light, soft rain on the glass.
alibaba/wan/2.7/image-to-video.Other Wan 2.7 endpoints: alibaba/wan/2.7/image-to-video, alibaba/wan/2.7/reference-to-video, alibaba/wan/2.7/video-edit, alibaba/wan/2.7/video-extend, alibaba/wan/3.0/video (newer, up to 30s).
Jetzt loslegen
Senden Sie dieses Modell über die 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/2.7/text-to-video",
"prompt": "A young woman sitting by a rain-streaked window in a café, slowly turning to look at the camera with a gentle smile, warm interior lighting",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9"
}
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"Erstellen Sie einen SandBase API-Schlüssel und legen Sie ihn in Ihrer Serverumgebung fest. Alle Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie den Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis und committen Sie ihn nicht in ein Repository.
POST an /v1/run mit dieser Modell-ID und ihren Eingaben. Das obige Anfragebeispiel umfasst Übermittlung und Polling.
Verwenden Sie die zurückgegebene Run-ID zum Polling, bis der Status completed, failed oder timeout ist. Lesen Sie die Ausgabe erst nach completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Übergeben Sie eine öffentlich zugängliche Date-URL im Bild-, Video- oder Audiofeld des Modells. Unterstützte Formate und Limits werden neben jedem Playground-Eingabefeld angezeigt.
Verwenden Sie im Playground bei unterstützten Bildfeldern die Steuerung zum Hochladen oder Ersetzen. Video-URL-Felder akzeptieren ein gehostetes Fahrvideo; sie implizieren keine Unterstützung für Video-Uploads.
seedintegerRandom seed (0-2147483647) for reproducible results. Omit for a random seed.
audiostringThe URL of an audio file to guide video generation.
promptstringerforderlichThe text prompt to generate a video from.
Standard: "A young woman sitting by a rain-streaked window in a café, slowly turning to look at the camera with a gentle smile, warm interior lighting"
durationintegerThe duration of the generated video in seconds.
Standard: 5
Mögliche Werte: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
resolutionstringThe resolution of the video to generate.
Standard: "720p"
Mögliche Werte: "720p", "1080p"
aspect_ratiostringThe aspect ratio of the generated video.
Standard: "16:9"
Mögliche Werte: "16:9", "9:16", "1:1", "4:3", "3:4"
{
"model": "alibaba/wan/2.7/text-to-video",
"prompt": "A young woman sitting by a rain-streaked window in a café, slowly turning to look at the camera with a gentle smile, warm interior lighting",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9"
}Ein abgeschlossener Run stellt sein Ergebnis in der Ausgabe bereit. Das Folgende ist das gespeicherte Beispiel des Modells, keine neue Generierung.
[
{
"poster": "https://static.sandbase.ai/examples/posters/62d6c65f456a00aa82c4.jpg",
"source": "Self organization completed prediction",
"source_url": "https://www.sandbase.ai",
"url": "https://static.sandbase.ai/examples/d56c64fc-c0b4-4239-bf64-f44516cb32dd/output/ed7c2887-2f0b-4919-86b9-9712c1675007.mp4"
}
]