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

# Kling 2.1 Master t2v

> Kuaishou's Kling 2.1 Master t2v model. Generate videos from text prompts with camera control, multi-shot storyboarding, and sound generation.

Kling 2.1 Master t2v is a text-to-video generation model from Kuaishou's Kling series, available through Anyfast API. Create videos from text descriptions with customizable camera movements, multi-shot storyboarding, and optional sound generation.

## Key capabilities

* **Text-to-Video** — Generate videos purely from text prompts
* **Camera Control** — Preset and custom camera movements (pan, tilt, zoom, roll)
* **Multi-Shot** — Create up to 6 storyboard shots with custom prompts and durations
* **Sound Generation** — Optionally generate synchronized sound (V2.6+ only)
* **Standard & Pro Modes** — Choose between cost-effective standard or high-quality professional output

## Quick example

<CodeGroup>
  ```bash cURL theme={null}
  curl https://www.anyfast.ai/kling/v1/videos/text2video \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "model_name": "kling-v2-1-master",
      "prompt": "A cat walking through a field of sunflowers at golden hour",
      "duration": "5",
      "mode": "std",
      "aspect_ratio": "16:9"
    }'
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://www.anyfast.ai/kling/v1/videos/text2video",
      headers={
          "Authorization": "Bearer YOUR_API_KEY",
          "Content-Type": "application/json"
      },
      json={
          "model_name": "kling-v2-1-master",
          "prompt": "A cat walking through a field of sunflowers at golden hour",
          "duration": "5",
          "mode": "std",
          "aspect_ratio": "16:9"
      }
  )

  task = response.json()
  print(f"Task ID: {task['task_id']}")
  ```
</CodeGroup>

## Parameters

| Parameter         | Type    | Required | Description                                |
| ----------------- | ------- | -------- | ------------------------------------------ |
| `model_name`      | string  | No       | Must be `kling-v2-1-master`                |
| `prompt`          | string  | Yes      | Text prompt (max 2500 chars)               |
| `negative_prompt` | string  | No       | Negative prompt (max 2500 chars)           |
| `mode`            | string  | No       | `std` or `pro`. Default: `std`             |
| `duration`        | string  | No       | `3`–`15` seconds. Default: `5`             |
| `aspect_ratio`    | string  | No       | `16:9`, `9:16`, or `1:1`. Default: `16:9`  |
| `cfg_scale`       | float   | No       | Prompt relevance `0`–`1`. Default: `0.5`   |
| `multi_shot`      | boolean | No       | Enable multi-shot storyboarding            |
| `sound`           | string  | No       | `on` or `off`. Default: `off` (V2.6+ only) |
| `camera_control`  | object  | No       | Camera movement control                    |
| `callback_url`    | string  | No       | Webhook URL for notifications              |

<Card title="API Reference" icon="code" href="/api-reference/model-api/kuaishou/kling-v2-1-master-t2v">
  View the interactive API playground for Kling 2.1 Master t2v.
</Card>

<script src="/feedback.js" />
