Skip to main content
Generate high-quality AI videos using Kling v2.1 with flexible generation modes.

Models

ModelModeFeatures
kuaishou/kling-2.1-videostd, proImage-to-video only, end frame supported
kuaishou/kling-2.1-master-videopro onlyText-to-video + image-to-video, no end frame

Kling v2.1

Image-to-video only — start_frame_url is required.

Parameters

ParameterTypeRequiredDefaultDescription
promptstringYes-Text prompt describing the video to generate
start_frame_urlstringYes-First frame image URL
end_frame_urlstringNo-Last frame image URL
durationintegerNo55 or 10 seconds
modestringNo"pro""std" (720p) or "pro" (1080p)
sound_effectsobjectNo-Sound effects and music configuration. Omit to disable audio

Example

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "kuaishou/kling-2.1-video",
    "input": {
      "prompt": "A butterfly landing on a flower in slow motion",
      "start_frame_url": "https://example.com/butterfly.jpg",
      "duration": 5,
      "mode": "pro"
    }
  }'

Kling v2.1 Master

Supports both text-to-video and image-to-video. Pro-only mode. No end frame support.

Parameters

ParameterTypeRequiredDefaultDescription
promptstringYes-Text prompt describing the video to generate
durationintegerNo55 or 10 seconds
start_frame_urlstringNo-First frame image URL (optional)
sound_effectsobjectNo-Sound effects and music configuration. Omit to disable audio

Example - Text-to-Video

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "kuaishou/kling-2.1-master-video",
    "input": {
      "prompt": "Cinematic scene with dramatic lighting",
      "duration": 10,
      "sound_effects": {
        "music": "cinematic orchestral"
      }
    }
  }'

Example - Image-to-Video

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "kuaishou/kling-2.1-master-video",
    "input": {
      "prompt": "Cinematic scene with dramatic lighting",
      "start_frame_url": "https://example.com/start.jpg",
      "duration": 10
    }
  }'

Sound Effects

ParameterTypeDefaultDescription
soundstring""Sound effect prompt (e.g. “wind blowing, birds chirping”)
musicstring""Background music prompt (e.g. “cinematic orchestral”)
asmr_modebooleanfalseEnable ASMR-style audio generation

Response

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