Seedance 2.5 — 15% below official pricing, 58% cheaper than fal. Wan 3.0 — 42% below official list price. Magi-2 is live. Seedream 5.5 — 50% off.

1つのAPIですべてのAIモデルを使う開発のための、ArgoLinkのガイド、アップデート、技術ノート。 ブログ

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 / 秒$0.0942-20%
720p 動画入力あり$0.0502 / 秒$0.0628-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

API キーを作成

Kling 4.0 Flash API リファレンス

クイックスタート

コンソールで API キーを作成し、このページに示すベース URL、エンドポイント、リクエストボディでリクエストを送信してください。

エンドポイント

  • POST生成ジョブを送信/v1/videos/generations残りの 2 つの呼び出しで必要な request_id を返します。
  • GETジョブのステータスを確認/v1/videos/{request_id}生成中は pending、動画の準備ができると done、それ以外は failed または expired です。
  • GET結果をダウンロード/v1/videos/{request_id}/contentstatus が done になると MP4 をストリーミングで返します。それまでは 409 job_video_not_ready を返し、ジョブが失敗した場合は 424 job_failed を返します。

認証

API キーは Bearer トークンとして Authorization ヘッダーで送ります。

POST /v1/videos/generations
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"
  }'

モード

テキストから動画

プロンプトだけで生成

最もシンプルな呼び出しです。必須なのは prompt だけで、省略したフィールドは 5 秒・720p・16:9 として生成・課金されます。

POST /v1/videos/generations
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
duration3–20 の整数秒、デフォルトは 5
resolution720p
aspect_ratio21:9 · 16:9 · 1:1 · 9:16、デフォルトは 16:9
sizeresolution と aspect_ratio の代わりにピクセルで指定。たとえば 1280x720 は 720p の 16:9

1 リクエストで生成される動画は 1 本です。seed と watermark には対応しておらず、generate_audio が false でない限り、生成結果には生成された音声トラックが付きます。

参照

指定した画像・動画・音声に沿って生成

生成結果は、送信した素材の被写体、動き、リズムに沿ったものになります。プロンプト内で @Image 1、@Video 1、@Audio 1 のように素材を指定できます。指定しなかった素材も使われます。

参照画像 1 枚POST /v1/videos/generations
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"}]
  }'
画像・動画・音声を組み合わせるPOST /v1/videos/generations
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_imagesHTTPS の画像を最大 10 枚(JPEG または PNG)
reference_videos最大 5 本のクリップ、各 3–20 seconds and 20 秒(合計)
reference_audiosこのルートでは非対応
duration3–20 の整数秒、デフォルトは 5
resolution720p
aspect_ratio21: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 つのフレームの間を補完します。

最初のフレームのみPOST /v1/videos/generations
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"}
  }'
最初と最後のフレームPOST /v1/videos/generations
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_imageHTTPS の画像 1 枚。生成結果の比率はこの画像で決まる
end_image任意。動画の最後となる HTTPS の画像 1 枚
duration3–20 の整数秒、デフォルトは 5
resolution720p
aspect_ratioadaptive のみ。比率は最初のフレームに従う

どちらのフィールドも参照素材とは併用できません。生成結果は最初のフレームに最も近い比率になります。

動画を編集

手持ちの映像を書き換える

動画から始める唯一のモードです。生成結果は元の動画の長さと比率を引き継ぎ、ティアは resolution で選びます。

POST /v1/videos/generations
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_typeedit を指定
reference_videos最初のクリップが編集する動画、 3–20 秒の長さ
reference_images最大 10 images and 4 more videos steer the edit
prompt必須、最大 26,000 characters; say what to change
resolution720p
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 をリクエストに指定します。

ローカルファイルをアップロードPOST /v1/media/uploads
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_imageJPEG または PNG≤ 20 MiB—
reference_videosMP4 または MOV≤ 100 MiB3–20 秒ずつ
reference_videos[0](編集する動画)MP4 または MOV≤ 100 MiB3–20 seconds

この範囲外の素材があると、生成開始前にジョブが invalid_input で失敗し、料金は発生しません。

プロンプトで素材を参照する方法

プロンプトから素材を指定する

素材は @ と種類と番号で指定します。番号は reference_images・reference_videos・reference_audios の中での順番で、それぞれ 1 から数えます。

プロンプトに書く指す素材
@画像1reference_images の 1 番目
@動画1reference_videos の 1 番目
リクエスト例POST /v1/videos/generations
{
  "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 リクエストパラメータ一覧

パラメータ型要件説明
modelstring必須The catalog identifier for this page: kling-4.0-flash.
promptstring必須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.
durationinteger任意Output length in whole seconds, 3 to 20、デフォルトは 5. An edit keeps the length of the video it edits, so leave it out there.
resolutionstring任意Output resolution. This model accepts 720p only, which is also the default.
aspect_ratiostring任意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.
sizestring任意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_imageobject最初のフレーム指定モード最初のフレームの HTTPS URL です。単独で指定すると最初のフレームから動画を生成し、end_image と組み合わせると最初と最後のフレームを指定した動画になります。参照素材とは併用できません。
end_imageobject最初と最後のフレーム指定時のみ最後のフレームの HTTPS URL です。生成結果は最初のフレームに合わせて調整されるため、元画像の比率は異なっていてもかまいません。必ず次のフィールドと一緒に送信してください: start_image.
reference_imagesarray参照・編集HTTPS URLs of reference images, 最大 10. Images, videos and audio together are limited to 15 per request.
reference_videosarray参照・編集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_audiosarray非対応This model takes no reference audio: sending reference_audios is rejected with 400.
omni_reference_task_typestring編集のみ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 つの名前だけを使ってください。
ninteger任意1 にするか省略してください。1 リクエストで生成される動画は必ず 1 本です。
generate_audioboolean任意Defaults to true: Kling 4.0 Flash scores the video itself. Send false for a silent result.
seed · watermark—非対応このモデルでは使用できません。seed の指定や watermark: true は 400 で拒否されます。
request_idstringレスポンスフィールド送信リクエストで返される値で、ステータスとコンテンツのエンドポイントが受け付ける唯一の識別子です。
progress · estimated_seconds_remainingintegerレスポンスフィールドstatus が pending の間、ステータスエンドポイントが返します。progress はジョブの進み具合の推定値(0〜99)、estimated_seconds_remaining は残り秒数の推定値で、後者は推定値が出るまで返されません。status が done になると progress は 100 になります。
video.urlstringレスポンスフィールドstatus が done になった後の完成した MP4 のダウンロードリンクです。API キーなしで誰でも開ける ArgoLink のリンクで、30 日間有効です。
usageobjectレスポンスフィールドstatus が done になると返されます。output_seconds、reference_video_seconds と、その合計の billed_seconds で、ジョブはこの合計に対して課金されます。

API キーを作成

Kling 4.0 Flash API と類似モデルの比較

モデルモデル IDプロバイダー料金適した用途
Kling 4.0 Flashkling-4.0-flashKuaishou$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.5seedance-2.5ByteDance Seed$0.0874 / 秒これまでで最も高性能な Seedance の動画モデル: 30 秒のクリップ、最大 50 個の参照素材、実在の人物の参照素材にネイティブ対応、手動の承認や追加の認証は不要
Grok Imagine Video 1.5grok-imagine-video-1.5xAI$0.032 / 秒出力 1 秒単位で課金される 480p・720p・1080p の動画生成
Gemini Omni 1.2 Flashgemini-omni-1.2-flashGoogle$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 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.

API キーを作成

関連ガイド

おかえりなさい

ArgoLink の運営会社・返金・データの扱いについて

返金を申請

申請を送信し、「チャージ注文」で状態を確認してください。