v1

latestOpenAPI 3.1.02026-07-267724480.0 KB

Create a Kling multimodal edit task

Send the session_id, edit_mode, and final edit prompt after the selection area has already been prepared.

post/kling/v1/videos/multi-elements

Request body

session_idstring required

Selection session id returned by init-selection. Follow-up calls must use the same account and exact session id.

edit_mode'addition' | 'swap' | 'removal' required

Editing operation for the selected video region. Use addition to add an element, swap to replace a selected element, or removal to remove it.

promptstring required

Instruction describing the desired edit. Reference the source video as <<<video_1>>> and any reference image as <<<image_1>>>.

model_name'kling-v1-6'

Kling model variant for the final edit task. Omit to use kling-v1-6.

negative_promptstring

Elements to avoid in the edited result.

mode'std' | 'pro'

Generation mode. Use std or pro.

durationstring

Requested output duration in seconds.

callback_urlstring

Webhook URL to receive task status updates.

external_task_idstring

Custom task id for your own tracking. Must be unique per account.

Response

Task accepted.

codeinteger required
messagestring required