Skip to main content
POST
cURL
Gunakan endpoint ini untuk menghasilkan keluaran audio dari video sumber.

Sebelum Anda memanggilnya

  • Kirim video_id atau video_url, tetapi jangan keduanya
  • Gunakan video_url saat klip sumber awalnya tidak berasal dari Kling
  • Biarkan callback_url dan external_task_id tetap opsional kecuali integrasi Anda membutuhkannya

Alur tugas

1

Kirim video sumber

Kirim video_id Kling atau video_url yang dapat diakses, lalu simpan id tugas yang dikembalikan.
2

Poll tugas

Lanjutkan dengan Dapatkan tugas Kling menggunakan path query audio Kling hingga tugas mencapai status terminal.
3

Simpan output

Simpan aset audio akhir jika Anda memerlukan retensi yang stabil atau pemrosesan downstream.
Untuk referensi parameter lengkap, lihat dokumentasi resmi Kling.

Otorisasi

Authorization
string
header
wajib

Bearer token authentication. Use your CometAPI key.

Body

application/json
video_id
string
wajib

ID of a Kling-generated video. Only videos created within the last 30 days with a duration of 3–20 seconds are supported. Mutually exclusive with video_url — exactly one must be provided.

external_task_id
string

Optional user-defined task ID for your own tracking. Does not replace the system-generated task ID. Must be unique per account.

callback_url
string

Webhook URL for task status notifications. The server sends a callback when the task status changes.

video_url
string

Accessible URL of the source video. Accepted formats: MP4, MOV. Max 100 MB, 720p or 1080p resolution, duration 3–20 seconds. Mutually exclusive with video_id — exactly one must be provided.

Respons

200 - application/json

Task accepted.

code
integer
wajib

Error code; specific error code definition

message
string
wajib

Error message

data
object
wajib