tutorialklingimage-to-video

Getting Started with Kling 1.6 Video Generation

2026-03-12

What is Kling 1.6?

Kling 1.6 is Kuaishou's latest image-to-video model, capable of generating 5-second and 10-second video clips with remarkable motion quality and temporal consistency.

Supported Task Types

TaskDescription
Image to VideoAnimate a still image with natural motion
Text to VideoGenerate video from a text description

Generating Your First Video

import requests
import time
 
# Step 1: Submit generation task
response = requests.post(
    "https://api.linkai.com/v1/generate",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={
        "model": "kling-1.6",
        "task_type": "image-to-video",
        "image_url": "https://example.com/your-image.jpg",
        "prompt": "gentle ocean waves, cinematic",
        "duration": 5
    }
)
task_id = response.json()["data"]["task_id"]
 
# Step 2: Poll for result
while True:
    status = requests.get(
        f"https://api.linkai.com/v1/tasks/{task_id}",
        headers={"Authorization": "Bearer YOUR_API_KEY"}
    ).json()["data"]
 
    if status["status"] == "success":
        print("Video URL:", status["output"]["video_url"])
        break
    elif status["status"] == "failed":
        print("Error:", status["error"])
        break
 
    time.sleep(3)

Video generation typically takes 30–90 seconds. The LinkAI Playground lets you test Kling without writing any code.

Tips for Better Results

  • Use high-quality, well-lit source images for image-to-video
  • Keep prompts focused on motion description: "gentle sway", "slow zoom out", "camera pan left"
  • 5-second clips are faster and cheaper — great for prototyping before committing to 10s

Related Posts