Docs
  1. Kling Video
Docs
  • Introduction
  • Quick Start Guide
  • Make a request
  • Chat Models
    • ChatGpt
      • ChatGPT (Audio)
        • Create a voice
        • Create a transcript
        • Create translation
      • ChatGPT (Chat)
        • Chat completion object
        • Create chat completion (streaming)
        • Create chat completion (non-streaming)
        • Create chat image recognition (streaming)
        • Create chat image recognition (streaming) base64
        • Create chat image recognition (non-streaming)
        • Function calling
        • N choices
        • Create chat function call (only non-streaming)
        • Create structured output
      • ChatGPT (Completions)
        • Completion object
        • Creation completed
      • ChatGPT(Embeddings)
        • Embedded Object
        • Create embed
    • Anthropic Claude
      • Create chat completion (streaming)
      • Create chat completion (non-streaming)
      • Create chat image recognition (streaming)
      • Create chat image recognition (non-streaming)
    • Gemini
      • Gemini Image creation interface (gemini-2.0-flash-exp-image-generation)
      • Chat interface
      • Image recognition interface
  • Image Models
    • MJ
      • Submit Imagine task (mj_imagine)
      • Submit Blend task (mj_blend)
      • Submit Describe task (mj_describe)
      • Submit Change task (mj_variation, mj_upscale,mj_reroll)
      • Query task status based on task ID
    • Ideogram
      • Generate with Ideogram 3.0
      • Edit with Ideogram 3.0
      • Remix with Ideogram 3.0
    • Kling Image
      • Submit Image Generation
      • Get Image by Task ID
      • Submit Kolors Virtual Try On
      • Get Kolors Virtual Try On by Task ID
    • DALL·E 3
      POST
    • Flux (OpenAI dall-e-3 format)
      POST
  • Video Models
    • Kling Video
      • Create Video by Text
        POST
      • Get Video by Task ID(text2video)
        GET
      • Create Video by Image
        POST
      • Get Video by Task ID(image2video)
        GET
    • Runway ML Video
      • Create Video by Runway
      • Get Video by Task ID
    • Luma Video
      • Create Video by Luma
      • Get Video by Task ID
    • Pika Video
      • Create Video by Pika
      • Get Video by Task ID
  • Music Model - Suno
    • Illustrate
    • Parameter
    • Task submission
      • Generate songs (inspiration, customization, continuation)
      • Generate lyrics
    • Query interface
      • Query a single task
  • Python Samples
    • python openai official library (using AutoGPT, langchain, etc.)
    • Python uses speech to text
    • Python uses text to speech
    • Python uses Embeddings
    • python calls DALL·E
    • python simple call openai function-calling demo
    • python langchain
    • python llama_index
    • Python uses gpt-4o to identify pictures-local pictures
    • python library streaming output
    • Python uses gpt-4o to identify images
  • Plug-in/software usage tutorials
    • Setting HTTP for Make.com with Yescale
    • Sample Code for gpt-4o-audio/gpt-4o-mini-audio
  • Help Center
    • HTTP status codes
  1. Kling Video

Create Video by Text

POST
/kling/v1/videos/text2video
Create Video by Text from Kling
Read More: https://docs.qingque.cn/d/home/eZQDvlYrDMyE9lOforCeWA4KP?identityId=1uX4dFq8Jtr#section=h.ytzy2ithm1c4

Request

Body Params application/json
model_name
string 
required
Note: The higher the version, the higher the price. The price of v2.0 is 10 times that of v1, and 10 seconds is 20 times the price.
Enumeration value:
kling-v1
kling-v1-5
kling-v1-6
prompt
string 
required
Cannot exceed 2500 characters
negative_prompt
string 
optional
Cannot exceed 2500 characters
cfg_scale
number 
optional
The larger the value, the higher the creative relevance. The value range is: [0,1]
mode
string 
required
Enumeration value:
std
pro
camera_control
object 
optional
Control the camera movement mode. If not specified, it will be matched intelligently.
type
string 
optional
Predefined camera movement types
Enumeration values: "simple", "down_back", "forward_up", "right_turn_forward", "left_turn_forward"
simple: simple camera movement, in this type, you can choose one of the six camera movements in "config"
down_back: the lens is pressed down and back ➡️ down and zoomed out, the config parameter does not need to be filled in for this type
forward_up: the lens moves forward and tilts up ➡️ pushes up, the config parameter does not need to be filled in for this type
right_turn_forward: rotate right first and then move forward ➡️ right rotation push forward, the config parameter does not need to be filled in for this type
left_turn_forward: rotate left first and move forward ➡️ left rotation push forward, the config parameter does not need to be filled in for this type
Enumeration values:
simple
down_back
forward_up
right_turn_forward
left_turn_forward
config
object 
optional
Contains six fields to specify the movement or change of the camera in different directions
Required when the camera movement type is specified as simple, and not required when other types are specified
Select 1 from the following 6 parameters, that is, only one parameter can be non-0, and the rest of the parameters are 0
aspect_ratio
string 
optional
Enumeration value:
16:9
9:16
1:1
duration
string 
required
Set duration
Example
{
    "model_name": "kling-v1",
    "prompt": "A 20-year-old girl, with an oval face, delicate features, long black hair, fair skin, and ambient light, wearing a short white skirt, sitting on a bench beside the street, smiling and shaking her hair",
    "mode": "std",
    "aspect_ratio": "1:1",
    "duration": "5"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/kling/v1/videos/text2video' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model_name": "kling-v1",
    "prompt": "A 20-year-old girl, with an oval face, delicate features, long black hair, fair skin, and ambient light, wearing a short white skirt, sitting on a bench beside the street, smiling and shaking her hair",
    "mode": "std",
    "aspect_ratio": "1:1",
    "duration": "5"
}'

Responses

🟢200OK
application/json
Body
code
integer 
required
message
string 
required
request_id
string 
required
data
object 
required
task_id
string 
required
task_status
string 
required
created_at
integer 
required
updated_at
integer 
required
Example
{
  "code": 0,
  "message": "SUCCEED",
  "request_id": "CmYgjmbyMToAAAAAAF6svw",
  "data": {
    "task_id": "CmYgjmbyMToAAAAAAF6svw",
    "task_status": "submitted",
    "created_at": 1727338013674,
    "updated_at": 1727338013674
  }
}
Previous
Flux (OpenAI dall-e-3 format)
Next
Get Video by Task ID(text2video)
Built with