Skip to main content
POST
cURL
Gebruik dit endpoint om een audioresultaat te genereren vanuit een bronvideo.

Voordat je het aanroept

  • Verstuur video_id of video_url, maar niet allebei
  • Gebruik video_url wanneer de bronclip oorspronkelijk niet van Kling afkomstig is
  • Houd callback_url en external_task_id optioneel, tenzij je integratie ze nodig heeft

Taakverloop

1

Dien de bronvideo in

Verstuur de Kling-video_id of een toegankelijke video_url, en sla vervolgens de geretourneerde task id op.
2

Poll de taak

Ga verder met Een Kling-taak ophalen via het Kling-audioquerypad totdat de taak een eindstatus bereikt.
3

Sla de output op

Sla het uiteindelijke audio-item op als je stabiele retentie of verdere verwerking nodig hebt.
Voor de volledige parameterreferentie, zie de officiële Kling-documentatie.

Autorisaties

Authorization
string
header
vereist

Bearer token authentication. Use your CometAPI key.

Body

application/json
video_id
string
vereist

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
vereist

Error code; specific error code definition

message
string
vereist

Error message

data
object
vereist