Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Kling AI Text-to-Video API

Generate video from a text prompt.

Kling AI Text-to-Video API is one of 8 APIs that Kling AI publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Text-to-Video. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 2 operations across 2 paths, and defines 4 schemas. It is described by OpenAPI 3.0.3, at version 1.0.

Requests are made against a single base URL, https://api.klingai.com.

2 operations 2 paths 4 schemas 1 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
1.0
Base URL
https://api.klingai.com/v1
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

Kling AI Text-to-Video API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (JWT) (bearerAuth). By default, every request must be authenticated.

  • bearerAuth — A JWT signed with HS256 from your Access Key (as the iss claim) and Secret Key, passed as Authorization: Bearer . Tokens are short-lived (about 30 minutes; nbf…

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 1 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.

Text-to-Video 2

Generate video from a text prompt.

POST
/v1/videos/text2video
Create a text-to-video task
createTextToVideoTask body → 200401429
GET
/v1/videos/text2video/{task_id}
Query a text-to-video task
getTextToVideoTask 1 param → 200401

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are TextToVideoRequest (8 properties), TaskCreatedResponse (4 properties), VideoTaskResponse (4 properties), Error (3 properties). Each schema is shown below with its type and property counts.

VideoTaskResponse
object
4 properties
TextToVideoRequest
object
8 properties 1 required
TaskCreatedResponse
object
4 properties
Error
object
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

kling-ai-text-to-video-api-openapi.yml Raw ↑

Other APIs Kling AI publishes across the network.

Kling AI Account API
Kling AI Image Generation API
Kling AI Image-to-Video API
Kling AI Lip-Sync API
Kling AI Video Effects API
Kling AI Video Extension API
Kling AI Virtual Try-On API