Skip to main content
Generate high-quality AI videos using Kling v2.6 with text-to-video, start/end frame, and voice support.

Model

kuaishou/kling-2.6-video

Parameters

ParameterTypeRequiredDefaultDescription
promptstringYes-Text prompt describing the video to generate
modestringNo"pro""std" (720p) or "pro" (1080p)
durationintegerNo55 or 10 seconds
native_audiobooleanNofalseEnable AI audio generation. Required for voices, pro mode only
start_frame_urlstringNo-First frame image URL. Omit for text-to-video
end_frame_urlstringNo-Last frame image URL (not available with native_audio)
voicesarrayNo-Voice references for character speech (max 5, requires native_audio)
Each voice accepts:
ParameterTypeDescription
voice_idintegerOfficial voice ID (use GET /v1/resources/kuaishou/kling/voices to list). Mutually exclusive with voice_url
voice_urlstringCustom voice MP3 URL. Mutually exclusive with voice_id

Constraints

  • native_audio requires mode: "pro"
  • end_frame_url is not available when native_audio is enabled
  • voices require native_audio to be enabled

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.6-video",
    "input": {
      "prompt": "A cinematic drone shot over a misty forest at dawn",
      "duration": 10,
      "mode": "pro"
    }
  }'

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.6-video",
    "input": {
      "prompt": "Animate this scene with gentle movement",
      "start_frame_url": "https://example.com/my-image.jpg",
      "duration": 5
    }
  }'

Example - With Voice

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.6-video",
    "input": {
      "prompt": "Person speaking to the camera about their day",
      "start_frame_url": "https://example.com/person.jpg",
      "duration": 10,
      "mode": "pro",
      "native_audio": true,
      "voices": [
        { "voice_url": "https://example.com/voice-sample.mp3" }
      ]
    }
  }'

Response

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