コンテンツへスキップ

Kling 4.0 Reference to Video

統合

モデルID kling/v4/reference-to-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/kling/v4/reference-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

例と同様のファイル: $1.175 1,175 APIクレジット 実行前にファイルを計測します このページで実行

APIキーを取得
Kling 参照画像から動画 参照入力3–30 s1080pまで #reference-to-video#multi-shot#image-reference#video-reference

最大10枚の参照画像、5本の参照動画、7個の要素のルックを維持した3~30秒の動画を生成します

Doitongで作成

DoitongコミュニティがKling 4.0で作成した公開作品です。ワンクリックでプロンプトを再利用できます。

公開作品:16件
Ultra-realistic cinematic video of a young adult woman walking naturally toward the camera while ... 動画

Ultra-realistic cinematic video of a young adult woman walking naturally toward the camera while speaking, with realistic facial expressions and synchronized lip movements, as if she is promoting something to the viewer. She maintains eye contact with the camera, smiles slightly, and uses subtle...

Slow, subtle push-in on the woman's face. The light from the laptop flickers softly across her ey... 動画

Slow, subtle push-in on the woman's face. The light from the laptop flickers softly across her eyes and cheeks, as if the blurry image on the screen is changing. Her eyes move slightly as she studies the screen, and she takes one slow, tense breath. Behind her, shadows of the snowstorm move...

The enormous ancient dragon descends slowly toward the snowy cliff and lands at the cave mouth. I... 動画

The enormous ancient dragon descends slowly toward the snowy cliff and lands at the cave mouth. Its huge dark leathery wings beat twice with slow, heavy strokes, sending snow swirling off the cliff in big clouds. Then it folds its wings and settles on the rock, the giant elk still held in its...

**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... 動画

**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animate the provided image into a bright, magical, energetic, professional YouTube intro for a children's entertainment channel, with perfectly synchronized sound effects, cheerful music, and a cute child's...

Authentic 1990s wide-angle film footage. The left man slowly pulls one wooden block from the Jeng... 動画

Authentic 1990s wide-angle film footage. The left man slowly pulls one wooden block from the Jenga tower. As the block comes out, the tower naturally loses balance and realistically collapses onto the table. Frustrated, he angrily sweeps all the fallen wooden blocks off the table with both hands....

Thermal-camera view of a snowy mountain cliff at night in false-color, deep blue and violet cold ... 動画

Thermal-camera view of a snowy mountain cliff at night in false-color, deep blue and violet cold rock, a huge orange-white heat shape hidden inside a rock crevice, two small bright amber spots glowing like eyes, faint noise grain. Cinematic videorealistic, ultra detailed, 16:9, volumetric light,...

**Duration: 4 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... 動画

**Duration: 4 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animate the provided image into a bright, magical, energetic, professional YouTube intro for a children's entertainment channel, with perfectly synchronized sound effects, cheerful music, and a cute child's...

**Duration: 4 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... 動画

**Duration: 4 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animate the provided image into a bright, magical, energetic, professional YouTube intro for a children's entertainment channel, with perfectly synchronized sound effects, cheerful music, and a cute child's...

リクエストを作成

コントロールはモデルスキーマから生成されます。値を変更するとコードと価格が更新されます。

88 / 2500

`prompt` または `multi_prompt` のいずれかを指定する要件を満たす生成指示。指定した入力を参照するには @Image1、@Video1、@Element1 などを使用します。

video_urls
ファイルをドロップ、または · 5まで

@Video1、@Video2 などで参照する最大5本の参照動画。各動画は3~30秒(最大30.05秒)で、要素動画と合わせた合計時間は30秒以内である必要があります。各ファイルは300 MB以内、幅と高さは700 px~4553 px、アスペクト比は0.40~2.50、フレームレートは23.9~60.05 FPSである必要があります。

resolution デフォルト 1080p

出力の解像度。

aspect_ratio デフォルト 16:9

明示的に選択するか、'auto'を選択して参照から決定する動画の比率。

デフォルト 5

動画の長さ(秒)。3~30です。

詳細設定 image · images · multi_prompt · elements
start_image_url
ファイルをドロップ、または

画像参照数に含まれる任意の最初のフレーム画像。最大ファイルサイズは30.0 MB、幅と高さはそれぞれ300 px以上、アスペクト比は0.40~2.50である必要があります。

image_urls
ファイルをドロップ、または · 10まで

@Image1、@Image2 などで参照する画像。最大10枚までです。各ファイルは30.0 MB以内、幅と高さはそれぞれ300 px以上、アスペクト比は0.40~2.50である必要があります。

ショットごとの生成指示。各プロンプトが1つのショットを定義し、その長さが動画の合計時間に加算されます。

最大7つのキャラクターまたはオブジェクトのコレクション。そのうち `voice_id` を指定できるのは最大3つ、動画を使用できるのも最大3つです。これらの要素は @Element1、@Element2 などで参照します。

POST /run/kling/v4/reference-to-video?wait=20 見積もり → $1.175
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/kling/v4/reference-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

このリクエストを実行

キーはこのブラウザ内に保持されます。Doitong APIにのみ送信され、「記憶する」にチェックを入れた場合のみlocalStorageに保存されます。 APIキーを取得

Kling 4.0 Reference to Videoについて

テキストの`prompt`に加え、参照画像、参照動画、キャラクターまたはオブジェクトの要素から動画を作成します。これらはプロンプト内で@Image1、@Video1、@Element1として参照します。長さは3~30秒(デフォルトは5)で、出力は720pまたは1080p、アスペクト比はauto、16:9、9:16、1:1、21:9に対応します。ショットごとのプロンプトには`multi_prompt`を使用します。この場合、合計の長さは各ショットの長さの合計になります。上限は画像10枚、各3~30sの動画5本、要素7個で、そのうち最大3個に音声を付けられます。

パラメータ

正式名称またはネイティブ名のいずれか一方を送信してください。両方は送信しないでください。 正式名称

名前型 デフォルト許可される値 説明
prompt任意
型string | null
≤ 2,500文字
`prompt` または `multi_prompt` のいずれかを指定する要件を満たす生成指示。指定した入力を参照するには @Image1、@Video1、@Element1 などを使用します。
multi_prompt任意
型object[]
ショットごとの生成指示。各プロンプトが1つのショットを定義し、その長さが動画の合計時間に加算されます。
multi_prompt[].prompt必須
型string
1 – 512 characters
現在のショットに対するテキスト指示。
multi_prompt[].duration任意
型integer
デフォルト5
1 – 30
個々のショットの長さ(秒)。
duration任意
型integer
デフォルト5
3 – 30
動画の長さ(秒)。3~30です。
start_image_url任意 image
型url · image
画像参照数に含まれる任意の最初のフレーム画像。最大ファイルサイズは30.0 MB、幅と高さはそれぞれ300 px以上、アスペクト比は0.40~2.50である必要があります。
image_urls任意 images
型url[] · image
≤ 10項目
@Image1、@Image2 などで参照する画像。最大10枚までです。各ファイルは30.0 MB以内、幅と高さはそれぞれ300 px以上、アスペクト比は0.40~2.50である必要があります。
video_urls任意 videos
型url[] · video
≤ 5項目
@Video1、@Video2 などで参照する最大5本の参照動画。各動画は3~30秒(最大30.05秒)で、要素動画と合わせた合計時間は30秒以内である必要があります。各ファイルは300 MB以内、幅と高さは700 px~4553 px、アスペクト比は0.40~2.50、フレームレートは23.9~60.05 FPSである必要があります。
elements任意
型object[]
≤ 7項目
最大7つのキャラクターまたはオブジェクトのコレクション。そのうち `voice_id` を指定できるのは最大3つ、動画を使用できるのも最大3つです。これらの要素は @Element1、@Element2 などで参照します。
elements[].frontal_image_url任意
型url · image
要素の主な外観を示す正面画像。最大ファイルサイズは30.0 MB、幅と高さはそれぞれ300 px以上、アスペクト比は0.40~2.50である必要があります。
elements[].reference_image_urls任意
型url[] · image
≤ 3 items
要素を異なる角度から示す補足画像。1~3枚です。各ファイルは30.0 MB以内、幅と高さはそれぞれ300 px以上、アスペクト比は0.40~2.50である必要があります。
elements[].video_url任意
型url · video
画像の代わりに要素を表す動画。長さは3~30秒(最大30.05秒)です。ファイルは300 MB以内、幅と高さは700~4553 px、アスペクト比は0.40~2.50、フレームレートは23.9~60.05 FPSである必要があります。
elements[].voice_id任意
型string | null
要素に割り当てられた音声。
resolution任意
型enum
デフォルト1080p
720p1080p
出力の解像度。
aspect_ratio任意
型enum
デフォルト16:9
auto16:99:161:121:9
明示的に選択するか、'auto'を選択して参照から決定する動画の比率。
必須 正式名称(こちらも使用可能)

ファイルパラメータには、公開されたhttps:// URL、10 MBまでのdata: URI、またはアップロードしたファイルのfile_urlを指定します。 ファイル

出力

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling/v4/reference-to-video",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 1175,
    "usd": "1.175",
    "charged": 1175,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ファイルの保存期間を選択すべてのoutputs[].urlはストレージ上のコピーです。アカウント設定または?storage=により、永久保存(GB・月単位で有料)または無料で7日保存できます。
すべてのモデルで同じ形式画像、動画、音声のいずれでも、type、url、content_type、width、height、durationが含まれます。outputはモデル独自の結果オブジェクトです。
出力フィールド
video
object {url, content_type, file_name, file_size}モデルが生成した動画。

その他のモデル: 参照画像から動画

AIエージェント向け:このページのMarkdown版はこちらです: https://doitong.com/ja/developers/models/kling/v4/reference-to-video.md. すべてのモデルとガイド: https://doitong.com/developers/llms.txt