PopNowDocs de la API
Contenido principal

Referencia de la API de Veo 3.1 Lite

Borradores de vídeo económicos a 720p con sonido nativo.

Con una sola clave de API de PopNow puedes llamar a Veo 3.1 Lite 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
Google
Resultado
Video
Desde
$0.17 USD por solicitud

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.

Crear video

google/veo-3.1-lite/text-to-video

Precio

OpciónUSD
4$0.17 por solicitud
6$0.255 por solicitud
8$0.34 por solicitud
duration_seconds = 8, resolution = 1080p$0.576 por solicitud

Parámetros

CampoTipoValor predeterminadoValores admitidosPara qué sirve
promptObligatoriostring—hasta 4000 caracteresDescribe the subject, the action, the camera and the sound.
aspect_ratioOpcionalstring16:916:9, 9:16Output aspect ratio: 16:9 (1280x720) or 9:16 (720x1280).
resolutionOpcionalstring720p720p, 1080pOutput resolution: 720p (default) or 1080p. 1080p works on 8-second clips only and is upscaled from the 720p render, so it takes a little longer.
duration_secondsOpcionalinteger84, 6, 8Clip length: 4, 6 or 8 seconds. Billed per clip by length.

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.

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": "google/veo-3.1-lite/text-to-video",
  "input": {
    "prompt": "A paper boat drifts down a rain-soaked street at dusk, neon signs reflecting in the water, slow tracking shot at ground level",
    "duration_seconds": 8,
    "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"

Imagen a video

google/veo-3.1-lite/image-to-video

Precio

OpciónUSD
4$0.17 por solicitud
6$0.255 por solicitud
8$0.34 por solicitud
duration_seconds = 8, resolution = 1080p$0.576 por solicitud

Parámetros

CampoTipoValor predeterminadoValores admitidosPara qué sirve
promptObligatoriostring—hasta 4000 caracteresDescribe the motion, the camera and the sound.
image_urlObligatoriostring (uri)——Opening frame of the clip.
last_image_urlOpcionalstring (uri)——Optional closing frame; the clip moves from the first frame to this one.
aspect_ratioOpcionalstringautoauto, 16:9, 9:16auto follows the first frame; 16:9 or 9:16 crops to that shape.
resolutionOpcionalstring720p720p, 1080pOutput resolution: 720p (default) or 1080p. 1080p works on 8-second clips only and is upscaled from the 720p render, so it takes a little longer.
duration_secondsOpcionalinteger84, 6, 8Clip length: 4, 6 or 8 seconds. Billed per clip by length.

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": "google/veo-3.1-lite/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",
    "duration_seconds": 8,
    "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"

Referencias a video

google/veo-3.1-lite/reference-to-video

Precio

OpciónUSD
8$0.34 por solicitud
duration_seconds = 8, resolution = 1080p$0.576 por solicitud

Parámetros

CampoTipoValor predeterminadoValores admitidosPara qué sirve
promptObligatoriostring—hasta 4000 caracteresSay what from Image 1, Image 2 and Image 3 appears and what happens.
reference_image_urlsObligatorioarray<string (uri)>—hasta 3 elementosOne to three images of the people, products or places to keep.
aspect_ratioOpcionalstring16:916:9, 9:16Output aspect ratio: 16:9 or 9:16.
resolutionOpcionalstring720p720p, 1080pOutput resolution: 720p (default) or 1080p. 1080p works on 8-second clips only and is upscaled from the 720p render, so it takes a little longer.
duration_secondsOpcionalinteger88Clip length: fixed at 8 seconds in this mode.

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 reference_image_urls. 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": "google/veo-3.1-lite/reference-to-video",
  "input": {
    "prompt": "The man from the reference image jogs across a sunlit rooftop at golden hour and smiles at the camera; smooth tracking shot",
    "reference_image_urls": [
      "https://media.popnow.ai/influencer/examples/ava.webp"
    ],
    "duration_seconds": 8,
    "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

google/veo-3.1-lite/video-extend

Precio

OpciónUSD
4$0.17 por solicitud
6$0.255 por solicitud
8$0.34 por solicitud
duration_seconds = 8, resolution = 1080p$0.576 por solicitud

Parámetros

CampoTipoValor predeterminadoValores admitidosPara qué sirve
promptObligatoriostring—hasta 4000 caracteresDescribe what happens next: the action, the camera and the sound.
video_urlObligatoriostring (uri)——The clip to continue, up to 60 seconds. Its last frame opens the new segment; you get back one file with both joined.
last_image_urlOpcionalstring (uri)——Optional closing frame for the new segment.
resolutionOpcionalstring720p720p, 1080pResolution of the new segment and the joined file: 720p (default) or 1080p, which needs an 8-second segment. Match your source clip.
duration_secondsOpcionalinteger84, 6, 8Length of the new segment: 4, 6 or 8 seconds. Billed per segment by length; the source clip is not billed.

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": "google/veo-3.1-lite/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",
    "duration_seconds": 8,
    "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