> ## Documentation Index
> Fetch the complete documentation index at: https://docs.unifically.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Kling 2.6

> Generate videos with Kling 2.6 and voice support. See supported inputs, parameters, pricing, response fields, and API examples.

Generate high-quality AI videos using Kling 2.6 with text-to-video, start/end frame, and voice support.

## Model

```
kuaishou/kling-2.6-video
```

## Parameters

| Parameter         | Type    | Required | Default | Description                                                           |
| ----------------- | ------- | -------- | ------- | --------------------------------------------------------------------- |
| `prompt`          | string  | **Yes**  | -       | Text prompt describing the video to generate                          |
| `mode`            | string  | No       | `"pro"` | `"std"` (720p) or `"pro"` (1080p)                                     |
| `duration`        | integer | No       | `5`     | `5` or `10` seconds                                                   |
| `native_audio`    | boolean | No       | `false` | Enable AI audio generation. Required for voices, pro mode only        |
| `start_frame_url` | string  | No       | -       | First frame image URL. Omit for text-to-video                         |
| `end_frame_url`   | string  | No       | -       | Last frame image URL (not available with native\_audio)               |
| `voices`          | array   | No       | -       | Voice references for character speech (max 5, requires native\_audio) |
| `nsfw_check`      | boolean | No       | `true`  | Check uploaded media inputs for NSFW content                          |

Each voice accepts:

| Parameter    | Type    | Description                                                                                                                                               |
| ------------ | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `voice_id`   | integer | Official voice ID (use [GET /v1/resources/kuaishou/kling/voices](/api-reference/resources#get-kling-voices) to list). Mutually exclusive with `voice_url` |
| `voice_url`  | string  | Custom voice MP3 URL. Mutually exclusive with `voice_id`                                                                                                  |
| `nsfw_check` | boolean | Check uploaded media inputs for NSFW content. Default: `true`                                                                                             |

## 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

```bash theme={null}
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

```bash theme={null}
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

```bash theme={null}
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

```json theme={null}
{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "processing"
  }
}
```

<Note>
  **Volume discounts** are available for almost all models. Reach out at [contact@unifically.com](mailto:contact@unifically.com) to discuss custom pricing.
</Note>
