Kling 3.0 API リファレンス
4Kクリップ、マルチショット、モーションコントロール
PopNow の API キー 1 つで、Kling 3.0 を自分のコードから呼び出せます。送るモデル ID、受け付ける入力フィールド、1 回あたりの料金(USD)、ターミナルに貼ってそのまま動くリクエストをこのページにまとめました。
パラメーターの説明はモデルの入力 schema から取っているため、英語のみです。
概要
- 開発元
- Kuaishou
- 出力
- 動画
- 最安
- $0.068 USD 出力 1 秒あたり
- 目安の所要時間
- 約 143 秒
料金は USD で表示され、PopNow の残高から差し引かれます。受付時に最大料金を確保し、完了後に実際の使用量で精算して差額を返却します。失敗したタスクは課金されません。実行前の正確な見積もりは POST /api/v1/jobs/quote で取得できます。
動画を作成
kling/3.0/text-to-video
料金
| オプション | USD |
|---|---|
generate_audio = false, resolution = 720p | $0.068 出力 1 秒あたり |
generate_audio = false, resolution = 1080p | $0.09 出力 1 秒あたり |
generate_audio = true, resolution = 720p | $0.101 出力 1 秒あたり |
generate_audio = true, resolution = 1080p | $0.135 出力 1 秒あたり |
generate_audio = false, resolution = 4k | $0.336 出力 1 秒あたり |
generate_audio = true, resolution = 4k | $0.336 出力 1 秒あたり |
パラメーター
| フィールド | 型 | 既定値 | 指定できる値 | 説明 |
|---|---|---|---|---|
prompt必須 | string | — | 2,500 文字まで | Describe the scene, the action and the camera. With sound on, add dialogue in quotes and the sounds you want. |
negative_prompt任意 | string | — | 2,500 文字まで | What to keep out of the clip: objects, looks or motion you do not want. |
aspect_ratio任意 | string | 16:9 | 16:9, 9:16, 1:1 | Output aspect ratio. |
resolution任意 | string | 720p | 720p, 1080p, 4k | Output resolution. Higher tiers cost more per second. |
generate_audio任意 | boolean | false | — | Generate a native soundtrack (voices, effects, ambience) with the picture. Audio costs more per second. |
duration_seconds任意 | integer | 5 | 3〜15 | Output length in whole seconds, from 3 to 15. Billed per second. |
shot_type任意 | string | single | single, multi, customize | 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. |
multi_prompt任意 | array<object> | — | 6 件まで | 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. |
guidance_scale任意 | number | 0.5 | 0〜1 | How closely the clip follows the prompt, from 0 to 1. Higher sticks to the prompt more; lower gives the model more freedom. |
リクエスト例
このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。
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": "kling/3.0/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,
"generate_audio": false,
"resolution": "720p"
}
}'レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"画像から動画
kling/3.0/image-to-video
料金
| オプション | USD |
|---|---|
generate_audio = false, resolution = 720p | $0.068 出力 1 秒あたり |
generate_audio = false, resolution = 1080p | $0.09 出力 1 秒あたり |
generate_audio = true, resolution = 720p | $0.101 出力 1 秒あたり |
generate_audio = true, resolution = 1080p | $0.135 出力 1 秒あたり |
generate_audio = false, resolution = 4k | $0.336 出力 1 秒あたり |
generate_audio = true, resolution = 4k | $0.336 出力 1 秒あたり |
パラメーター
| フィールド | 型 | 既定値 | 指定できる値 | 説明 |
|---|---|---|---|---|
prompt必須 | string | — | 2,500 文字まで | Describe what happens after the opening frame: the action, the camera and, with sound on, the sounds. |
image_url必須 | string (uri) | — | — | Opening frame. The clip starts from this image. |
negative_prompt任意 | string | — | 2,500 文字まで | What to keep out of the clip: objects, looks or motion you do not want. |
last_image_url任意 | string (uri) | — | — | Optional closing frame the clip should end on. |
resolution任意 | string | 720p | 720p, 1080p, 4k | Output resolution. Higher tiers cost more per second. |
generate_audio任意 | boolean | false | — | Generate a native soundtrack (voices, effects, ambience) with the picture. Audio costs more per second. |
duration_seconds任意 | integer | 5 | 3〜15 | Output length in whole seconds, from 3 to 15. Billed per second. |
shot_type任意 | string | single | single, multi, customize | 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. |
multi_prompt任意 | array<object> | — | 6 件まで | 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. |
guidance_scale任意 | number | 0.5 | 0〜1 | How closely the clip follows the prompt, from 0 to 1. Higher sticks to the prompt more; lower gives the model more freedom. |
リクエスト例
このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。
例の image_url には PopNow のサンプル素材を使っています。自分の公開 HTTPS リンク、アップロードしたファイル、保存済みアセットに置き換えてください。
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": "kling/3.0/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,
"generate_audio": false,
"resolution": "720p"
}
}'レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"モーションコントロール
kling/3.0/character-animation
料金
| オプション | USD |
|---|---|
720p | $0.101 出力 1 秒あたり |
1080p | $0.135 出力 1 秒あたり |
パラメーター
| フィールド | 型 | 既定値 | 指定できる値 | 説明 |
|---|---|---|---|---|
image_url必須 | string (uri) | — | — | The character to animate: one clear, full or half-body picture of the person. |
video_url必須 | string (uri) | — | — | Driving clip, 3 to 30 seconds: the moves, expressions and gestures to copy. The result is as long as this clip. |
prompt任意 | string | — | 2,500 文字まで | Optional notes on the result: the setting, the look, anything the driving clip does not show. |
negative_prompt任意 | string | — | 2,500 文字まで | What to keep out of the result: objects, looks or motion you do not want. |
resolution任意 | string | 720p | 720p, 1080p | Output resolution. Higher tiers cost more per second. |
keep_original_audio任意 | boolean | true | — | Keep the driving clip's own sound in the result. |
character_orientation任意 | string | video | video, image | 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. |
shot_type任意 | string | customize | customize, intelligent | How the shots are planned: customize keeps to your inputs, intelligent lets the model plan the shots itself. |
リクエスト例
このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。
例の image_url, video_url には PopNow のサンプル素材を使っています。自分の公開 HTTPS リンク、アップロードしたファイル、保存済みアセットに置き換えてください。
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": "kling/3.0/character-animation",
"input": {
"prompt": "The person dances with relaxed, natural movement",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
"resolution": "720p"
}
}'レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
