PopNowDocs de la API
Contenido principal

Referencia de la API de Seedance 2.0 Fast Spicy

Seedance 2.0 Fast de imagen a video con sonido

Con una sola clave de API de PopNow puedes llamar a Seedance 2.0 Fast 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
ByteDance
Resultado
Video
Desde
$0.081 USD por segundo generado
Tiempo habitual
unos 170 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

bytedance/seedance-2.0-fast-spicy/image-to-video

Precio

OpciónUSD
generate_audio = false, resolution = 480p$0.081 por segundo generado
generate_audio = true, resolution = 480p$0.081 por segundo generado
generate_audio = false, resolution = 720p$0.1742 por segundo generado
generate_audio = true, resolution = 720p$0.1742 por segundo generado

Parámetros

CampoTipoValor predeterminadoValores admitidosPara qué sirve
image_urlObligatoriostring——Start image URL to guide the video generation.
promptOpcionalstring——Describe the scene, action, camera movement, and mood for the video.
last_image_urlOpcionalstring——Last frame image URL for video continuation.
aspect_ratioOpcionalstringadaptive16:9, 9:16, 4:3, 3:4, 1:1, 21:9, adaptiveThe aspect ratio of the generated video. Use adaptive to follow the input image.
resolutionOpcionalstring720p480p, 720pThe output video resolution.
duration_secondsOpcionalinteger5de 4 a 15The duration of the generated video in seconds (4-15s).
generate_audioOpcionalbooleantrue—Whether to generate native audio synchronized with the output video. Defaults to true.
seedOpcionalinteger—de 0 a 2147483647Random seed. Omit to let the model pick one.

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": "bytedance/seedance-2.0-fast-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",
    "generate_audio": true,
    "duration_seconds": 5,
    "resolution": "720p"
  }
}'

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

bytedance/seedance-2.0-fast-spicy/video-extend

Precio

OpciónUSD
generate_audio = false, resolution = 480p$0.081 por segundo generado
generate_audio = true, resolution = 480p$0.081 por segundo generado
generate_audio = false, resolution = 720p$0.1742 por segundo generado
generate_audio = true, resolution = 720p$0.1742 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——Describe what happens next: the action that follows, the camera move and the sound. Optional.
last_image_urlOpcionalstring——Optional target closing frame: the new segment lands on this image.
resolutionOpcionalstring720p480p, 720pResolution of the new segment. Match your source clip.
duration_secondsOpcionalinteger5de 4 a 15Length of the new segment in seconds (4-15). The source clip is added on top and is not billed.
generate_audioOpcionalbooleantrue—Generate sound for the new segment. The source keeps its own sound either way.
seedOpcionalinteger—de 0 a 2147483647Random seed. Omit to let the model pick one.

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": "bytedance/seedance-2.0-fast-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",
    "generate_audio": true,
    "duration_seconds": 5,
    "resolution": "720p"
  }
}'

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