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