MODEL IDklingai:5@2
live

KlingAI 2.1 Pro

Kling AI
by Kling AI

KlingAI 2.1 Pro is a professional video generation model for creators who need precise prompt control and cinematic quality. It supports image conditioned video and start or end frame control for sharper motion, consistent subjects, and refined camera movement in 720p or 1080p.

KlingAI 2.1 Pro
Image to Video

Moonlit Ice Festival Procession

import { createClient } from '@runware/sdk'

const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()

const [result] = await client.run({
  model: 'klingai:5@2',
  positivePrompt: 'A cinematic winter festival on a frozen river at night, beginning from the provided frame image. Keep the central standard-bearer consistent while the crowd slowly parts around her. Gentle forward dolly camera movement, subtle parallax, dancers turning in coordinated arcs, long ribbon streamers swaying overhead, lantern light flickering across the ice, soft gusts lifting snow dust, distant skaters gliding across the background, breath visible in the cold air, moonlight mixing with warm lantern tones, refined realism, elegant motion, strong depth, polished cinematic atmosphere.',
  negativePrompt: 'low detail, blurry faces, warped anatomy, duplicated people, jittery motion, abrupt camera shake, oversaturated colors, flat lighting, text, watermark, logo',
  width: 1920,
  height: 1080,
  duration: 5,
  CFGScale: 0.8,
  inputs: {
    frameImages: [
      'https://assets.runware.ai/assets/inputs/d712a41a-1977-4041-b3c5-d9e1c8c620ef.jpg'
    ]
  }
})
import asyncio
import os

from runware import Runware


async def main():
    async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
        results = await client.run({
            "model": "klingai:5@2",
            "positivePrompt": "A cinematic winter festival on a frozen river at night, beginning from the provided frame image. Keep the central standard-bearer consistent while the crowd slowly parts around her. Gentle forward dolly camera movement, subtle parallax, dancers turning in coordinated arcs, long ribbon streamers swaying overhead, lantern light flickering across the ice, soft gusts lifting snow dust, distant skaters gliding across the background, breath visible in the cold air, moonlight mixing with warm lantern tones, refined realism, elegant motion, strong depth, polished cinematic atmosphere.",
            "negativePrompt": "low detail, blurry faces, warped anatomy, duplicated people, jittery motion, abrupt camera shake, oversaturated colors, flat lighting, text, watermark, logo",
            "width": 1920,
            "height": 1080,
            "duration": 5,
            "CFGScale": 0.8,
            "inputs": {
                "frameImages": [
                    "https://assets.runware.ai/assets/inputs/d712a41a-1977-4041-b3c5-d9e1c8c620ef.jpg"
                ]
            }
        })


asyncio.run(main())
curl https://api.runware.ai/v1 \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "taskType": "videoInference",
      "taskUUID": "8a19fe7d-6d42-4e88-888d-5234b8bb5a51",
      "model": "klingai:5@2",
      "positivePrompt": "A cinematic winter festival on a frozen river at night, beginning from the provided frame image. Keep the central standard-bearer consistent while the crowd slowly parts around her. Gentle forward dolly camera movement, subtle parallax, dancers turning in coordinated arcs, long ribbon streamers swaying overhead, lantern light flickering across the ice, soft gusts lifting snow dust, distant skaters gliding across the background, breath visible in the cold air, moonlight mixing with warm lantern tones, refined realism, elegant motion, strong depth, polished cinematic atmosphere.",
      "negativePrompt": "low detail, blurry faces, warped anatomy, duplicated people, jittery motion, abrupt camera shake, oversaturated colors, flat lighting, text, watermark, logo",
      "width": 1920,
      "height": 1080,
      "duration": 5,
      "CFGScale": 0.8,
      "inputs": {
        "frameImages": [
          "https://assets.runware.ai/assets/inputs/d712a41a-1977-4041-b3c5-d9e1c8c620ef.jpg"
        ]
      }
    }
  ]'
runware run klingai:5@2 \
  positivePrompt="A cinematic winter festival on a frozen river at night, beginning from the provided frame image. Keep the central standard-bearer consistent while the crowd slowly parts around her. Gentle forward dolly camera movement, subtle parallax, dancers turning in coordinated arcs, long ribbon streamers swaying overhead, lantern light flickering across the ice, soft gusts lifting snow dust, distant skaters gliding across the background, breath visible in the cold air, moonlight mixing with warm lantern tones, refined realism, elegant motion, strong depth, polished cinematic atmosphere." \
  negativePrompt="low detail, blurry faces, warped anatomy, duplicated people, jittery motion, abrupt camera shake, oversaturated colors, flat lighting, text, watermark, logo" \
  width=1920 \
  height=1080 \
  duration=5 \
  CFGScale=0.8 \
  inputs.frameImages.0=https://assets.runware.ai/assets/inputs/d712a41a-1977-4041-b3c5-d9e1c8c620ef.jpg
{
  "taskType": "videoInference",
  "taskUUID": "8a19fe7d-6d42-4e88-888d-5234b8bb5a51",
  "model": "klingai:5@2",
  "positivePrompt": "A cinematic winter festival on a frozen river at night, beginning from the provided frame image. Keep the central standard-bearer consistent while the crowd slowly parts around her. Gentle forward dolly camera movement, subtle parallax, dancers turning in coordinated arcs, long ribbon streamers swaying overhead, lantern light flickering across the ice, soft gusts lifting snow dust, distant skaters gliding across the background, breath visible in the cold air, moonlight mixing with warm lantern tones, refined realism, elegant motion, strong depth, polished cinematic atmosphere.",
  "negativePrompt": "low detail, blurry faces, warped anatomy, duplicated people, jittery motion, abrupt camera shake, oversaturated colors, flat lighting, text, watermark, logo",
  "width": 1920,
  "height": 1080,
  "duration": 5,
  "CFGScale": 0.8,
  "inputs": {
    "frameImages": [
      "https://assets.runware.ai/assets/inputs/d712a41a-1977-4041-b3c5-d9e1c8c620ef.jpg"
    ]
  }
}
Response
{
  "taskType": "videoInference",
  "taskUUID": "8a19fe7d-6d42-4e88-888d-5234b8bb5a51",
  "videoUUID": "ed433049-b81c-4091-8ff0-93a45e7be7ee",
  "videoURL": "https://vm.runware.ai/video/os/a09dlim3/ws/5/vi/ed433049-b81c-4091-8ff0-93a45e7be7ee.mp4",
  "seed": 1627315502,
  "cost": 0.3234
}