4Z API

multimodal video

Endpoint: POST https://4zapi.com/kling/v1/videos/multi-elements

Parameters

  • Content-Type (header, string): Request body Content-Type, usually application/json
  • Authorization (header, string): Bearer API Key

Request body (application/json)

  • duration (string, required): Generated video duration (seconds) enum: 5, 10
  • edit_mode (string, required): operation type enum: addition, swap, removal, where: addition: add elementswap: swap elementremoval: remove element
  • mode (string, required): Video generation mode enum: std, pro std: standard / cost-effective pro: expert / higher quality
  • model_name (string, required): Model name enum: kling-v1-6
  • prompt (string, required): positive text prompt
  • session_id (string, required): session ID from video init; unchanged by selection edits
  • callback_url (string): Callback URL invoked on task completion
  • external_task_id (string): Custom external task ID for business-side correlation
  • image_list (array<string>): cropped reference image
  • negative_prompt (string): negative text prompt

Request example

{
  "callback_url": "",
  "duration": "5",
  "edit_mode": "",
  "external_task_id": "",
  "image_list": [],
  "mode": "std",
  "model_name": "kling-v1-6",
  "negative_prompt": "",
  "prompt": "",
  "session_id": ""
}