Docs Kling /kling/v1/videos/text2video
API reference

Vincent Video

Generate videos based on text prompt words. The native camelCase request body can be used; task_id is returned after submission, and the task status needs to be polled.

POST/kling/v1/videos/text2video

Body Parametersapplication/json

aspect_ratio string

Aspect ratio (width:height). Upstream constraints: commonly used 16:9 / 9:16 / 1:1, the gateway does not preflight enumeration.

callback_url string · uri

Task completion callback address. POST notification after the upstream task is completed, the public network must be reachable, and the gateway transparently transmits the information as it is.

camera_control object

Lens motion control. If it is not transmitted, the model will intelligently match it; the gateway transparently transmits it and does not pre-check the specific value range.

properties
config object

Lens motion parameter configuration

type string

Control type, such as simple

cfg_scale number

Generate degrees of freedom (CFG). The larger the value, the stronger the correlation between the generated results and prompt; the gateway does not pre-check the range, and the upstream constraints are usually 0~1.

duration* oneOf

Video duration (seconds), required. Non-kling-v3: only 5 or 10; kling-v3: 3~15. Supports string or integer, gateway normalizes to string.

external_task_id string

The caller's external task ID, used for idempotent association and business reconciliation; non-response body data.task_id.

mode string

Generate schema. The billing side defaults to std when not transmitted. 4k only kling-v3; kling-v2-6 requires pro to open sound.

model_name* string

Model name. When not transmitted, gateway accounting defaults to kling-v1, and it is recommended to fill it in explicitly. It must be kling-v3 when multi_shot=true; it must be kling-v3 when mode=4k.

multi_prompt array

Customized storyboard list. Required when shot_type=customize, up to 6 shots. Each mirror prompt≤512, duration≥1; the sum of the durations of each mirror must be equal to the top-level duration (error ≤0.1).

items
object object
multi_shot boolean

Whether there are multiple lenses. When true, only kling-v3 supports it, and prompt is invalid; when false, shot_type / multi_prompt cannot be passed.

negative_prompt string

Negative cue words. Describe the unwanted content and transparently transmit it through the gateway.

prompt string

Positive cue words. Required when multi_shot=false (default); invalid when multi_shot=true, 400 will be sent. Upstream constraint ≤2500 characters.

shot_type string

Storyboarding method. Required when multi_shot=true; cannot be passed when multi_shot=false. customize must be used with multi_prompt; intelligence is automatically removed from the upstream.

sound string

Audible switch. The gateway only performs model/schema verification on non-null values; triggers audible billing when on is passed. Only supported by kling-v2-6 / kling-v3; v2-6 requires mode=pro.

voice_list array

Custom sound list. The field can be transparently transmitted; the current text2video billing path does not identify voice_list separately (unlike image2video, it does not affect the hasVoiceId multiplier).

items
object object

Responses

200 Task submitted successfully application/json
response-200 object
properties
code integer

Business status code

data object

Data payload (often Base64 or a structured object)

message string

Message text

request_id string

Request trace ID

400 Bad request or validation failed application/json
response-400 object
properties
error* object
401 Missing or invalid API Key application/json
response-401 object
Request Body Example Recommended for newbies: Vincent Video · Minimum available submission path
1{
2"aspect_ratio": "16:9",
3"duration": "5",
4"mode": "std",
5"model_name": "kling-v1",
6"prompt": "A drone shot of a beautiful coastline at golden hour sunset"
7}
Code Sample cURL
1curl -X POST "https://api.digislash.com/kling/v1/videos/text2video" \
2-H "Authorization: Bearer <API Key>" \
3-H "Content-Type: application/json" \
4-d '{
5"aspect_ratio": "16:9",
6"duration": "5",
7"mode": "std",
8"model_name": "kling-v1",
9"prompt": "A drone shot of a beautiful coastline at golden hour sunset"
10}'
Response
1▼{
2"code": 0,
3▼"data": {
4"created_at": 0,
5"task_id": "string",
6"task_status": "submitted",
7"updated_at": 0
8},
9"message": "success",
10"request_id": "string"
11}