POST
/extend-video8 creditsExtend Video
Continue a video generated by /imagine-video with additional frames, extending the clip's duration. Specify which of the four video variants to extend (by index 1–4), a continuation prompt, and optionally a new start frame. Chain multiple extensions to build longer video sequences from a single original generation.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| parent_task_id | string | Required | Task ID of the original /imagine-video task. |
| index | string | Required | Which video from the parent task to extend.1234 |
| prompt | string | Required | Prompt describing how the video should continue. |
| image_url | string | Optional | Optional start frame override for the extension. |
| motion | string | Optional | Amount of motion for the extension. "low" or "high".Default: lowlowhigh |
| webhook_url | string | Optional | URL where we POST the completed task result. |
| webhook_secret | string | Optional | Sent as x-webhook-secret header in webhook delivery. |
Example Request
cURL
curl -X POST https://api.journeyapi.com/api/v1/extend-video \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"parent_task_id": "jj4m2i44-m63p-85r8-o150-880099884444",
"index": "1",
"prompt": "the camera continues panning right, revealing a waterfall",
"motion": "low",
"webhook_url": "https://your-server.com/webhook"
}'Immediate Response
Returns immediately with a task ID. Use /fetch or webhooks to get the result.
200 OK
{
"task_id": "kk5n3j55-n74q-96s9-p261-991100995555"
}Response Fields
| Field | Type | Description |
|---|---|---|
| task_id | string | UUID of the extend task. |
| task_type | string | Always "imagine-video-extend". |
| video_urls | string[] | Array of 4 extended video URLs. |
Tips
- 1The extended video starts from the last frame of the selected parent video.
- 2Keep prompts consistent between the original and extension for visual continuity.
Quirks & Gotchas
Extended videos are independent clips, not appended to the original.