Edit and transform videos using Kling O1 Video Edit with support for reference images and elements.

Model

kuaishou/kling-o1-video-edit

Parameters

ParameterTypeRequiredDefaultDescription
video_urlstringYes-Video to reference or transform
promptstringYes-Text description
video_modestringNo"reference""reference" or "transform"
keep_audiobooleanNofalseKeep original video audio
modestringNo"std""std" or "pro"
aspect_ratiostringNo"16:9""16:9", "9:16", "1:1"
image_urlsstring[]No-Up to 4 reference image URLs
elementsElementInput[]No-Up to 4, IMAGE only (no VIDEO). Shared pool with image_urls
Note: Duration is locked to the input video length and cannot be set manually.

Elements

Elements are created automatically from your input, used during generation, then auto-deleted on completion. O1 Video Edit only supports IMAGE elements.
"elements": [
  {"name": "Hero", "description": "Woman in red jacket", "image_urls": ["front.jpg", "side.jpg"]}
]
Each element accepts:
  • name (required, max 15 chars)
  • description (required, max 100 chars)
  • image_urls (1–4 images)
Reference in prompt as @element_1, @element_2, etc.

Example - Reference Mode

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "kuaishou/kling-o1-video-edit",
    "input": {
      "prompt": "Transform into anime style",
      "video_url": "https://example.com/video.mp4",
      "video_mode": "reference",
      "mode": "pro"
    }
  }'

Example - Transform Mode with Reference Images

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "kuaishou/kling-o1-video-edit",
    "input": {
      "prompt": "Replace the person with @image_1",
      "video_url": "https://example.com/video.mp4",
      "video_mode": "transform",
      "image_urls": ["https://example.com/person.jpg"],
      "mode": "pro"
    }
  }'

Response

{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "pending"
  }
}

Pricing

ModePrice
std (720p)$0.025/s
pro (1080p)$0.035/s