Skip to main content

Documentation Index

Fetch the complete documentation index at: https://runcrate.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Kling covers the full video pipeline: text-to-video, motion control, avatar creation, and lip sync. All models accessible through the Runcrate video API.

Available models

ModelTypeStrengths
Kling v3Text/Image-to-videoBest human motion, cinematic, 3-15s
Kling v2.6Text/Image-to-videoFast, cost-effective, 3-10s
Kling v3 Motion ControlControlled videoCamera path and subject motion
Kling Avatar v2AvatarTalking head from a single photo
Kling Lip SyncAudio-drivenSync lips to any audio track

Text-to-video

from runcrate import Runcrate

client = Runcrate(api_key="rc_live_YOUR_API_KEY")
job = client.models.generate_video_and_save(
    "street-scene.mp4",
    model="kuaishou/kling-v3-video",
    prompt="Person walking through rainy Tokyo at night, neon reflections on wet pavement",
    duration=8,
    on_status=lambda j: print(f"  {j.status}..."),
)

All examples below reuse the same client.

Image-to-video

client.models.generate_video_and_save(
    "product-spin.mp4", model="kuaishou/kling-v3-video",
    prompt="Slowly rotate the product 360 degrees on a turntable",
    image="./product-photo.png", duration=6,
    on_status=lambda j: print(f"  {j.status}..."),
)

Motion control

client.models.generate_video_and_save(
    "dolly-zoom.mp4", model="kuaishou/kling-v3-motion-control",
    prompt="A castle on a hilltop at sunset, dramatic clouds",
    camera_motion="dolly_zoom_in", duration=6,
    on_status=lambda j: print(f"  {j.status}..."),
)

Avatar generation

Create a talking-head video from a single reference photo:
client.models.generate_video_and_save(
    "avatar-intro.mp4", model="kuaishou/kling-avatar-v2",
    prompt="Person introduces themselves and waves, friendly, office background",
    image="./headshot.jpg", duration=8,
    on_status=lambda j: print(f"  {j.status}..."),
)

Lip sync

client.models.generate_video_and_save(
    "synced-speaker.mp4", model="kuaishou/kling-lip-sync",
    prompt="Natural lip sync with subtle head movements",
    image="./speaker.jpg", audio="./narration.mp3",
    on_status=lambda j: print(f"  {j.status}..."),
)

Tips

  • v3 vs v2.6. v3 has better quality and human motion. v2.6 is faster and cheaper.
  • Duration affects cost. Start with 3-4s clips to test prompts.
  • Motion control. dolly_zoom_in, dolly_zoom_out, pan_left, pan_right, tilt_up, tilt_down, orbit.