- Get Started
- Endpoints
- Flux
- AI Hug
- LLM
- Midjourney
- Faceswap
- TTS
- Song(Suno+Udio)
- Trellis
- Luma Dream Machine
- Kling
- Hailuo
- Skyreels
- WanX
- Hunyuan Video
- PiAPI Account Management
- Mmaudio
- DiffRhythm
- Tools
- Resources
- Legacy Documentation
Video Extend
POST
https://api.piapi.ai/api/kling/v1/video/{task_id}/extend
legacy/Kling
Request
Path Params
task_id
string
required
Header Params
X-API-Key
string
required
Body Params application/json
prompt
string
required
Example
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 'https://api.piapi.ai/api/kling/v1/video//extend' \
--header 'X-API-Key;' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢200OK
application/json
Body
code
integer
optional
data
object
optional
task_id
string
optional
message
string
optional
Example
{
"code": 0,
"data": {
"task_id": "string"
},
"message": "string"
}
🟠400Bad Request
🟠401Unauthorized
🔴500Server Error
Modified at 2024-09-24 02:23:40