Kling 4.0 Keyframe to Video API: 画像から動画生成

開始フレーム、中間キーフレーム、終了フレームからKling 4.0動画を生成。3~30秒、720p/1080pに対応。生成ごとの従量課金で、サブスクリプションは不要です。 Kling 4.0 Keyframe-to-Videoは、開始フレーム、最大8枚の中間キーフレーム、終了フレームから、720p/1080pの3~30秒の動画を生成します。プロンプト内では各フレームを指定できます。

インタラクティブなモデルコントロール

Kling 4.0 Keyframe-to-Videoは、開始フレーム、最大8枚の中間キーフレーム、終了フレームから、720p/1080pの3~30秒の動画を生成します。プロンプト内では各フレームを指定できます。

📝

概要

このモデルについて

Kling 4.0 Keyframe-to-Videoは、開始フレーム、最大8枚の中間キーフレーム、終了フレームから、720pまたは1080pの3~30秒の動画を生成します。プロンプト内で@first_frame、@keyframe_1、@last_frameを使い、フレーム間のシーンの動きを指定します。出力のアスペクト比は開始フレームに従います。キャラクター、音声、動画を参照するには、Kling 4.0 Reference to Videoをご利用ください。

1ストーリーボード:静止画の連続を1本の動画にします。
2トランジション:説明した動きに沿って、開始フレームから終了フレームへつなぎます。
3商品紹介:広告の冒頭と締めのショットを調整します。
4複数ショットのストーリー:中間キーフレームで場所をつなぎます。
💰

料金と価値

コスト分析

muapiapp720pは1秒あたり$0.157(5秒の動画1本あたり$0.785)

720pは$0.157/s、1080pは$0.235/sです。

** 競合サービスの料金は類似のモデル構成および利用ティアに基づいて算出された推定値です。

⚙️

技術詳細

設定スキーマ

プロンプトstring

Video description (max 8000 chars). Mention frames with @first_frame, @keyframe_1, ..., @last_frame.

デフォルト値The girl in @first_frame walks out, passes the street in @keyframe_1, and arrives at the party in @last_frame
First Frame URLstring

First-frame image URL. Mention as @first_frame.

デフォルト値-
Keyframe URLsarray

Middle-frame image URLs in chronological order (up to 8, also limited by duration). Mention as @keyframe_1, @keyframe_2, ...

デフォルト値undefined
Last Frame URLstring

Last-frame image URL. Mention as @last_frame.

デフォルト値-
長さ(秒)int

Video length in seconds (3-30).

デフォルト値5
解像度Enum(2個の選択肢)

出力メディアの解像度(720p、1080p、4Kなど)。

デフォルト値720p
アスペクト比Enum(5個の選択肢)

Only used when no frame is provided; otherwise the output follows the first frame.

デフォルト値-
📖

実装ガイド

開発者ドキュメント

Kling 4.0 Keyframe to Videoの使い方

  1. フレームを指定する:keyframe_urls(最大8件、順番どおり)またはlast_frame_urlを設定する場合は、first_frame_urlが必須です。

  2. プロンプト内でフレームを指定する:@first_frame、@keyframe_1、@keyframe_2、@last_frameを使います。

  3. フレーム数の上限を確認する:合計フレーム数は動画の長さで制限されます。3sでは4枚、5sでは6枚、8sでは9枚、9s以上では10枚までです。

  4. 送信して結果を取得する:/api/v1/predictions/{request_id}/resultをポーリングするか、webhook_urlを渡します。

curl -X POST https://api.muapi.ai/api/v1/kling-4.0-keyframe-to-video \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{"prompt": "The girl in @first_frame walks out, passes the street in @keyframe_1, and arrives at the party in @last_frame", "first_frame_url": "https://example.com/first.png", "keyframe_urls": ["https://example.com/street.png"], "last_frame_url": "https://example.com/party.png", "duration": 10, "resolution": "720p"}'
❓

よくある質問

FAQ

フレームはいくつ使えますか?

開始フレーム、最大8枚の中間キーフレーム、終了フレームを使えます。合計フレーム数は動画の長さで上限が決まり、3sでは4枚、5sでは6枚、8sでは9枚、9s以上では10枚です。

開始フレームは必須ですか?

はい。keyframe_urlsまたはlast_frame_urlを設定する場合は必須です。

出力のアスペクト比はどうなりますか?

開始フレームに従います。フレームを指定しない場合に限り、aspect_ratioが適用されます。

料金はどのように計算されますか?

生成動画の秒数に応じた料金です。720pは$0.157/s、1080pは$0.235/sです。参照動画または動画要素を使う場合は、720pが$0.094/s、1080pが$0.141/sとなり、参照動画と生成動画の秒数を合算して課金されます。最低課金秒数は生成動画の長さの2xです。

生成結果を取得するには?

エンドポイントは非同期です。/api/v1/predictions/{request_id}/resultをポーリングするか、webhook_urlを渡すと、動画の準備完了時に通知を受け取れます。