請求參數
| 參數 | 必填 | 說明 |
|---|---|---|
character_orientation | 否 | Which way the character faces: video follows the person in the driving clip, image follows the person in the photo. With image the driving clip may be at most 10 seconds. video · image · 預設值: video |
image_url | 是 | 作為起點的那張圖。 |
keep_original_audio | 否 | Keep the driving clip's own sound in the result. 預設值: true |
negative_prompt | 否 | 不想出現的東西。 |
prompt | 否 | Optional notes on the result: the setting, the look, anything the driving clip does not show. |
resolution | 否 | 輸出尺寸。越大越清晰,價格也越高。 720p · 1080p · 預設值: 720p |
shot_type | 否 | How the shots are planned: customize keeps to your inputs, intelligent lets the model plan the shots itself. customize · intelligent · 預設值: customize |
video_url | 是 | 要處理的影片。 |
價格
價格以點數計,和網站上用的是同一種點數(1 點 = $0.01)。任務受理時先凍結點數,完成後依實際費用結算;失敗的任務會退還。
| 選項 | 點數 /秒 | ≈ 美元 |
|---|---|---|
| resolution 720p | 15.12 | US$0.15 |
| resolution 1080p | 20.16 | US$0.20 |
想在執行前知道確切金額,把相同的請求內容送到 POST /jobs/quote 即可。
API 快速上手
三步驟呼叫 Kling 3.0 API
- 建立 API 金鑰. 登入 PopNow,在 API 主控台建立金鑰。金鑰以 sk-popnow- 開頭,和網站共用同一份點數。
- 送出請求. 對 POST /jobs/createTask 送出請求,model 填 kling/3.0/character-animation,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/3.0/character-animation",
"input": {
"prompt": "A slow aerial shot drifting over a misty pine forest at sunrise",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
"resolution": "720p",
"character_orientation": "video",
"shot_type": "customize"
}
}'
# 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 3.0 API 常見問題
Kling 3.0 API 怎麼收費?
Kling 3.0:最便宜的任務是動作控制,15.12 點數(US$0.15)/秒起。各選項價格:720p 15.12 點數/秒、1080p 20.16 點數/秒。點數和網站通用(1 點數 = $0.01),新帳號贈送 30 點數,失敗的任務會退還。
Kling 3.0 在 API 裡的模型名稱是什麼?
在 POST /jobs/createTask 的 model 欄位填 生成影片用 kling/3.0/text-to-video;圖生影片用 kling/3.0/image-to-video;動作控制用 kling/3.0/character-animation。
Kling 3.0 API 有哪些限制?
解析度:720p · 1080p;提示詞長度(字元):2,500;單一上傳上限:10 MB;輸入片段最長:30 s。超出這些限制的請求會在扣款之前被拒絕。
不寫程式能試 Kling 3.0 嗎?
可以。Playground 用你的 PopNow 點數執行 Kling 3.0,不需要 API 金鑰,每次執行都會附上對應的程式碼。
所有 Kling 模型
Kling O3 更靈活:一個鏡頭最多用七張參考圖,自動多鏡頭切換,還能編輯已有影片。要一個打磨精緻的單鏡頭、用首結尾影格或動作控制,選 Kling 3.0。
- 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 秒影片

