kling-v4defaultKling V4 API — cara menghubungkan dan membayar
Kling 4.0 — video berdurasi 3 hingga 30 detik dengan audio bawaan dan sinkronisasi bibir: dari teks, dari frame kunci (frame pertama, terakhir, dan hingga 8 frame tengah) atau dari referensi (hingga 10 gambar, 5 video, 7 elemen, dan 3 suara). 720p/1080p. Harga per detik berdasarkan resolusi; jika menggunakan video input, durasinya dalam detik juga dikenai biaya.
Perbandingan kanal
7 hari terakhir
| Kanal | Harga |
|---|---|
Pixel kling-v4default | mulai dari $0.183214 / dtk |
Buat hasil yang Anda butuhkan
kling-v4Apa itu Kling V4
Kling 4.0 — video berdurasi 3 hingga 30 detik dengan audio bawaan dan sinkronisasi bibir: dari teks, dari frame kunci (frame pertama, terakhir, dan hingga 8 frame tengah) atau dari referensi (hingga 10 gambar, 5 video, 7 elemen, dan 3 suara). 720p/1080p. Harga per detik berdasarkan resolusi; jika menggunakan video input, durasinya dalam detik juga dikenai biaya.
Ringkasan kontrak
- Input
- text, image, video, audio
- Output
- video
- Mode
- asinkron (pekerjaan + polling)
- Polling status
- setiap 3 d · hingga 600 d
Keunggulan
- Harga: per detik
- Input: teks, gambar, video, audio
- 3 opsi yang dapat dikonfigurasi
- Satu kunci API untuk generasi media
Penggunaannya
- Klip media sosial
- Promo dan urutan judul
- Animasi gambar diam
- Storyboard dan animatik
Kontrak API
Generasi berjalan secara asinkron: buat pekerjaan, lalu lakukan polling status hingga selesai.
- Buat pekerjaan
- POST /api/media/generate
- Periksa status
- GET /api/media/jobs/{jobId}
- Input
- text, image, video, audio
- Output
- video
- Polling
- setiap 3 d · hingga 600 d
- Autentikasi
- Authorization: Bearer sk-pv-…
Contoh request
Kirim key Anda dalam header Bearer. API mengembalikan jobId untuk melakukan polling status.
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);Parameter request API
Parameter untuk request ke Kling V4 melalui GetVibe API.
promptwajibimage_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| Parameter | Jenis | Nilai | Default | Harga |
|---|---|---|---|---|
promptwajib | 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 | Teks → video | Included in the base price |
aspect_ratio | option selection | Auto (default) · 16:9 · 9:16 · 1:1 · 21:9 | Otomatis | 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) | Tidak | 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 |
Request: POST https://getvibeapi.com/api/media/generate. Harga dalam USD.
Harga Kling V4
Biaya Kling V4: dari $0.183214 per second. Harga dihitung secara dinamis berdasarkan nilai tukar saat ini, dan biaya akhir ditampilkan dalam respons API (priceRub). Pembayaran dalam USD, tanpa langganan.
Biaya request default
Tanpa parameter yang dikirim, request menggunakan nilai berikut: Resolution — 720p, Source material — Text → video, Frame format — Auto, Keep the reference video sound — No. Request tersebut berharga $0.183214.
Saluran dan harga untuk setiap kombinasi parameter
Untuk setiap saluran, harga setiap kombinasi parameter. Jumlahnya sama persis dengan biaya untuk satu generasi yang berhasil, dan sama dengan angka dalam tabel yang dapat dibaca mesin yang ditautkan di bawah.
Pixelkling-v4mulai dari $0.183214 / dtkharga pasti
| Input · Rasio aspek \ Resolusi | 720p | 1080p |
|---|---|---|
| Teks → video · Auto | $0.183214 / dtk | $0.273214 / dtk |
| Teks → video · 16:9 | $0.183214 / dtk | $0.273214 / dtk |
| Teks → video · 9:16 | $0.183214 / dtk | $0.273214 / dtk |
| Teks → video · 1:1 | $0.183214 / dtk | $0.273214 / dtk |
| Teks → video · 21:9 | $0.183214 / dtk | $0.273214 / dtk |
| Frame kunci → video · — | $0.183214 / dtk | $0.273214 / dtk |
| Referensi → video · Auto | $0.183214 / dtk | $0.273214 / dtk |
| Referensi → video · 16:9 | $0.183214 / dtk | $0.273214 / dtk |
| Referensi → video · 9:16 | $0.183214 / dtk | $0.273214 / dtk |
| Referensi → video · 1:1 | $0.183214 / dtk | $0.273214 / dtk |
| Referensi → video · 21:9 | $0.183214 / dtk | $0.273214 / dtk |
Setiap kombinasi dalam JSON: /api/media/price-table?model=kling-v4
README
Kontrak yang dapat dibaca mesin untuk Kling V4 berisi skema request, operasi, batasan, polling, dan contoh respons.
# Kling V4
Model publik: kling-v4
Buat pekerjaan: POST /api/media/generate
Periksa status: GET /api/media/jobs/{jobId}
## Parameter input
- `prompt` (text): text description; default: required
- `image_url` (URL): Public image URL; default: —
- `video_url` (URL): Public video URL; default: —
- `audio_url` (URL): Public audio URL; default: —
- `input` (option selection): Text → video (default) · Keyframes → video · Reference → video; default: Text → video
- `aspect_ratio` (option selection): Auto (default) · 16:9 · 9:16 · 1:1 · 21:9; default: Auto
- `resolution` (option selection): 720p (default) · 1080p; default: 720p
- `duration` (text / number): any value; default: —
- `last_frame_url` (text / number): any value; default: —
- `keep_original_sound` (yes/no): Yes · No (default); default: No
- `keyframe_urls` (Array<URLs>, 0–8 items): Public HTTP(S) URLs; default: —
- `image_file_id` (text): Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…); default: —
- `image_base64` (text): Alternative to image_url: the file inline, as base64 or a data: URI; default: —
- `last_frame_file_id` (text): Alternative to last_frame_url: the id of your own file from POST /v1/files (file-pv-…); default: —
- `reference_image_urls` (Array<URLs>, 0–10 items): Public HTTP(S) URLs; default: —
- `reference_video_urls` (Array<URLs>, 0–5 items): Public HTTP(S) URLs; default: —
- `elements` (Array<objects>, 0–7 items): object: name, image_urls, video_url, tag, description, voice_url; default: —
- `voices` (Array<objects>, 0–3 items): object: name, audio_url; default: —
- `reference_image_file_ids` (Array<strings>): List of values; default: —
- `reference_video_file_ids` (Array<strings>): List of values; default: —
## Varian publik
- `kling-v4`: PixelFAQ tentang API Kling V4
Berapa biaya Kling V4?
Harga Kling V4: dari $0.183214 per second. Harga dihitung secara dinamis berdasarkan nilai tukar saat ini.
Apakah kompatibel dengan OpenAI SDK?
Ya, API ini sepenuhnya kompatibel dengan OpenAI. Cukup ubah base_url menjadi https://getvibeapi.com/v1 dan atur key Anda — kode lainnya tetap sama.
Hubungkan Kling V4 sekarang
Daftar dalam satu menit, bayar sesuai penggunaan, dengan kode siap pakai di atas.
Dapatkan kunci API