API reference
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
  1. Kling-API
API reference
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
  • Chat Models
    • Chat
      • Create chat completion
      • vision
    • OpenAI-Realtime
    • Completions
      • Instruct
    • Audio
      • Transcriptions
      • Translations
      • Speech
    • Image generation
      • DALL·E 3
    • Embeddings
      • Create
    • Models
      • model list
    • Help
      • 常见问题及解决办法
  • Anthropic
    • Anthropic Claude
      POST
  • Suno
    • Generate music
      POST
    • Generate lyrics
      POST
    • Upload music
      POST
    • Music concat
      POST
    • Fetch task
      GET
    • Fetch batch tasks
      POST
  • Udio
    • Generate music
      POST
    • Fetch task
      GET
  • Midjourney API
    • Quick
    • Task Submit
      • Imagine
      • Action
      • Modal
      • Blend
      • Describe
      • Shorten
      • Upload discord
    • Get Task
      • Fetch task by ids
      • Fetch task by id
      • Get seed
  • Flux
    • Official
      • Generate
      • Finetune
      • Fetch task
    • OpenAI Dalle3
  • Recraft
    • Official
      • Generate Image
      • Vectorize Image
      • Remove Background
      • Clarity Upscale
      • Generative Upscale
      • Create style
    • OpenAI Dalle3
  • Ideogram
    • Generate
    • Remix
    • Edit
    • Upscale
    • Describe
  • Luma
    • Official
      • Generate
      • Fetch task
    • Own format
      • Submit
        • Generate
        • Get video of no mark
        • 扩展视频
      • Get task
        • Get task
        • Get batch task
  • Runway
    • Official
      • image to video
      • get task
    • reverse
      • text to video
      • image to video
      • video2video
      • Act-one
      • Get task
  • Kling-API
    • Callback
    • Generate image
      POST
    • Text 2 Video
      POST
    • Image 2 Video
      POST
    • Video extend
      POST
    • Get task
      GET
    • lip-sync
      POST
    • kolors-virtual-try-on
      POST
  • Replicate
    • Generate
    • Get
  • MiniMax
    • Generate video
    • Get task
    • Get file
  1. Kling-API

Video extend

POST
/kling/v1/videos/video-extend
Last modified:2025-05-14 09:05:18
1、生成视频
2、此接口要求传入任务id和视频id
此接口属于子任务,需要在父任务账号上使用,请尽快操作避免资源包过期。
官方文档:https://docs.qingque.cn/d/home/eZQClW07IFEuX1csc-VejdY2M#section=h.8fzev2i9nkje

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
Authorization
string 
optional
Default:
{{YOUR_API_KEY}}
Body Params application/json
task_id
string 
required
video_id
string 
required
prompt
string 
optional
callback_url
string 
optional
Example
{
  "task_id": "111",
  "video_id": "CmCmrWduIncAAAAAANzAog"
}

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 -g --request POST '/kling/v1/videos/video-extend' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
  "task_id":"111",
  "video_id": "CmCmrWduIncAAAAAANzAog"
}'

Responses

🟢200成功
application/json
Body
code
integer 
required
错误码;具体定义错误码
message
string 
required
错误信息
request_id
string 
required
请求ID,系统生成,用于跟踪请求、排查问题
data
object 
required
task_id
string 
required
任务ID,系统生成
task_status
string 
required
任务状态,枚举值:submitted(已提交)、processing(处理中)、succeed(成功)、failed(失败)
created_at
integer 
required
任务创建时间,Unix时间戳、单位ms
updated_at
integer 
required
任务更新时间,Unix时间戳、单位ms
Example
{
  "code": 0,
  "message": "string",
  "request_id": "string",
  "data": {
    "task_id": "string",
    "task_status": "string",
    "created_at": 0,
    "updated_at": 0
  }
}
Previous
Image 2 Video
Next
Get task
Built with