Kling

Kling 2.6

Video
Not available
Generate Now

Kling 2.6 text-to-video generation. Up to 10 seconds with audio support.

Type
Text to Video
Billed
per sec
Provider
Kling
Durations
5s · 10s

Pricing

/ sec
Sound off$0.17 / sec
Sound on$0.33 / sec

Default duration: 5s

Supported parameters

modelSettings
  • Promptprompt
  • Soundsound
  • Aspect Ratioaspect_ratio
  • Durationduration

Code examples

POST /v1/generations

Generations are async — the request returns immediately with an id; poll for the result.

python
import requests

response = requests.post(
    "https://api.modelstack.cc/v1/generations",
    headers={"Authorization": "Bearer sk_YOUR_API_KEY"},
    json={
        "type": "TEXT_TO_VIDEO",
        "prompt": "A serene mountain landscape at sunset",
        "model": "kling/2.6",
        "modelSettings": {
            "aspect_ratio": "16:9",
            "duration": "5"
        }
    },
)
generation_id = response.json()["data"]["id"]

# Poll for the result
result = requests.get(
    f"https://api.modelstack.cc/v1/generations/{generation_id}",
    headers={"Authorization": "Bearer sk_YOUR_API_KEY"},
).json()
print(result["data"]["status"])

Related models

Frequently asked questions

How is Kling 2.6 billed on ModelStack?expand_more
Kling 2.6 (Text to Video) is billed at a flat, prepaid rate of $0.82 / vid — generation pricing has no tier-based discounts. Final request costs are available in the console.
What other generation types does Kling 2.6 support?expand_more
Besides Text to Video, Kling 2.6 also supports: Image to Video, Video Motion Control.
Which parameters does Kling 2.6 support?expand_more
Kling 2.6 supports: Prompt, Sound, Aspect Ratio, Duration.
How can I generate with Kling 2.6?expand_more
Use the Generate composer in your dashboard, or call the API directly with model `kling/2.6` and type `TEXT_TO_VIDEO` — see the code example above.