kling-v4デフォルトKling V4 API — 接続と支払いの方法
Kling 4.0 — テキスト、キーフレーム(最初、最後、および最大8枚の中間フレーム)、または参照素材(最大10枚の画像、5本の動画、7個の要素、3種類の音声)から、ネイティブ音声とリップシンクに対応した3〜30秒の動画を生成します。720p/1080p。解像度に応じて秒単位で課金されます。入力動画がある場合は、その動画の秒数も課金対象になります。
チャネル比較
過去7日間
| チャネル | 価格 |
|---|---|
Pixel kling-v4デフォルト | $0.183214から / 秒 |
必要な結果を作成
kling-v4Kling V4とは
Kling 4.0 — テキスト、キーフレーム(最初、最後、および最大8枚の中間フレーム)、または参照素材(最大10枚の画像、5本の動画、7個の要素、3種類の音声)から、ネイティブ音声とリップシンクに対応した3〜30秒の動画を生成します。720p/1080p。解像度に応じて秒単位で課金されます。入力動画がある場合は、その動画の秒数も課金対象になります。
契約の概要
- 入力
- text, image, video, audio
- 出力
- video
- モード
- 非同期(ジョブ + ポーリング)
- ステータスのポーリング
- 3秒ごと · 最大600秒
強み
- 料金:秒あたり
- 入力:テキスト、画像、動画、音声
- 設定可能なオプション3個
- メディア生成用の1つのAPIキー
用途
- ソーシャルメディア用クリップ
- プロモーションとタイトルシーケンス
- 静止画アニメーション
- ストーリーボードとアニマティクス
APIコントラクト
生成は非同期で実行されます。ジョブを作成し、完了するまでステータスをポーリングします。
- ジョブを作成
- POST /api/media/generate
- ステータスを確認
- GET /api/media/jobs/{jobId}
- 入力
- text, image, video, audio
- 出力
- video
- ポーリング
- 3秒ごと · 最大600秒
- 認証
- Authorization: Bearer sk-pv-…
リクエスト例
Bearerヘッダーにキーを渡します。APIはjobIdステータスをポーリングするために使用します。
curl -sS https://getvibeapi.com/api/media/generate \
-H "Authorization: Bearer $GETVIBE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary '{"model":"kling-v4","prompt":"a beautiful landscape","opts":{"input":"text-to-video","aspect_ratio":"auto","resolution":"720p","duration":5}}'JavaScript
const response = await fetch('https://getvibeapi.com/api/media/generate', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.GETVIBE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "kling-v4",
"prompt": "a beautiful landscape",
"opts": {
"input": "text-to-video",
"aspect_ratio": "auto",
"resolution": "720p",
"duration": 5
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);APIリクエストパラメータ
GetVibe API経由でKling V4にリクエストする際のパラメータ。
prompt必須image_urlvideo_urlaudio_urlinputaspect_ratioresolutiondurationlast_frame_urlkeep_original_soundkeyframe_urlsimage_file_idimage_base64last_frame_file_idreference_image_urlsreference_video_urlselementsvoicesreference_image_file_idsreference_video_file_ids| パラメータ | タイプ | 値 | デフォルト | 価格 |
|---|---|---|---|---|
prompt必須 | text | text description | required | — |
image_url | URL | Public image URL | — | — |
video_url | URL | Public video URL | — | — |
audio_url | URL | Public audio URL | — | — |
input | option selection | Text → video (default) · Keyframes → video · Reference → video | テキスト → 動画 | Included in the base price |
aspect_ratio | option selection | Auto (default) · 16:9 · 9:16 · 1:1 · 21:9 | 自動 | Included in the base price |
resolution | option selection | 720p (default) · 1080p | 720p | Included in the base price |
duration | text / number | any value | — | Included in the base price |
last_frame_url | text / number | any value | — | Included in the base price |
keep_original_sound | yes/no | Yes · No (default) | いいえ | Included in the base price |
keyframe_urls | Array<URLs>, 0–8 items | Public HTTP(S) URLs | — | Included in the base price |
image_file_id | text | Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
image_base64 | text | Alternative to image_url: the file inline, as base64 or a data: URI | — | Included in the base price |
last_frame_file_id | text | Alternative to last_frame_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
reference_image_urls | Array<URLs>, 0–10 items | Public HTTP(S) URLs | — | Included in the base price |
reference_video_urls | Array<URLs>, 0–5 items | Public HTTP(S) URLs | — | Included in the base price |
elements | Array<objects>, 0–7 items | object: name, image_urls, video_url, tag, description, voice_url | — | Included in the base price |
voices | Array<objects>, 0–3 items | object: name, audio_url | — | Included in the base price |
reference_image_file_ids | Array<strings> | List of values | — | Included in the base price |
reference_video_file_ids | Array<strings> | List of values | — | Included in the base price |
リクエスト: POST https://getvibeapi.com/api/media/generate。価格はUSDです。
Kling V4の価格
Kling V4の料金: から $0.183214 per second。価格は現在の為替レートに基づいて動的に計算され、最終的な請求額はAPIレスポンス(priceRub)に表示されます。支払いはUSDで、サブスクリプションはありません。
デフォルトのリクエストにかかる料金
パラメーターを指定しない場合、リクエストには次の値が使用されます: Resolution — 720p, Source material — Text → video, Frame format — Auto, Keep the reference video sound — No。 このリクエストの料金は$0.183214です。
すべてのパラメータの組み合わせにおけるチャンネルと価格
各チャンネルについて、すべてのパラメータの組み合わせの価格を表示しています。これは正常に生成された場合に請求される正確な金額であり、下にリンクされた機械可読テーブルと同じ数値です。
Pixelkling-v4$0.183214から / 秒正確な価格
| 入力 · アスペクト比 \ 解像度 | 720p | 1080p |
|---|---|---|
| テキスト → 動画 · Auto | $0.183214 / 秒 | $0.273214 / 秒 |
| テキスト → 動画 · 16:9 | $0.183214 / 秒 | $0.273214 / 秒 |
| テキスト → 動画 · 9:16 | $0.183214 / 秒 | $0.273214 / 秒 |
| テキスト → 動画 · 1:1 | $0.183214 / 秒 | $0.273214 / 秒 |
| テキスト → 動画 · 21:9 | $0.183214 / 秒 | $0.273214 / 秒 |
| キーフレーム → 動画 · — | $0.183214 / 秒 | $0.273214 / 秒 |
| 参照素材 → 動画 · Auto | $0.183214 / 秒 | $0.273214 / 秒 |
| 参照素材 → 動画 · 16:9 | $0.183214 / 秒 | $0.273214 / 秒 |
| 参照素材 → 動画 · 9:16 | $0.183214 / 秒 | $0.273214 / 秒 |
| 参照素材 → 動画 · 1:1 | $0.183214 / 秒 | $0.273214 / 秒 |
| 参照素材 → 動画 · 21:9 | $0.183214 / 秒 | $0.273214 / 秒 |
すべての組み合わせ(JSON): /api/media/price-table?model=kling-v4
README
Kling V4の機械可読な契約には、リクエストスキーマ、操作、制限、ポーリング、レスポンスの例が含まれています。
# Kling V4
公開モデル: kling-v4
ジョブを作成: POST /api/media/generate
ステータスを確認: GET /api/media/jobs/{jobId}
## 入力パラメータ
- `prompt` (text): text description; デフォルト: required
- `image_url` (URL): Public image URL; デフォルト: —
- `video_url` (URL): Public video URL; デフォルト: —
- `audio_url` (URL): Public audio URL; デフォルト: —
- `input` (option selection): Text → video (default) · Keyframes → video · Reference → video; デフォルト: Text → video
- `aspect_ratio` (option selection): Auto (default) · 16:9 · 9:16 · 1:1 · 21:9; デフォルト: Auto
- `resolution` (option selection): 720p (default) · 1080p; デフォルト: 720p
- `duration` (text / number): any value; デフォルト: —
- `last_frame_url` (text / number): any value; デフォルト: —
- `keep_original_sound` (yes/no): Yes · No (default); デフォルト: No
- `keyframe_urls` (Array<URLs>, 0–8 items): Public HTTP(S) URLs; デフォルト: —
- `image_file_id` (text): Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…); デフォルト: —
- `image_base64` (text): Alternative to image_url: the file inline, as base64 or a data: URI; デフォルト: —
- `last_frame_file_id` (text): Alternative to last_frame_url: the id of your own file from POST /v1/files (file-pv-…); デフォルト: —
- `reference_image_urls` (Array<URLs>, 0–10 items): Public HTTP(S) URLs; デフォルト: —
- `reference_video_urls` (Array<URLs>, 0–5 items): Public HTTP(S) URLs; デフォルト: —
- `elements` (Array<objects>, 0–7 items): object: name, image_urls, video_url, tag, description, voice_url; デフォルト: —
- `voices` (Array<objects>, 0–3 items): object: name, audio_url; デフォルト: —
- `reference_image_file_ids` (Array<strings>): List of values; デフォルト: —
- `reference_video_file_ids` (Array<strings>): List of values; デフォルト: —
## 公開バリアント
- `kling-v4`: PixelKling V4 APIに関するよくある質問
Kling V4の料金はいくらですか?
Kling V4の料金はから $0.183214 per secondです。料金は現在の為替レートに基づいて動的に計算されます。
OpenAI SDKと互換性がありますか?
はい、APIは完全にOpenAI互換です。base_urlをhttps://getvibeapi.com/v1に変更してキーを設定するだけで、コードの他の部分はそのまま使えます。