POST/extend-video8 credits

Extend 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

ParameterTypeRequiredDescription
parent_task_idstringRequiredTask ID of the original /imagine-video task.
indexstringRequiredWhich video from the parent task to extend.
1234
promptstringRequiredPrompt describing how the video should continue.
image_urlstringOptionalOptional start frame override for the extension.
motionstringOptionalAmount of motion for the extension. "low" or "high".Default: low
lowhigh
webhook_urlstringOptionalURL where we POST the completed task result.
webhook_secretstringOptionalSent 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

FieldTypeDescription
task_idstringUUID of the extend task.
task_typestringAlways "imagine-video-extend".
video_urlsstring[]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.

Related Endpoints