seedinteger
Random seed (0-2147483647) for reproducible results. Omit for a random seed.
alibaba/wan/2.6/image-to-videoAlibaba Wan 2.6 image-to-video model transforming still images into video. Supports first-frame-to-video only.
Probar el modelo
PNG, JPEG, WebP o GIF · máximo 20 MiB
¿Qué le gustaría hacer después?
Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.
{
"audio": "https://static.sandbase.ai/examples/5b422d5a-e1be-4e4b-95cb-8f7b4e17e17b/input/cb1853ea-67d2-4a97-b2b4-1b93b5f24d73.mp3",
"image": "https://static.sandbase.ai/examples/5b422d5a-e1be-4e4b-95cb-8f7b4e17e17b/input/80632427-d7b9-441c-b64d-6cc247f55788.webp",
"prompt": "An urban fantasy art scene. A dynamic graffiti art character. A boy made of spray paint comes to life from a concrete wall. He raps an English song at a very fast pace, striking a classic, energetic rapper pose. The scene is set at night under an urban railway bridge. The lighting comes from a single street lamp, creating a cinematic atmosphere, full of high energy and amazing detail. The audio part of the video consists entirely of rap, with no other dialogue or background noise."
}{
"image": "https://static.sandbase.ai/examples/68cb3b57-8548-4e28-9213-bb44cb1d84ec/input/21ea14f1-7538-4956-ac9e-b501fb81b424.webp",
"prompt": "The camera slowly moves up from below the turtle, which swims gracefully, its belly details clearly visible."
}Animate a picture into a 5 or 10 second clip. image becomes the first frame and the prompt says what moves; an optional audio track can drive speech or rhythm.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 50,000 characters. |
image | image URL, required | — | First frame. JPEG, PNG, or WebP URL. |
audio | audio URL | — | Optional WAV/MP3 URL that drives speech or rhythm. |
duration | 5 / 10 | 5 | Output length in seconds. |
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, Alibaba's list price. Input images and audio are not metered.
| Output | 720p | 1080p |
|---|---|---|
| 5s (default) | $0.50 | $0.75 |
| 10s | $1.00 | $1.50 |
Failed runs are not charged.
Other Wan 2.6 endpoints: alibaba/wan/2.6/text-to-video, alibaba/wan/2.6/reference-to-video, alibaba/wan/2.6/flash/image-to-video, alibaba/wan/2.6/flash/reference-to-video, alibaba/wan/2.6/text-to-image, alibaba/wan/2.6/image-to-image, alibaba/wan/2.7/text-to-video (newer).
Empiece a construir
Envíe este modelo a través de la API de ejecución unificada de SandBase.
# 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.6/image-to-video",
"image": "https://static.sandbase.ai/samples/image-to-video/i2v-black-cat-sky-img0.png",
"prompt": "Realistic style, a small black cat curiously gazes up at the sky. The camera gradually rises from eye level, ending with an overhead angle capturing its curious eyes.",
"duration": 5,
"resolution": "720p"
}
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"Cree una clave de API de SandBase y configúrela en el entorno de su servidor. Todas las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve la clave en el servidor. No la exponga en código del navegador ni la confirme en un repositorio.
Haga un POST a /v1/run con este ID de modelo y sus entradas. El ejemplo de solicitud anterior incluye el envío y el sondeo.
Use el ID de ejecución devuelto para sondear hasta que el estado sea completed, failed o timeout. Lea la salida solo después de completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Proporcione una URL de archivo accesible públicamente en el campo de imagen, video o audio del modelo. Los formatos y límites admitidos se muestran junto a cada entrada de Playground.
Use el control de subir o reemplazar en los campos de imagen admitidos en Playground. Los campos de URL de video aceptan un video de conducción alojado; no implican compatibilidad con la subida de video.
seedintegerRandom seed (0-2147483647) for reproducible results. Omit for a random seed.
audiostringThe URL of an audio file to guide video generation.
imagestringrequeridoThe URL of the starting image for video generation (first-frame-to-video only).
promptstringrequeridoThe text prompt to generate a video from.
Valor predeterminado: "Realistic style, a small black cat curiously gazes up at the sky. The camera gradually rises from eye level, ending with an overhead angle capturing its curious eyes."
durationintegerThe duration of the generated video in seconds. Valid values are 5 and 10.
Valor predeterminado: 5
Valores posibles: 5, 10
resolutionstringThe resolution of the video to generate.
Valor predeterminado: "720p"
Valores posibles: "720p", "1080p"
{
"model": "alibaba/wan/2.6/image-to-video",
"image": "https://static.sandbase.ai/samples/image-to-video/i2v-black-cat-sky-img0.png",
"prompt": "Realistic style, a small black cat curiously gazes up at the sky. The camera gradually rises from eye level, ending with an overhead angle capturing its curious eyes.",
"duration": 5,
"resolution": "720p"
}Una ejecución completada expone su resultado en la salida. Lo siguiente es el ejemplo guardado del modelo, no una nueva generación.
[
{
"poster": "https://static.sandbase.ai/examples/posters/f831541111ef147b7384.jpg",
"source": "Alibaba Cloud",
"source_url": "https://www.alibabacloud.com/help/en/model-studio/image-to-video-guide",
"url": "https://static.sandbase.ai/examples/5b422d5a-e1be-4e4b-95cb-8f7b4e17e17b/output/a8d0a003-63d1-4360-927e-b7c5270ce37c.mp4"
}
]