Logo de AlibabaAlibabaVideo

API de Wan 2.1 (image-to-video)

Crea videos con Wan 2.1 (image-to-video) en MartLLM.

Ver más

Creado por Alibaba. MartLLM no ejecuta este modelo. Aquí, los vendedores lo sirven con sus propias cuentas de proveedor.

Solicitud

curl https://api.martllm.com/v1/video/generations \
  -H "Authorization: Bearer $UBERLLM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/wan-2-1-image-to-video",
  "prompt": "Bring the photo to life: a slow camera push-in, hair and clothes move gently in the wind, the person blinks and smiles slightly; keep the face, outfit and background unchanged",
  "resolution": "480p",
  "duration_seconds": 5,
  "image_url": "https://example.com/photo.jpg"
}'

# → {"id": "<job id>", "status": "queued", "poll_url": "/v1/video/generations/<job id>"}

Define UBERLLM_API_KEY con tu clave. Consulta /v1/video/generations/<job id> cada 5 segundos hasta que status sea "succeeded" y luego descarga el archivo con tu clave. Una tarea que falla dice por qué y no cuesta nada. Guía completa de la API

Opciones

Tareas
Imagen a video, Imágenes de referencia
Resoluciones
480p, 720p
Duraciones
5 s, 10 s
Formatos
16:9, 9:16
Imágenes de entrada
Hasta 1
Unidad de facturación
por segundo de video
Tus LoRA
Hasta 3
ID del modelo
wan/wan-2-1-image-to-video

Prueba Wan 2.1 (image-to-video)

Ajustes

Imagen inicial

Un enlace a un archivo .safetensors, o el enlace de una LoRA que entrenaste aquí. Hasta 3 en la pestaña JSON.

La misma solicitud que los ajustes de la izquierda, lista para copiar.

curl https://api.martllm.com/v1/video/generations \
  -H "Authorization: Bearer $UBERLLM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/wan-2-1-image-to-video",
  "prompt": "",
  "resolution": "480p",
  "duration_seconds": 5
}'

# → {"id": "<job id>", "status": "queued", "poll_url": "/v1/video/generations/<job id>"}

En qué destaca la API de Wan 2.1 (image-to-video)

  • Clips de hasta 10 segundos en una sola solicitud.
  • Un primer fotograma exacto a partir de tu imagen.
  • Hasta 1 imágenes de referencia para personajes, productos o lugares.
  • Salida en 480p, 720p.
  • Formatos: 16:9, 9:16.

Ejemplos para empezar

01

Dar vida a una foto

Bring the photo to life: a slow camera push-in, hair and clothes move gently in the wind, the person blinks and smiles slightly; keep the face, outfit and background unchanged

Con tu imagen · 5 s

02

Girar una foto de producto

The product in the photo turns slowly on a turntable, soft studio light, the label stays sharp and readable, clean white background

Con tu imagen · 5 s

03

Dar movimiento a una escena fija

The scene in the photo starts moving: leaves sway, light shifts across the ground, a gentle handheld drift; nothing new appears in the frame

Con tu imagen

Parámetros de la API de Wan 2.1 (image-to-video)

ParámetroTipoQué hace
modelwan/wan-2-1-image-to-videoObligatorio
promptstringObligatorio. What to make.
image_urlstringUno de estos. The first frame: an https:// link or a data: URI.
input_imagesarray<string>, Hasta 1Uno de estos. Several pictures (https:// links or data: URIs).
resolution480p, 720pOpcional · 480p. The seller needs one: left out, 480p is sent.
duration_seconds5, 10Opcional. Length in seconds. Left out: the model's shortest.
aspect_ratio16:9, 9:16Opcional. Shape of the video.
lorasarray<object>, Hasta 3Opcional. Optional: up to 3 LoRAs to apply (a style or a person you trained). Each path is an https:// link to the weights, a file id from POST /v1/files (.safetensors), or the file link of your own finished training job.

Leído de GET https://api.martllm.com/v1/models/wan/wan-2-1-image-to-video: las mismas reglas con las que la API revisa cada solicitud.

Modelos Wan comparados

ModeloID del modeloDesde, por segundoHastaMás largo
Wan 2.1 (image-to-video)wan/wan-2-1-image-to-video720p10 s
Wan 2.7 Text-to-Videowan/wan-2-7-text-to-video$0.1115 s
Wan 2.2 A14B Text-to-Videowan/wan-2-2-a14b-text-to-video$0.02865 s
Wan 2.5 Preview Text-to-Videowan/wan-2-5-preview-text-to-video$0.033610 s
Wan 2.6 Text-to-Videowan/wan-2-6-text-to-video$0.1115 s
Wan 2.6 Flash Image-to-Videowan/wan-2-6-flash-image-to-video$0.0341080p15 s
Wan 2.7 (image-to-video)wan/wan-2-7-image-to-video$0.08621080p15 s
Wan 2.5 Preview (image-to-video)wan/wan-2-5-preview-image-to-video$0.06711080p10 s
Wan 2.6 (image-to-video)wan/wan-2-6-image-to-video$0.06711080p15 s
Wan 2.7 (reference-to-video)wan/wan-2-7-reference-to-video$0.03361080p10 s

Preguntas frecuentes sobre la API de Wan 2.1 (image-to-video)

¿Cuánto cuesta Wan 2.1 (image-to-video)?

Wan 2.1 (image-to-video) se cobra al precio mostrado, que no lleva ninguna comisión de MartLLM encima. Una solicitud que falla no cuesta nada.

¿Cómo creo un video con Wan 2.1 (image-to-video)?

Envía un POST a https://api.martllm.com/v1/video/generations con tu clave de MartLLM, el modelo "wan/wan-2-1-image-to-video" y un prompt. Recibirás un ID de trabajo de vuelta; consulta https://api.martllm.com/v1/video/generations/<job id> hasta que diga "succeeded", luego descárgalo desde https://api.martllm.com/v1/media/artifacts/<job id>/0.

Guías

Comparar con modelos similares