Generate high-quality AI videos using Kling v2.1 with flexible generation modes.

Models

ModelResolutionFeatures
kuaishou/kling-2.1-std720pStart image only
kuaishou/kling-2.1-pro1080pStart + end image support
kuaishou/kling-2.1-master1080pHighest quality, start + end image

Parameters

ParameterTypeRequiredDescription
promptstringYesText description
start_image_urlstringYesStarting image URL
end_image_urlstringNoEnding image (pro/master only)
durationintegerNo5 or 10 seconds
resolutionstringNo720p (std) or 1080p (pro/master)
motion_idstringNoMotion preset ID
enhance_promptbooleanNoEnhance prompt
seedintegerNoSeed for reproducibility

Example - Standard Mode (720p)

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-std",
    "input": {
      "prompt": "A butterfly landing on a flower in slow motion",
      "start_image_url": "https://example.com/butterfly.jpg",
      "duration": 5,
      "resolution": "720p"
    }
  }'

Example - Pro Mode with End Image

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-pro",
    "input": {
      "prompt": "Smooth transition from start to end scene",
      "start_image_url": "https://example.com/start.jpg",
      "end_image_url": "https://example.com/end.jpg",
      "duration": 10,
      "resolution": "1080p"
    }
  }'

Example - Master 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-2.1-master",
    "input": {
      "prompt": "Cinematic scene with dramatic lighting",
      "start_image_url": "https://example.com/start.jpg",
      "duration": 10,
      "resolution": "1080p"
    }
  }'

Response

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

Resources

Get available motion presets from the Resources API:
GET /v1/resources/kuaishou/motions

Pricing

Model5s10s
Standard (720p)$0.13$0.27
Pro (1080p)$0.27$0.53
Master (1080p)$0.40$0.80