POST
/
api
/
v1
/
mj
/
generateVideoExtend
Extend Midjourney Video
curl --request POST \
  --url https://api.kie.ai/api/v1/mj/generateVideoExtend \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "prompt": "Continue the scene with the spacecraft accelerating into a colorful nebula with dynamic light trails",
  "taskType": "mj_video_extend_manual",
  "taskId": "ee603959-debb-48d1-98c4-a6d1c717eba6",
  "index": 0,
  "waterMark": "my_watermark",
  "callBackUrl": "https://api.example.com/callback"
}'
{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "40d90dd1c6fddsa0a7dssa2a08366149"
  }
}

Usage Guide

  • Provide the original video taskId and index to continue from the generated result
  • Choose between manual extension (with prompt) or automatic extension
  • Use prompt to guide how the video should continue while keeping consistency
  • Optional callback is supported

Parameter Details

  • prompt required for manual extension, describes what should happen next
  • taskType extension mode: mj_video_extend_manual or mj_video_extend_auto
  • taskId identifies the original MJ video record to extend
  • index video index from the original record to extend
  • callBackUrl callback URL for receiving completion updates
  • waterMark video watermark, optional

Developer Notes

  • Extended videos are stored for 15 days before automatic deletion
  • Extension maintains the same aspect ratio and style as the original video
  • Manual extension requires a prompt, automatic extension uses AI-generated continuation

Authorizations

Authorization
string
header
required

All APIs require authentication via Bearer Token.

Get API Key:

  1. Visit API Key Management Page to get your API Key

Usage: Add to request header: Authorization: Bearer YOUR_API_KEY

Note:

  • Keep your API Key secure and do not share it with others
  • If you suspect your API Key has been compromised, reset it immediately in the management page

Body

application/json

Response

200
application/json

Request successful

The response is of type object.