Kling AI

Kling AI is Kuaishou's generative video AI platform. The Kling AI Open Platform (developer API) turns text and images into video and imagery through an asynchronous create-a-task then query-the-task workflow, covering text-to-video, image-to-video, multi-image-to-video, video extension, lip-sync, video effects, image generation (Kolors), and Kolors virtual try-on. The API authenticates with a JWT signed from an Access Key / Secret Key pair and is billed against prepaid resource packs.

9 APIs 0 Features
Video GenerationAI VideoGenerative AIText-to-VideoImage-to-VideoAIGenerative VideoLip SyncVirtual Try-OnImage Generation

APIs

Kling AI Text-to-Video API

Generate video from a text prompt across Kling video models (kling-v1 through kling-v2-6 and the turbo/master variants), with duration, aspect ratio, standard/professional mode,...

Kling AI Image-to-Video API

Animate a still image into video from a start frame (and optional end frame) plus a motion prompt. Async create-then-query task pattern returning a generated video URL.

Kling AI Multi-Image-to-Video API

Compose a video from multiple reference images (subjects/elements) plus a prompt, letting several images drive a single generated clip. Async task create-then-query.

Kling AI Video Extension API

Extend a previously generated video by referencing its origin task id and an optional continuation prompt, adding seconds of coherent footage. Async create-then-query task pattern.

Kling AI Lip-Sync API

Drive lip movement on a generated or uploaded video from supplied text (text-to-speech voice) or an audio file, syncing a subject's mouth to speech. Async create-then-query task...

Kling AI Video Effects API

Apply preset creative video effects (such as hug, kiss, squish, and other scene templates) to one or more input images. Async create-then-query task pattern.

Kling AI Image Generation API

Generate still images from a text prompt (and optional reference image) using the Kolors image models (kling-v1 through kling-v2-1). Async create-then-query task pattern returni...

Kling AI Virtual Try-On API

Kolors Virtual Try-On composites a garment image onto a person/model image to produce a realistic try-on result (model kolors-virtual-try-on-v1-5). Async create-then-query task ...

Kling AI Account Resource API

Query account resource-pack balances and consumption so callers can monitor remaining prepaid credits for video and image generation.

Collections

Pricing Plans

Kling Ai Plans Pricing

3 plans

PLANS

Rate Limits

Kling Ai Rate Limits

4 limits

RATE LIMITS

FinOps

Resources

🔗
AgenticAccess
AgenticAccess
🔑
Authentication
Authentication
🔗
LinkedIn
LinkedIn
🔗
Website
Website
🔗
Documentation
Documentation
🔗
Plans
Plans
🔗
RateLimits
RateLimits
🔗
FinOps
FinOps

Sources

Raw ↑
opencollection: 1.0.0
info:
  name: Kling AI Open Platform API
  version: '1.0'
  description: Asynchronous generative video and image API for Kuaishou's Kling models. Create a task with POST, then poll
    the matching GET endpoint by task_id. Auth is a short-lived HS256 JWT passed as a Bearer token.
request:
  auth:
    type: bearer
    token: '{{jwtToken}}'
items:
- info:
    name: Text-to-Video
    type: folder
  items:
  - info:
      name: Create text-to-video task
      type: http
    http:
      method: POST
      url: https://api.klingai.com/v1/videos/text2video
      body:
        type: json
        data: "{\n  \"model_name\": \"kling-v2-6\",\n  \"prompt\": \"A cinematic drone shot flying over a neon city at night\"\
          ,\n  \"mode\": \"std\",\n  \"aspect_ratio\": \"16:9\",\n  \"duration\": \"5\"\n}"
    docs: Submit a text prompt to generate a video. Returns a task_id to poll.
  - info:
      name: Query text-to-video task
      type: http
    http:
      method: GET
      url: https://api.klingai.com/v1/videos/text2video/:task_id
      params:
      - name: task_id
        value: ''
        type: path
        description: The task id returned by create.
    docs: Poll until task_status is succeed to retrieve the generated video URL.
- info:
    name: Image-to-Video
    type: folder
  items:
  - info:
      name: Create image-to-video task
      type: http
    http:
      method: POST
      url: https://api.klingai.com/v1/videos/image2video
      body:
        type: json
        data: "{\n  \"model_name\": \"kling-v2-6\",\n  \"image\": \"https://example.com/start.jpg\",\n  \"prompt\": \"the\
          \ subject slowly turns and smiles\",\n  \"mode\": \"std\",\n  \"duration\": \"5\"\n}"
    docs: Animate a start image (and optional end image) with a motion prompt.
  - info:
      name: Query image-to-video task
      type: http
    http:
      method: GET
      url: https://api.klingai.com/v1/videos/image2video/:task_id
      params:
      - name: task_id
        value: ''
        type: path
        description: The task id returned by create.
    docs: Poll for the generated video URL.
  - info:
      name: Create multi-image-to-video task
      type: http
    http:
      method: POST
      url: https://api.klingai.com/v1/videos/multi-image2video
      body:
        type: json
        data: "{\n  \"model_name\": \"kling-v1-6\",\n  \"image_list\": [\"https://example.com/a.jpg\", \"https://example.com/b.jpg\"\
          ],\n  \"prompt\": \"the two characters meet and shake hands\",\n  \"duration\": \"5\"\n}"
    docs: Compose a video from multiple reference images plus a prompt.
- info:
    name: Video Extension
    type: folder
  items:
  - info:
      name: Create video-extend task
      type: http
    http:
      method: POST
      url: https://api.klingai.com/v1/videos/video-extend
      body:
        type: json
        data: "{\n  \"video_id\": \"ORIGIN_TASK_ID\",\n  \"prompt\": \"continue the camera push forward\"\n}"
    docs: Extend a previously generated video by its origin task/video id.
  - info:
      name: Query video-extend task
      type: http
    http:
      method: GET
      url: https://api.klingai.com/v1/videos/video-extend/:task_id
      params:
      - name: task_id
        value: ''
        type: path
        description: The task id returned by create.
    docs: Poll for the extended video URL.
- info:
    name: Lip-Sync
    type: folder
  items:
  - info:
      name: Create lip-sync task
      type: http
    http:
      method: POST
      url: https://api.klingai.com/v1/videos/lip-sync
      body:
        type: json
        data: "{\n  \"video_id\": \"ORIGIN_TASK_ID\",\n  \"mode\": \"text2video\",\n  \"text\": \"Hello and welcome to the\
          \ show\",\n  \"voice_id\": \"en_female_1\"\n}"
    docs: Sync a video subject's lips to supplied text (TTS) or an audio file.
  - info:
      name: Query lip-sync task
      type: http
    http:
      method: GET
      url: https://api.klingai.com/v1/videos/lip-sync/:task_id
      params:
      - name: task_id
        value: ''
        type: path
        description: The task id returned by create.
    docs: Poll for the lip-synced video URL.
- info:
    name: Video Effects
    type: folder
  items:
  - info:
      name: Create video-effects task
      type: http
    http:
      method: POST
      url: https://api.klingai.com/v1/videos/effects
      body:
        type: json
        data: "{\n  \"effect_scene\": \"hug\",\n  \"model_name\": \"kling-v1-6\",\n  \"images\": [\"https://example.com/p1.jpg\"\
          , \"https://example.com/p2.jpg\"],\n  \"duration\": \"5\"\n}"
    docs: Apply a preset creative effect to one or more input images.
  - info:
      name: Query video-effects task
      type: http
    http:
      method: GET
      url: https://api.klingai.com/v1/videos/effects/:task_id
      params:
      - name: task_id
        value: ''
        type: path
        description: The task id returned by create.
    docs: Poll for the effect video URL.
- info:
    name: Image Generation
    type: folder
  items:
  - info:
      name: Create image-generation task
      type: http
    http:
      method: POST
      url: https://api.klingai.com/v1/images/generations
      body:
        type: json
        data: "{\n  \"model_name\": \"kling-v2-1\",\n  \"prompt\": \"a photorealistic red panda barista, studio lighting\"\
          ,\n  \"n\": 1,\n  \"aspect_ratio\": \"1:1\"\n}"
    docs: Generate still images from a text prompt with the Kolors models.
  - info:
      name: Query image-generation task
      type: http
    http:
      method: GET
      url: https://api.klingai.com/v1/images/generations/:task_id
      params:
      - name: task_id
        value: ''
        type: path
        description: The task id returned by create.
    docs: Poll for the generated image URLs.
- info:
    name: Virtual Try-On
    type: folder
  items:
  - info:
      name: Create virtual try-on task
      type: http
    http:
      method: POST
      url: https://api.klingai.com/v1/images/kolors-virtual-try-on
      body:
        type: json
        data: "{\n  \"model_name\": \"kolors-virtual-try-on-v1-5\",\n  \"human_image\": \"https://example.com/person.jpg\"\
          ,\n  \"cloth_image\": \"https://example.com/shirt.jpg\"\n}"
    docs: Composite a garment image onto a person/model image.
  - info:
      name: Query virtual try-on task
      type: http
    http:
      method: GET
      url: https://api.klingai.com/v1/images/kolors-virtual-try-on/:task_id
      params:
      - name: task_id
        value: ''
        type: path
        description: The task id returned by create.
    docs: Poll for the try-on image URLs.
- info:
    name: Account
    type: folder
  items:
  - info:
      name: Query resource-pack balances
      type: http
    http:
      method: GET
      url: https://api.klingai.com/account/costs
    docs: Return remaining prepaid resource-pack balances and consumption.