---
title: KlingAI 2.0 Master | Runware Docs
url: https://runware.ai/docs/models/klingai-2-0-master
description: KlingAI 2.0 Master for high control AI video generation
---
# KlingAI 2.0 Master

KlingAI 2.0 Master is a multimodal video model for text and image driven generation. It uses a visual language framework and a Multi Elements Editor for precise scene control. Developers can build tools for rich motion, camera control, and real time video element updates.

- **ID**: `klingai:4@3`
- **Status**: live
- **Release Date**: April 15, 2025
- **Capabilities**: Text to Video, Image to Video

## Pricing

Each generation will cost $0.1848/s for 1080p.

- **1080p · 5s**: `$0.924`

## Compatibility & Validation

`width` and `height` must be used together.

---

The following dimension combinations are supported:

| Configuration | Dimensions |
| --- | --- |
| `720p (16:9)` | `1280x720` |
| `720p (1:1)` | `720x720` |
| `720p (9:16)` | `720x1280` |

## Request Parameters

**API Options**

Platform-level options for task execution and delivery.

### [taskType](https://runware.ai/docs/models/klingai-2-0-master#request-tasktype)

- **Type**: `string`
- **Required**: true
- **Value**: `videoInference`

Identifier for the type of task being performed

### [taskUUID](https://runware.ai/docs/models/klingai-2-0-master#request-taskuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.

### [outputType](https://runware.ai/docs/models/klingai-2-0-master#request-outputtype)

- **Type**: `string`
- **Default**: `URL`

Video output type.

**Allowed values**: `URL`

### [outputFormat](https://runware.ai/docs/models/klingai-2-0-master#request-outputformat)

- **Type**: `string`
- **Default**: `MP4`

Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.

- \`MP4\`: Widely supported video container (H.264), recommended for general use.
- \`WEBM\`: Optimized for web delivery.
- \`MOV\`: QuickTime format, common in professional workflows (Apple ecosystem).

**Allowed values**: `MP4` `WEBM` `MOV`

### [outputQuality](https://runware.ai/docs/models/klingai-2-0-master#request-outputquality)

- **Type**: `integer`
- **Min**: `20`
- **Max**: `99`
- **Default**: `95`

Compression quality of the output. Higher values preserve quality but increase file size.

### [webhookURL](https://runware.ai/docs/models/klingai-2-0-master#request-webhookurl)

- **Type**: `string`
- **Format**: `URI`

Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.

**Learn more** (1 resource):

- [Webhooks](https://runware.ai/docs/platform/webhooks) (platform)

### [deliveryMethod](https://runware.ai/docs/models/klingai-2-0-master#request-deliverymethod)

- **Type**: `string`
- **Default**: `async`

Determines how the API delivers task results.

**Allowed values**:

- `async` Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse. Required for long-running tasks like video generation.

**Learn more** (1 resource):

- [Task Polling](https://runware.ai/docs/platform/task-polling) (platform)

### [uploadEndpoint](https://runware.ai/docs/models/klingai-2-0-master#request-uploadendpoint)

- **Type**: `string`
- **Format**: `URI`

Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.

**Common use cases:**

- **Cloud storage**: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.
- **CDN integration**: Upload to content delivery networks for immediate distribution.

```text
// S3 presigned URL for secure upload
https://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600

// Google Cloud Storage presigned URL
https://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789

// Custom storage endpoint
https://storage.example.com/uploads/generated-image.jpg
```

The content data will be sent as the request body to the specified URL when generation is complete.

### [safety](https://runware.ai/docs/models/klingai-2-0-master#request-safety)

- **Path**: `safety.checkContent`
- **Type**: `object (2 properties)`

Content safety checking configuration for video generation.

#### [checkContent](https://runware.ai/docs/models/klingai-2-0-master#request-safety-checkcontent)

- **Path**: `safety.checkContent`
- **Type**: `boolean`
- **Default**: `false`

Enable or disable content safety checking. When enabled, defaults to `fast` mode.

#### [mode](https://runware.ai/docs/models/klingai-2-0-master#request-safety-mode)

- **Path**: `safety.mode`
- **Type**: `string`
- **Default**: `none`

Safety checking mode for video generation.

**Allowed values**:

- `none` Disables checking.
- `fast` Checks key frames.
- `full` Checks all frames.

### [ttl](https://runware.ai/docs/models/klingai-2-0-master#request-ttl)

- **Type**: `integer`
- **Min**: `60`

Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.

### [includeCost](https://runware.ai/docs/models/klingai-2-0-master#request-includecost)

- **Type**: `boolean`
- **Default**: `false`

Include task cost in the response.

### [numberResults](https://runware.ai/docs/models/klingai-2-0-master#request-numberresults)

- **Type**: `integer`
- **Min**: `1`
- **Max**: `4`
- **Default**: `1`

Number of results to generate. Each result uses a different seed, producing variations of the same parameters.

**Inputs**

Input resources for the task (images, audio, etc). These must be nested inside the \`inputs\` object.

### [frameImages](https://runware.ai/docs/models/klingai-2-0-master#request-inputs-frameimages)

- **Path**: `inputs.frameImages`
- **Type**: `array of strings or objects`

An array of frame-specific image inputs to guide video generation. Each item can be either a plain image input (UUID, URL, Data URI, or Base64) or an object that pairs an image with a target frame position.

The `frameImages` parameter allows you to constrain specific frames within the video sequence, ensuring that particular visual content appears at designated points. This is different from `referenceImages`, which provide overall visual guidance without constraining specific timeline positions.

When the `frame` parameter is omitted, automatic distribution rules apply:

- **1 image**: Used as the first frame.
- **2 images**: First and last frames.

**Examples**:

**Shorthand format:** When you don't need to specify a frame position, you can pass a plain image input directly.

```json
"frameImages": [
  "aac49721-1964-481a-ae78-8a4e29b91402"
]
```

**Object format:** When you need to specify a frame position, use an object with `image` and `frame`.

```json
"frameImages": [
  {
    "image": "aac49721-1964-481a-ae78-8a4e29b91402",
    "frame": "first"
  }
]
```

**First and last frames:** With two images, they automatically become the first and last frames of the video sequence. You can mix shorthand and object formats.

```json
"frameImages": [
  "aac49721-1964-481a-ae78-8a4e29b91402",
  {
    "image": "3ad204c3-a9de-4963-8a1a-c3911e3afafe",
    "frame": "last"
  }
]
```

**Format 1: string[]**:

- **Type**: `string`

Image input (UUID, URL, Data URI, or Base64).

**Format 2: object[]**:

#### [image](https://runware.ai/docs/models/klingai-2-0-master#request-inputs-frameimages-format-2-image)

- **Path**: `inputs.frameImages.image`
- **Type**: `string`
- **Required**: true

Image input (UUID, URL, Data URI, or Base64).

#### [frame](https://runware.ai/docs/models/klingai-2-0-master#request-inputs-frameimages-format-2-frame)

- **Path**: `inputs.frameImages.frame`
- **Type**: `object`

Target frame position for the image. Supports first and last frame.

**Allowed values**:

- `first` First frame of the video.
- `last` Last frame of the video.
- `0` Frame index 0 (first frame).
- `-1` Frame index -1 (last frame).

**Generation Parameters**

Core parameters for controlling the generated content.

### [model](https://runware.ai/docs/models/klingai-2-0-master#request-model)

- **Type**: `string`
- **Required**: true
- **Value**: `klingai:4@3`

Identifier of the model to use for generation.

**Learn more** (3 resources):

- [Text To Image: Model Selection The Foundation Of Generation](https://runware.ai/docs/guides/text-to-image#model-selection-the-foundation-of-generation) (guide)
- [Image Inpainting: Model Specialized Inpainting Models](https://runware.ai/docs/guides/image-inpainting#model-specialized-inpainting-models) (guide)
- [Image Outpainting: Other Critical Parameters](https://runware.ai/docs/guides/image-outpainting#other-critical-parameters) (guide)

### [positivePrompt](https://runware.ai/docs/models/klingai-2-0-master#request-positiveprompt)

- **Type**: `string`
- **Required**: true
- **Min**: `2`
- **Max**: `2500`

Text prompt describing elements to include in the generated output.

**Learn more** (2 resources):

- [Text To Image: Prompts Guiding The Generation](https://runware.ai/docs/guides/text-to-image#prompts-guiding-the-generation) (guide)
- [Image Outpainting: Other Critical Parameters](https://runware.ai/docs/guides/image-outpainting#other-critical-parameters) (guide)

### [negativePrompt](https://runware.ai/docs/models/klingai-2-0-master#request-negativeprompt)

- **Type**: `string`
- **Min**: `2`
- **Max**: `2500`

Prompt to guide what to exclude from generation. Ignored when guidance is disabled (CFGScale ≤ 1).

**Learn more** (1 resource):

- [Text To Image: Prompts Guiding The Generation](https://runware.ai/docs/guides/text-to-image#prompts-guiding-the-generation) (guide)

### [width](https://runware.ai/docs/models/klingai-2-0-master#request-width)

- **Type**: `integer`
- **Paired with**: height

Width of the generated media in pixels.

**Learn more** (2 resources):

- [Image To Image: Dimensions Changing Aspect Ratio](https://runware.ai/docs/guides/image-to-image#dimensions-changing-aspect-ratio) (guide)
- [Image Outpainting: Dimensions Critical For Outpainting](https://runware.ai/docs/guides/image-outpainting#dimensions-critical-for-outpainting) (guide)

### [height](https://runware.ai/docs/models/klingai-2-0-master#request-height)

- **Type**: `integer`
- **Paired with**: width

Height of the generated media in pixels.

**Learn more** (2 resources):

- [Image To Image: Dimensions Changing Aspect Ratio](https://runware.ai/docs/guides/image-to-image#dimensions-changing-aspect-ratio) (guide)
- [Image Outpainting: Dimensions Critical For Outpainting](https://runware.ai/docs/guides/image-outpainting#dimensions-critical-for-outpainting) (guide)

### [duration](https://runware.ai/docs/models/klingai-2-0-master#request-duration)

- **Type**: `float`
- **Default**: `5`

Length of the generated video in seconds. The total number of frames produced is determined by duration multiplied by the model's frame rate (fps).

**Allowed values**: `5` `10`

### [CFGScale](https://runware.ai/docs/models/klingai-2-0-master#request-cfgscale)

- **Type**: `float`
- **Min**: `0`
- **Max**: `1`
- **Step**: `0.01`
- **Default**: `0.5`

Guidance scale representing how closely the output will resemble the prompt. Higher values produce results more aligned with the prompt.

**Learn more** (1 resource):

- [Text To Image: Cfg Scale Balancing Creativity And Control](https://runware.ai/docs/guides/text-to-image#cfg-scale-balancing-creativity-and-control) (guide)

## Response Parameters

### [taskType](https://runware.ai/docs/models/klingai-2-0-master#response-tasktype)

- **Type**: `string`
- **Required**: true
- **Value**: `videoInference`

Type of the task.

### [taskUUID](https://runware.ai/docs/models/klingai-2-0-master#response-taskuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID of the task.

### [videoUUID](https://runware.ai/docs/models/klingai-2-0-master#response-videouuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID of the output video.

### [videoURL](https://runware.ai/docs/models/klingai-2-0-master#response-videourl)

- **Type**: `string`
- **Format**: `URI`

URL of the output video.

### [videoBase64Data](https://runware.ai/docs/models/klingai-2-0-master#response-videobase64data)

- **Type**: `string`

Base64-encoded video data.

### [videoDataURI](https://runware.ai/docs/models/klingai-2-0-master#response-videodatauri)

- **Type**: `string`
- **Format**: `URI`

Data URI of the output video.

### [seed](https://runware.ai/docs/models/klingai-2-0-master#response-seed)

- **Type**: `integer`

The seed used for generation. If none was provided, shows the randomly generated seed.

### [NSFWContent](https://runware.ai/docs/models/klingai-2-0-master#response-nsfwcontent)

- **Type**: `boolean`

Flag indicating if NSFW content was detected.

### [cost](https://runware.ai/docs/models/klingai-2-0-master#response-cost)

- **Type**: `float`

Task cost in USD. Present when `includeCost` is set to `true` in the request.

## Examples

### Rainy Night Market Lanterns (Text to Video)

[Watch video](https://assets.runware.ai/examples/klingai-2-0-master/9ed48bd5-cfa5-4f52-9429-39d04fac7794.mp4)

**Request**:

```json
{
  "taskType": "videoInference",
  "taskUUID": "8372d289-e02a-460c-93ef-4cc7999ded93",
  "model": "klingai:4@3",
  "positivePrompt": "A bustling night market in a narrow old city lane during a warm rainstorm, strings of paper lanterns glowing amber and jade above crowded food stalls, steam rising from iron grills, puddles rippling under footsteps, a noodle vendor tossing noodles high in the air, a child in a yellow rain cape spinning under an umbrella, a sleepy striped cat weaving between stools, shoppers carrying patterned bags, handwritten signs swaying gently, polished wet stone reflecting colorful light. Camera begins with a slow forward glide at street level, then subtle pan to reveal depth and layered activity. Rich cinematic detail, expressive human motion, atmospheric steam, rain streaks, lively yet intimate mood, realistic lighting, fine textures, dynamic depth, coherent motion throughout.",
  "negativePrompt": "low detail, blurry faces, distorted anatomy, extra limbs, duplicated people, frozen motion, flickering objects, unreadable structure, washed out colors, oversharpened edges, text artifacts, watermark, logo",
  "width": 1280,
  "height": 720,
  "duration": 10,
  "CFGScale": 0.7
}
```

**Response**:

```json
{
  "taskType": "videoInference",
  "taskUUID": "8372d289-e02a-460c-93ef-4cc7999ded93",
  "videoUUID": "7a0289b9-7267-4975-804b-32315d3ff8b9",
  "videoURL": "https://vm.runware.ai/video/os/a04d20/ws/5/vi/7a0289b9-7267-4975-804b-32315d3ff8b9.mp4",
  "seed": 1392605743,
  "cost": 1.848
}
```

---

### Lantern Market in Rain (Image to Video)

[Watch video](https://assets.runware.ai/examples/klingai-2-0-master/8ce3d90c-b4f1-49a4-bc67-aeddad9b01e1.mp4)

**Request**:

```json
{
  "taskType": "videoInference",
  "taskUUID": "c26f3fea-aa47-4043-b1d7-30778e150d3b",
  "model": "klingai:4@3",
  "positivePrompt": "Animate the provided first frame into a vivid cinematic sequence: gentle rainfall continuing through the scene, paper lanterns swaying softly in the breeze, steam curling upward from food stalls, puddles shimmering with moving reflections, fabric banners fluttering, umbrella tops bobbing as pedestrians pass slowly through the market, a faint river mist in the distance, subtle parallax depth, natural realistic motion, polished live-action look, atmospheric and immersive.",
  "negativePrompt": "flicker, warped faces, extra limbs, duplicated people, jittery camera, abrupt motion, oversaturated colors, text, watermark, logo, low detail, heavy blur, frame tearing",
  "width": 1280,
  "height": 720,
  "duration": 5,
  "CFGScale": 0.6,
  "inputs": {
    "frameImages": [
      {
        "image": "https://assets.runware.ai/assets/inputs/f2bfcf53-fdd6-4ef5-9648-9d4f1f294f40.jpg",
        "frame": "first"
      }
    ]
  }
}
```

**Response**:

```json
{
  "taskType": "videoInference",
  "taskUUID": "c26f3fea-aa47-4043-b1d7-30778e150d3b",
  "videoUUID": "d495587b-4af8-434d-b3a4-0120555ab1bc",
  "videoURL": "https://vm.runware.ai/video/os/a01d21/ws/5/vi/d495587b-4af8-434d-b3a4-0120555ab1bc.mp4",
  "seed": 1783629822,
  "cost": 0.924
}
```

---

### Abandoned Aqueduct Herbarium Voyage (Image to Video)

[Watch video](https://assets.runware.ai/examples/klingai-2-0-master/45d24887-aa5e-413b-bedf-6e94926db626.mp4)

**Request**:

```json
{
  "taskType": "videoInference",
  "taskUUID": "53f21d00-4522-41c7-9d42-43d59818ed37",
  "model": "klingai:4@3",
  "positivePrompt": "Animate the supplied first-frame image into a serene cinematic sequence. A lone botanist glides through an immense ruined aqueduct transformed into a floating herbarium. The skiff moves slowly forward through shallow reflective water. Fern fronds sway gently, thin vines tremble, seed fluff drifts across the air, loose pages in a field journal flutter, robe hems and ribbons shift softly, tiny water ripples spread from the boat, dust motes glow in angled morning light through fractured arches. Camera performs a gradual forward tracking move with slight parallax, preserving composition and subject identity from the input image. Emphasize elegant natural motion, atmospheric depth, detailed stone textures, soft haze, and calm exploratory mood.",
  "negativePrompt": "crowd, city street, carnival, ferris wheel, market stalls, heavy storm, night scene, neon signs, fast action, combat, horror, distorted anatomy, flicker, jitter, abrupt camera shake, oversaturated colors, low detail, blur, text, watermark, duplicate subjects",
  "duration": 5,
  "CFGScale": 0.5,
  "inputs": {
    "frameImages": [
      {
        "image": "https://assets.runware.ai/assets/inputs/a6d5ab14-6d95-4b48-8cd8-9c82b8ee37a1.jpg",
        "frame": "first"
      }
    ]
  }
}
```

**Response**:

```json
{
  "taskType": "videoInference",
  "taskUUID": "53f21d00-4522-41c7-9d42-43d59818ed37",
  "videoUUID": "e3195e16-23fb-4175-9bda-28253e603db7",
  "videoURL": "https://vm.runware.ai/video/os/a05d22/ws/5/vi/e3195e16-23fb-4175-9bda-28253e603db7.mp4",
  "seed": 972428343,
  "cost": 0.924
}
```

---

### Autumn Funfair Ferris Wheel (Image to Video)

[Watch video](https://assets.runware.ai/examples/klingai-2-0-master/9b02985a-cf7c-4068-b3a1-62333b7bd61b.mp4)

**Request**:

```json
{
  "taskType": "videoInference",
  "taskUUID": "18e793b3-8e61-4101-9ac1-1dea2b161fba",
  "model": "klingai:4@3",
  "positivePrompt": "Animate the supplied fairground image into a cinematic wide shot at twilight. The Ferris wheel turns slowly with glowing bulbs pulsing gently, carousel lights shimmer in the background, visitors stroll naturally and pause near the ticket booth, loose paper streamers flutter in the breeze, dry leaves skitter across the ground, faint haze drifts through the lights, and the camera makes a smooth subtle forward glide with slight parallax for depth. Emphasize nostalgic atmosphere, realistic motion, crisp detail, and coherent subject continuity.",
  "negativePrompt": "flicker, warped faces, duplicated people, broken limbs, jittery motion, abrupt camera shake, deformation, text, watermark, logo, oversaturation, blur, low detail",
  "width": 1280,
  "height": 720,
  "duration": 5,
  "CFGScale": 0.5,
  "inputs": {
    "frameImages": [
      {
        "image": "https://assets.runware.ai/assets/inputs/9eed605d-b036-4a32-a693-60d0e56f67ec.jpg",
        "frame": "first"
      }
    ]
  }
}
```

**Response**:

```json
{
  "taskType": "videoInference",
  "taskUUID": "18e793b3-8e61-4101-9ac1-1dea2b161fba",
  "videoUUID": "e62f4449-dfd3-4daf-a5d5-c6d5090bb7bb",
  "videoURL": "https://vm.runware.ai/video/os/a12d13/ws/5/vi/e62f4449-dfd3-4daf-a5d5-c6d5090bb7bb.mp4",
  "seed": 1182187806,
  "cost": 0.924
}
```