PopNowDocs de la API
Contenido principal

Referencia de la API de Vidu Q3 Spicy

Vidu Q3 de imagen a video, hasta 16 segundos con sonido

Con una sola clave de API de PopNow puedes llamar a Vidu Q3 Spicy desde tu propio código. Aquí tienes los ID de modelo que debes enviar, cada campo de entrada que acepta, cuánto cuesta cada solicitud en USD y una petición que puedes pegar tal cual en la terminal.

Las descripciones de los parámetros vienen del esquema de entrada del modelo y solo están en inglés.

De un vistazo

Creado por
Vidu
Resultado
Video
Desde
$0.0665 USD por segundo generado
Tiempo habitual
unos 97 s

Los precios se muestran en USD y se cobran de tu saldo de PopNow. Al aceptar la tarea se reserva el importe máximo; al terminar se cobra el uso real y se libera el resto. Las tareas fallidas no se cobran. Consulta POST /api/v1/jobs/quote para obtener un presupuesto exacto antes de ejecutar.

Imagen a video

vidu/q3-spicy/image-to-video

Precio

OpciónUSD
540p$0.0665 por segundo generado
720p$0.1425 por segundo generado
1080p$0.152 por segundo generado

Parámetros

CampoTipoValor predeterminadoValores admitidosPara qué sirve
image_urlObligatoriostring——Opening frame. The clip starts from this image.
promptOpcionalstring——Describe what happens after the opening frame: the action, the camera, and the mood.
duration_secondsOpcionalinteger5de 1 a 16Requested output length in seconds, from 1 to 16.
resolutionOpcionalstring720p540p, 720p, 1080pOutput resolution.
movement_amplitudeOpcionalstringautoauto, small, medium, largeHow much the subject and scene move. Leave it on auto to let the model read the opening frame.
generate_audioOpcionalbooleantrue—Request a generated audio track synchronised with the picture.
bgmOpcionalbooleantrue—Add background music to the clip. Separate from generate_audio, which covers the sound of the scene itself.

Solicitud de ejemplo

Esta solicitud funciona tal cual; los campos que no envíes usan su valor predeterminado. Antes, guarda tu clave en POPNOW_API_KEY.

El ejemplo usa archivos de muestra de PopNow en image_url. Cámbialos por tus propios enlaces HTTPS públicos, archivos subidos o recursos guardados.

POST /api/v1/jobs/createTask
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "vidu/q3-spicy/image-to-video",
  "input": {
    "prompt": "He lands softly on the rooftop, laughs and turns toward the camera while the balloons sway in the evening breeze; slow push-in",
    "image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
    "resolution": "720p",
    "duration_seconds": 5
  }
}'

La respuesta trae un taskId al instante. Consulta el resultado con GET /api/v1/jobs/recordInfo o añade callBackUrl para recibir un aviso.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Extender video

vidu/q3-spicy/video-extend

Precio

OpciónUSD
540p$0.0665 por segundo generado
720p$0.1425 por segundo generado
1080p$0.152 por segundo generado

Parámetros

CampoTipoValor predeterminadoValores admitidosPara qué sirve
video_urlObligatoriostring (uri)——The clip to continue: MP4, MOV or WebM, up to 60 seconds. Its last frame opens the new segment, and the result is your clip with the new segment joined on.
promptOpcionalstring——Optional. Describe what happens next: the action that follows, the camera move and the sound.
duration_secondsOpcionalinteger5de 1 a 16Length of the new segment in seconds, from 1 to 16. The source clip is added on top and is not billed.
resolutionOpcionalstring720p540p, 720p, 1080pResolution of the generated new segment. It sets how sharp the new part is; match your source clip.
movement_amplitudeOpcionalstringautoauto, small, medium, largeHow much things in the new segment move.
generate_audioOpcionalbooleantrue—Generate sound for the new segment. The source keeps its own sound either way.
bgmOpcionalbooleantrue—Add a background music bed to the new segment. The source keeps its own sound.

Solicitud de ejemplo

Esta solicitud funciona tal cual; los campos que no envíes usan su valor predeterminado. Antes, guarda tu clave en POPNOW_API_KEY.

El ejemplo usa archivos de muestra de PopNow en video_url. Cámbialos por tus propios enlaces HTTPS públicos, archivos subidos o recursos guardados.

POST /api/v1/jobs/createTask
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "vidu/q3-spicy/video-extend",
  "input": {
    "prompt": "The flowers keep opening while the camera slowly pulls back to reveal a sunlit meadow",
    "video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
    "resolution": "720p",
    "duration_seconds": 5
  }
}'

La respuesta trae un taskId al instante. Consulta el resultado con GET /api/v1/jobs/recordInfo o añade callBackUrl para recibir un aviso.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Siguientes pasos

En esta página