cURL
Endpoint Examples
Video Extend
Extend a Midjourney video using a task-based flow (taskId + index).
POST
cURL
Overview
This endpoint is the task-based extension flow for Midjourney videos. For all other extend models, usePOST /api/generate-video with a source video.
Endpoint
Rate limit
20 requests/minute per IPSupported models (task-based)
midjourney-video(extend a Midjourney video created viaPOST /api/generate-video)
Required fields (Midjourney extend)
runId(preferred) ortaskId(legacy alias): the job ID from the original Midjourney video requestindex(0-3)
index maps to the 4 videos returned by the original Midjourney request.
Request notes
- Send the same authentication headers as
/api/generate-video. - Session ownership is enforced; requests for jobs you do not own return
403. - This endpoint does not accept
video,videoUrl,videoDataUrl, orvideoAttachmentId. - The response format matches the standard generation response (
runId,id,status,model,cost).
Source video extend (use /api/generate-video)
Use POST /api/generate-video with an extend model and a source video input.
Extend model examples:
wan-wavespeed-22-spicy-extendwan-wavespeed-25-extendveo3-1-extendveo3-1-fast-extendbytedance-seedance-v1.5-pro-extend
promptvideoUrl(orvideoDataUrl/videoAttachmentId)
videois only accepted by specific models (for example,wan-wavespeed-25-extend).wan-wavespeed-22-spicy-extendacceptsvideoUrl,videoDataUrl, orvideoAttachmentIdonly.- Max source video length: 120 seconds.
Example: Midjourney extend (task-based)
Example response
Example: Source video extend (/api/generate-video)
Authorizations
Body
application/json
Midjourney extension request payload (taskId from the original run + index).
Response
Video extension request submitted successfully (asynchronous processing)
Unique identifier for the video generation request
Current status of the generation
Available options:
pending, processing, completed, failed The model used for generation
Project identifier (for LongStories models)
Cost of the video generation
Payment source used (USD or XNO)
Remaining balance after the generation
Provider label for the precharge