Overview
This endpoint provides text to video functionality.
Authentication
This endpoint requires authentication using a Bearer token.
Authorization
string
default:"sk-***********"
required
Your API key in the format: Bearer YOUR_API_KEY
Request Body
model
string
default:"kling-video-std-10-v1-6"
required
The model to use for the request
prompt
string
default:"飞机飞过头顶"
required
Prompt parameter
Negative Prompt parameter
cfg_scale
number
default:"0.930127850077239"
Cfg Scale parameter
Request Example
curl -X POST "https://gptproto.com/kling/v1/videos/text2video" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-video-std-10-v1-6",
"prompt": "飞机飞过头顶",
"negative_prompt": "",
"cfg_scale": 0.930127850077239,
"mode": "std",
"aspect_ratio": "16:9",
"duration": "10",
"callback_url": ""
}'
Response
Error Responses
{
"error": {
"message": "Invalid signature",
"type": "401"
}
}