API de Vidu 2.0 (reference-to-video)
Crea videos con Vidu 2.0 (reference-to-video) en MartLLM.
Ver más
Creado por Vidu. 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": "vidu/vidu-2-0-reference-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": "720p",
"duration_seconds": 4,
"aspect_ratio": "16:9",
"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
- 720p
- Duraciones
- 4 s
- Formatos
- 16:9, 9:16, 1:1
- Imágenes de entrada
- Hasta 3
- Unidad de facturación
- por segundo de video
- ID del modelo
vidu/vidu-2-0-reference-to-video
Prueba Vidu 2.0 (reference-to-video)
Ajustes
Imagen inicial
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": "vidu/vidu-2-0-reference-to-video",
"prompt": "",
"resolution": "720p",
"duration_seconds": 4,
"aspect_ratio": "16:9"
}'
# → {"id": "<job id>", "status": "queued", "poll_url": "/v1/video/generations/<job id>"}En qué destaca la API de Vidu 2.0 (reference-to-video)
- Clips de hasta 4 segundos en una sola solicitud.
- Un primer fotograma exacto a partir de tu imagen.
- Hasta 3 imágenes de referencia para personajes, productos o lugares.
- Formatos: 16:9, 9:16, 1:1.
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
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
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 Vidu 2.0 (reference-to-video)
| Parámetro | Tipo | Qué hace |
|---|---|---|
| model | vidu/vidu-2-0-reference-to-video | Obligatorio |
| prompt | string | Obligatorio. What to make. |
| image_url | string | Uno de estos. The first frame: an https:// link or a data: URI. |
| input_images | array<string>, Hasta 3 | Uno de estos. Several pictures (https:// links or data: URIs). |
| resolution | 720p | Opcional · 720p. The seller needs one: left out, 720p is sent. |
| duration_seconds | 4 | Opcional. Length in seconds. Left out: the model's shortest. |
| aspect_ratio | 16:9, 9:16, 1:1 | Opcional · 16:9. Shape of the video. The seller needs one: left out, 16:9 is sent. |
Leído de GET https://api.martllm.com/v1/models/vidu/vidu-2-0-reference-to-video: las mismas reglas con las que la API revisa cada solicitud.
Modelos Vidu comparados
| Modelo | ID del modelo | Desde, por segundo | Hasta | Más largo |
|---|---|---|---|---|
| Vidu 2.0 (reference-to-video) | vidu/vidu-2-0-reference-to-video | 720p | 4 s | |
| Vidu Q3 Text-to-Video | vidu/vidu-q3-text-to-video | $0.14 | 16 s | |
| Vidu Q3 (image-to-video) | vidu/vidu-q3-image-to-video | $0.0666 | 1080p | 16 s |
| Vidu Q3 Turbo Text to Video | vidu/viduq3-turbo-text-to-video | $0.0317 | 1080p | 16 s |
| Vidu Q3 Turbo Image to Video | vidu/viduq3-turbo-image-to-video | $0.0317 | 1080p | 16 s |
| Vidu Q4 | vidu/vidu-q4-image-to-video | $0.0403 | 4k | 16 s |
| Vidu Q4 Reference | vidu/vidu-q4-reference-to-video | $0.0403 | 4k | 16 s |
| Vidu 2.0 (text-to-video) | vidu/vidu-2-0-text-to-video | $0.0571 | 720p | 8 s |
| Vidu Q1 (reference-to-video) | vidu/vidu-q1-reference-to-video | $0.0762 | 1080p | 5 s |
| Vidu Q1 (text-to-video) | vidu/vidu-q1-text-to-video | $0.0762 | 1080p | 5 s |
Preguntas frecuentes sobre la API de Vidu 2.0 (reference-to-video)
¿Cuánto cuesta Vidu 2.0 (reference-to-video)?
Vidu 2.0 (reference-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 Vidu 2.0 (reference-to-video)?
Envía una solicitud POST a https://api.martllm.com/v1/video/generations con tu clave de API de MartLLM, el modelo «vidu/vidu-2-0-reference-to-video» y un prompt. Recibirás un ID de tarea; consulta https://api.martllm.com/v1/video/generations/<job id> hasta que indique «succeeded» y luego descárgalo desde https://api.martllm.com/v1/media/artifacts/<job id>/0.