出力解像度
公開 endpoint スキーマから 720p, 1080p, 4k をサポートしています。
curl -X POST https://runapi.ai/api/v1/kling/motion_control \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-3.0",
"video_url": "https://cdn.runapi.ai/public/samples/video.mp4",
"prompt": "秋の森を歩く人物の10秒間の動画を生成してください。落ちる葉、シネマチックなカメラパンで。"
}'
import { KlingClient } from "@runapi.ai/kling";
const client = new KlingClient();
const result = await client.motionControl.run({
model: "kling-3.0",
video_url: "https://cdn.runapi.ai/public/samples/video.mp4",
prompt: "秋の森を歩く人物の10秒間の動画を生成してください。落ちる葉、シネマチックなカメラパンで。",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/kling/motion_control",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"kling-3.0","video_url":"https://cdn.runapi.ai/public/samples/video.mp4","prompt":"秋の森を歩く人物の10秒間の動画を生成してください。落ちる葉、シネマチックなカメラパンで。"}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/kling/motion_control");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'kling-3.0',
'video_url' => 'https://cdn.runapi.ai/public/samples/video.mp4',
'prompt' => '秋の森を歩く人物の10秒間の動画を生成してください。落ちる葉、シネマチックなカメラパンで。',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.motionControl().run({"model":"kling-3.0","video_url":"https://cdn.runapi.ai/public/samples/video.mp4","prompt":"秋の森を歩く人物の10秒間の動画を生成してください。落ちる葉、シネマチックなカメラパンで。"});
task.waitForResult();
require "runapi/kling"
client = RunApi::Kling::Client.new
result = client.motion_control.run(
model: "kling-3.0",
video_url: "https://cdn.runapi.ai/public/samples/video.mp4",
prompt: "秋の森を歩く人物の10秒間の動画を生成してください。落ちる葉、シネマチックなカメラパンで。"
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.motionControl.Run({"model":"kling-3.0","video_url":"https://cdn.runapi.ai/public/samples/video.mp4","prompt":"秋の森を歩く人物の10秒間の動画を生成してください。落ちる葉、シネマチックなカメラパンで。"})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model kling-3.0 \
--endpoint motion_control \
--wait
18 個のバージョンを利用可能
モデルを選んで、数秒で生成できます。
モデルを選んで、数秒で生成できます。
| プロバイダー | Kuaishou |
| モデル ID | kling-3.0 |
| モダリティ | Video |
| タスク種別 | Asynchronous |
| API エンドポイント | /api/v1/kling/motion_control, /api/v1/kling/text_to_video |
| 請求単位 | second |
| 入力パラメータ | aspect_ratio, background_source, callback_url, cfg_scale, character_orientation, duration_seconds, enable_sound, first_frame_image_url, kling_elements, last_frame_image_url, model, multi_prompt, multi_shots, negative_prompt, output_resolution, prompt, reference_video_url, source_image_url |
| 最大時間 | 3s, 4s, 5s, 6s, 7s, 8s, 9s, 10s, 11s, 12s, 13s, 14s, 15s |
| 最大解像度 | 720p, 1080p, 4k |
| アスペクト比 | 16:9, 9:16, 1:1 |
| カタログ状態 | 稼働中 |
無料で登録し、ダッシュボードから kling-3.0 用の API キーを作成します。
/api/v1/kling/motion_control に kling-3.0 のモデル ID とパラメータを指定して POST リクエストを送信します。
タスクをポーリングするかコールバックに従って、完了した kling-3.0 の結果を取得します。
公開 endpoint スキーマから 720p, 1080p, 4k をサポートしています。
aspect_ratio, background_source, cfg_scale, character_orientation, duration_seconds を含む 16 個のドキュメント済みパラメータを設定できます。
2 個の公開 endpoint を提供しています: motion_control, text_to_video。
非同期タスクはコールバック URL を受け付け、完了通知を送信します。
promptDescription prompt.
callback_urlWebhook URL for async notifications.
source_image_urlSubject image URL.
background_sourceBackground source. (video, image)
output_resolutionOutput resolution. (720p, 1080p)
reference_video_urlReference motion video URL.
character_orientationCharacter orientation. (video, image)
prompt から本番向けの短尺クリップを生成します。
複数の方向性を素早く試します。
開発ツールにモデルコンテキストを渡して動画アセットを作成します。
quickstart に表示されるモデル ID を渡してください。
はい。呼び出しまたは単位ごとの従量課金です。