PopNowDocs de la API
Contenido principal

Referencia de la API de FLUX 3

Video con sonido sincronizado y un nivel de boceto rápido

Con una sola clave de API de PopNow puedes llamar a FLUX 3 desde tu propio código. Aquí tienes los ID de modelo que debes enviar, cada campo de entrada que acepta, cuántos créditos cuesta cada solicitud 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
Black Forest Labs
Resultado
Video
Desde
9 créditos por segundo generado ($0.09)

1 crédito = 0,01 US$. Al aceptarse, la tarea retiene el cargo máximo posible y al terminar cobra el uso real, redondeado al crédito superior; el resto se libera. Las tareas fallidas no se cobran. Para saber la cifra exacta antes de ejecutar, llama a POST /api/v1/jobs/quote.

Mejorar video

black-forest-labs/flux-3/upscale

Precio

OpciónCréditos (por segundo generado)Dólares
precise79.2$0.792
creative113.76$1.1376

Parámetros

CampoTipoValor predeterminadoValores admitidosPara qué sirve
video_urlObligatoriostring (uri)——The clip to upscale, an MP4 of up to 20 seconds. Billed by its length, rounded up to whole seconds.
upscale_modeOpcionalstringpreciseprecise, creativeprecise stays faithful to the source; creative also rebuilds fine detail and costs more.
upscale_factorOpcionalnumber2de 1.5 a 3How many times larger, from 1.5 to 3. The aspect ratio is kept and the factor does not change the price.
promptOpcionalstring—hasta 5000 caracteresOptional, creative mode only: the detail you want added, such as skin texture or fabric weave.

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": "black-forest-labs/flux-3/upscale",
  "input": {
    "prompt": "Sharpen fine detail and keep the natural look",
    "video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
    "upscale_mode": "precise"
  }
}'

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"

Crear video

black-forest-labs/flux-3/text-to-video

Precio

OpciónCréditos (por segundo generado)Dólares
quality = draft, resolution = 1080p9$0.09
quality = draft, resolution = 720p9$0.09
quality = standard, resolution = 720p25.5$0.255
quality = standard, resolution = 1080p43.5$0.435

Parámetros

CampoTipoValor predeterminadoValores admitidosPara qué sirve
promptObligatoriostring—hasta 5000 caracteresDescribe the subject, action, camera, light and sound for the shot.
aspect_ratioOpcionalstring16:916:9, 9:16, 1:1, 4:3, 3:4, 21:9, 2:1Output aspect ratio.
qualityOpcionalstringstandardstandard, draftstandard renders at the chosen resolution; draft is a fast, lower-cost preview at 720p.
resolutionOpcionalstring720p720p, 1080pOutput resolution. draft renders at 720p only.
duration_secondsOpcionalinteger55, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, … (+2)Output length in whole seconds, 5 to 20.
generate_audioOpcionalbooleantrue—Generate synchronized sound with the video. The price is the same either way.

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": "black-forest-labs/flux-3/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": 5,
    "resolution": "720p",
    "quality": "standard"
  }
}'

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

black-forest-labs/flux-3/image-to-video

Precio

OpciónCréditos (por segundo generado)Dólares
quality = draft, resolution = 1080p9$0.09
quality = draft, resolution = 720p9$0.09
quality = standard, resolution = 720p25.5$0.255
quality = standard, resolution = 1080p43.5$0.435

Parámetros

CampoTipoValor predeterminadoValores admitidosPara qué sirve
promptObligatoriostring—hasta 5000 caracteresDescribe the subject, action, camera, light and sound for the shot.
image_urlObligatoriostring (uri)——Opening frame. The subject keeps its look from this image.
last_image_urlOpcionalstring (uri)——Optional closing frame: the clip moves from the opening image to this one.
aspect_ratioOpcionalstring—16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 2:1Output aspect ratio. Omit it to follow the opening image.
qualityOpcionalstringstandardstandard, draftstandard renders at the chosen resolution; draft is a fast, lower-cost preview at 720p.
resolutionOpcionalstring720p720p, 1080pOutput resolution. draft renders at 720p only.
duration_secondsOpcionalinteger55, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, … (+2)Output length in whole seconds, 5 to 20.
generate_audioOpcionalbooleantrue—Generate synchronized sound with the video. The price is the same either way.

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": "black-forest-labs/flux-3/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": 5,
    "resolution": "720p",
    "quality": "standard"
  }
}'

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

black-forest-labs/flux-3/video-extend

Precio

OpciónCréditos (por segundo generado)Dólares
quality = draft, resolution = 1080p18$0.18
quality = draft, resolution = 720p18$0.18
quality = standard, resolution = 720p61.5$0.615
quality = standard, resolution = 1080p79.5$0.795

Parámetros

CampoTipoValor predeterminadoValores admitidosPara qué sirve
promptObligatoriostring—hasta 5000 caracteresDescribe what happens next: the action, camera and sound that continue the clip.
video_urlObligatoriostring (uri)——The clip to continue, an MP4 of up to 15 seconds. The new segment picks up from its last frame.
aspect_ratioOpcionalstring—16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 2:1Output aspect ratio. Omit it to keep the shape of the source clip.
qualityOpcionalstringstandardstandard, draftstandard renders at the chosen resolution; draft is a fast, lower-cost preview at 720p.
resolutionOpcionalstring720p720p, 1080pOutput resolution. draft renders at 720p only.
duration_secondsOpcionalinteger55, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, … (+2)Length of the new segment in whole seconds, 5 to 20. The source clip is not included in the result.
generate_audioOpcionalbooleantrue—Generate synchronized sound with the video. The price is the same either way.

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": "black-forest-labs/flux-3/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": 5,
    "resolution": "720p",
    "quality": "standard"
  }
}'

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