Skip to main content
POST
/
api
/
v3
/
kwaivgi
/
kling-v2.5-turbo-pro
/
text-to-video
Text to Video
curl --request POST \
  --url https://gptproto.com/api/v3/kwaivgi/kling-v2.5-turbo-pro/text-to-video \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "prompt": "<string>",
  "negative_prompt": "<string>",
  "aspect_ratio": "<string>",
  "duration": 123,
  "guidance_scale": 123
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Overview

Kling 2.5 Turbo Pro is an advanced text-to-video model that produces ultra-smooth motion, cinematic visuals, and accurate prompt adherence. Its improved dynamic processing and text-to-motion control allow for seamless transitions while maintaining style fidelity across various looks.

Authentication

This endpoint requires authentication using a Bearer token.
Authorization
string
default:"sk-***********"
required
Your API key in the format: YOUR_API_KEY

Request Body

prompt
string
required
The positive prompt for the generation.
negative_prompt
string
The negative prompt for the generation.
aspect_ratio
string
default:"16:9"
1:1, 9:16, 16:9. default 16:9 . The aspect ratio of the generated media.
duration
integer
default:"5"
5, 10. default 5 . The duration of the generated media in seconds.
guidance_scale
number
default:"0.5"
0.00 ~ 1.00 . The guidance scale to use for the generation.

Request Example

curl -X POST "https://gptproto.com/api/v3/kwaivgi/kling-v2.5-turbo-pro/text-to-video" \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "The astronaut stood up and walked away",
    "aspect_ratio": "16:9",
    "duration": 5,
    "guidance_scale": 0.5
}'

Response

data.id
string
Unique identifier for the prediction, Task Id
data.status
string
Status of the task: created, processing, completed, or failed
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}