请求参数
| 参数 | 必填 | 说明 |
|---|---|---|
duration_seconds | 否 | 视频时长,按秒计费。 ≥ 3 · ≤ 15 · 默认值: 5 |
generate_audio | 否 | 加上和画面匹配的声音:人声、环境音和音效。 默认值: false |
image_url | 是 | 作为起点的那张图。 |
last_image_url | 否 | 可选的结尾画面,让视频正好停在你想要的地方。 |
multi_prompt | 否 | Shot list for shot_type customize: one entry per shot, in order, each with its own prompt and length in seconds. The lengths must add up to duration_seconds. |
prompt | 是 | Describe what happens after the opening frame: the action, the camera and, with sound on, the sounds. |
resolution | 否 | 输出尺寸。越大越清晰,价格也越高。 720p · 1080p · 4k · 默认值: 720p |
shot_type | 否 | single keeps one continuous shot; multi lets the model cut the prompt into several shots on its own; customize follows the shot list you give in multi_prompt. single · multi · customize · 默认值: single |
价格
价格以积分计,和网站上用的是同一种积分(1 积分 = $0.01)。任务受理时先冻结积分,完成后按实际费用结算;失败的任务会退还。
| 选项 | 积分 /秒 | ≈ 美元 |
|---|---|---|
| generate_audio false · resolution 720p | 10.08 | US$0.10 |
| generate_audio false · resolution 1080p | 13.44 | US$0.13 |
| generate_audio true · resolution 720p | 13.44 | US$0.13 |
| generate_audio true · resolution 1080p | 16.8 | US$0.17 |
| generate_audio false · resolution 4K | 50.4 | US$0.50 |
| generate_audio true · resolution 4K | 50.4 | US$0.50 |
每个任务按整数积分向上取整,所以最低档跑一次是 51 积分/ 5 秒视频(US$0.51)。
想在运行前知道确切金额,把同样的请求体发到 POST /jobs/quote 即可。
API 快速上手
三步调用 Kling O3 API
- 创建 API 密钥. 登录 PopNow,在 API 控制台创建密钥。密钥以 sk-popnow- 开头,和网站共用同一份积分。
- 发送请求. 向 POST /jobs/createTask 发请求,model 填 kling/o3/image-to-video,input 按参数表填写。响应会立刻返回任务 ID。
- 取回结果. 用任务 ID 轮询 GET /jobs/recordInfo,或者传 callBackUrl,结果会推送到这个地址。任务成功后下载输出链接。
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
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: $IDEMPOTENCY_KEY" \
-d '{
"model": "kling/o3/image-to-video",
"input": {
"prompt": "A slow aerial shot drifting over a misty pine forest at sunrise",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"resolution": "720p",
"duration_seconds": 5,
"shot_type": "single"
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"请把提示词和链接换成你自己的。API 页签里有响应、轮询和回调的参考。
Kling O3 API 常见问题
Kling O3 API 怎么收费?
Kling O3:最便宜的任务是图生视频,51 积分(US$0.51)/ 5 秒视频起。各选项价格:false · 720p 10.08 积分/秒、false · 1080p 13.44 积分/秒、true · 720p 13.44 积分/秒、true · 1080p 16.8 积分/秒。积分和网站通用(1 积分 = $0.01),新账号赠送 30 积分,失败的任务会退还。
Kling O3 在 API 里的调用名是什么?
在 POST /jobs/createTask 的 model 字段里填 生成视频用 kling/o3/text-to-video;图生视频用 kling/o3/image-to-video;参考生视频用 kling/o3/reference-to-video;编辑视频用 kling/o3/video-edit。
Kling O3 API 有哪些限制?
视频时长:3–15 s;分辨率:720p · 1080p · 4K;提示词长度(字符):2,500;单个上传上限:10 MB。超出这些限制的请求会在扣费之前被拒绝。
不写代码能试 Kling O3 吗?
可以。Playground 用你的 PopNow 积分运行 Kling O3,不需要 API 密钥,每次运行都会给出对应的代码。
全部 Kling 模型
要一个精致的单镜头,用首尾帧或动作控制,选 Kling 3.0。需要参考照片、视频编辑或把多种模式放在一处时,O3 更合适。
- Kling 3.0 API4K 视频、多镜头剪切和动作控制51 积分起 / 5 秒视频
- Kling O3 API全能可灵:生成、图生、参考生和编辑,最高 4K51 积分起 / 5 秒视频
- Kling 3.0 Turbo API更快的可灵 3.0,每段都带声音84 积分起 / 5 秒视频
- Kling Avatar 2.0 API让人像照片说你的台词或唱你的歌,最长 5 分钟7.68 积分起 /秒
- Kling 2.6 API1080p 视频,可选声音和动作控制52 积分起 / 5 秒视频
- Kling 2.5 Turbo API1080p 视频,每一条都配好音轨42 积分起 / 5 秒视频
- Kling 2.1 Master API无声 1080p 视频,提示词控制更精细162 积分起 / 5 秒视频
- Kling 2.1 API让一帧画面动起来,720p 或 1080p,可加尾帧27 积分起 / 5 秒视频

