Unlock exclusive introductory pricing for the newly launched Gemini 3.5 Flash.
K

Kling Video

Por Segundo:$0.112
Publicado:Oct 1, 2025

Video Generation

Popular
Uso comercial

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.

Precios para Kling Video

Explora precios competitivos para Kling Video , diseรฑado para adaptarse a diversos presupuestos y necesidades de uso. Nuestros planes flexibles garantizan que solo pagues por lo que uses, facilitando el escalado a medida que crecen tus requisitos. Descubre cรณmo Kling Video puede mejorar tus proyectos mientras mantienes los costos manejables.

VersionQualityDurationPrice
v1std5s$0.112
v1std10s$0.224
v1pro5s$0.392
v1pro10s$0.784
v1.5/v1.6std5s$0.224
v1.5/v1.6std10s$0.448
v1.5/v1.6pro5s$0.392
v1.5/v1.6pro10s$0.784
v2-master-5s$1.120
v2-master-10s$2.240
v2-1std5s$0.224
v2-1std10s$0.448
v2-1pro5s$0.392
v2-1pro10s$0.784
v2-1-master-5s$1.120
v2-1-master-10s$2.240
v2-5-turbostd5s$0.168
v2-5-turbostd10s$0.336
v2-5-turbopro5s$0.280
v2-5-turbopro10s$0.560
v2-6 (no native audio)std5s$0.168
v2-6 (no native audio)std10s$0.336
v2-6 (no native audio)pro5s$0.280
v2-6 (no native audio)pro10s$0.560
v2-6 (native audio, no voice control)pro5s$0.560
v2-6 (native audio, no voice control)pro10s$1.120
v2-6 (native audio, with voice control)pro5s$0.672
v2-6 (native audio, with voice control)pro10s$1.344
v3720p no audio5s$0.336
v3720p no audio10s$0.672
v31080p no audio5s$0.448
v31080p no audio10s$0.896
v34K no audio5s$1.680
v34K no audio10s$3.360
v3720p native audio / motion control5s$0.504
v3720p native audio / motion control10s$1.008
v31080p native audio / motion control5s$0.672
v31080p native audio / motion control10s$1.344
v3-omni / o1720p no video input5s$0.336
v3-omni / o1720p no video input10s$0.672
v3-omni / o11080p no video input5s$0.448
v3-omni / o11080p no video input10s$0.896
v3-omni4K no video input5s$1.680
v3-omni4K no video input10s$3.360
v3-omni720p native audio5s$0.448
v3-omni720p native audio10s$0.896
v3-omni1080p native audio5s$0.560
v3-omni1080p native audio10s$1.120
v3-omni / o1720p video input5s$0.504
v3-omni / o1720p video input10s$1.008
v3-omni / o11080p video input5s$0.672
v3-omni / o11080p video input10s$1.344

Cรณdigo de ejemplo y API para Kling Video

Accede a cรณdigo de muestra completo y recursos de API para Kling Video para agilizar tu proceso de integraciรณn. Nuestra documentaciรณn detallada proporciona orientaciรณn paso a paso, ayudรกndote a aprovechar todo el potencial de Kling Video en tus proyectos.

#!/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"

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"

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();