模型支持企业博客
500+ AI 模型 API,一次搞定,就在 CometAPI
模型 API
开发者
快速入门文档API 仪表板
资源
AI 模型博客企业更新日志关于
2025 CometAPI。保留所有权利。隐私政策服务条款
Home/Models/Kling/Kling Video
K

Kling Video

每次请求:$0.13216
视频生成
商用
概览
功能亮点
定价
API

Technical Specifications of kling_video

SpecificationDetails
Model IDkling_video
CategoryVideo Generation
Primary CapabilityGenerates videos from text prompts and, depending on workflow, can support image-guided video creation
Input TypesText prompts, and in some implementations image inputs for image-to-video workflows
Output TypeAI-generated video
Common Use CasesShort-form creative clips, cinematic concept visualization, marketing content, social media assets, animation prototyping
StrengthsStrong motion quality, visual aesthetics, and prompt adherence
Integration PatternAPI-based request/response workflow through CometAPI
Best ForDevelopers and teams building automated video generation features into apps, tools, and content pipelines

What is kling_video?

kling_video is CometAPI’s platform model identifier for accessing a video generation model designed to create AI-generated videos from natural language instructions. It is suitable for users who want to turn descriptive prompts into visually dynamic clips for creative production, prototyping, storytelling, and media workflows.

This model is especially useful for applications that need automated video generation as part of a broader product experience. Developers can use kling_video to power features such as prompt-to-video creation, concept visualization, ad creative generation, and experimental media tooling, all through a standard API integration flow.

Main features of kling_video

  • Text-to-video generation: Create videos directly from natural language prompts describing scenes, motion, style, subjects, and atmosphere.
  • Image-guided generation support: In compatible workflows, use reference images to help steer composition, character appearance, or scene structure.
  • High-quality motion synthesis: Well-suited for generating clips with more fluid movement and stronger visual continuity than basic animation pipelines.
  • Strong prompt adherence: Designed to follow user instructions closely, making it useful for controlled creative generation.
  • Aesthetic visual output: Helpful for cinematic concepts, polished short clips, and visually engaging marketing or social assets.
  • Creative workflow automation: Can be embedded into applications that need repeatable video generation without manual editing steps.
  • API-friendly deployment: Accessible through CometAPI using a consistent developer integration pattern that fits existing AI application stacks.

How to access and integrate

Step 1: Sign Up for API Key

First, register for a CometAPI account and generate your API key from the dashboard. This key is required to authenticate all requests. Store it securely in your server environment and avoid exposing it in client-side code.

Step 2: Send Requests to kling_video API

Use CometAPI's Kling-compatible endpoint. For video generation, send a POST request to /kling/v1/videos/text2video (or /kling/v1/videos/image2video for image-to-video).

curl https://api.cometapi.com/kling/v1/videos/text2video \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $COMETAPI_API_KEY" \
  -d '{
    "prompt": "A cinematic scene with dramatic lighting.",
    "model_name": "kling-v2-master",
    "aspect_ratio": "16:9",
    "duration": "5"
  }'

Step 3: Retrieve and Verify Results

The API returns a task ID. Poll GET /kling/v1/videos/text2video/{task_id} to check generation status and retrieve the output video URL when complete.

Kling Video 的功能

了解 Kling Video 的核心能力,帮助提升性能与可用性,并改善整体体验。

Kling Video 的定价

查看 Kling Video 的竞争性定价,满足不同预算与使用需求,灵活方案确保随需求扩展。
VersionQualityDurationPrice
v1std5s$0.13
v1std10s$0.26
v1pro5s$0.46
v1pro10s$0.92
v1.5/v1.6std5s$0.26
v1.5/v1.6std10s$0.53
v1.5/v1.6pro5s$0.46
v1.5/v1.6pro10s$0.92
v2-master-5s$1.32
v2-master-10s$2.64
v2-1std5s$0.26
v2-1std10s$0.53
v2-1pro5s$0.46
v2-1pro10s$0.92
v2-1-master-5s$1.32
v2-1-master-10s$2.64
v2-5-turbopro5s$0.33
v2-5-turbopro10s$0.66
v2-6 (no native audio)pro5s$0.33
v2-6 (no native audio)pro10s$0.67
v2-6 (native audio, no voice control)pro5s$0.67
v2-6 (native audio, no voice control)pro10s$1.33
v2-6 (native audio, with voice control)pro5s$0.80
v2-6 (native audio, with voice control)pro10s$1.60

Kling Video 的示例代码与 API

获取完整示例代码与 API 资源,简化 Kling Video 的集成流程,我们提供逐步指导,助你发挥模型潜能。
Python
JavaScript
Curl
import requests
import os

# Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here
COMETAPI_KEY = os.environ.get("COMETAPI_KEY") or "<YOUR_COMETAPI_KEY>"
BASE_URL = "https://api.cometapi.com/kling/v1"

headers = {
    "Authorization": f"Bearer {COMETAPI_KEY}",
    "Content-Type": "application/json",
}

# ============================================================
# Step 1: Create Video Task
# ============================================================
print("Step 1: Creating video task...")

create_payload = {
    "prompt": "A happy scene of a vacation on the beach.",
    "model_name": "kling-v2-6",
}

create_response = requests.post(
    f"{BASE_URL}/videos/text2video", headers=headers, json=create_payload
)

create_result = create_response.json()
print(f"Create response: {create_result}")

# Extract task ID from the response
task_id = create_result.get("data", {}).get("task_id")
if not task_id:
    print("Error: Failed to get task_id from response")
    exit(1)

print(f"Task ID: {task_id}")

# ============================================================
# Step 2: Query Task Status
# ============================================================
print("
Step 2: Querying task status...")

query_response = requests.get(
    f"{BASE_URL}/videos/text2video/{task_id}", headers=headers
)

query_result = query_response.json()
print(f"Query response: {query_result}")

# Check task status
task_status = query_result.get("data", {}).get("status") or query_result.get(
    "data", {}
).get("task_status")
print(f"Task status: {task_status}")

Python Code Example

import requests
import os

# Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here
COMETAPI_KEY = os.environ.get("COMETAPI_KEY") or "<YOUR_COMETAPI_KEY>"
BASE_URL = "https://api.cometapi.com/kling/v1"

headers = {
    "Authorization": f"Bearer {COMETAPI_KEY}",
    "Content-Type": "application/json",
}

# ============================================================
# Step 1: Create Video Task
# ============================================================
print("Step 1: Creating video task...")

create_payload = {
    "prompt": "A happy scene of a vacation on the beach.",
    "model_name": "kling-v2-6",
}

create_response = requests.post(
    f"{BASE_URL}/videos/text2video", headers=headers, json=create_payload
)

create_result = create_response.json()
print(f"Create response: {create_result}")

# Extract task ID from the response
task_id = create_result.get("data", {}).get("task_id")
if not task_id:
    print("Error: Failed to get task_id from response")
    exit(1)

print(f"Task ID: {task_id}")

# ============================================================
# Step 2: Query Task Status
# ============================================================
print("\nStep 2: Querying task status...")

query_response = requests.get(
    f"{BASE_URL}/videos/text2video/{task_id}", headers=headers
)

query_result = query_response.json()
print(f"Query response: {query_result}")

# Check task status
task_status = query_result.get("data", {}).get("status") or query_result.get(
    "data", {}
).get("task_status")
print(f"Task status: {task_status}")

JavaScript Code Example

// Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here
const api_key = process.env.COMETAPI_KEY || "<YOUR_COMETAPI_KEY>";
const base_url = "https://api.cometapi.com/kling/v1";

const headers = {
  "Authorization": `Bearer ${api_key}`,
  "Content-Type": "application/json",
};

async function main() {
  // ============================================================
  // Step 1: Create Video Task
  // ============================================================
  console.log("Step 1: Creating video task...");

  const createPayload = {
    prompt: "A happy scene of a vacation on the beach.",
    model_name: "kling-v2-6"
  };

  const createResponse = await fetch(`${base_url}/videos/text2video`, {
    method: "POST",
    headers: headers,
    body: JSON.stringify(createPayload)
  });

  const createResult = await createResponse.json();
  console.log("Create response:", JSON.stringify(createResult, null, 2));

  // Extract task ID from the response
  const taskId = createResult?.data?.task_id;
  if (!taskId) {
    console.log("Error: Failed to get task_id from response");
    process.exit(1);
  }

  console.log(`Task ID: ${taskId}`);

  // ============================================================
  // Step 2: Query Task Status
  // ============================================================
  console.log("\nStep 2: Querying task status...");

  const queryResponse = await fetch(`${base_url}/videos/text2video/${taskId}`, {
    method: "GET",
    headers: headers
  });

  const queryResult = await queryResponse.json();
  console.log("Query response:", JSON.stringify(queryResult, null, 2));

  // Check task status
  const taskStatus = queryResult?.data?.status || queryResult?.data?.task_status;
  console.log(`Task status: ${taskStatus}`);
}

main();

Curl Code Example

#!/bin/bash

# Get your CometAPI key from https://api.cometapi.com/console/token
# Export it as: export COMETAPI_KEY="your-key-here"

BASE_URL="https://api.cometapi.com/kling/v1"

# ============================================================
# Step 1: Create Video Task
# ============================================================
echo "Step 1: Creating video task..."

CREATE_RESPONSE=$(curl -s --location --request POST "${BASE_URL}/videos/text2video" \
  --header "Authorization: Bearer $COMETAPI_KEY" \
  --header "Content-Type: application/json" \
  --data-raw '{
    "prompt": "A happy scene of a vacation on the beach.",
    "model_name": "kling-v2-6"
  }')

echo "Create response: $CREATE_RESPONSE"

# Extract task_id using jq (install with: brew install jq)
TASK_ID=$(echo "$CREATE_RESPONSE" | jq -r '.data.task_id')

if [ "$TASK_ID" == "null" ] || [ -z "$TASK_ID" ]; then
  echo "Error: Failed to get task_id from response"
  exit 1
fi

echo "Task ID: $TASK_ID"

# ============================================================
# Step 2: Query Task Status
# ============================================================
echo ""
echo "Step 2: Querying task status..."

QUERY_RESPONSE=$(curl -s --location --request GET "${BASE_URL}/videos/text2video/${TASK_ID}" \
  --header "Authorization: Bearer $COMETAPI_KEY")

echo "Query response:"
echo "$QUERY_RESPONSE" | jq .

# Check task status
TASK_STATUS=$(echo "$QUERY_RESPONSE" | jq -r '.data.status // .data.task_status')
echo "Task status: $TASK_STATUS"

更多模型

O

Sora 2 Pro

每秒:$0.24
Sora 2 Pro 是我们最先进、最强大的媒体生成模型,可生成带有同步音频的视频。它可以根据自然语言或图像创建细致、动态的视频片段。
O

Sora 2

每秒:$0.08
超级强大的视频生成模型,带有音效,支持聊天格式。
M

mj_fast_video

每次请求:$0.6
Midjourney video generation
X

Grok Imagine Video

每秒:$0.04
通过文本提示生成视频、为静态图像添加动画,或用自然语言编辑现有视频。该 API 支持配置生成视频的时长、长宽比和分辨率,并由 SDK 自动处理异步轮询。
G

Veo 3.1 Pro

每秒:$0.25
Veo 3.1-Pro 指的是 Google 的 Veo 3.1 系列的高能力访问/配置——这一代短时长、支持音频的视频模型带来更丰富的原生音频、改进的叙事/剪辑控制以及场景扩展工具。
G

Veo 3.1

每秒:$0.05
Veo 3.1 是 Google 针对其 Veo 文本与图像→视频系列的渐进但意义重大的更新,新增更丰富的原生音频、更长且可控性更高的视频输出,以及更精细的编辑与场景级控制。

相关博客

HappyHorse-1.0 是什么?如何比较 Seedance 2.0?
Apr 11, 2026
seedance-2-0

HappyHorse-1.0 是什么?如何比较 Seedance 2.0?

了解 HappyHorse-1.0 是什么、它为何登上 Artificial Analysis 视频排行榜榜首、它与 Seedance 2.0 的比较,以及最新排名对 AI 视频生成意味着什么。
Kling 3.0 发布:会带来哪些变化
Feb 4, 2026
kling-3-0

Kling 3.0 发布:会带来哪些变化

Kling 3.0 — Kling 系列 AI 视频模型的下一次重大迭代 — 正在引发创作者社区、代理机构和产品团队的关注热潮。厂商与社区分析师将其描述为一次代际跃迁:更长时长的输出、原生音视频合成、在多镜头序列中更强的身份与角色保真度,以及对电影化叙事的更严密控制。
使用 Kling 最长可以对口型多少秒?
Jan 26, 2026
kling-ai
kling-2-6

使用 Kling 最长可以对口型多少秒?

在许多部署环境中,Kling 目前的工具与面向公众的模型支持对每个任务时长最多为 60 秒的音频轨道进行口型同步操作,源视频通常优化在 2–10 秒范围内,以获得最高保真度的结果。对于更大的任务,实际生产工作流程会将较长的音频拆分为多个 60 秒(或更短)的片段,并在后期制作中将结果重新拼接。
Kling AI 是否支持 NSFW?你需要了解的一切
Jan 22, 2026
kling-2-6
kling-ai

Kling AI 是否支持 NSFW?你需要了解的一切

Kling AI 是由 Kuaishou(中国一家大型短视频公司)开发的将文本和图像生成视频的平台。它在技术上能够生成逼真、高质量的短视频,但公共平台实施严格的内容审核,主动禁止色情/露骨(NSFW)内容以及许多政治敏感类别。开发者可以通过 CometAPI 访问 Kling 风格模型,但政策和技术层面的审核通常会导致露骨的提示词被拒绝,或输出被大幅净化。
Kling 视频是私密的吗?
Dec 31, 2025
kling-ai
kling-2-5-turbor

Kling 视频是私密的吗?

在快速演进的生成式 AI 领域,Kling AI 已成为可与 OpenAI 的 Sora 和 Runway Gen-3 等行业巨头抗衡的强劲竞争者。由快手科技开发的 Kling AI 提供“电影级”的视频生成能力,已吸引了全球的内容创作者。然而,鉴于其源自中国并采用云端处理模式,一个对企业用户和重视隐私的个人而言至关重要的问题随之而来:Kling 生成的视频是私密的吗?多少钱,如何使用?