Source: https://ailoot.ai/models/en/kling-v2-master/
Canonical: https://ailoot.ai/models/en/kling-v2-master/
Language: en

# Kling v2 Master

[Markdown](https://ailoot.ai/models/en/kling-v2-master/index.md) · [JSON](https://ailoot.ai/models/en/kling-v2-master/facts.json)

## [Kling v2 Master](https://ailoot.ai/models/en/kling-v2-master/)

Kling v2 Master creates short video scenes from text or an image-led brief. Its documented model entry lists five- and ten-second duration choices and several frame shapes for building a shot around a clear action and ending.

- [**Ailoot Ultra · Video** `POST /v1/videos` `kling-v2-master`](https://ailoot.ai/models/en/kling-v2-master/#method-0)

About the model

This description covers the model’s capabilities. Available in Ailoot inputs, outputs and options are listed for the selected method below.

Kling v2 Master is a Kling video model with text-to-video and image-to-video capability in the documented catalogue. Use a written brief to develop a new scene, or start from an image that establishes its appearance. Give each shot a defined purpose, such as introducing a location, showing an interaction or revealing an object detail.

For a new scene, describe the main subject, its surroundings and the movement the viewer should follow. Include important physical relationships: an object on a table, a person beside a doorway or a vehicle approaching a bend. These details make the intended event easier to assess in the completed video.

For an image-led shot, prepare the reference with the desired subject and framing. Keep distinctive edges, facial features and materials visible. Describe what moves from that view and what the final composition should contain. Use the original image when checking whether the subject remains coherent throughout the sequence.

The documented model entry lists five- and ten-second durations. Plan the action so its opening, development and ending fit the selected shot length. A brief gesture and a camera-led reveal have different pacing needs. Check the actual clip for an ending that can be used in the intended edit.

The documented model controls include std and pro modes, alongside landscape, portrait and square framing. Select the options offered for the workflow and preserve their values with the result. Frame the important subject for the destination so its decisive action remains visible during movement.

Describe camera motion through its relationship to the subject. A camera passing an object reveals different information from an object turning in front of a fixed camera. State the intended movement clearly and keep it connected to the visual feature or story beat the audience needs to notice.

Inspect the complete sequence for continuity, interactions and timing. Watch the subject’s shape, contact with nearby surfaces and position within the scene. For a character, check the face, hands and clothing across the action. For an object, check its outline and material appearance as the view changes.

Retain the finished video, prompt, reference and settings as one shot record. Compare candidates using the same viewing conditions and the same visual goal. When revising, identify the observed mismatch, preserve the useful parts of the scene and change the instruction that addresses that specific problem.

**Ailoot Ultra · Video** `POST /v1/videos` `kling-v2-master`

[`kling-v2-master`](https://ailoot.ai/models/en/#m=kling-v2-master&route=Ultra&caller=kling-v2-master&fmt=videos)

Kling /`kling-v2-master`

### Overview

Kling v2 Master creates short video scenes from text or an image-led brief. Its documented model entry lists five- and ten-second duration choices and several frame shapes for building a shot around a clear action and ending.

Accepted inputs

Text · Images

Results

Video

### Available in Ailoot · inputs & methods

**Ailoot Ultra · Video** `POST /v1/videos`

Input types

`text`, `image`

Output types

`video`

| Field | Type | Requirement | Values & limits | Default |
| --- | --- | --- | --- | --- |
| Field`model` | Type`string` | RequirementRequired | Values & limits kling-v2-master Conditions: Use this exact Ailoot routing selector. | Default— |
| Field`mode` | Type`string` | RequirementOptional | Values & limits std, pro Conditions: Use the selected-model documented field and listed choices; omit an unspecified optional value. | Defaultstd |
| Field`aspect_ratio` | Type`string` | RequirementOptional | Values & limits 16:9, 9:16, 1:1 Conditions: Use the selected-model documented field and listed choices; omit an unspecified optional value. | Default— |
| Field`duration` | Type`integer` | RequirementOptional | Values & limits 5, 10 Conditions: Use the selected-model documented field and listed choices; omit an unspecified optional value. | Default— |
| Field`end_image` | Type`string` | RequirementOptional | Values & limits Conditions: Use the selected-model documented field and listed choices; omit an unspecified optional value. | Default— |
| Field`image` | Type`string or array<string>` | RequirementOptional | Values & limits Conditions: Use the selected-model documented field and listed choices; omit an unspecified optional value. | Default— |
| Field`negative_prompt` | Type`string` | RequirementOptional | Values & limits Conditions: Use the selected-model documented field and listed choices; omit an unspecified optional value. | Default— |
| Field`prompt` | Type`string` | RequirementRequired | Values & limits Conditions: Use the selected-model documented field and listed choices; omit an unspecified optional value. | Default— |

Method parameters and lifecycle

| Parameter | Contract |
| --- | --- |
| Parameter`content_type` | Contractapplication/json |
| Parameter`required` | Contractmodel, prompt |
| Parameter`optional` | Contractmode, aspect\_ratio, duration, end\_image, image, negative\_prompt |
| Parameter`material_types` | Contracttext, image |
| Parameter`conditions` | ContractUse this exact Ailoot routing selector., Use the selected-model documented field and listed choices; omit an unspecified optional value., Use the selected-model documented field and listed choices; omit an unspecified optional value., Use the selected-model documented field and listed choices; omit an unspecified optional value., Use the selected-model documented field and listed choices; omit an unspecified optional value., Use the selected-model documented field and listed choices; omit an unspecified optional value., Use the selected-model documented field and listed choices; omit an unspecified optional value., Use the selected-model documented field and listed choices; omit an unspecified optional value. |

Method aliases: `/v1/videos/generations`

Lifecycle: `submit_once_poll_original`

`GET /v1/videos/{request_id}`

`GET /v1/videos/generations/{request_id}`

`GET /v1/videos/{request_id}/content`

`GET /v1/media/assets`

`GET /v1/media/assets/{asset_id}`

### Pricing

##### How the final charge is calculated

The displayed rates estimate the cost before generation. The final charge is calculated from the cost recorded for the original generation. Measured output duration and forecast quantities are not the final billable quantity.

Tariff references do not add request options. Supported parameters are listed for the selected method.

Fast mode

Not specified When fast mode is selected

Flex mode

Not specified When flex mode is selected

Maximum reasoning effort

Not specified When maximum reasoning effort uses the default adjustment

#### Estimated rates for comparison

#### Prices by configuration

Match each charge to the conditions shown. Use one rate for each set of alternative configurations.

| Configuration | Rate schedule | Forecast quantity | Charge |
| --- | --- | --- | --- |
| ConfigurationBase token rates | Rate scheduleBase rate | Forecast quantity— | Charge Input · Input tokens · Estimate for comparison only **—** / 1K tokens Output · Output tokens · Estimate for comparison only **—** / 1K tokens Input · Cache read · Estimate for comparison only **—** / 1K tokens Input · Cache write · Estimate for comparison only **—** / 1K tokens Input · Cache write, 1 hour · Estimate for comparison only **—** / 1K tokens |
| ConfigurationEstimated generation cost | Rate schedule— | Forecast quantityone generation estimate | Charge Output · Estimated generation cost · Estimate for comparison only **$6** estimate before generation This estimate is not an additional charge or a fixed rate for the completed generation. |

Ailoot reserves an estimated amount before a request. After the result, it settles the final charge from measured usage. Streaming settlement uses the final usage record. [How reservation and settlement work →](https://ailoot.ai/docs/en/billing/reserve/)

### Example requests

#### Ailoot Ultra · Video

curl · create once and retain the complete resultRead the original taskSave every completed owned asset

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
export AILOOT_API_KEY
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p=json.loads('{"model": "kling-v2-master", "prompt": "A cat is walking on grass."}')

Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/videos \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
# Submit once. Retain the complete result, original identifiers and every response header.
```

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
export AILOOT_API_KEY
python3 - <<'PY_STATUS'
import json,os,subprocess
from pathlib import Path
from urllib.parse import urljoin,urlsplit
r=json.loads(Path("result.json").read_text())
u=urljoin("https://api.ailoot.ai",r["polling_url"])
p=urlsplit(u)
if p.scheme!="https" or p.netloc!="api.ailoot.ai" or p.username or p.password:
    raise SystemExit("Unexpected returned polling URL; preserve the response")
subprocess.run(["curl","--fail-with-body","--silent","--show-error",u,"-H","Authorization: Bearer "+os.environ["AILOOT_API_KEY"],"-D","status-headers.txt","-o","status.json"],check=True)
# Read this same original polling_url again while pending.
# Preserve unknown/result_pending_check; do not repeat creation.
PY_STATUS
```

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
export AILOOT_API_KEY
python3 - <<'PY_ASSETS'
import json,os,subprocess
from pathlib import Path
from urllib.parse import urljoin,urlsplit
r=json.loads(Path("status.json").read_text())
roles={}
def visit(v,path=""):
    if isinstance(v,dict):
        for k,x in v.items(): visit(x,path+"/"+k)
    elif isinstance(v,list):
        for i,x in enumerate(v): visit(x,path+"/"+str(i))
    elif isinstance(v,str):
        u=urljoin("https://api.ailoot.ai",v); p=urlsplit(u)
        if p.scheme=="https" and p.netloc=="api.ailoot.ai" and not p.username and not p.password and p.path.startswith("/v1/media/assets/") and p.path.endswith("/content"):
            roles.setdefault(u,[]).append(path)
visit(r)
if not roles: raise SystemExit("No completed owned assets; retain the original status")
manifest=[]
for i,(u,paths) in enumerate(roles.items()):
    target=Path(f"asset-{i}.bin")
    subprocess.run(["curl","--fail-with-body","--silent","--show-error",u,"-H","Authorization: Bearer "+os.environ["AILOOT_API_KEY"],"-o",str(target)],check=True)
    raw=target.read_bytes()
    if not raw: raise SystemExit("Empty asset; retain original status and metadata")
    ext="glb" if raw[:4]==b"glTF" else "png" if raw[:8]==b"\x89PNG\r\n\x1a\n" else "jpg" if raw[:3]==b"\xff\xd8\xff" else "webp" if raw[:4]==b"RIFF" and raw[8:12]==b"WEBP" else "mp4" if raw[4:8]==b"ftyp" else "bin"
    name=f"asset-{i}.{ext}"
    if target.name!=name: target.rename(name)
    manifest.append({"file":name,"response_paths":paths,"bytes":len(raw)})
Path("asset-manifest.json").write_text(json.dumps(manifest,indent=2))
print("Saved",len(manifest),"unique owned assets; every response role retained")
PY_ASSETS
```

### Receive and save results

#### Ailoot Ultra · Video

- `GET /v1/videos/{request_id}`
- `GET /v1/videos/generations/{request_id}`
- `GET /v1/videos/{request_id}/content`
- `GET /v1/media/assets`
- `GET /v1/media/assets/{asset_id}`

##### Keep all completed results

Save every completed video or returned file; retrieve every actual returned asset URL.

Retain the complete response and headers, original identifiers, every actual output and all usage/accounting fields. Save each unique owned asset and retain every role pointing to it.

##### If the original response needs checking

Keep the returned public task or operation id and all headers. Read only the original task; unknown or result\_pending\_check does not authorize another creation.

Response fields

| Field | Type |
| --- | --- |
| Field`id` | Typestring |
| Field`polling_url` | Typestring |
| Field`provider_task_id` | Typestring |
| Field`task_id` | Typestring |
| Field`status` | Typestring |
| Field`video_url` | Typestring |

Errors and next steps

| Response | Condition | Next step |
| --- | --- | --- |
| Response400 · `invalid_request_error` | ConditionA required field, model selector, type or input representation is invalid. | Next stepInspect the returned validation detail before preparing a separate request. |
| Response`` | ConditionThe original request or result is unknown or requires a check. | Next stepKeep original identifiers and headers; read only supported status/library records. Do not submit creation again. |

### Aliases

#### Model aliases

**Ailoot Ultra** [`kling-v2-master`](https://ailoot.ai/models/en/#m=kling-v2-master&route=Ultra&caller=kling-v2-master&fmt=videos)

#### Method path aliases

`/v1/videos/generations`

#### Related caller IDs

[`kling-v2-master`](https://ailoot.ai/models/en/#m=kling-v2-master&route=Ultra&caller=kling-v2-master&fmt=videos)

FAQ · Kling v2 Master

What inputs and results are available?

`POST /v1/videos` · `kling-v2-master`: `text`, `image` → `video`

Which fields does the request use?

`POST /v1/videos` · `kling-v2-master`: `model`, `mode`, `aspect_ratio`, `duration`, `end_image`, `image`, `negative_prompt`, `prompt`

Connect Ailoot to Claude Code, OpenCode, Hermes or your own app.

## The company and its project portfolio

The company and its project portfolio: millions of customers; monthly sales in the billions.

## Buy tokens at a discount.

Subscription discounts for regular use. Promo codes offer up to 50% off token purchases.

Subscription

Choose a discounted plan for your regular requests.

Promo code: up to 50% off

Enter your code at checkout. The price updates to reflect the current promotion.

Spending in your history

The model, tokens and amount are recorded for each request.

[Choose a subscription](https://ailoot.ai/docs/en/billing/subscriptions/) · [View model prices](https://ailoot.ai/models/en/)

## Connect the API to a product you sell.

Use Ailoot in SaaS, apps and bots under its official service offer and licence agreement. Request a reseller licence for resale.

Commercial application

Add text, image, video and audio generation to paid features in your service.

Reseller licence

Send a description of your project and how you provide access. Request written terms for use and resale.

Documents on the website

The service offer, licence agreement and data processing policy are available before you connect.

[Request a reseller licence](mailto:support@ailoot.ai) · [Service offer and licence agreement](https://ailoot.ai/legal/offer?lang=en)

## Ailoot · The company and its project portfolio





Ailoot combines established operating experience, a large client base, stable service and ongoing KPI control.





The company and its project portfolio: millions of customers; monthly sales in the billions.





Ailoot brings that operating experience to API access for AI features in customer products, agents, applications and automations.
