Kuaishoukling-4.0-flash
Kuaishou Kling 4.0 Flash: the quicker Kling 4.0, 3 to 20 second clips at 720p from a prompt, a first frame, or 最大 10 reference images and 5 reference videos, with a soundtrack of its own
$0.07536/ 秒-20%$0.0942公式価格生成失敗時は課金なし
- 3–20 second clips
- 720p
- 最大 10 images, 5 videos
- Soundtrack on by default
- モダリティ
- 動画
- エンドポイント
- /v1/videos/generations
- モデル ID
- kling-4.0-flash
- プロバイダー
- Kuaishou
Kling 4.0 Flash API の概要
ドキュメント化されたエンドポイント
動画リクエストの送信先: /v1/videos/generations. 下のパラメータ表に、このエンドポイントで使えるフィールドを記載しています。
モデルプロバイダー
Kling 4.0 Flash の提供元は Kuaishou で、API でのモデル ID は kling-4.0-flash.
出力と制限
3–20 seconds; 720p only; one output per request; text: 21:9, 16:9, 1:1 or 9:16, and references may also use adaptive; a first frame sets the shape (adaptive), and no last frame is taken; an edit (omni_reference_task_type edit) changes reference_videos[0] and keeps its length, the other references steering it; 最大 10 images and 5 videos, 15 合計、 and no reference audio; reference videos 3–20 秒ずつ and 20 合計、 700–4553 pixels a side at 24–60 fps; reference images at least 300 pixels a side with a width to height ratio from 0.4 to 2.5; with a reference video, the billed seconds are twice the output, or the reference videos and the output together when the reference videos run longer; prompt 必須、最大 26,000 English or 11,000 other characters; name references as @image1 or @video1; a soundtrack is generated unless generate_audio is false
Kling 4.0 Flash API の料金
以下のすべての課金項目で、Kling 4.0 Flash は公式価格より 20% 安く課金されます。
| 項目 | ArgoLink 価格 | 公式価格 | 割引 |
|---|---|---|---|
| 720p | $0.07536 / 秒 | -20% | |
| 720p 動画入力あり | $0.0502 / 秒 | -20% |
3–20 seconds; 720p only; one output per request; text: 21:9, 16:9, 1:1 or 9:16, and references may also use adaptive; a first frame sets the shape (adaptive), and no last frame is taken; an edit (omni_reference_task_type edit) changes reference_videos[0] and keeps its length, the other references steering it; 最大 10 images and 5 videos, 15 合計、 and no reference audio; reference videos 3–20 秒ずつ and 20 合計、 700–4553 pixels a side at 24–60 fps; reference images at least 300 pixels a side with a width to height ratio from 0.4 to 2.5; with a reference video, the billed seconds are twice the output, or the reference videos and the output together when the reference videos run longer; prompt 必須、最大 26,000 English or 11,000 other characters; name references as @image1 or @video1; a soundtrack is generated unless generate_audio is false
Kling 4.0 Flash API リファレンス
クイックスタート
コンソールで API キーを作成し、このページに示すベース URL、エンドポイント、リクエストボディでリクエストを送信してください。
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0-flash",
"prompt": "A slow aerial shot over a foggy pine forest at sunrise"
}'
curl https://argolink.io/v1/videos/$REQUEST_ID \
-H "Authorization: Bearer $ARGOLINK_API_KEY"
curl -L https://argolink.io/v1/videos/$REQUEST_ID/content \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-o output.mp4
import os
import time
import requests
headers = {"Authorization": f"Bearer {os.environ['ARGOLINK_API_KEY']}"}
job = requests.post(
"https://argolink.io/v1/videos/generations",
headers=headers,
json={"model": "kling-4.0-flash", "prompt": "A slow aerial shot over a foggy pine forest at sunrise"},
timeout=600,
)
job.raise_for_status()
request_id = job.json()["request_id"]
while True:
status = requests.get(f"https://argolink.io/v1/videos/{request_id}", headers=headers, timeout=60).json()
if status["status"] in ("done", "failed", "expired"):
break
time.sleep(5)
if status["status"] == "done":
video = requests.get(f"https://argolink.io/v1/videos/{request_id}/content", headers=headers, timeout=600)
open("output.mp4", "wb").write(video.content)
モード
テキストから動画
プロンプトだけで生成
最もシンプルな呼び出しです。必須なのは prompt だけで、省略したフィールドは 5 秒・720p・16:9 として生成・課金されます。
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0-flash",
"prompt": "日の出の霧に包まれた松林の上をゆっくり進む空撮",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9"
}'
| フィールド | 値 |
|---|---|
prompt | 必須、最大 26,000 characters; describe the camera move, the subject and the mood |
duration | 3–20 の整数秒、デフォルトは 5 |
resolution | 720p |
aspect_ratio | 21:9 · 16:9 · 1:1 · 9:16、デフォルトは 16:9 |
size | resolution と aspect_ratio の代わりにピクセルで指定。たとえば 1280x720 は 720p の 16:9 |
1 リクエストで生成される動画は 1 本です。seed と watermark には対応しておらず、generate_audio が false でない限り、生成結果には生成された音声トラックが付きます。
参照
指定した画像・動画・音声に沿って生成
生成結果は、送信した素材の被写体、動き、リズムに沿ったものになります。プロンプト内で @Image 1、@Video 1、@Audio 1 のように素材を指定できます。指定しなかった素材も使われます。
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0-flash",
"prompt": "@Image 1 の人物を夜の雨の街へ歩かせる",
"duration": 5,
"resolution": "720p",
"reference_images": [{"url": "https://example.com/subject.png"}]
}'
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0-flash",
"prompt": "@Image 1 の女の子が @Audio 1 のビートに合わせて、@Video 1 のダンサーのように踊る",
"duration": 10,
"resolution": "720p",
"reference_images": [{"url": "https://example.com/girl.png"}],
"reference_videos": [{"url": "https://example.com/dance.mp4"}],
"reference_audios": [{"url": "https://example.com/beat.mp3"}]
}'
| フィールド | 値 |
|---|---|
prompt | 必須。素材は @Image 1、@Video 1、@Audio 1 のように指定 |
reference_images | HTTPS の画像を最大 10 枚(JPEG または PNG) |
reference_videos | 最大 5 本のクリップ、各 3–20 seconds and 20 秒(合計) |
reference_audios | このルートでは非対応 |
duration | 3–20 の整数秒、デフォルトは 5 |
resolution | 720p |
aspect_ratio | 21:9 · 16:9 · 1:1 · 9:16 · adaptive、デフォルトは 16:9 |
画像と動画は自由に組み合わせ可能、最大 15 assets in total. Reference videos are billed at the output rate; 参照画像は無料.
最初と最後のフレーム
冒頭を固定し、必要なら結末も固定
start_image だけなら最初のフレームの指定になります。end_image を加えると、モデルが 2 つのフレームの間を補完します。
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0-flash",
"prompt": "落ち葉が画面を横切るなか、カメラがゆっくりと寄っていく",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "adaptive",
"start_image": {"url": "https://example.com/first-frame.png"}
}'
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0-flash",
"prompt": "同じスカイラインで昼が夜へと移り変わり、街の明かりが灯っていく",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "adaptive",
"start_image": {"url": "https://example.com/day.png"},
"end_image": {"url": "https://example.com/night.png"}
}'
| フィールド | 値 |
|---|---|
prompt | 必須。ショットの動きを記述 |
start_image | HTTPS の画像 1 枚。生成結果の比率はこの画像で決まる |
end_image | 任意。動画の最後となる HTTPS の画像 1 枚 |
duration | 3–20 の整数秒、デフォルトは 5 |
resolution | 720p |
aspect_ratio | adaptive のみ。比率は最初のフレームに従う |
どちらのフィールドも参照素材とは併用できません。生成結果は最初のフレームに最も近い比率になります。
動画を編集
手持ちの映像を書き換える
動画から始める唯一のモードです。生成結果は元の動画の長さと比率を引き継ぎ、ティアは resolution で選びます。
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0-flash",
"omni_reference_task_type": "edit",
"prompt": "色味を暖かくして、それ以外はすべてそのままにする",
"resolution": "720p",
"reference_videos": [{"url": "https://example.com/street.mp4"}]
}'
| フィールド | 値 |
|---|---|
omni_reference_task_type | edit を指定 |
reference_videos | 最初のクリップが編集する動画、 3–20 秒の長さ |
reference_images | 最大 10 images and 4 more videos steer the edit |
prompt | 必須、最大 26,000 characters; say what to change |
resolution | 720p |
duration · aspect_ratio | 編集する動画から引き継ぐため、どちらも省略 |
編集する動画は、出力としても参照動画としても課金されます。5 秒の動画を編集すると 10 秒分が課金されます。このモードでは start_image と end_image は送信できません。
参照素材のアップロードと使い方
自分のリンク、または先にアップロードしたローカルファイル
The url of start_image, end_image and every entry of reference_images and reference_videos is an HTTPS address. すでにホストしているリンクは、サインインなしでダウンロードでき、リダイレクトがすべて HTTPS のままであれば、そのまま指定できます。ローカルファイルは先にアップロードし、返された media_url をリクエストに指定します。
FILE=dance.mp4
TICKET=$(curl -fsS https://argolink.io/v1/media/uploads \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"model\":\"kling-4.0-flash\",\"type\":\"video\",\"content_type\":\"video/mp4\",\"size_bytes\":$(wc -c < "$FILE" | tr -d ' ')}")
curl -fsS -X PUT "$(jq -r .upload_url <<<"$TICKET")" \
-H "Content-Type: video/mp4" --data-binary @"$FILE"
# Put this media_url in reference_videos[].url
jq -r .media_url <<<"$TICKET"
チケットの発行は無料で、ジョブも作成されません。upload_url の有効期間は 15 分で、PUT には申告した Content-Type を付ける必要があります。引き換えに得られる media_url は 7 日間読み取れます。
| フィールド | 形式 | サイズ | 長さ |
|---|---|---|---|
reference_images · start_image · end_image | JPEG または PNG | ≤ 20 MiB | — |
reference_videos | MP4 または MOV | ≤ 100 MiB | 3–20 秒ずつ |
reference_videos[0](編集する動画) | MP4 または MOV | ≤ 100 MiB | 3–20 seconds |
この範囲外の素材があると、生成開始前にジョブが invalid_input で失敗し、料金は発生しません。
プロンプトで素材を参照する方法
プロンプトから素材を指定する
素材は @ と種類と番号で指定します。番号は reference_images・reference_videos・reference_audios の中での順番で、それぞれ 1 から数えます。
| プロンプトに書く | 指す素材 |
|---|---|
@画像1 | reference_images の 1 番目 |
@動画1 | reference_videos の 1 番目 |
{
"model": "kling-4.0-flash",
"prompt": "@画像1の女の子が@音声1のリズムに合わせて、@動画1のダンサーのように踊る",
"reference_images": [
{
"url": "https://example.com/girl.png"
}
],
"reference_videos": [
{
"url": "https://example.com/dance.mp4"
}
],
"reference_audios": [
{
"url": "https://example.com/beat.mp3"
}
]
}
コンソールのワークベンチで @ の後に素材を選ぶと、この書き方が入ります。@ なしの 画像1、<画像1>、@Image 1 や、ほかの言語の書き方(@图片1 など)も認識されます。指定は任意で、指定しなかった素材も使われます。@ や < > を付けた場合、配列の数を超える番号はエラーになります。動画を編集するとき(omni_reference_task_type が edit)は、@動画1 が編集する動画で、指定は不要です。ほかの素材の番号は変わりません。
Kling 4.0 Flash リクエストパラメータ一覧
| パラメータ | 型 | 要件 | 説明 |
|---|---|---|---|
model | string | 必須 | The catalog identifier for this page: kling-4.0-flash. |
prompt | string | 必須 | Describes the video: camera motion, subject action and mood. This model needs one in every mode, assets or not. Name a reference in the prompt as @Image 1 or @Video 2. It holds 最大 26,000 characters. |
duration | integer | 任意 | Output length in whole seconds, 3 to 20、デフォルトは 5. An edit keeps the length of the video it edits, so leave it out there. |
resolution | string | 任意 | Output resolution. This model accepts 720p only, which is also the default. |
aspect_ratio | string | 任意 | Output aspect ratio: 21:9, 16:9, 1:1 or 9:16、デフォルトは 16:9. A reference request may also send adaptive, which follows the references. In first-frame and first-and-last-frame modes, send adaptive only; the result follows the first frame and uses the ratio closest to its first frame. An edit keeps its video's ratio, so leave it out there too. |
size | string | 任意 | Pixels instead of resolution plus aspect_ratio, written WIDTHxHEIGHT: the short side picks the tier (720 for 720p) and the shape picks the ratio, so 1280x720 は 720p の 16:9. It picks a tier and a ratio, not exact pixels; a resolution or aspect_ratio sent with it must match, or the request is rejected with 400. An edit takes a resolution name only. |
start_image | object | 最初のフレーム指定モード | 最初のフレームの HTTPS URL です。単独で指定すると最初のフレームから動画を生成し、end_image と組み合わせると最初と最後のフレームを指定した動画になります。参照素材とは併用できません。 |
end_image | object | 最初と最後のフレーム指定時のみ | 最後のフレームの HTTPS URL です。生成結果は最初のフレームに合わせて調整されるため、元画像の比率は異なっていてもかまいません。必ず次のフィールドと一緒に送信してください: start_image. |
reference_images | array | 参照・編集 | HTTPS URLs of reference images, 最大 10. Images, videos and audio together are limited to 15 per request. |
reference_videos | array | 参照・編集 | HTTPS URLs of reference videos, 最大 5 本のクリップ、各 3–20 seconds and 20 秒(合計). Their seconds are billed like the output's. In an edit the first video is the one edited, 3–20 秒の長さ. |
reference_audios | array | 非対応 | This model takes no reference audio: sending reference_audios is rejected with 400. |
omni_reference_task_type | string | 編集のみ | Set it to edit to edit the first entry of reference_videos, 3–20 秒の長さ. Left out, auto and reference all make an ordinary request. |
seconds · ratio | — | 互換フィールド名 | duration と aspect_ratio の別名です。1 つの値には 1 つの名前だけを使い、両方は送らないでください。 |
image_url · image_urls · video_urls · audio_urls · frame_images · input_references | — | 互換フィールド名 | fal や OpenRouter のリクエストのフィールド名も使えます。image_url は start_image、image_urls・video_urls・audio_urls は 3 種類の参照リスト、frame_images のうち frame_type が first_frame または last_frame の項目は start_image と end_image、input_references のうち type が image_url・video_url・audio_url の項目は参照素材として扱われます。1 つの入力には 1 つの名前だけを使ってください。 |
n | integer | 任意 | 1 にするか省略してください。1 リクエストで生成される動画は必ず 1 本です。 |
generate_audio | boolean | 任意 | Defaults to true: Kling 4.0 Flash scores the video itself. Send false for a silent result. |
seed · watermark | — | 非対応 | このモデルでは使用できません。seed の指定や watermark: true は 400 で拒否されます。 |
request_id | string | レスポンスフィールド | 送信リクエストで返される値で、ステータスとコンテンツのエンドポイントが受け付ける唯一の識別子です。 |
progress · estimated_seconds_remaining | integer | レスポンスフィールド | status が pending の間、ステータスエンドポイントが返します。progress はジョブの進み具合の推定値(0〜99)、estimated_seconds_remaining は残り秒数の推定値で、後者は推定値が出るまで返されません。status が done になると progress は 100 になります。 |
video.url | string | レスポンスフィールド | status が done になった後の完成した MP4 のダウンロードリンクです。API キーなしで誰でも開ける ArgoLink のリンクで、30 日間有効です。 |
usage | object | レスポンスフィールド | status が done になると返されます。output_seconds、reference_video_seconds と、その合計の billed_seconds で、ジョブはこの合計に対して課金されます。 |
Kling 4.0 Flash API と類似モデルの比較
| モデル | モデル ID | プロバイダー | 料金 | 適した用途 |
|---|---|---|---|---|
| Kling 4.0 Flash | kling-4.0-flash | Kuaishou | $0.07536 / 秒 | Kuaishou Kling 4.0 Flash: the quicker Kling 4.0, 3 to 20 second clips at 720p from a prompt, a first frame, or 最大 10 reference images and 5 reference videos, with a soundtrack of its own |
| Seedance 2.5 | seedance-2.5 | ByteDance Seed | $0.0874 / 秒 | これまでで最も高性能な Seedance の動画モデル: 30 秒のクリップ、最大 50 個の参照素材、実在の人物の参照素材にネイティブ対応、手動の承認や追加の認証は不要 |
| Grok Imagine Video 1.5 | grok-imagine-video-1.5 | xAI | $0.032 / 秒 | 出力 1 秒単位で課金される 480p・720p・1080p の動画生成 |
| Gemini Omni 1.2 Flash | gemini-omni-1.2-flash | $0.0215 / 秒 | Google Gemini Omni 1.2 Flash: 3 to 15 second clips with native sound at 720p, 1080p or 4K, from a prompt, a first and last frame, 最大 10 reference images and 3 reference videos, or as an edit of a video |
同じプロバイダーの他のモデル
- Kling 3.0Kuaishou Kling 3.0: 3 to 15 second clips at 720p, 1080p or 4K from a prompt, a first frame, or a first and a last frame, with or without a soundtrack$0.1134 / 秒
- Kling 4.0Kuaishou Kling 4.0: 3 to 30 second clips at 720p or 1080p from a prompt, or from 最大 10 reference images and 5 reference videos, with a soundtrack of its own$0.1256 / 秒
同じモダリティの他のモデル
- Seedance 2.5これまでで最も高性能な Seedance の動画モデル: 30 秒のクリップ、最大 50 個の参照素材、実在の人物の参照素材にネイティブ対応、手動の承認や追加の認証は不要$0.0874 / 秒
- Grok Imagine Video 1.5出力 1 秒単位で課金される 480p・720p・1080p の動画生成$0.032 / 秒
- Gemini Omni 1.2 FlashGoogle Gemini Omni 1.2 Flash: 3 to 15 second clips with native sound at 720p, 1080p or 4K, from a prompt, a first and last frame, 最大 10 reference images and 3 reference videos, or as an edit of a video$0.0215 / 秒
- MAGI-2Sand AI's MAGI-2: 4 to 30 second 1080p clips with native sound, from a prompt or from 最大 10 reference images, 5 reference videos and 5 audio clips$0.072 / 秒
Kling 4.0 Flash API のよくある質問
Kling 4.0 Flash の呼び出し方法は?
Create an API key in the console and POST https://argolink.io/v1/videos/generations 、model には次を指定: kling-4.0-flash. The response carries request_id, the only job identifier: poll GET https://argolink.io/v1/videos/{request_id}, which reports progress and estimated_seconds_remaining while the job is pending, until status is done, then download the MP4 from GET https://argolink.io/v1/videos/{request_id}/content。このアドレスはステータスにも含まれます: video.url.
Kling 4.0 Flash の料金はいくらですか?
出力秒数に応じた課金で、最も低いティアでは 1 秒あたり $0.07536 からです。料金表の各ティアにはそれぞれ秒単価があり、動画の長さを掛けた金額になります。どのティアも公式の秒単価(定価)より 20% 安くなっています(最も低いティアの公式価格は 1 秒あたり $0.0942)。参照動画と編集元の動画は、Kling の公式価格と同じ数え方で課金されます。出力より長くなければ出力秒数の 2 倍、長ければ実際の長さに出力秒数を加えた秒数です。たとえば 5 秒の動画に 3 秒の参照動画を使うと 10 秒分、7.3 秒の参照動画を使うと 12.3 秒分が課金されます。参照画像は無料です。課金されるのは完成した動画だけで、失敗または拒否されたジョブには料金はかかりません。動画入力(参照動画、または編集元の動画)がある場合、課金秒数はすべて料金表の「動画入力あり」の単価で課金されます。
Kling 4.0 Flash が対応する入力モードは?
すべて同じエンドポイントで利用できます: reference (a prompt alone, or with images, videos and audio as references: 最大 10 reference_images, 5 reference_videos と 0 reference_audios, 15 合計、 任意の組み合わせ that includes an image or a video); first frame (start_image); first and last frames (start_image plus end_image on one aspect ratio); video editing (omni_reference_task_type edit, which edits the first entry of reference_videos). First-frame and first-and-last-frame videos take their aspect ratio from the first frame. Every asset is an HTTPS URL.
Kling 4.0 Flash が対応していないものは?
1 リクエストあたり複数の動画(n は 1 にするか省略する必要があります)、seed の指定、watermark: true には対応していません。指定すると 400 が返されます。出力は H.264 の MP4 で、generate_audio が false でない限り、生成された音声トラックが付きます。
Kling 4.0 Flash で最初のフレームを指定した動画のアスペクト比はどう決まりますか?
Leave aspect_ratio out, or send adaptive, and the first frame decides: the video takes the closest of 21:9, 16:9, 1:1, 9:16, so the frame is cropped as little as possible. The two frame modes take no fixed ratio; naming one is rejected. With first and last frames, the source images may have different ratios; the result adapts the last frame to the first.
Kling 4.0 Flash の動画に音声はありますか?
デフォルトでは音声あり: Kling 4.0 Flash scores the video itself. Send generate_audio: false for a silent result.