PopNowAPI 文档
正文

FLUX 3 API 调用参考

音画同步的视频,另有快速草稿档

用一个 PopNow API 密钥,就能在自己的代码里调用 FLUX 3。下面列出要填的调用名、这个型号接受的每个输入字段、每次请求花多少美元(USD),以及一段可以直接粘进终端运行的请求。

参数说明直接取自型号的输入 schema,暂时只有英文。

一览

出品方
Black Forest Labs
产出
视频
起价
$0.06 USD 每秒成片

价格以 USD 显示,从你的 PopNow 余额扣款。任务受理时预留可能的最高费用,完成后按实际用量结算并释放余款;失败任务不收费。运行前可调用 POST /api/v1/jobs/quote 获取准确报价。

视频超清

black-forest-labs/flux-3/upscale

价格

选项USD
precise$0.528 每秒成片
creative$0.7584 每秒成片

参数

字段类型默认值取值范围作用
video_url必填string (uri)——The clip to upscale, an MP4 of up to 20 seconds. Billed by its length, rounded up to whole seconds.
upscale_mode可选stringpreciseprecise, creativeprecise stays faithful to the source; creative also rebuilds fine detail and costs more.
upscale_factor可选number21.5 到 3How many times larger, from 1.5 to 3. The aspect ratio is kept and the factor does not change the price.
prompt可选string—最多 5000 个字符Optional, creative mode only: the detail you want added, such as skin texture or fabric weave.

请求示例

这段请求原样就能运行,没写的字段都用默认值。运行前先把密钥放进环境变量 POPNOW_API_KEY。

示例里的 video_url 用的是 PopNow 的示例素材,换成你自己的公开 HTTPS 链接、上传文件或已保存的素材即可。

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"
  }
}'

响应里会立刻带回 taskId。之后用 GET /api/v1/jobs/recordInfo 取结果,或者在请求里加上 callBackUrl 等通知。

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"

生成视频

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

价格

选项USD
quality = draft, resolution = 1080p$0.06 每秒成片
quality = draft, resolution = 720p$0.06 每秒成片
quality = standard, resolution = 720p$0.17 每秒成片
quality = standard, resolution = 1080p$0.29 每秒成片

参数

字段类型默认值取值范围作用
prompt必填string—最多 5000 个字符Describe the subject, action, camera, light and sound for the shot.
aspect_ratio可选string16:916:9, 9:16, 1:1, 4:3, 3:4, 21:9, 2:1Output aspect ratio.
quality可选stringstandardstandard, draftstandard renders at the chosen resolution; draft is a fast, lower-cost preview at 720p.
resolution可选string720p720p, 1080pOutput resolution. draft renders at 720p only.
duration_seconds可选integer55, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, … (+2)Output length in whole seconds, 5 to 20.
generate_audio可选booleantrue—Generate synchronized sound with the video. The price is the same either way.

请求示例

这段请求原样就能运行,没写的字段都用默认值。运行前先把密钥放进环境变量 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"
  }
}'

响应里会立刻带回 taskId。之后用 GET /api/v1/jobs/recordInfo 取结果,或者在请求里加上 callBackUrl 等通知。

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"

图生视频

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

价格

选项USD
quality = draft, resolution = 1080p$0.06 每秒成片
quality = draft, resolution = 720p$0.06 每秒成片
quality = standard, resolution = 720p$0.17 每秒成片
quality = standard, resolution = 1080p$0.29 每秒成片

参数

字段类型默认值取值范围作用
prompt必填string—最多 5000 个字符Describe the subject, action, camera, light and sound for the shot.
image_url必填string (uri)——Opening frame. The subject keeps its look from this image.
last_image_url可选string (uri)——Optional closing frame: the clip moves from the opening image to this one.
aspect_ratio可选string—16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 2:1Output aspect ratio. Omit it to follow the opening image.
quality可选stringstandardstandard, draftstandard renders at the chosen resolution; draft is a fast, lower-cost preview at 720p.
resolution可选string720p720p, 1080pOutput resolution. draft renders at 720p only.
duration_seconds可选integer55, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, … (+2)Output length in whole seconds, 5 to 20.
generate_audio可选booleantrue—Generate synchronized sound with the video. The price is the same either way.

请求示例

这段请求原样就能运行,没写的字段都用默认值。运行前先把密钥放进环境变量 POPNOW_API_KEY。

示例里的 image_url 用的是 PopNow 的示例素材,换成你自己的公开 HTTPS 链接、上传文件或已保存的素材即可。

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"
  }
}'

响应里会立刻带回 taskId。之后用 GET /api/v1/jobs/recordInfo 取结果,或者在请求里加上 callBackUrl 等通知。

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"

接下来

本页内容