Kling AI
Video dari teks, gambar dan omni dengan Kling 4.0, 3.0 dan 2.x sebagai task yang di-poll dengan unduhan, query task dan paket resource (dibayar per detik, callback hanya lewat node)
Tentang
Plugin Graphrt untuk Kling AI API resmi (host global https://api-singapore.klingai.com). Plugin ini membuat video dengan model Kling 4.0, 4.0 Flash, 3.0, 3.0 Turbo, O1 dan 2.x dari teks, gambar atau referensi, menunggu setiap task, lalu menyimpan hasilnya ke disk. Plugin ini juga bisa meng-query task (untuk polling di beberapa run workflow) dan membaca paket resource kamu.
Yang bisa dilakukan
- text_to_video: prompt to video, resolution, aspect ratio, duration (Kling 4.0 up to 30 s), native audio and multi-shot where the model supports them
- image_to_video: first, middle and last frame images (contents) to video
- omni_video: prompt plus reference images, videos or elements (aspect ratio may be adaptive)
- text_to_video_with_callback, image_to_video_with_callback, omni_video_with_callback (node only): the same, plus a callback_url that Kling notifies on every status change
- get_tasks: status, outputs, usage and billing of up to 50 tasks by id (or by your external_task_id), saves the outputs of finished tasks
- list_tasks: tasks in a time window with status / product type filters (cursor pagination)
- get_account_costs: resource packages and their remaining quantity
- api_request: any other endpoint (GET only for agents), e.g. image generation via a workflow node
Aksi
Setiap aksi adalah langkah yang bisa ditambahkan ke workflow. Agent juga bisa memakai sebagian besar aksi sebagai tool.
- Text to video
kling.text_to_video - Image to video
kling.image_to_video - Omni video
kling.omni_video - Text to video (callback)
kling.text_to_video_with_callback - Image to video (callback)
kling.image_to_video_with_callback - Omni video (callback)
kling.omni_video_with_callback - Get tasks
kling.get_tasks - List tasks
kling.list_tasks - Resource packages
kling.get_account_costs - Kling AI API request
kling.api_request
Pengaturan
Graphrt menyalakan plugin dengan environment yang bersih. Hanya nilai ini yang sampai ke plugin, dan secret tidak masuk log.
-
KLING_API_KEYWajibAPI key from the Kling AI developer console -
KLING_OUTPUT_DIROpsionalAbsolute directory for generated files. Unset: nothing is saved and saved_files is [] (Kling keeps results for 30 days)
Cara memakainya
Di Graphrt Desktop
- Buka Plugins dan cari Kling AI.
- Klik Install lalu setujui.
- Ikuti langkah setup di halaman plugin, lalu tempel pengaturan yang dibutuhkan.
- Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Dengan CLI
$ graphrt plugin install kling - id: clip
type: kling.text_to_video
model: kling-4.0
prompt: "A man in a white shirt walks along a beach at sunset, cinematic, the camera follows from behind"
duration: 10
resolution: 1080p
aspect_ratio: "16:9"
external_task_id: "{{#start.order_id#}}"