Terapkan efek video Kling
Gunakan API Kling Video Effects melalui CometAPI untuk menerapkan efek bergaya pada video dengan POST /kling/v1/videos/effects dan mengontrol parameter efek.
Pilih scene efek
- Efek gambar tunggal menggunakan
effect_sceneplusinput.imagedaninput.duration - Efek interaksi dua orang menggunakan
effect_sceneplusinput.imagesdengan tepat dua gambar - Gambar input harus memenuhi persyaratan piksel Kling; thumbnail yang sangat kecil akan ditolak oleh task generasi
- Bentuk aset yang tepat bergantung pada efek yang dipilih, tetapi request selalu membungkus pengaturan efek di dalam
input - Gunakan scene efek yang saat ini tersedia di Kling; CometAPI menolak nilai
effect_sceneyang tidak dikenal - Hindari bergantung pada daftar enum publik yang tetap; ketersediaan efek berubah menurut track model dan keluarga scene
Alur task
Kirim request efek
effect_scene beserta objek input yang sesuai dan simpan id task yang dikembalikan.Poll task
Simpan aset final
Otorisasi
Bearer token authentication. Use your CometAPI key.
Body
Kling preset effect scene. Single-image effects use input.image; two-person interaction effects use input.images with exactly two images.
Effect-specific input payload. Single-image scenes require image and duration; two-person interaction scenes require exactly two images and duration.
- Single-image effect input
- Two-person interaction effect input
Webhook URL for task status notifications. The server sends a callback when the task status changes.
Optional user-defined task ID for your own tracking. Does not replace the system-generated task ID. Must be unique per account.