Kling 3.0 Motion Control icon

Kling 3.0 Motion Control API

Transfer motion from a reference video onto a character image. Per-second pricing on the reference clip.

Kling 3.0 Motion Control を1回のAPIコールで統合できます。1つのキー、1つの統一エンドポイント、そしてApiframe上のすべてのモデルで共通の請求。

model: "kling-3.0-motion-control"

Kling 3.0 Motion Control の特長

  • 画像からの動画生成と参照画像に対応。
  • 高速処理 — 1回の生成あたり平均約240秒。
  • Kuaishou のアカウント不要の従量課金。成功した生成分だけお支払いいただきます。
  • Apiframe のすべてのモデルで、1つのAPIキー・統一請求・冪等性・Webhookに対応。

Kling 3.0 Motion Control で作成

Apiframeの Kling 3.0 Motion Control API で生成した出力例です。

サンプル準備中

Drone shot flying over a tropical coastline at sunrise, smooth cinematic motion

サンプル準備中

A vintage car driving through a rainy neon city at night, reflections on the asphalt

サンプル準備中

Time-lapse of clouds rolling over a mountain range in warm golden light

概要

エンドポイント
POST /v2/videos/generate
モデルID
kling-3.0-motion-control
パラメータキー
klingParams
モダリティ
動画
プロバイダー
Kuaishou
平均完了時間
~240s

機能

画像入力対応
平均時間~240秒

クイックスタート

APIキーを添えて POST /v2/videos/generate に1回リクエストを送るだけで Kling 3.0 Motion Control による生成が始まります。レスポンスには、ポーリングまたはWebhookで受け取れる jobId が返ります。

curl -X POST https://api.apiframe.ai/v2/videos/generate \
  -H "X-API-Key: afk_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
        "prompt": "a cinematic sunrise over a futuristic cityscape, smooth camera push-in",
        "model": "kling-3.0-motion-control",
        "klingParams": {
            "image": "https://example.com/input.jpg",
            "video": "https://example.com/input.jpg",
            "mode": "pro",
            "character_orientation": "image"
        }
    }'
import requests

response = requests.post(
    "https://api.apiframe.ai/v2/videos/generate",
    headers={
        "X-API-Key": "afk_your_api_key_here",
        "Content-Type": "application/json",
    },
    json={
        "prompt": "a cinematic sunrise over a futuristic cityscape, smooth camera push-in",
        "model": "kling-3.0-motion-control",
        "klingParams": {
            "image": "https://example.com/input.jpg",
            "video": "https://example.com/input.jpg",
            "mode": "pro",
            "character_orientation": "image"
        }
    },
)
print(response.json())  # { "jobId": "...", "status": "QUEUED" }
const response = await fetch("https://api.apiframe.ai/v2/videos/generate", {
  method: "POST",
  headers: {
    "X-API-Key": "afk_your_api_key_here",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "prompt": "a cinematic sunrise over a futuristic cityscape, smooth camera push-in",
    "model": "kling-3.0-motion-control",
    "klingParams": {
      "image": "https://example.com/input.jpg",
      "video": "https://example.com/input.jpg",
      "mode": "pro",
      "character_orientation": "image"
    }
  }),
});
const { jobId } = await response.json();
console.log(jobId);

レスポンスとジョブのライフサイクル

生成は非同期で行われます。送信が成功すると 202 AcceptedjobId が返ります。ステータスが COMPLETED になるまで GET /v2/jobs/{id} をポーリングする(または webhook_url を指定する)と、result フィールドに出力URLが格納されます。

1. 送信レスポンス (202)

{
  "jobId": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
  "status": "QUEUED"
}

2. 結果をポーリング

curl https://api.apiframe.ai/v2/jobs/JOB_ID \
  -H "X-API-Key: afk_your_api_key_here"
import requests, time

while True:
    job = requests.get(
        "https://api.apiframe.ai/v2/jobs/JOB_ID",
        headers={"X-API-Key": "afk_your_api_key_here"},
    ).json()
    if job["status"] in ("COMPLETED", "FAILED"):
        break
    time.sleep(2)
print(job["result"])
let job;
do {
  await new Promise((r) => setTimeout(r, 2000));
  job = await fetch("https://api.apiframe.ai/v2/jobs/JOB_ID", {
    headers: { "X-API-Key": "afk_your_api_key_here" },
  }).then((r) => r.json());
} while (job.status !== "COMPLETED" && job.status !== "FAILED");
console.log(job.result);

入力スキーマ

Kling 3.0 Motion Control エンドポイントが受け付けるリクエストパラメータです。モデル固有のオプションは、下記のパラメータオブジェクトの中にネストされます。

パラメータ 必須 デフォルト 許可値 / 範囲 説明
prompt string 必須 生成する内容のテキスト説明。
model string 必須 "kling-3.0-motion-control" "kling-3.0-motion-control" このエンドポイントのモデル識別子。
klingParams.image string (URL) 任意 Reference image the generated character is based on.
klingParams.video string (URL) 任意 Motion reference clip (3–30s). The character mirrors its actions.
klingParams.mode string 任意 "pro" "std", "pro" Mode
klingParams.character_orientation string 任意 "image" "image", "video" Whether the character faces as in the image or follows the video.
klingParams.keep_original_sound boolean 任意 true Keep the reference video’s original audio track.

よくある質問

Kling 3.0 Motion Control APIに関するよくある質問をまとめました。

Kling 3.0 Motion Control の API はありますか?

はい。Apiframe は単一の REST エンドポイント(`POST /v2/videos/generate`、`model: "kling-3.0-motion-control"`)で Kling 3.0 Motion Control を提供します。対応するすべてのモデルで、統一されたAPI・キー・請求をご利用いただけ、Kuaishou の個別アカウントは不要です。

Kling 3.0 Motion Control API の料金はいくらですか?

Kling 3.0 Motion Control は Apiframe のシンプルな従量課金制で、成功した生成分のみお支払いいただきます。プランと数量割引は料金ページをご覧ください。

Kling 3.0 Motion Control API はどのように呼び出しますか?

`X-API-Key` と、`model: "kling-3.0-motion-control"` を含む JSON ボディを添えて `/v2/videos/generate` に POST リクエストを送ります。レスポンスで返る `jobId` を `GET /v2/jobs/{id}` でポーリングするか、Webhook で結果を受け取ります。

Kling 3.0 Motion Control はどんなパラメータに対応していますか?

Kling 3.0 Motion Control は、共通の `prompt`・`webhook_url` に加えて、`klingParams` の下にネストされた 5 個のモデル固有パラメータを受け付けます。型やデフォルト値を含む一覧は上記の入力スキーマをご覧ください。

解決しませんでしたか?

Kling 3.0 Motion Control API で開発を始めよう

APIキーを取得すれば数分で Kling 3.0 Motion Control を統合できます — 従量課金。

無料クレジットですぐに開始
すべてのモデルを1つのAPIで
Webhook・SDK・冪等性に対応
プロバイダーのアカウント不要

ご質問はありますか? Discordに参加 または 営業に問い合わせる