curl --request POST \
--url https://api.shuyou.ai/v1/predictions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-v3-video",
"input": {
"prompt": "A cinematic shot of a majestic lion in the savannah at golden hour",
"aspect_ratio": "16:9",
"resolution": "standard",
"duration": 5,
"generate_audio": true
}
}
'{
"data": {
"task_id": "2c4d50261173430290971a2395a3b607",
"task_status": "processing"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}Kling
Kling V3 Video
Create asynchronous video tasks with kling-v3-video via POST /v1/predictions.
POST
/
v1
/
predictions
curl --request POST \
--url https://api.shuyou.ai/v1/predictions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-v3-video",
"input": {
"prompt": "A cinematic shot of a majestic lion in the savannah at golden hour",
"aspect_ratio": "16:9",
"resolution": "standard",
"duration": 5,
"generate_audio": true
}
}
'{
"data": {
"task_id": "2c4d50261173430290971a2395a3b607",
"task_status": "processing"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "<string>"
}
}Overview
Kling V3 (kling-v3-video) supports:
- Text-to-video —
promptonly - First / last frame —
first_frame_url,last_frame_url
Input parameters
| Field | Required | Default | Notes |
|---|---|---|---|
prompt | Yes | — | Max 2500 characters |
aspect_ratio | No | 16:9 | 16:9, 9:16, or 1:1 |
resolution | No | standard | standard or pro |
duration | No | 5 | 3–15 (seconds) |
generate_audio | No | true | Include generated audio |
first_frame_url | No | — | First keyframe image URL |
last_frame_url | No | — | Last keyframe image URL |
Authorizations
Authorization: Bearer YOUR_API_KEY
Body
application/json
Response
Async task created
Show child attributes
Show child attributes